OSDN Git Service

2011-08-19 Andrew Stubbs <ams@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2
3         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4         unsigned inputs of different modes.
5         (convert_plusminus_to_widen): Likewise.
6
7 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
8
9         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
10         'type'.
11         Use 'type' from caller, not inferred from 'rhs'.
12         Don't reject non-conversion statements. Do return lhs in this case.
13         (is_widening_mult_p): Add new argument 'type'.
14         Use 'type' from caller, not inferred from 'stmt'.
15         Pass type to is_widening_mult_rhs_p.
16         (convert_mult_to_widen): Pass type to is_widening_mult_p.
17         (convert_plusminus_to_widen): Likewise.
18
19 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
20
21         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
22         Ensure the the larger type is the first operand.
23
24 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
25
26         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
27         unsupported unsigned multiplies to signed.
28         (convert_plusminus_to_widen): Likewise.
29
30 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
31
32         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
33         conversion statement separating multiply-and-accumulate.
34
35 2011-08-19  Richard Guenther  <rguenther@suse.de>
36
37         PR tree-optimization/50067
38         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
39         offset only if we accounted for it.
40
41 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
42
43         * config/arm/arm.md (maddhidi4): Remove '*' from name.
44         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
45         * optabs.c (find_widening_optab_handler_and_mode): New function.
46         (expand_widen_pattern_expr): Use find_widening_optab_handler.
47         (expand_binop_directly): Likewise.
48         (expand_binop): Likewise.
49         * optabs.h (find_widening_optab_handler): New macro define.
50         (find_widening_optab_handler_and_mode): New prototype.
51         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
52         type precision rules.
53         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
54         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
55         (is_widening_mult_rhs_p): Allow widening by more than one mode.
56         Explicitly disallow mis-matched input types.
57         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
58         input types to fit the new handler.
59         (convert_plusminus_to_widen): Likewise.
60
61 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
62
63         * expr.c (expand_expr_real_2): Use widening_optab_handler.
64         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
65         (gen_insn): $N now means $a must be wider than $b, not consecutive.
66         * optabs.c (widened_mode): New function.
67         (expand_widen_pattern_expr): Use widening_optab_handler.
68         (expand_binop_directly): Likewise.
69         (expand_binop): Likewise.
70         * optabs.h (widening_optab_handlers): New struct.
71         (optab_d): New member, 'widening'.
72         (widening_optab_handler): New function.
73         (set_widening_optab_handler): New function.
74         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
75         widening_optab_handler.
76         (convert_plusminus_to_widen): Likewise.
77
78 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
79
80         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
81         pedantic.
82         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax
83         comment.
84         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
85
86 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
87
88         * opth-gen.awk: Do not declare target save/restore structures and
89         functions if IN_RTS defined.
90
91 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
92
93         PR target/49437
94         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
95         when stack was realigned in interrupt handler prologue.
96
97 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
98
99         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
100         (quals_from_declspecs): Assert _Noreturn not present.
101         (grokdeclarator): Handle _Noreturn.
102         (build_null_declspecs): Initialize noreturn_p.
103         (declspecs_add_scspec): Handle RID_NORETURN.
104         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
105         (c_parser_attributes): Handle RID_NORETURN.
106         * c-tree.h (struct c_declspecs): Add noreturn_p.
107         * ginclude/stdnoreturn.h: New.
108         * Makefile.in (USER_H): Add stdnoreturn.h.
109
110 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
111
112         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
113         (OPTION_MASK_ISA_AVX_UNSET): Update.
114         (OPTION_MASK_ISA_AVX2_UNSET): New.
115         (ix86_handle_option): Handle OPT_mavx2 case.
116         * config/i386/cpuid.h (bit_AVX2): New.
117         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
118         AVX2 feature.
119         * config/i386/i386-c.c (ix86_target_macros_internal):
120         Conditionally define __AVX2__.
121         * config/i386/i386.c (ix86_option_override_internal): Define
122         PTA_AVX2.  Define "core-avx2" processor alias.  Handle avx2
123         option.
124         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
125         * config/i386/i386.h (TARGET_AVX2): New.
126         * config/i386/i386.opt (mavx2): New.
127         * doc/invoke.texi: Document -mavx2.
128
129 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
130
131         PR rtl-optimization/49890
132         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
133         subclasses of class which is superset of a pressure class.
134
135 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
136             Igor Zamyatin <igor.zamyatin@intel.com>
137
138         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
139         with HOST_WIDE_INT for isa_flag.
140         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
141         isa variables.
142
143         * config/i386/i386.c (ix86_target_string): Replace int with
144         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
145         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
146         (pta_flags): Removed.
147         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
148         (pta): Use HOST_WIDE_INT on flags.
149         (builtin_isa): Use HOST_WIDE_INT on isa.
150         (ix86_add_new_builtins): Likewise.
151         (def_builtin): Use HOST_WIDE_INT on mask.
152         (def_builtin_const): Likewise.
153         (builtin_description): Likewise.
154
155         * config/i386/i386.opt (ix86_isa_flags): Replace int with
156         HOST_WIDE_INT.
157         (ix86_isa_flags_explicit): Likewise.
158         (x_ix86_isa_flags_explicit): Likewise.
159
160 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
161
162         PR rtl-optimization/50107
163         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
164         (ira_hard_reg_in_set_p): New.
165
166         * ira-color.c (calculate_saved_nregs): New.
167         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
168         hard regs.
169         (allocno_reload_assign, fast_allocation): Use
170         ira_hard_reg_set_intersection_p instead of
171         ira_hard_reg_not_in_set_p.
172
173         * ira.c (setup_reg_renumber): Use
174         ira_hard_reg_set_intersection_p instead of
175         ira_hard_reg_not_in_set_p.
176         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
177         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
178
179         * ira-costs.c (ira_tune_allocno_costs): Use
180         ira_hard_reg_set_intersection_p instead of
181         ira_hard_reg_not_in_set_p.
182
183 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
184             Igor Zamyatin <igor.zamyatin@intel.com>
185
186         * hwint.h (HOST_WIDE_INT_1): New.
187
188         * opt-functions.awk (switch_bit_fields): Initialize the
189         host_wide_int field.
190         (host_wide_int_var_name): New.
191         (var_type_struct): Check and return HOST_WIDE_INT.
192
193         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
194
195         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
196
197         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
198         check masks for HOST_WIDE_INT.
199
200         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
201         (option_enabled): Likewise.
202         (get_option_state): Likewise.
203
204         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
205         to HOST_WIDE_INT.
206
207 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
208             Marc Glisse  <marc.glisse@normalesup.org>
209
210         PR libstdc++-v3/1773
211         * target.def (decl_mangling_context): New C++ hook.
212         * doc/tm.texi: Regenerate.
213         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
214         * config/sol2-protos.h: Group by source file.
215         (solaris_cxx_decl_mangling_context): Declare.
216         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
217         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
218         Use $<.
219         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
220         Add sol2-stubs.o to extra_objs.
221
222 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
223
224         PR target/50009
225         * stor-layout.c (update_alignment_for_field): Don't ICE on
226         packed flexible array members if ms_bitfield_layout_p.
227
228         PR target/50092
229         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
230         on the result before returning it.
231
232         PR debug/50017
233         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
234         is a debug stmt, use location of the first non-debug stmt after it.
235
236 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
237
238         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
239         (arm_size_rtx_costs): Likewise.
240
241 2011-08-18  Richard Guenther  <rguenther@suse.de>
242
243         * tree.h (tree_int_cst_msb): Remove.
244         * tree.c (tree_int_cst_msb): Likewise.
245         (tree_int_cst_sign_bit): Move from ...
246         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
247
248 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
249
250         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
251         * doc/tm.texi: Regenerate.
252         * target.def (rtx_costs): Add an opno parameter.
253         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
254         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
255         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
256         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
257         * cse.c (COST_IN): Add an opno parameter.
258         (notreg_cost): Likewise.  Update call to rtx_cost.
259         (COST, fold_rtx): Update accordingly.
260         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
261         * expmed.c (emit_store_flag): Likewise.
262         * optabs.c (avoid_expensive_constant): Add an opno parameter.
263         Update call to rtx_cost.
264         (expand_binop_directly, expand_binop): Likewise.
265         (expand_twoval_binop, prepare_cmp_insn): Likewise.
266         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
267         (set_src_cost, get_full_set_src_cost): Update accordingly.
268         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
269         to target hook.
270         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
271         (default_adress_cost): Update calls to rtx_cost.
272
273         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
274         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
275         (arm_rtx_costs): Add an opno parameter.
276         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
277         adjust any recursive rtx-cost calls.
278         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
279         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
280         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
281         * config/cris/cris.c (cris_rtx_costs): Likewise.
282         * config/frv/frv.c (frv_rtx_costs): Likewise.
283         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
284         * config/i386/i386.c (ix86_rtx_costs): Likewise.
285         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
286         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
287         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
288         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
289         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
290         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
291         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
292         * config/mep/mep.c (mep_rtx_cost): Likewise.
293         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
294         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
295         (mips_zero_extend_cost): Add an opno parameter.
296         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
297         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
298         to rtx_cost.
299         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
300         rtx-cost calls.
301         * config/pa/pa.c (hppa_rtx_costs): Likewise.
302         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
303         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
304         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
305         (rs6000_debug_rtx_costs): Likewise.
306         * config/s390/s390.c (s390_rtx_costs): Likewise.
307         * config/score/score-protos.h (score_rtx_costs): Likewise.
308         * config/score/score.c (score_rtx_costs): Likewise.
309         * config/sh/sh.c (andcosts): Update call to rtx_cost.
310         (sh_rtx_costs): Add an opno parameter.
311         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
312         * config/spu/spu.c (spu_rtx_costs): Likewise.
313         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
314         * config/v850/v850.c (v850_rtx_costs): Likewise.
315         * config/vax/vax.c (vax_rtx_costs): Likewise.
316         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
317
318 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
319
320         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
321         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
322         rtx_cost.
323         * calls.c (precompute_register_parameters): Likewise.
324         * combine.c (expand_compound_operation, make_extraction): Likewise.
325         (force_to_mode, distribute_and_simplify_rtx): Likewise.
326         * dse.c (find_shift_sequence): Likewise.
327         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
328         * expr.c (compress_float_constant): Likewise.
329         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
330         * gcse.c (want_to_gcse_p): Likewise.
331         * ifcvt.c (noce_try_sign_mask): Likewise.
332         * loop-doloop.c (doloop_optimize): Likewise.
333         * loop-invariant.c (create_new_invariant): Likewise.
334         * optabs.c (avoid_expensive_constant): Likewise.
335         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
336         (try_replace_in_use, reload_cse_move2add): Likewise.
337         * reload1.c (calculate_elim_costs_all_insns): Likewise.
338         (note_reg_elim_costly): Likewise.
339         * rtlanal.c (insn_rtx_cost): Likewise.
340         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
341         * stmt.c (lshift_cheap_p): Likewise.
342         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
343         * config/avr/avr.c (final_prescan_insn): Likewise.
344         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
345         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
346
347 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
348
349         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
350         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
351         * cfgloopanal.c (seq_cost): Likewise.
352         * loop-invariant.c (create_new_invariant): Likewise.
353         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
354         (reload_cse_move2add): Use get_full_set_rtx_cost.
355
356 2011-08-18  Richard Guenther  <rguenther@suse.de>
357
358         * expr.c (get_inner_reference): Fix typo in last change.
359
360 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
361             Joseph Myers  <joseph@codesourcery.com>
362
363         PR tree-optimization/49963
364         * hwint.c (absu_hwi): Define.
365         * hwint.h (absu_hwi): Declare.
366         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
367         of abs_hwi.
368         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
369         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
370
371 2011-08-18  Richard Guenther  <rguenther@suse.de>
372
373         * expr.c (get_inner_reference): Sign-extend the constant
374         twos-complement offset before doing arbitrary precision
375         arithmetic on it.
376         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
377         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
378         to get_constraint_for_ptr_offset.
379
380 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
381
382         PR target/50068
383         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
384
385 2011-08-17  Richard Guenther  <rguenther@suse.de>
386
387         * tree.h (convert_to_ptrofftype_loc): New function.
388         (convert_to_ptrofftype): Define.
389         * builtins.c (expand_builtin_bzero): Use size_type_node.
390         (fold_builtin_bzero): Likewise.
391         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
392         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
393         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
394         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
395         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
396         * fold-const.c (build_range_check): Negate using the original
397         type.
398         (fold_unary_loc): Use fold_build_pointer_plus_loc.
399         * gimple-fold.c (gimple_adjust_this_by_delta): Use
400         convert_to_ptrofftype.
401         * gimplify.c (gimplify_self_mod_expr): Likewise.
402         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
403         (graphite_create_new_loop_guard): Likewise.
404         * graphite-sese-to-poly.c (my_long_long): Remove.
405         (scop_ivs_can_be_represented): Adjust.
406         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
407         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
408         * tree-loop-distribution.c (build_size_arg_loc): Use
409         size_type_node.
410         (generate_memset_zero): Simplify.
411         * tree-mudflap.c: Use fold_convert, not convert.
412         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
413         its own type.
414         (determine_offset): Likewise for DR_STEP.
415         (valid_initializer_p): Likewise.
416         * tree-profile.c (prepare_instrumented_value): Convert the pointer
417         to an integer type of same size.
418         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
419         to sizetype without need.
420         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
421         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
422         * tree-ssa-loop-manip.c (create_iv): Likewise.
423         (determine_exit_conditions): Adjust comment.
424         * tree-ssa-pre.c (create_expression_by_pieces): Use
425         convert_to_ptrofftype.
426         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
427         * varasm.c (array_size_for_constructor): Compute using double_ints.
428
429 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
430
431         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
432         when generating an integer result where possible.  Short-cut
433         comparison against 0 also for QImode.
434
435 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
436
437         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
438         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
439         prototype.
440         * config/spu/spu.c (spu_legitimize_reload_address): New function.
441         (spu_legitimate_address_p): Do not check displacement if the base
442         is an eliminable stack register.
443
444 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
445
446         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
447         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
448         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
449         m32c_preferred_output_reload_class): Remove.
450         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
451         Change rclass argument and return types to reg_class_t. Use
452         reg_class_subset_p instead of class_sizes.
453         (m32c_preferred_output_reload_class): Make static. Change rclass
454         argument and return types to reg_class_t.
455         (TARGET_PREFERRED_RELOAD_CLASS,
456         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
457
458 2011-08-16  Kai Tietz  <ktietz@redhat.com>
459
460         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
461
462 2011-08-16  Richard GUenther  <rguenther@suse.de>
463
464         PR tree-optimization/50082
465         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
466         warnings here, instead of ...
467         (ssa_forward_propagate_and_combine): ... here.
468         (forward_propagate_into_comparison_1): Adjust.
469         (forward_propagate_into_comparison): Likewise.
470         (forward_propagate_into_gimple_cond): Likewise.
471         (forward_propagate_into_cond): Likewise.
472
473 2011-08-16  Andreas Schwab  <schwab@redhat.com>
474
475         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
476         instead of ggc_alloc_zone_vec_rtvec_def.
477
478 2011-08-16  Richard Guenther  <rguenther@suse.de>
479
480         * tree.h (ptrofftype_p): New helper function.
481         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
482         offset verification.
483         (verify_gimple_assign_binary): Likewise.
484         * tree.c (build2_stat): Likewise.
485         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
486         (reset_evolution_in_loop): Likewise.
487         * tree-chrec.h (build_polynomial_chrec): Likewise.
488
489 2011-08-16  Liang Wang  <lwang1@marvell.com>
490
491         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
492         ggc_alloc_zone_vec_rtvec_def.
493
494 2011-08-16  Richard Guenther  <rguenther@suse.de>
495
496         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
497         helper factored out from ...
498         (extract_range_from_binary_expr_1): ... here.  Re-structure
499         to not glob handling too different tree codes.
500
501 2011-08-15  Richard Henderson  <rth@redhat.com>
502
503         PR middle-end/50006
504         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
505         setting out to include allocate_stack named pattern as well.
506         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
507         * stmt.c (expand_stack_restore): Likewise.
508
509 2011-08-15  Richard Guenther  <rguenther@suse.de>
510
511         PR middle-end/50082
512         * fold-const.c (maybe_canonicalize_comparison_1): Properly
513         convert the modified operand to the other operand type.
514         (fold_comparison): Call maybe_canonicalize_comparison_1 with
515         useless conversions stripped from comparison operands.
516
517 2011-08-15  Richard Guenther  <rguenther@suse.de>
518
519         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
520         (extract_range_from_unary_expr_1): Restructure.
521
522 2011-08-15  Richard Guenther  <rguenther@suse.de>
523
524         PR tree-optimization/50058
525         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
526         copy matching.
527
528 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
529
530         PR target/50022
531         * config/arm/arm.c (output_move_double): Add 2 parameters
532         to count the number of insns emitted and whether to emit or not.
533         Use the flag to decide when to emit and count number of instructions
534         that will be emitted.
535         Handle case where output_move_double might be called for calculating
536         lengths with an invalid constant.
537         (arm_count_output_move_double_insns): Define.
538         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
539         (output_move_double): Adjust prototype.
540         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
541         output_move_double.
542         ("*movdi_vfp_cortexa8"): Likewise and add attribute
543         for ce_count.
544         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
545         ("*movdf_soft_insn"): Likewise.
546         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
547         ("*cirrus_thumb2_movdi"): Likewise.
548         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
549         ("*cirrus_movdf_hard_insn"): Likewise.
550         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
551         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
552         ("mov<mode>_internal VMMX"): Likewise.
553         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
554
555 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
556
557         * config/i386/i386.c (ix86_expand_round_sse4): New function.
558         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
559         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
560         for TARGET_ROUND.
561
562         (rint<mode>2): Simplify TARGET_ROUND check.
563         (floor<mode>2): Ditto.
564         (ceil<mode>2): Ditto.
565         (btrunc<mode>2): Ditto.
566
567 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
568
569         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
570         as mmix_preferred_output_reload_class.
571
572 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
573
574         * PR target/49903
575         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
576         (branch_unspec): New insn.
577         (branch): Beauty farm.
578         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
579         to be IF_THEN_ELSE.
580         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
581         New static functions.
582         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
583         Use CONST_INT_P.  Beauty.
584
585 2011-08-12  Richard Henderson  <rth@redhat.com>
586
587         PR rtl-opt/49994
588         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
589         * sched-deps.c (init_deps): Clear it.
590         (deps_analyze_insn): Consume it.
591         (sched_analyze_insn): Fill it.
592
593 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
594
595         PR target/48328
596         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
597         for tbh instructions.
598
599 2011-08-12   Diego Novillo  <dnovillo@google.com>
600
601         * data-streamer.h (streamer_write_zero): Rename from output_zero.
602         (streamer_write_uhwi): Rename from lto_output_uleb128.
603         (streamer_write_hwi): Rename from output_sleb128.
604         (streamer_write_string): Rename from lto_output_string.
605         (streamer_string_index): Rename from lto_string_index.
606         (streamer_write_string_with_length): Rename from
607         lto_output_string_with_length.
608         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
609         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
610         (streamer_read_string): Rename from lto_input_string.
611         (streamer_read_indexed_string): Rename from input_string_internal.
612         (streamer_read_uhwi): Rename from lto_input_uleb128.
613         (streamer_read_hwi): Rename from lto_input_sleb128.
614         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
615         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
616         (streamer_write_enum): Rename from lto_output_enum.
617         (streamer_read_enum): Rename from lto_input_enum.
618         (streamer_write_record_start): Rename from output_record_start.
619         (streamer_read_record_start): Rename from input_record_start.
620         (streamer_write_bitpack): Rename from lto_output_bitpack.
621         (streamer_read_bitpack): Rename from lto_input_bitpack.
622         (streamer_write_char_stream): Rename from lto_output_1_stream.
623         (streamer_read_uchar): Rename from lto_input_1_unsigned.
624         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
625         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
626         (streamer_read_string_cst): Rename from input_string_cst.
627         (streamer_read_chain): Rename from lto_input_chain.
628         (streamer_alloc_tree): Rename from lto_materialize_tree.
629         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
630         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
631         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
632         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
633         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
634         (streamer_write_chain): Rename from lto_output_chain.
635         (streamer_write_tree_header): Rename from lto_output_tree_header.
636         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
637         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
638         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
639         (streamer_write_builtin): Rename from lto_output_builtin_tree.
640         (streamer_check_handled_ts_structures): Rename from
641         check_handled_ts_structures.
642         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
643         (streamer_tree_cache_insert_at): Rename from
644         lto_streamer_cache_insert_at.
645         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
646         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
647         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
648         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
649         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
650         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
651         (write_identifier): Rename from output_identifier.
652         (write_ts_common_tree_pointers): Rename from
653         lto_output_ts_common_tree_pointers.
654         (write_ts_vector_tree_pointers): Rename from
655         lto_output_ts_vector_tree_pointers.
656         (write_ts_complex_tree_pointers): Rename from
657         lto_output_ts_complex_tree_pointers.
658         (write_ts_decl_minimal_tree_pointers): Rename from
659         lto_output_ts_decl_minimal_tree_pointers.
660         (write_ts_decl_common_tree_pointers): Rename from
661         lto_output_ts_decl_common_tree_pointers.
662         (write_ts_decl_non_common_tree_pointers): Rename from
663         lto_output_ts_decl_non_common_tree_pointers.
664         (write_ts_decl_with_vis_tree_pointers): Rename from
665         lto_output_ts_decl_with_vis_tree_pointers.
666         (write_ts_field_decl_tree_pointers): Rename from
667         lto_output_ts_field_decl_tree_pointers.
668         (write_ts_function_decl_tree_pointers): Rename from
669         lto_output_ts_function_decl_tree_pointers.
670         (write_ts_type_common_tree_pointers): Rename from
671         lto_output_ts_type_common_tree_pointers.
672         (write_ts_type_non_common_tree_pointers): Rename from
673         lto_output_ts_type_non_common_tree_pointers.
674         (write_ts_list_tree_pointers): Rename from
675         lto_output_ts_list_tree_pointers.
676         (write_ts_vec_tree_pointers): Rename from
677         lto_output_ts_vec_tree_pointers.
678         (write_ts_exp_tree_pointers): Rename from
679         lto_output_ts_exp_tree_pointers.
680         (write_ts_block_tree_pointers): Rename from
681         lto_output_ts_block_tree_pointers.
682         (write_ts_binfo_tree_pointers): Rename from
683         lto_output_ts_binfo_tree_pointers.
684         (write_ts_constructor_tree_pointers): Rename from
685         lto_output_ts_constructor_tree_pointers.
686         (write_ts_target_option): Rename from lto_output_ts_target_option.
687         (write_ts_translation_unit_decl_tree_pointers): Rename from
688         lto_output_ts_translation_unit_decl_tree_pointers.
689         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
690         Rename from lto_streamer_cache_add_to_node_array.
691         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
692         (record_common_node): Rename from lto_record_common_node.
693
694         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
695         declarations.
696         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
697         function.
698         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
699         unused function.
700         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
701         (ipa-reference.o): Likewise.
702         * lto-section-out.c: Include data-streamer.h.
703         * ipa-reference.c: Include data-streamer.h.
704
705 2011-08-12  Nick Clifton  <nickc@redhat.com>
706
707         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
708         * doc/md.texi (cmpstrn): Note that the comparison stops if both
709         fetched bytes are zero.
710         (cmpstr): Likewise.
711         (cmpmem): Note that the comparison does not stop if both of the
712         fetched bytes are zero.
713
714 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
715
716         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
717         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
718         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
719         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
720         to integer_type_node.
721         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
722         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
723         * builtins.c (expand_builtin_in): Ditto.
724         (mathfn_built_in_1): Ditto.
725         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
726         BUILT_IN_IFLOOR.
727         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
728         BUILT_IN_IROUND.
729         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
730         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
731         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
732
733 2011-08-12  Richard Guenther  <rguenther@suse.de>
734
735         * tree-vrp.c (extract_range_from_unary_expr_1): Implement
736         -X as 0 - X.
737
738 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
739
740         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
741
742 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
743
744         * config/arm/arm.c (get_label_padding): New function.
745         (create_fix_barrier, arm_reorg): Use it.
746
747 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
748
749         PR target/49781
750         * config/i386/i386.md (*lea_5_zext): New.
751         (*lea_6_zext): Ditto.
752         * config/i386/predicates.md (const_32bit_mask): New predicate.
753         (lea_address_operand): Reject AND.
754         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
755         const_32bit_mask immediate.
756         (ix86_print_operand_address): Handle AND.
757         (memory_address_length): Ditto.
758
759 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
760             Brian Hackett  <bhackett1024@gmail.com>
761
762         * plugin.def: Add event for finish_decl.
763         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
764         * c-decl.c (finish_decl): Invoke callbacks on above event.
765         * doc/plugins.texi: Document above event.
766
767 2011-08-11  Richard Guenther  <rguenther@suse.de>
768
769         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
770         lookups, make looking through aggregate copies stronger.
771
772 2011-08-11  Richard Henderson  <rth@redhat.com>
773
774         PR bootstrap/50018
775         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
776
777 2011-08-11  Richard Guenther  <rguenther@suse.de>
778
779         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
780         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
781         (vrp_visit_stmt): Likewise.
782
783 2011-08-11  Richard Guenther  <rguenther@suse.de>
784
785         PR middle-end/50040
786         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
787         load of the other piece with TREE_NO_WARNING.
788         * tree-flow.h (warn_uninit): Adjust prototype.
789         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
790         the base variable and the expression that is used separately.
791         Properly query all TREE_NO_WARNING flags.
792         (struct walk_data): Remove.
793         (warn_uninitialized_var): Likewise.
794         (warn_uninitialized_vars): Do not walk gimple pieces but simply
795         look at all SSA uses of the statement.  Handle unused memory
796         separately.
797         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
798
799 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
800
801         * config/rx/rx.md (movsicc): Allow register to register transfers.
802         (*movsicc): Likewise.
803         (*stcc): Restrict this pattern to EQ and NE compares.
804         (*stcc_reg): New pattern.  Works for any comparison but only for
805         register transfers.
806
807 2011-08-11   Diego Novillo  <dnovillo@google.com>
808
809         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
810         Call stream_write_tree instead of output_record_start.
811         (lto_output_ts_binfo_tree_pointers): Likewise.
812
813         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
814         Convert it to a macro.
815         (stream_read_tree): Likewise.
816
817         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
818         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
819
820         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
821         and tree_read_bitfields.
822         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
823         (lto_write_tree): Call it.
824         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
825         * streamer-hooks.h (struct streamer_hooks): Remove fields
826         name, is_streamable and alloc_tree. Update all users.
827         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
828         (lto_materialize_tree): ... here.
829         Handle CALL_EXPR codes.
830         Remove call to lto_streamer_cache_append.
831         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
832         * tree-streamer.h (tree_read_bitfields): Declare.
833
834         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
835         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
836         * tree-streamer.h (stream_read_tree): New.  Replace all calls
837         to lto_input_tree with it.
838         (stream_write_tree): New.  Replace all calls to lto_output_tree,
839         lto_output_tree_ref and lto_output_tree_or_ref with it.
840         * lto-streamer-in.c (lto_read_tree): Inline code from
841         lto_streamer_read_tree.
842         (lto_input_tree): Move from tree-streamer-in.c.
843         * lto-streamer-out.c (lto_output_tree_ref): Make static.
844         Remove handling of NULL values for EXPR.
845         Do not handle EXPRs that are not indexable.
846         (lto_write_tree): Move from tree-streamer-out.c.
847         Inline lto_streamer_write_tree.
848         (lto_output_tree): Move from tree-streamer-out.c.
849         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
850         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
851         (lto_preload_common_nodes): Likewise.
852         Remove assertions and adjustments for nodes
853         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
854         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
855         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
856         * lto-streamer.h (lto_input_tree): Declare.
857         (lto_output_tree_ref): Remove.
858         * streamer-hooks.h (struct streamer_hooks): Remove fields
859         preload_common_nodes, indexable_with_decls_p,
860         pack_value_fields, unpack_value_fields and output_tree_header.
861         Update all users.
862         * tree-streamer-in.c (lto_materialize_tree): Make extern.
863         (lto_input_tree_pointers): Likewise.
864         (lto_read_tree): Move to lto-streamer-in.c.
865         (lto_input_integer_cst): Make extern.
866         (lto_get_pickled_tree): Likewise.
867         (lto_get_builtin_tree): Likewise.
868         (lto_input_tree): Move to lto-streamer-in.c.
869         * tree-streamer-out.c (pack_value_fields): Make extern.
870         (lto_output_tree_or_ref): Remove.  Replace all callers with
871         calls to stream_write_tree.
872         (lto_output_builtin_tree): Make extern.
873         (lto_streamer_write_tree): Inline into lto_write_tree.
874         (lto_output_tree_pointers): Make extern.
875         (lto_output_tree_header): Likewise.
876         (lto_output_integer_cst): Likewise.
877         (lto_write_tree): Move to lto-streamer-out.c.
878         (lto_output_tree): Likewise.
879         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
880         (preload_common_nodes): Likewise.
881         (lto_streamer_cache_create): Call it.
882         * tree-streamer.h: Include streamer-hooks.h.
883         (stream_write_tree): New.
884         (stream_read_tree): New.
885         (lto_input_tree): Remove.
886         (lto_materialize_tree): Declare.
887         (lto_input_tree_pointers): Declare.
888         (lto_get_pickled_tree): Declare.
889         (lto_get_builtin_tree): Declare.
890         (lto_input_integer_cst): Declare.
891         (lto_output_tree_header): Declare.
892         (pack_value_fields): Declare.
893         (lto_output_tree_pointers): Declare.
894         (lto_output_integer_cst): Declare.
895         (lto_output_builtin_tree): Declare.
896
897 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
898
899         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
900         only if producer writes to the register given by regno.
901
902 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
903             Alexander Monakov  <amonakov@ispras.ru>
904
905         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
906         (sched_get_condition_with_rev_uncached): ... this.  Factor out
907         condition caching logic into ...
908         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
909         attempt to use cache for instructions with zero luid.
910         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
911         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
912
913 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
914
915         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
916         get_seqno_for_a_jump.  Update the caller.
917         (get_seqno_by_succs): New.  Use it ...
918         (get_seqno_for_a_jump): ... here to find a seqno if looking at
919         predecessors was not sufficient.
920         (get_seqno_by_preds): Include head in iteration range, exclude insn.
921
922 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
923
924         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
925
926 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
927
928         * sel-sched-ir.h (register_unavailable_p): Declare.
929         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
930         (set_unavailable_target_for_expr): ... here to properly test
931         availability of a register.
932         (speculate_expr): Ditto.
933         * sel-sched.c (substitute_reg_in_expr): Ditto.
934         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
935
936 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
937
938         * sel-sched.c (verify_target_availability): Fix usage of
939         hard_regno_nregs.
940
941 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
942
943         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
944         recognized by cannot_copy_insn_p hook and volatile instructions.
945
946 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
947
948         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
949
950 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
951
952         * doc/md.texi (define_bypass): Say that the instruction names can
953         be filename-style globs.
954         * Makefile.in (FNMATCH_H): Define.
955         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
956         * genattrtab.c: Include fnmatch.h.
957         (bypass_list): Change field name from "insn" to "pattern".
958         (gen_bypass_1): Update accordingly.
959         (process_bypasses): Use fnmatch to check for matches between
960         insn reservations and define_bypasses.
961         * genautomata.c: Include fnmatch.h.
962         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
963         and out_pattern respectively.
964         (gen_bypass, insert_bypass): Update accordingly.
965         (for_each_matching_insn, process_bypass_2, process_bypass_1)
966         (process_bypass): New functions.
967         (process_decls): Use process_bypass.  Update after field name changes.
968
969 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
970
971         PR target/49687
972         * config/avr/avr.md (smulqi3_highpart): New insn.
973         (umulqi3_highpart): New insn.
974         (*subqi3.ashiftrt7): New insn.
975         (smulhi3_highpart): New expander.
976         (umulhi3_highpart): Nex expander.
977         (*smulhi3_highpart_call): New insn.
978         (*umulhi3_highpart_call): New insn.
979         (extend_u): New code attribute.
980         (extend_prefix): Rename code attribute to extend_su.
981         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
982         widening QI/HI multiply.
983
984 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
985
986         PR tree-optimization/50039
987         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
988         that DEF_STMT has a stmt_vec_info.
989
990 2011-08-10  Richard Guenther  <rguenther@suse.de>
991
992         * tree.h (can_trust_pointer_alignment): Remove.
993         * builtins.c (can_trust_pointer_alignment): Remove.
994
995 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
996
997         * c-typeck.c (scalar_to_vector): New function. Try scalar to
998         vector conversion.
999         (stv_conv): New enum for scalar_to_vector return type.
1000         (build_binary_op): Adjust.
1001         * doc/extend.texi: Description of scalar to vector expansion.
1002
1003 2011-08-10  Richard Guenther  <rguenther@suse.de>
1004
1005         * tree.h (get_pointer_alignment): Remove max-align argument.
1006         (get_object_alignment): Likewise.
1007         * builtins.c (get_object_alignment_1): Adjust.
1008         (get_object_alignment): Remove max-align argument.
1009         (get_pointer_alignment): Likewise.
1010         (expand_builtin_strlen): Adjust.
1011         (expand_builtin_memcpy): Likewise.
1012         (expand_builtin_mempcpy_args): Likewise.
1013         (expand_builtin_strncpy): Likewise.
1014         (expand_builtin_memset_args): Likewise.
1015         (expand_builtin_memcmp): Likewise.
1016         (expand_builtin_strcmp): Likewise.
1017         (expand_builtin_strncmp): Likewise.
1018         (get_builtin_sync_mem): Likewise.
1019         (fold_builtin_memset): Likewise.
1020         (fold_builtin_memory_op): Likewise.
1021         (expand_builtin_memory_chk): Likewise.
1022         * emit-rtl.c (get_mem_align_offset): Likewise.
1023         (set_mem_attributes_minus_bitpos): Likewise.
1024         * expr.c (expand_assignment): Likewise.
1025         (expand_expr_real_1): Likewise.
1026         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
1027         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1028         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
1029         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1030         * value-prof.c (gimple_stringops_transform): Likewise.
1031
1032 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
1033
1034         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
1035         * doc/tm.texi: Regenerate.
1036
1037 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
1038
1039         PR target/29560
1040         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
1041         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
1042         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
1043         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
1044         shift target is unused.
1045
1046 2011-08-10  Richard Guenther  <rguenther@suse.de>
1047
1048         PR tree-optimization/49937
1049         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
1050         using get_object_alignment_1.
1051
1052 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
1053
1054         * config/i386/i386.c (ix86_emit_i387_round): New function.
1055         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
1056         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
1057         Use ix86_emit_i387_round to expand round function for i387 math.
1058         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
1059         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
1060
1061 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1062
1063         * config/sync.c: Move to ../libgcc.
1064         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
1065         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
1066         Remove.
1067
1068 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
1069
1070         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
1071         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
1072         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
1073         Change 'from' and 'to' arguments type to reg_class_t.
1074         (TARGET_REGISTER_MOVE_COST): Define.
1075
1076 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
1077
1078         PR target/50026
1079         Revert:
1080         PR rtl-optimization/49990
1081         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1082         ignore classes which can not change mode.
1083         (find_costs_and_classes): Ditto.
1084
1085 2011-08-09  Richard Guenther  <rguenther@suse.de>
1086
1087         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
1088         information for ranges with only negative values.
1089         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
1090         BIT_AND_EXPR handling to handle ranges with negative values.
1091
1092 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
1093
1094         * config/i386/i386.c: Remove traling spaces.
1095         * config/i386/sse.md: Likewise.
1096         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
1097         (*fma_fmsub_<mode>): Likewise.
1098         (*fma_fnmadd_<mode>): Likewise.
1099         (*fma_fnmsub_<mode>): Likewise.
1100
1101 2011-08-09  Nick Clifton  <nickc@redhat.com>
1102
1103         * config/rx/rx.md: Disable extender peepholes at -O3.
1104
1105 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
1106
1107         PR target/49781
1108         * config/i386/i386.md (reload_noff_load): New.
1109         (reload_noff_store): Ditto.
1110         * config/i386/i386.c (ix86_secondary_reload): Use
1111         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
1112         double-word moves from/to non-offsetable addresses instead of
1113         generating XMM temporary.
1114
1115 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
1116
1117         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1118
1119 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
1120
1121         PR tree-optimization/50014
1122         * tree-vect-loop.c (vectorizable_reduction): Get def type before
1123         calling vect_get_vec_def_for_stmt_copy ().
1124
1125 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
1126
1127         PR rtl-optimization/49990
1128         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1129         ignore classes which can not change mode.
1130         (find_costs_and_classes): Ditto.
1131
1132 2011-08-08  Richard Henderson  <rth@redhat.com>
1133
1134         PR middle-end/49990
1135         * config/i386/i386.c (ix86_expand_prologue): Call
1136         for SEH target gen_prologue_use instead of gen_blockage
1137         at prologue's end.
1138
1139 2011-08-08  Martin Jambor  <mjambor@suse.cz>
1140
1141         PR middle-end/49923
1142         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1143         memory alignment.
1144
1145 2011-08-08   Diego Novillo  <dnovillo@google.com>
1146
1147         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
1148         (DATA_STREAMER_H): New.
1149         (GIMPLE_STREAMER_H): New.
1150         (TREE_STREAMER_H): New.
1151         (STREAMER_HOOKS_H): New.
1152         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
1153         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
1154         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
1155         (data-streamer.o): New.
1156         (data-streamer-in.o): New.
1157         (data-streamer-out.o): New.
1158         (gimple-streamer-in.o): New.
1159         (gimple-streamer-out.o): New.
1160         (streamer-hooks.o): New.
1161         (tree-streamer.o): New.
1162         (tree-streamer-in.o): New.
1163         (tree-streamer-out.o): New.
1164         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1165         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
1166         GIMPLE_STREAMER_H and TREE_STREAMER_H.
1167         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
1168         GIMPLE_STREAMER_H and TREE_STREAMER_H.
1169         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
1170         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1171         (ipa-inline-analysis.o): Likewise.
1172         (ipa-pure-const.o): Likewise.
1173         * data-streamer-in.c: New.
1174         * data-streamer-out.c: New.
1175         * data-streamer.c: New.
1176         * data-streamer.h: New.
1177         * gimple-streamer-in.c: New.
1178         * gimple-streamer-out.c: New.
1179         * gimple-streamer.h: New.
1180         * ipa-inline-analysis.c: Include data-streamer.h.
1181         * ipa-prop.c: Include data-streamer.h.
1182         * ipa-pure-const.c: Include data-streamer.h.
1183         * lto-cgraph.c: Include data-streamer.h.
1184         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
1185         (lto_input_widest_uint_uleb128): Likewise.
1186         (lto_input_sleb128): Likewise.
1187         (bp_unpack_var_len_unsigned): Likewise.
1188         (bp_unpack_var_len_int): Likewise.
1189         * lto-section-out.c (lto_output_uleb128_stream): Move to
1190         data-streamer-out.c.
1191         (lto_output_widest_uint_uleb128_stream): Likewise.
1192         (lto_output_sleb128_stream): Likewise.
1193         (bp_pack_var_len_unsigned): Likewise.
1194         (bp_pack_var_len_int): Likewise.
1195         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
1196         (struct string_slot): Remove.  Update all users.
1197         (lto_tag_check_set): Make extern.
1198         (lto_tag_check_range): Move to lto-streamer.h.
1199         (lto_tag_check): Likewise.
1200         (hash_string_slot_node): Remove.  Update all users.
1201         (eq_string_slot_node): Remove.  Update all users.
1202         (string_for_index): Move to data-streamer-in.c
1203         (input_string_internal): Likewise.
1204         (input_string_cst): Move to tree-streamer-in.c.
1205         (input_identifier): Likewise.
1206         (lto_input_string): Move to data-streamer-in.c
1207         (input_record_start): Move to data-streamer.h
1208         (canon_file_name): Use new definition of struct string_slot
1209         from data-streamer.h.  Set S_SLOT.LEN.
1210         (lto_input_location): Make extern.
1211         (lto_input_chain): Move to tree-streamer-in.c.
1212         (lto_init_eh): Make extern.
1213         (input_phi): Move to gimple-streamer-in.c.
1214         (input_gimple_stmt): Likewise.
1215         (input_bb): Likewise.
1216         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
1217         (unpack_ts_real_cst_value_fields): Likewise.
1218         (unpack_ts_fixed_cst_value_fields): Likewise.
1219         (unpack_ts_decl_common_value_fields): Likewise.
1220         (unpack_ts_decl_wrtl_value_fields): Likewise.
1221         (unpack_ts_decl_with_vis_value_fields): Likewise.
1222         (unpack_ts_function_decl_value_fields): Likewise.
1223         (unpack_ts_type_common_value_fields): Likewise.
1224         (unpack_ts_block_value_fields): Likewise.
1225         (unpack_ts_translation_unit_decl_value_fields): Likewise.
1226         (unpack_value_fields): Likewise.
1227         (lto_materialize_tree): Likewise.
1228         (lto_input_ts_common_tree_pointers): Likewise.
1229         (lto_input_ts_vector_tree_pointers): Likewise.
1230         (lto_input_ts_complex_tree_pointers): Likewise.
1231         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
1232         (lto_input_ts_decl_common_tree_pointers): Likewise.
1233         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
1234         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
1235         (lto_input_ts_field_decl_tree_pointers): Likewise.
1236         (lto_input_ts_function_decl_tree_pointers): Likewise.
1237         (lto_input_ts_type_common_tree_pointers): Likewise.
1238         (lto_input_ts_type_non_common_tree_pointers): Likewise.
1239         (lto_input_ts_list_tree_pointers): Likewise.
1240         (lto_input_ts_vec_tree_pointers): Likewise.
1241         (lto_input_ts_exp_tree_pointers): Likewise.
1242         (lto_input_ts_block_tree_pointers): Likewise.
1243         (lto_input_ts_binfo_tree_pointers): Likewise.
1244         (lto_input_ts_constructor_tree_pointers): Likewise.
1245         (lto_input_ts_target_option): Likewise.
1246         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
1247         (lto_input_tree_pointers): Likewise.
1248         (lto_get_pickled_tree): Likewise.
1249         (lto_get_builtin_tree): Likewise.
1250         (lto_read_tree): Likewise.
1251         (lto_input_integer_cst): Likewise.
1252         (lto_input_tree): Likewise.
1253         * lto-streamer-out.c: Include data-streamer.h,
1254         gimple-streamer.h and streamer-hooks.h.
1255         (struct string_slot): Move to data-streamer.h.
1256         (hash_string_slot_node): Likewise.
1257         (eq_string_slot_node): Likewise.
1258         (lto_string_index): Move to data-streamer-out.c.
1259         (lto_output_string_with_length): Likewise.
1260         (lto_output_string): Likewise.
1261         (output_string_cst): Move to tree-streamer-out.c.
1262         (output_identifier): Likewise.
1263         (output_zero): Move to data-streamer-out.c
1264         (output_uleb128): Likewise.
1265         (output_sleb128): Likewise.
1266         (output_record_start): Move to data-streamer.h
1267         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
1268         (pack_ts_real_cst_value_fields): Likewise.
1269         (pack_ts_fixed_cst_value_fields): Likewise.
1270         (pack_ts_decl_common_value_fields): Likewise.
1271         (pack_ts_decl_wrtl_value_fields): Likewise.
1272         (pack_ts_decl_with_vis_value_fields): Likewise.
1273         (pack_ts_function_decl_value_fields): Likewise.
1274         (pack_ts_type_common_value_fields): Likewise.
1275         (pack_ts_block_value_fields): Likewise.
1276         (pack_ts_translation_unit_decl_value_fields): Likewise.
1277         (pack_value_fields): Likewise.
1278         (lto_output_chain): Likewise.
1279         (lto_output_ts_common_tree_pointers): Likewise.
1280         (lto_output_ts_vector_tree_pointers): Likewise.
1281         (lto_output_ts_complex_tree_pointers): Likewise.
1282         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
1283         (lto_output_ts_decl_common_tree_pointers): Likewise.
1284         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
1285         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
1286         (lto_output_ts_field_decl_tree_pointers): Likewise.
1287         (lto_output_ts_function_decl_tree_pointers): Likewise.
1288         (lto_output_ts_type_common_tree_pointers): Likewise.
1289         (lto_output_ts_type_non_common_tree_pointers): Likewise.
1290         (lto_output_ts_list_tree_pointers): Likewise.
1291         (lto_output_ts_vec_tree_pointers): Likewise.
1292         (lto_output_ts_exp_tree_pointers): Likewise.
1293         (lto_output_ts_block_tree_pointers): Likewise.
1294         (lto_output_ts_binfo_tree_pointers): Likewise.
1295         (lto_output_ts_constructor_tree_pointers): Likewise.
1296         (lto_output_ts_target_option): Likewise.
1297         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
1298         (lto_output_tree_pointers): Likewise.
1299         (lto_output_tree_header): Likewise.
1300         (lto_output_builtin_tree): Likewise.
1301         (lto_write_tree): Likewise.
1302         (lto_output_integer_cst): Likewise.
1303         (lto_output_tree): Likewise.
1304         (output_phi): Move to gimple-streamer-out.c.
1305         (output_gimple_stmt): Likewise.
1306         (output_bb): Likewise.
1307         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
1308         (streamer_hooks): Move to streamer-hooks.c.
1309         (check_handled_ts_structures): Move to tree-streamer.c
1310         (lto_streamer_cache_add_to_node_array): Likewise.
1311         (lto_streamer_cache_insert_1): Likewise.
1312         (lto_streamer_cache_insert): Likewise.
1313         (lto_streamer_cache_insert_at): Likewise.
1314         (lto_streamer_cache_append): Likewise.
1315         (lto_streamer_cache_lookup): Likewise.
1316         (lto_streamer_cache_get): Likewise.
1317         (lto_record_common_node): Likewise.
1318         (lto_preload_common_nodes): Likewise.
1319         (lto_streamer_cache_create): Likewise.
1320         (lto_streamer_cache_delete): Likewise.
1321         (streamer_hooks_init): Move to streamer-hooks.c.
1322         * lto-streamer.h: Include diagnostic.h
1323         (struct output_block, struct lto_input_block,
1324         struct data_in, struct bitpack_d): Remove forward declarations.
1325         (struct bitpack_d): Move to data-streamer.h.
1326         (struct lto_streamer_cache_d): Move to tree-streamer.h.
1327         (struct streamer_hooks): Move to streamer-hooks.h.
1328         (bp_pack_var_len_unsigned): Move to data-streamer.h.
1329         (bp_pack_var_len_int): Likewise.
1330         (bp_unpack_var_len_unsigned): Likewise.
1331         (bp_unpack_var_len_int): Likewise.
1332         (lto_input_location): Declare.
1333         (lto_tag_check_set): Declare.
1334         (lto_init_eh): Declare.
1335         (lto_output_tree_ref): Declare.
1336         (lto_output_location): Declare.
1337         (bitpack_create): Move to data-streamer.h.
1338         (bp_pack_value): Likewise.
1339         (lto_output_bitpack): Likewise.
1340         (lto_input_bitpack): Likewise.
1341         (bp_unpack_value): Likewise.
1342         (lto_output_1_stream): Likewise.
1343         (lto_input_1_unsigned): Likewise.
1344         (lto_output_int_in_range): Likewise.
1345         (lto_input_int_in_range): Likewise.
1346         (bp_pack_int_in_range): Likewise.
1347         (bp_unpack_int_in_range): Likewise.
1348         (lto_output_enum): Likewise.
1349         (lto_input_enum): Likewise.
1350         (bp_pack_enum): Likewise.
1351         (bp_unpack_enum): Likewise.
1352         * streamer-hooks.c: New.
1353         * streamer-hooks.h: New.
1354         * tree-streamer-in.c: New.
1355         * tree-streamer-out.c: New.
1356         * tree-streamer.c: New.
1357         * tree-streamer.h: New.
1358
1359 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1360
1361         * gthr-posix95.h: Remove.
1362         * gthr.h [_PTHREADS95]: Remove.
1363         * configure.ac (enable_threads): Remove posix95.
1364         * configure: Regenerate.
1365         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
1366
1367 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
1368
1369         PR target/49781
1370         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
1371         SImode addresses.
1372         (ix86_print_operand_address): Handle zero-extended addresses.
1373         (memory_address_length): Add length of addr32 prefix for
1374         zero-extended addresses.
1375         (ix86_secondary_reload): Handle moves to/from double-word general
1376         registers from/to zero-extended addresses.
1377         * config/i386/predicates.md (lea_address_operand): Reject
1378         zero-extended operands.
1379
1380 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
1381
1382         PR other/48007
1383         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
1384
1385         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
1386         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
1387
1388         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
1389         (_Unwind_Context_Reg_Val): Likewise.
1390         (_Unwind_Get_Unwind_Word): Likewise.
1391         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
1392         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
1393         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
1394         for EXTENDED_CONTEXT_BIT.
1395         (__frame_state_for): Likewise.
1396         (uw_init_context_1): Likewise.
1397         (_Unwind_GetGR): Updated.
1398         (_Unwind_SetGR): Likewise.
1399         (_Unwind_GetGRPtr): Likewise.
1400         (_Unwind_SetGRPtr): Likewise.
1401         (_Unwind_SetGRValue): Likewise.
1402         (_Unwind_GRByValue): Likewise.
1403         (uw_install_context_1): Likewise.
1404
1405         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
1406         ASSUME_EXTENDED_UNWIND_CONTEXT.
1407         * doc/tm.texi: Regenerated.
1408
1409 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1410
1411         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
1412
1413 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1414
1415         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
1416         Linux/GNU-specific.
1417         (DEC Alpha Options, -mtune): Likewise.
1418         (MIPS Options, -march): native is supported on IRIX.
1419
1420 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1421
1422         * config/sparc/driver-sparc.c: New file.
1423         * config/sparc/x-sparc: New file.
1424         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
1425         * config/sparc/sparc.opt (native): New value for enum processor_type.
1426         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
1427         * config/sparc/sparc.c (sparc_option_override): Abort if
1428         PROCESSOR_NATIVE gets here.
1429         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
1430         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
1431         DRIVER_SELF_SPECS): Define.
1432         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
1433         (SPARC Options, -mtune): Likewise.
1434         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
1435         Substitute result.
1436         * configure: Regenerate.
1437         * Makefile.in (EXTRA_GCC_LIBS): Set.
1438         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
1439         (cpp$(exeext)): Likewise.
1440
1441 2011-08-08  Richard Guenther  <rguenther@suse.de>
1442
1443         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
1444         split out from ...
1445         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
1446         by composition.
1447
1448 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
1449
1450         PR tree-optimization/50005
1451         * ipa-inline-analysis (remap_predicate): Add cast to
1452         silence signed/unsigned comparison warning.
1453
1454 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
1455
1456         * modulo-sched.c (get_sched_window): Use a table for the debug output.
1457         Print the current ii.
1458         (sms_schedule_by_order): Reduce whitespace in dump line.
1459
1460 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
1461
1462         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
1463         and one loop for successors.  Fix upper bound of memory range.
1464
1465 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
1466
1467         PR target/50001
1468         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1469         (TARGET_INSTANTIATE_DECLS): New define.
1470
1471 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
1472             Mikael Morin   <mikael.morin@sfr.fr>
1473
1474         * Makefile.in (INCLUDES_FOR_TARGET): New.
1475         (LIBGCC2_CFLAGS): Use it.
1476         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
1477
1478 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
1479
1480         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
1481         frame->save_regs_using_mov calculation.
1482
1483 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
1484
1485         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
1486         * config/i386/sse.md (castmode): New mode attribute.
1487         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
1488         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
1489
1490 2011-08-05  Jan Hubicka  <jh@suse.cz>
1491
1492         PR middle-end/49494
1493         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
1494
1495 2011-08-05  Jan Hubicka  <jh@suse.cz>
1496
1497         PR middle-end/49500
1498         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
1499         handle aliases.
1500         (create_emultls_var):New function.
1501         (ipa_lower_emutls): Handle aliases correctly.
1502
1503 2011-08-05  Jan Hubicka  <jh@suse.cz>
1504
1505         PR middle-end/49735
1506         * ipa-inline.c (recursive_inlining): Look through aliases.
1507
1508 2011-08-05  Jason Merrill  <jason@redhat.com>
1509
1510         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
1511         declarations to beginning of function.
1512
1513 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
1514
1515         PR rtl-optimization/49900
1516         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
1517         ensure basic blocks stay in the same order.
1518
1519 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
1520
1521         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
1522         store_bit_field.
1523         (s390_expand_atomic): Same.
1524
1525 2011-08-05  Richard Henderson  <rth@redhat.com>
1526
1527         PR rtl-opt/49977
1528         * dwarf2cfi.c (scan_insn_after): Split out of ...
1529         (scan_trace): ... here.  Correctly place notes wrt sequences.
1530
1531 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1532             Richard Henderson  <rth@redhat.com>
1533
1534         PR rtl-opt/49982
1535         * expr.c (fixup_args_size_notes): Look through no-op moves.
1536
1537 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
1538
1539         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
1540         of "m" for operand 0.  Add type and mode attribute.
1541         (*pushxf_nointeger"): Use "<" constraint for operand 0.
1542         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
1543         constraint instead of "o" for opreand 1.
1544         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
1545         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
1546         operand 0, alternative 4.
1547         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
1548
1549 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
1550
1551         * config/i386/predicates.md (lea_address_operand): Rename from
1552         no_seg_address_operand.
1553         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
1554         (*lea_1_zext): Ditto.
1555         (*lea_2): Ditto.
1556         (*lea_2_zext): Ditto.
1557
1558 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
1559
1560         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
1561         parts.base and parts.index.
1562         * config/i386/predicates.md (aligned_operand): Ditto.
1563         (cmpxchg8b_pic_memory_operand): Ditto.
1564
1565 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1566
1567         * config/soft-fp: Move to ../libgcc.
1568         * Makefile.in (SFP_MACHINE): Remove.
1569         (libgcc-support): Remove $(SFP_MACHINE) dependency.
1570         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
1571         * config/arm/t-arm-softfp: Move to
1572         ../libgcc/config/arm/t-softfp.
1573         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
1574         * config/c6x/t-c6x-softfp: Remove.
1575         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
1576         * config/i386/t-fprules-softfp: Move to
1577         ../libgcc/config/t-softfp-tf.
1578         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
1579         * config/ia64/t-fprules-softfp: Remove.
1580         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
1581         * config/lm32/t-fprules-softfp: Remove.
1582         * config/moxie/sfp-machine.h: Remove.
1583         * config/moxie/t-moxie-softfp: Remove.
1584         * config/rs6000/darwin-ldouble-format: Move to
1585         ../libgcc/config/rs6000/ibm-ldouble-format.
1586         * config/rs6000/darwin-ldouble.c: Move to
1587         ../libgcc/config/rs6000/ibm-ldouble.c
1588         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
1589         * config/rs6000/libgcc-ppc64.ver: Likewise.
1590         * config/rs6000/sfp-machine.h: Likewise.
1591         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
1592         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
1593         (LIB2FUNCS_EXTRA): Remove.
1594         (TARGET_LIBGCC2_CFLAGS): Remove.
1595         * config/rs6000/t-aix52: Likewise
1596         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1597         $(srcdir)/config/rs6000/darwin-ldouble.c.
1598         (SHLIB_MAPFILES): Remove.
1599         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
1600         $(srcdir)/config/rs6000/darwin-ldouble.c.
1601         * config/rs6000/t-fprules-softfp: Move to
1602         ../libgcc/config/t-softfp-sfdf.
1603         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
1604         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
1605         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
1606         $(srcdir)/config/rs6000/darwin-ldouble.c.
1607         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
1608         * config/score/t-score-softfp: Remove.
1609         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
1610         soft-fp/t-softfp from tmake_file.
1611         (arm*-*-uclinux*): Likewise.
1612         (arm*-*-ecos-elf): Likewise.
1613         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
1614         (arm*-*-rtems*): Likewise.
1615         (arm*-*-elf): Likewise.
1616         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
1617         tmake_file.
1618         (moxie-*-uclinux*): Likewise.
1619         (moxie-*-rtems*): Likewise.
1620         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
1621         tmake_file.
1622         (lm32-*-rtems*): Likewise.
1623         (lm32-*-uclinux*): Likewise.
1624         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
1625         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1626         (powerpc-*-linux*, powerpc64-*-linux*): Remove
1627         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1628         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
1629         tmake_file.
1630         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
1631         tmake_file.
1632         (tic6x-*-uclinux): Likewise.
1633         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
1634         soft-fp/t-softfp from tmake_file.
1635         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
1636         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
1637         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
1638         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1639         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
1640
1641 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1642
1643         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
1644         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
1645         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
1646         TPBIT, TPBIT_FUNCS.
1647         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
1648         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
1649         Remove.
1650         * config/arm/t-vxworks: Likewise.
1651         * config/arm/t-wince-pe: Likewise.
1652         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
1653         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1654         * config/bfin/t-bfin-elf: Likewise.
1655         * config/bfin/t-bfin-linux: Likewise.
1656         * config/bfin/t-bfin-uclinux: Likewise.
1657         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
1658         Remove.
1659         * config/fr30/t-fr30: Likewise.
1660         * config/frv/t-frv: Likewise.
1661         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
1662         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1663         * config/m32c/t-m32c: Likewise.
1664         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
1665         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1666         * config/mcore/t-mcore: Likewise.
1667         * config/mep/t-mep: Likewise.
1668         * config/microblaze/t-microblaze: Likewise.
1669         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
1670         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1671         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
1672         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1673         * config/mn10300/t-linux: Remove.
1674         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1675         * config/pdp11/t-pdp11: Likewise.
1676         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
1677         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
1678         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1679         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
1680         * config/rs6000/t-aix52: Likewise.
1681         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1682         $(srcdir)/config/rs6000/ppc64-fp.c.
1683         * config/rs6000/t-fprules-fpbit: Remove.
1684         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
1685         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1686         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
1687         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1688         * config/sparc/t-elf: Likewise.
1689         * config/sparc/t-leon: Likewise.
1690         * config/sparc/t-leon3: Likewise.
1691         * config/spu/t-spu-elf: Likewise.
1692         (DPBIT_FUNCS): Remove.
1693         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1694         * config/v850/t-v850: Likewise.
1695         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
1696         (avr-*-*): Likewise.
1697         (h8300-*-rtems*): Set libgcc_tm_file.
1698         (h8300-*-elf*): Likewise.
1699         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
1700         tmake_file.
1701         (powerpc-*-eabisim*): Likewise.
1702         (powerpc-*-elf*): Likewise.
1703         (powerpc-*-eabialtivec*): Likewise.
1704         (powerpc-xilinx-eabi*): Likewise.
1705         (powerpc-*-eabi*): Likewise.
1706         (powerpc-*-rtems*): Likewise.
1707         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
1708         (powerpcle-*-elf*): Likewise.
1709         (powerpcle-*-eabisim*): Likewise.
1710         (powerpcle-*-eabi*): Likewise.
1711         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
1712         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
1713         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
1714         Remove.
1715
1716 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1717
1718         * Makefile.in (UNWIND_H): Remove.
1719         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
1720         ../libgcc/Makefile.in.
1721         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
1722         (LIBUNWINDDEP): Remove.
1723         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
1724         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
1725         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
1726         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
1727         Don't copy $(UNWIND_H).
1728         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
1729         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
1730         * aclocal.m4: Regenerate.
1731         * configure: Regenerate.
1732         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
1733         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
1734         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
1735         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
1736         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
1737         * config/arm/libunwind.S, config/arm/pr-support.c,
1738         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
1739         ../libgcc/config/arm.
1740         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
1741         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
1742         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
1743         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
1744         ($(T)frvend$(objext)): Likewise.
1745         * config/ia64/t-glibc (LIB2ADDEH): Remove.
1746         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
1747         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
1748         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
1749         ../libgcc/config/ia64.
1750         * config/ia64/t-hpux (LIB2ADDEH): Remove.
1751         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
1752         * config/ia64/t-vms (LIB2ADDEH): Remove.
1753         * config/ia64/vms.h (UNW_IVMS_MODE,
1754         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
1755         * config/picochip/t-picochip (LIB2ADDEH): Remove.
1756         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
1757         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
1758         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
1759         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
1760         $(srcdir)/../libgcc to refer to unwinder sources.
1761         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
1762         * config/t-darwin (LIB2ADDEH): Remove.
1763         * config/t-freebsd (LIB2ADDEH): Remove.
1764         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
1765         * config/t-libunwind-elf: Move to ../libgcc/config.
1766         * config/t-linux (LIB2ADDEH): Remove.
1767         * config/t-sol2 (LIB2ADDEH): Remove.
1768         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
1769         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
1770
1771 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1772
1773         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1774
1775         * doc/invoke.texi: Document core-avx-i.
1776
1777 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1778
1779         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
1780
1781 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
1782
1783         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
1784         result of multiple results reduction when extracting the final
1785         value using scalar code.
1786
1787 2011-08-05  Richard Guenther  <rguenther@suse.de>
1788
1789         PR tree-optimization/49984
1790         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
1791
1792 2011-08-05  Richard Guenther  <rguenther@suse.de>
1793
1794         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
1795         return true for constant integer ranges.
1796         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
1797         BIT_IOR_EXPR handling.
1798
1799 2011-08-04  Kai Tietz  <ktietz@redhat.com>
1800
1801         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
1802         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
1803
1804 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
1805
1806         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
1807         pattern def statement, and its access macro.
1808         (NUM_PATTERNS): Set to 5.
1809         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1810         pattern def statement.
1811         (vect_transform_loop): Likewise.
1812         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
1813         function vect_recog_over_widening_pattern ().
1814         (vect_operation_fits_smaller_type): New function.
1815         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
1816         Likewise.
1817         (vect_pattern_recog_1): Move the code that marks pattern
1818         statements to vect_mark_pattern_stmts (), and call it.  Update
1819         documentation.
1820         * tree-vect-stmts.c (vect_supportable_shift): New function.
1821         (vect_analyze_stmt): Handle pattern def statement.
1822         (new_stmt_vec_info): Initialize pattern def statement.
1823
1824 2011-08-04  Richard Henderson  <rth@redhat.com>
1825
1826         PR target/49964
1827         * config/i386/i386.c (ix86_expand_call): Don't create nested
1828         PARALLELs for TARGET_VZEROUPPER.
1829         (ix86_split_call_vzeroupper): Fix extraction of the original call.
1830         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
1831         recognize nested PARALLELs.
1832         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
1833         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
1834         *sibcall_value_pop_vzeroupper): Likewise.
1835
1836 2011-08-04  Richard Henderson  <rth@redhat.com>
1837
1838         PR middle-end/49968
1839         * calls.c (expand_call): Use fixup_args_size_notes for
1840         emit_stack_restore.
1841         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
1842         in non-standard modes.
1843
1844 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
1845
1846         * gcc.c (self_spec): New variable.
1847         (static_specs): Add self_spec.
1848         (main): Call do_self_spec on "self_spec" specs after reading
1849         user specs files.  Move compare_debug handling right after that.
1850
1851 2011-08-04  Richard Guenther  <rguenther@suse.de>
1852
1853         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
1854         (value_range_nonnegative_p): New function.
1855         (ssa_name_nonnegative_p): Use it.
1856         (value_range_constant_singleton): New function.
1857         (op_with_constant_singleton_value_range): Use it.
1858         (extract_range_from_binary_expr_1): New function, split out from ...
1859         (extract_range_from_binary_expr): ... this.  Remove fallback
1860         constant folding done here.
1861
1862 2011-08-04  Richard Guenther  <rguenther@suse.de>
1863
1864         PR tree-optimization/49806
1865         * tree-vrp.c (op_with_boolean_value_range_p): New function.
1866         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
1867         a new statement for a final conversion to bool.
1868
1869 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
1870
1871         * gengtype-state.c: Include "bconfig.h" if
1872         GENERATOR_FILE is defined, "config.h" otherwise.
1873         * gengtype.c: Likewise.
1874         * gengtype-lex.l: Likewise.
1875         * gengtype-parse.c: Likewise.
1876         * Makefile.in (gengtype-lex.o-warn): New variable.
1877         (plugin_resourcesdir): Likewise.
1878         (plugin_bindir): Likewise.
1879         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
1880         (MOSTLYCLEANFILES): Add gengtype$(exeext).
1881         (native): Depend on gengtype$(exeext) is $enable_plugin
1882         is set to "yes".
1883         (gtype.state): Depend on s-gtype. Use temporary file.
1884         (gengtype-lex.o): New rule.
1885         (gengtype-parse.o): Likewise.
1886         (gengtype-state.o): Likewise.
1887         (gengtype$(exeext)): Likewise.
1888         (install-gengtype): Likewise.
1889         (gengtype.o): Likewise.
1890         (build/gengtype.o): Depend on version.h.
1891         (build/gengtype-state): Depend on double-int.h, version.h,
1892         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
1893         (install-plugin): Depend on install-gengtype.
1894
1895 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
1896
1897         PR middle-end/49905
1898         * tree.h (init_attributes): New prototype.
1899         * attribs.c (init_attributes): No longer static.
1900
1901 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1902
1903         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
1904         maybe_suffix.
1905
1906 2011-08-03   David Li  <davidxl@google.com>
1907
1908         * tree-optimize.c (execute_fixup_cfg): Fix up entry
1909         outgoing edge counts after inlining.
1910
1911 2011-08-03   David Li  <davidxl@google.com>
1912
1913         * profile.c (compute_branch_probabilities): Compute
1914         function frequency after profile annotation.
1915
1916 2011-08-04  Alan Modra  <amodra@gmail.com>
1917
1918         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
1919         use_backchain_to_restore_sp initialisation.
1920         (rs6000_legitimate_offset_address_p): Simplify offset test.
1921
1922 2011-08-03  Richard Henderson  <rth@redhat.com>
1923
1924         * config/spu/spu.md: Use define_c_enum instead of define_constants.
1925         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
1926         (UNSPECV_NOP): New.
1927
1928 2011-08-03  Richard Henderson  <rth@redhat.com>
1929
1930         PR target/34888
1931         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
1932
1933 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
1934
1935         PR tree-optimization/49948
1936         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1937
1938 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
1939
1940         * config/m32c/m32c.c (class_sizes): Remove.
1941         (reduce_class): Change arguments and return type to reg_class_t.
1942         Change type cc var to HARD_REG_SET. Change type best var to
1943         reg_class_t. Change type best_size var to unsigned int. Remove
1944         initialization class_sizes var. Use reg_class_size array instead
1945         of class_sizes. Use reg_class_contents array instead
1946         of class_contents.
1947
1948 2011-08-03  Richard Guenther  <rguenther@suse.de>
1949
1950         PR middle-end/49958
1951         * fold-const.c (fold_binary_loc): Only associate
1952         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
1953         overflow wraps.
1954
1955 2011-08-03  Alan Modra  <amodra@gmail.com>
1956
1957         PR rtl-optimization/49941
1958         * jump.c (mark_jump_label): Comment.
1959         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
1960         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
1961         (mark_used_flags): Don't mark RETURN.
1962
1963 2011-08-03  Richard Guenther  <rguenther@suse.de>
1964
1965         PR tree-optimization/49938
1966         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
1967         deal with a POLYNOMIAL_CHREC.
1968
1969 2011-08-03  Revital Eres  <revital.eres@linaro.org>
1970
1971         * modulo-sched.c (calculate_stage_count,
1972         calculate_must_precede_follow, get_sched_window,
1973         try_scheduling_node_in_cycle, remove_node_from_ps): Add
1974         declaration.
1975         (update_node_sched_params, set_must_precede_follow, optimize_sc):
1976         New functions.
1977         (reset_sched_times): Call update_node_sched_params.
1978         (sms_schedule): Call optimize_sc.
1979         (get_sched_window): Change function arguments.
1980         (sms_schedule_by_order): Update call to get_sched_window.
1981         Call set_must_precede_follow.
1982         (calculate_stage_count): Add function argument.
1983
1984 2011-08-02  Richard Henderson  <rth@redhat.com>
1985
1986         PR target/49864
1987         PR target/49879
1988         * reg-notes.def (REG_ARGS_SIZE): New.
1989         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
1990         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
1991         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
1992         different stack levels.
1993         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
1994         (maybe_move_args_size_note): New.
1995         (combine_stack_adjustments_for_block): Use it.
1996         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
1997         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
1998         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
1999         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
2000         (cur_cfa): New.
2001         (queued_args_size): Remove.
2002         (add_cfi_args_size): Assert size is non-negative.
2003         (stack_adjust_offset, dwarf2out_args_size): Remove.
2004         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
2005         (notice_args_size, notice_eh_throw): New.
2006         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
2007         (dwarf2out_frame_debug_adjust_cfa): Likewise.
2008         (dwarf2out_frame_debug_cfa_offset): Likewise.
2009         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
2010         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
2011         (change_cfi_row): Don't emit args_size.
2012         (maybe_record_trace_start_abnormal): Split out from ...
2013         (maybe_record_trace_start): Here.  Set args_size_undefined.
2014         (create_trace_edges): Update to match.
2015         (scan_trace): Handle REG_ARGS_SIZE.
2016         (connect_traces): Connect args_size between EH insns.
2017         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
2018         * explow.c (suppress_reg_args_size): New.
2019         (adjust_stack_1): Split out from ...
2020         (adjust_stack): ... here.
2021         (anti_adjust_stack): Use it.
2022         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
2023         * expr.c (mem_autoinc_base): New.
2024         (fixup_args_size_notes): New.
2025         (emit_single_push_insn_1): Rename from emit_single_push_insn.
2026         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
2027         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
2028         * reload1.c (reload_as_needed): Likewise.
2029         * rtl.h (fixup_args_size_notes): Declare.
2030
2031 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
2032
2033         PR bootstrap/49914
2034         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
2035         of abs.
2036         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2037         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2038
2039 2011-08-02  Richard Henderson  <rth@redhat.com>
2040
2041         * config/h8300/h8300.c (push, pop): Return the insn.
2042         (h8300_swap_into_er6): Generate correct unwind info.
2043         (h8300_swap_out_of_er6): Likewise.
2044         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
2045         complex cfa expression.
2046         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
2047
2048 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
2049
2050         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2051
2052 2011-08-02  Richard Henderson  <rth@redhat.com>
2053
2054         PR target/49878
2055         * config/h8300/h8300.c (h8300_move_ok): New.
2056         * config/h8300/h8300-protos.h: Declare it.
2057         * config/h8300/h8300.md (P): New mode iterator.
2058         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
2059         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
2060         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
2061         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
2062         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
2063         and pushqi1_h8300hs_normal; use PRE_MODIFY and
2064         register_no_sp_elim_operand.
2065         (*pushhi1_h8300hs_<P>): Similarly.
2066         (pushqi1, pushhi1, pushhi1_h8300): Remove.
2067         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
2068
2069 2011-08-02  Richard Henderson  <rth@redhat.com>
2070
2071         PR target/49881
2072         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
2073
2074 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
2075
2076         * c-parser.c (enum c_parser_prec): New enum, moved from within
2077         c_parser_binary_expression.
2078         (c_parser_binary_expression): Add PREC argument.  Stop parsing
2079         if operator has lower or equal precedence than PREC.
2080         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
2081         callers.
2082         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
2083         Adjust c_finish_omp_atomic caller.
2084         (c_parser_omp_taskyield): New function.
2085         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
2086         (c_parser_omp_clause_name): Handle final and mergeable clauses.
2087         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
2088         functions.
2089         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
2090         and PRAGMA_OMP_CLAUSE_MERGEABLE.
2091         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
2092         (c_parser_omp_clause_reduction): Handle min and max.
2093         * c-typeck.c (c_finish_omp_clauses): Don't complain about
2094         const qualified predetermined vars in firstprivate clause.
2095         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2096         Handle MIN_EXPR and MAX_EXPR.
2097         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
2098         and OMP_CLAUSE_MERGEABLE.
2099         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
2100         and OMP_ATOMIC_CAPTURE_NEW.
2101         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
2102         OMP_CLAUSE_MERGEABLE.
2103         (omp_clause_code_name): Likewise.
2104         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2105         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
2106         and OMP_CLAUSE_MERGEABLE.
2107         (OMP_CLAUSE_FINAL_EXPR): Define.
2108         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
2109         OMP_CLAUSE_MERGEABLE.
2110         (expand_task_call): Likewise.
2111         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
2112         (expand_omp_atomic_fetch_op): Handle cases where old or new
2113         value is needed afterwards.
2114         (expand_omp_atomic): Call expand_omp_atomic_load resp.
2115         expand_omp_atomic_store.
2116         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
2117         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
2118         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2119         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2120         * tree-nested.c (convert_nonlocal_omp_clauses,
2121         convert_local_omp_clauses): Likewise.
2122         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
2123         OMP_ATOMIC_CAPTURE_NEW): New.
2124         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
2125         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
2126         New inlines.
2127         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
2128         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
2129         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2130
2131 2011-08-02  Kai Tietz  <ktietz@redhat.com>
2132
2133         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
2134         boolean-type.
2135         (ssa_forward_propagate_and_combine): Interprete result of
2136         forward_propagate_comparison.
2137         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
2138         boolean-typed operands for comparisons.
2139
2140 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
2141
2142         * config/avr/libgcc.S: Gather related function in the
2143         same input section.
2144         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
2145         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
2146         references.
2147         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
2148         __udivmodsi4, __divmodsi4, __prologue_saves__,
2149         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
2150         __do_copy_data, __do_clear_bss, __do_global_ctors,
2151         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
2152
2153 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
2154
2155         PR target/47766
2156         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
2157         (stack_protect_test): The pattern compares ptr_mode value.
2158
2159 2011-08-02  Alan Modra  <amodra@gmail.com>
2160
2161         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
2162         note for save_LR_around_toc_setup sequence.
2163
2164 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2165
2166         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
2167
2168 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
2169             Joseph Myers  <joseph@codesourcery.com>
2170
2171         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
2172         * hwint.c: Include diagnostic-core.h.
2173         (abs_hwi): New.
2174         (gcd): Moved here...
2175         (pos_mul_hwi): New.
2176         (mul_hwi): New.
2177         (least_common_multiple): Moved here...
2178         * hwint.h (gcd): ... from here.
2179         (least_common_multiple): ... from here.
2180         (HOST_WIDE_INT_MIN): New.
2181         (HOST_WIDE_INT_MAX): New.
2182         (abs_hwi): Declared.
2183         (gcd): Declared.
2184         (pos_mul_hwi): Declared.
2185         (mul_hwi): Declared.
2186         (least_common_multiple): Declared.
2187         * omega.c (check_pos_mul): Removed.
2188         (check_mul): Removed.
2189         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
2190         mul_hwi instead of check_mul.
2191
2192 2011-08-01  Richard Henderson  <rth@redhat.com>
2193
2194         PR target/49881
2195         * config/avr/avr.h (PUSH_ROUNDING): New.
2196         * config/avr/avr.md (pushqi1): Rename from *pushqi.
2197         (*pushhi, *pushsi, *pushsf): Remove.
2198         (MPUSH): New mode iterator.
2199         (push<MPUSH>1): New expander.
2200
2201 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
2202
2203         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
2204         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2205         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
2206         mmix_preferred_output_reload_class): Remove.
2207         * config/mmix/mmix.c (mmix_preferred_reload_class,
2208         mmix_preferred_output_reload_class): Make static. Change rclass
2209         argument and return type to reg_class_t.
2210         (TARGET_PREFERRED_RELOAD_CLASS,
2211         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2212
2213 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
2214
2215         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
2216         handling.
2217
2218 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         PR target/47766
2221         * config/i386/i386.md (PTR): New.
2222         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
2223         (stack_protect_test): Likewise.
2224         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
2225         (stack_tls_protect_set_<mode>): Likewise.
2226         (stack_tls_protect_test_<mode>): Likewise.
2227
2228 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
2229
2230         PR target/49927
2231         * config/i386/i386.c (ix86_address_subreg_operand): New.
2232         (ix86_decompose_address): Use ix86_address_subreg_operand.
2233         (ix86_legitimate_address_p): Do not assert that subregs satisfy
2234         register_no_elim_operand in DImode.
2235
2236 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
2237
2238         PR tree-optimization/49926
2239         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
2240         in a chain doesn't have uses both inside and outside the loop.
2241
2242 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
2243
2244         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
2245         * config/avr/avr-devices.c (avr_mcu_types): Use it.
2246         * config/avr/avr-mcus.def (AVR_MCU): Use it.
2247         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
2248         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
2249         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
2250         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
2251         to detect if XJMP must not be skipped.
2252
2253 2011-08-02  Alan Modra  <amodra@gmail.com>
2254
2255         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
2256         Delete.
2257         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
2258         (rs6000_emit_prologue): Don't prematurely return when
2259         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
2260         save_toc_in_prologue case.
2261         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
2262         calls_alloca.
2263
2264 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
2265
2266         * config/avr/avr-devices.c: Delete SVN property svn:executable.
2267         * config/avr/predicates.md: Ditto.
2268         * config/avr/driver-avr.c: Ditto.
2269         * config/avr/genopt.sh: Set SVN property svn:executable to *.
2270
2271 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2272
2273         * calls.c (emit_library_call_value_1): Declare size only if
2274         BLOCK_REG_PADDING is defined.
2275
2276 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
2277
2278         PR target/49547
2279         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
2280         (x86_64-*-*): Likewise.
2281         * config/i386/i386.opt (mlzcnt): New.
2282         * config/i386/abmintrin.h: File removed.
2283         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
2284         * config/i386/lzcntintrin.h: ... here.  New file.
2285         (__lzcnt): Rename to ...
2286         (__lzcnt32): ... this.
2287         * config/i386/bmiintrin.h (head): Update copyright year.
2288         (__lzcnt_u16): Removed.
2289         (__lzcnt_u32): Likewise.
2290         (__lzcnt_u64): Likewise.
2291         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
2292         is defined, remove abmintrin.h.
2293         * config/i386/cpuid.h (bit_LZCNT): New.
2294         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2295         LZCNT feature.
2296         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2297         __LZCNT__ if needed.
2298         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
2299         (ix86_option_override_internal): Handle LZCNT option.
2300         (ix86_valid_target_attribute_inner_p): Likewise.
2301         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
2302         * config/i386/i386.h (TARGET_LZCNT): New.
2303         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
2304         * config/i386/i386.md (clz<mode>2): Update insn constraint.
2305         (clz<mode>2_lzcnt): Likewise.
2306         * doc/invoke.texi: Mention -mlzcnt option.
2307         * doc/extend.texi: Likewise.
2308
2309 2011-08-01  Julian Brown  <julian@codesourcery.com>
2310
2311         * configure.ac (fixed-point): Add ARM support.
2312         * configure: Regenerate.
2313         * config/arm/arm.c (arm_fixed_mode_set): New struct.
2314         (arm_set_fixed_optab_libfunc): New.
2315         (arm_set_fixed_conv_libfunc): New.
2316         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
2317         ARM-specific names.
2318         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
2319         return values in SImode.
2320         (arm_return_in_msb): Return fixed-point types in the msb.
2321         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
2322         upwards.
2323         (arm_scalar_mode_supported_p): Support fixed-point modes.
2324         (arm_vector_mode_supported_p): Support vector fixed-point modes.
2325         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
2326         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
2327         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
2328         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
2329         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
2330         New mode iterators.
2331         (qaddsub_suf): New mode attribute.
2332         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
2333         vector modes.
2334         * config/arm/predicates.md (sat_shift_operator): New predicate.
2335         * config/arm/arm-fixed.md: New.
2336         * config/arm/arm.md: Include arm-fixed.md.
2337         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
2338
2339 2011-08-01  Julian Brown  <julian@codesourcery.com>
2340
2341         * calls.c (emit_library_call_value_1): Support padding for libcall
2342         arguments and return values.
2343         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
2344         downwards in big-endian mode.
2345
2346 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2347
2348         PR debug/49887
2349         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
2350         * config/sol2-protos.h: Likewise.
2351         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
2352         solaris_code_end.
2353         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
2354         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
2355         solaris_file_end.
2356         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
2357
2358 2011-08-01  Julian Brown  <julian@codesourcery.com>
2359
2360         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
2361
2362 2011-08-01  Julian Brown  <julian@codesourcery.com>
2363
2364         * final.c (output_addr_const): Print fixed-point constants as
2365         decimal not hex.
2366
2367 2011-08-01  Richard Guenther  <rguenther@suse.de>
2368
2369         * stor-layout.c (initialize_sizetypes): Properly sign-extend
2370         bitsiztype TYPE_MAX_VALUE.
2371
2372 2011-08-01  Julian Brown  <julian@codesourcery.com>
2373
2374         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
2375         comparison helpers.
2376
2377 2011-07-31  Richard Henderson  <rth@redhat.com>
2378
2379         * config/h8300/crti.asm: Add flags to .section directive.
2380         * config/h8300/crtn.asm: Likewise.
2381
2382 2011-07-31  Richard Henderson  <rth@redhat.com>
2383
2384         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
2385         * tree.c (build_common_tree_nodes): Likewise.
2386
2387 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2388
2389         PR target/49880
2390         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
2391         (divsi3_i1): Likewise.
2392
2393 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2394
2395         PR tree-optimization/49749
2396         * tree-ssa-reassoc.c (get_rank): New forward declaration.
2397         (PHI_LOOP_BIAS): New macro.
2398         (phi_rank): New function.
2399         (loop_carried_phi): Likewise.
2400         (propagate_rank): Likewise.
2401         (get_rank): Add calls to phi_rank and propagate_rank.
2402
2403 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2404
2405         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
2406         of TARGET_64BIT.
2407         (PTRDIFF_TYPE): Likewise.
2408
2409 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
2410
2411         PR target/49920
2412         * config/i386/i386.md (strset): Do not expand strset_singleop
2413         when %eax or $edi are fixed.
2414         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
2415         (*strsetsi_1): Ditto.
2416         (*strsethi_1): Ditto.
2417         (*strsetqi_1): Ditto.
2418         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
2419         (*rep_stossi): Ditto.
2420         (*rep_stosqi): Ditto.
2421         (*strlenqi_1): Ditto.
2422         (cmpstrnsi): Also fail when %ecx is fixed.
2423         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
2424         (*cmpstrnqi_1): Ditto.
2425         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
2426         (*strmovsi_1): Ditto.
2427         (*strmovhi_1): Ditto.
2428         (*strmovqi_1): Ditto.
2429         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
2430         (*rep_movsi): Ditto.
2431         (*rep_movqi): Ditto.
2432
2433 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
2434
2435         PR target/47908
2436         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
2437         Disable instruction scheduling for non-ColdFire targets.
2438         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2439
2440 2011-07-31  Revital Eres  <revital.eres@linaro.org>
2441
2442         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
2443         of anti-dep edge from a branch.
2444         (add_cross_iteration_register_deps): Create anti-dep edge from
2445         a branch.
2446
2447 2011-07-31  Revital Eres  <revital.eres@linaro.org>
2448
2449         * modulo-sched.c: Change comment.
2450         (reset_sched_times): Fix print message.
2451         (print_partial_schedule): Add print info.
2452
2453 2011-07-31  Tom de Vries  <tom@codesourcery.com>
2454
2455         PR middle-end/43513
2456         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
2457         get_object_alignment and TYPE_ALIGN.
2458
2459 2011-07-30  Tom de Vries  <tom@codesourcery.com>
2460
2461         PR middle-end/43513
2462         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
2463         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
2464
2465 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2466
2467         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
2468         <sys/sbd.h>.
2469         (cpu_types): New array.
2470         (cputype): New function.
2471         (host_detect_local_cpu): Only define buf, f if !__sgi__.
2472         Use scaninvent instead of /proc/cpuinfo if __sgi__.
2473         * config.host: Also use driver-native.o, mips/x-native on
2474         mips-sgi-irix*.
2475         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
2476         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
2477         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
2478
2479 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
2480
2481         PR middle-end/49897
2482         PR middle-end/49898
2483         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
2484         in nested parallel and outer is a gimple_reg, mark it as addressable
2485         and set its bit in task_shared_vars bitmap too.
2486
2487 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
2488
2489         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
2490
2491 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2492
2493         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
2494         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
2495         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
2496         AMASK_LOCKPFTCHOK): Define.
2497         (host_detect_local_cpu): Remove buf, f, cpu_names.
2498         Define cpu_types, implver, amask.
2499         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
2500         native CPU.
2501         * config.host: Also use driver-alpha.o, alpha/x-alpha on
2502         alpha*-dec-osf*.
2503         * config/alpha/osf5.h [__alpha__ || __alpha]
2504         (host_detect_local_cpu): Declare.
2505         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
2506         (DRIVER_SELF_SPECS): Define.
2507
2508 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
2509
2510         PR target/47715
2511         * config/i386/i386.md (*load_tp_x32): New.
2512         (*load_tp_x32_zext): Ditto.
2513         (*add_tp_x32): Ditto.
2514         (*add_tp_x32_zext): Ditto.
2515         (*load_tp_<mode>): Disable for TARGET_X32 targets.
2516         (*add_tp_<mode>): Ditto.
2517         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
2518         ptr_mode and convert to Pmode if needed.
2519
2520 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
2521
2522         PR target/49687
2523         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
2524         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
2525         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
2526         Add X to register footprint: Clobber r26/r27.
2527
2528 2011-07-29  Richard Guenther  <rguenther@suse.de>
2529
2530         * builtins.c (fold_builtin_signbit): Build the comparison
2531         with a proper type.
2532
2533 2011-07-29  Richard Guenther  <rguenther@suse.de>
2534
2535         PR tree-optimization/49893
2536         * tree-predcom.c (suitable_reference_p): Volatile references
2537         are not suitable.
2538
2539 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
2540
2541         PR target/49313
2542         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2543         (__ctzsi2): Result for 0 may be undefined.
2544         (__ctzhi2): Result for 0 may be undefined.
2545         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2546         (__popcountsi2): Ditto. And don't clobber r26.
2547         (__popcountdi2): Ditto. And don't clobber r27.
2548         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2549         (parityhi2): New expand.
2550         (paritysi2): New expand.
2551         (popcounthi2): New expand.
2552         (popcountsi2): New expand.
2553         (clzhi2): New expand.
2554         (clzsi2): New expand.
2555         (ctzhi2): New expand.
2556         (ctzsi2): New expand.
2557         (ffshi2): New expand.
2558         (ffssi2): New expand.
2559         (copysignsf3): New insn.
2560         (bswapsi2): New expand.
2561         (*parityhi2.libgcc): New insn.
2562         (*parityqihi2.libgcc): New insn.
2563         (*paritysihi2.libgcc): New insn.
2564         (*popcounthi2.libgcc): New insn.
2565         (*popcountsi2.libgcc): New insn.
2566         (*popcountqi2.libgcc): New insn.
2567         (*popcountqihi2.libgcc): New insn-and-split.
2568         (*clzhi2.libgcc): New insn.
2569         (*clzsihi2.libgcc): New insn.
2570         (*ctzhi2.libgcc): New insn.
2571         (*ctzsihi2.libgcc): New insn.
2572         (*ffshi2.libgcc): New insn.
2573         (*ffssihi2.libgcc): New insn.
2574         (*bswapsi2.libgcc): New insn.
2575
2576 2011-07-29  Richard Guenther  <rguenther@suse.de>
2577
2578         * tree-vrp.c (get_value_range): Only set parameter default
2579         definitions to varying, leave others at undefined.
2580         (extract_range_from_binary_expr): Fix undefined handling.
2581         (vrp_visit_phi_node): Handle merged undefined state.
2582
2583 2011-07-29  Wei Guozhi  <carrot@google.com>
2584
2585         PR rtl-optimization/49799
2586         * combine.c (make_compound_operation): Check if the bit field is valid
2587         before change it to bit field extraction.
2588
2589 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2590
2591         PR rtl-optimization/49891
2592         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
2593         newly created returnjumps.
2594
2595 2011-07-28  DJ Delorie  <dj@redhat.com>
2596
2597         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
2598         local frame in a naked function, and produce a suitable error for
2599         that specific case.
2600
2601         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
2602         registers to be reloaded in HI classes when the target is HI.
2603
2604 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
2605
2606         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
2607         bound_one, bound_two.
2608
2609 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
2610
2611         PR middle-end/48648
2612         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
2613         CLAST assignments.
2614         (translate_clast): Same.
2615         (translate_clast_assignment): New.
2616
2617 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
2618
2619         PR tree-optimization/49876
2620         * sese.c (rename_uses): Do not return false on gloog_error: set
2621         the new_expr to integer_zero_node and continue code generation.
2622         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
2623
2624 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
2625
2626         PR debug/49846
2627         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
2628         arguments also check if they aren't initialized with a MODE_INT
2629         mode of the same size.
2630
2631 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
2632
2633         * expr.c (get_bit_range): Handle *MEM_REF's.
2634
2635 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
2636
2637         * rtlanal.c (tablejump_p): False for returns.
2638         * reorg.c (first_active_target_insn): New static function.
2639         (find_end_label): Set JUMP_LABEL for a new returnjump.
2640         (optimize_skip, get_jump_flags, rare_destination,
2641         mostly_true_jump, get_branch_condition,
2642         steal_delay_list_from_target, own_thread_p,
2643         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
2644         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
2645         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
2646         * jump.c (delete_related_insns): Likewise.
2647         (jump_to_label_p): New function.
2648         (redirect_target): New static function.
2649         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
2650         (redirect_jump_1): Assert that the new label is nonnull.
2651         (redirect_jump): Likewise.
2652         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
2653         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
2654         exit block.
2655         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
2656         changed.  Ensure that the right label is passed to redirect_jump.
2657         * function.c (emit_return_into_block,
2658         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
2659         ret_rtx in their JUMP_LABEL.
2660         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
2661         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
2662         pass ret_rtx as label.
2663         * cfglayout.c (fixup_reorder_chain): Use
2664         force_nonfallthru_and_redirect rather than force_nonfallthru.
2665         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
2666         * rtl.h (ANY_RETURN_P): New macro.
2667         (jump_to_label_p): Declare.
2668         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
2669         JUMP_LABELs.
2670         (mark_target_live_regs): Likewise.
2671         * basic-block.h (force_nonfallthru_and_redirect): Declare.
2672         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
2673         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
2674         alpha_tablejump_best_label): Remove functions.
2675         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
2676         alpha_tablejump_best_label): Remove declarations.
2677         * config/sh/sh.c (barrier_align, split_branches): Adjust for
2678         ret_rtx in JUMP_LABELs.
2679         * config/arm/arm.c (is_jump_table): Likewise.
2680
2681 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
2682
2683         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
2684         special predicate.  Remove explicit mode checks.
2685
2686 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
2687
2688         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
2689         DW_AT_data_member_location containing just DW_OP_plus_uconst.
2690
2691         PR debug/49871
2692         * dwarf2out.c (size_of_die, value_format, output_die): Use
2693         DW_FORM_udata instead of DW_FORM_data[48] for
2694         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
2695
2696 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2697
2698         * config/i386/i386.md (*tls_global_dynamic_64): Update
2699         length attribute.
2700
2701 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
2702
2703         PR target/47715
2704         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
2705         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
2706         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
2707         (tls_dynamic_gnu2_64): Ditto.
2708         (*tls_dynamic_gnu2_lea_64): Ditto.
2709         (*tls_dynamic_gnu2_call_64): Ditto.
2710         (*tls_dynamic_gnu2_combine_64): Ditto.
2711
2712 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2713
2714         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
2715
2716 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2717
2718         PR target/47364
2719         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
2720
2721 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2722
2723         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
2724         before the core constraints. Adjust attributes.
2725         ("*thumb2_movdf_vfp"): Likewise.
2726
2727 2011-07-28  Kai Tietz  <ktietz@redhat.com>
2728
2729         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
2730         (simplify_truth_ops_using_ranges): Likewise.
2731         (build_assert_expr_for): Likewise.
2732         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
2733         and handle BIT_NOT_EXPR for truth-operation.
2734
2735 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
2736
2737         PR target/49313
2738         Undo r176835 from trunk
2739         2011-07-27  Georg-Johann Lay
2740
2741 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
2742
2743         PR target/49687
2744         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
2745         Add _muluhisi3, _mulshisi3, _usmulhisi3.
2746         * config/avr/libgcc.S (__mulsi3): Rewrite.
2747         (__mulhisi3): Rewrite.
2748         (__umulhisi3): Rewrite.
2749         (__usmulhisi3): New.
2750         (__muluhisi3): New.
2751         (__mulshisi3): New.
2752         (__mulohisi3): New.
2753         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
2754         declare.
2755         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
2756         (pseudo_register_or_const_int_operand): New.
2757         (combine_pseudo_register_operand): New.
2758         (u16_operand): New.
2759         (s16_operand): New.
2760         (o16_operand): New.
2761         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
2762         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
2763         (any_extend, any_extend2): New code iterators.
2764         (extend_prefix): New code attribute.
2765         (mulsi3): Rewrite. Turn insn to expander.
2766         (mulhisi3): Ditto.
2767         (umulhisi3): Ditto.
2768         (usmulhisi3): New expander.
2769         (*mulsi3): New insn-and-split.
2770         (mulu<mode>si3): New insn-and-split.
2771         (muls<mode>si3): New insn-and-split.
2772         (mulohisi3): New insn-and-split.
2773         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
2774         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
2775         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
2776         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
2777         insn-and-split.
2778         (*mulsi3_call): Rewrite.
2779         (*mulhisi3_call): Rewrite.
2780         (*umulhisi3_call): Rewrite.
2781         (*usmulhisi3_call): New insn.
2782         (*muluhisi3_call): New insn.
2783         (*mulshisi3_call): New insn.
2784         (*mulohisi3_call): New insn.
2785         (extendqihi2): Use combine_pseudo_register_operand as predicate
2786         for operand 1.
2787         (extendqisi2): Ditto.
2788         (zero_extendqihi2): Ditto.
2789         (zero_extendqisi2): Ditto.
2790         (zero_extendhisi2): Ditto.
2791         (extendhisi2): Ditto. Don't early-clobber operand 0.
2792
2793 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
2794
2795         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
2796
2797 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
2798
2799         PR tree-optimization/49471
2800         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
2801         iv only when the largest type is unsigned.  Do not call
2802         lang_hooks.types.type_for_size.
2803
2804 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
2805
2806         PR middle-end/45450
2807         * graphite-poly.c (apply_poly_transforms): Disable legality check
2808         after an openscop read.
2809
2810 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
2811
2812         PR middle-end/47691
2813         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
2814         copy_bb_and_scalar_dependences.
2815         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
2816         (graphite_copy_stmts_from_block): Update call to rename_uses.
2817         (copy_bb_and_scalar_dependences): Update call to
2818         graphite_copy_stmts_from_block.
2819         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2820
2821 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
2822
2823         PR target/49313
2824         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2825         (__ctzsi2): Result for 0 may be undefined.
2826         (__ctzhi2): Result for 0 may be undefined.
2827         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2828         (__popcountsi2): Ditto. And don't clobber r26.
2829         (__popcountdi2): Ditto. And don't clobber r27.
2830         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2831         (parityhi2): New expand.
2832         (paritysi2): New expand.
2833         (popcounthi2): New expand.
2834         (popcountsi2): New expand.
2835         (clzhi2): New expand.
2836         (clzsi2): New expand.
2837         (ctzhi2): New expand.
2838         (ctzsi2): New expand.
2839         (ffshi2): New expand.
2840         (ffssi2): New expand.
2841         (copysignsf3): New insn.
2842         (bswapsi2): New expand.
2843         (*parityhi2.libgcc): New insn.
2844         (*parityqihi2.libgcc): New insn.
2845         (*paritysihi2.libgcc): New insn.
2846         (*popcounthi2.libgcc): New insn.
2847         (*popcountsi2.libgcc): New insn.
2848         (*popcountqi2.libgcc): New insn.
2849         (*popcountqihi2.libgcc): New insn-and-split.
2850         (*clzhi2.libgcc): New insn.
2851         (*clzsihi2.libgcc): New insn.
2852         (*ctzhi2.libgcc): New insn.
2853         (*ctzsihi2.libgcc): New insn.
2854         (*ffshi2.libgcc): New insn.
2855         (*ffssihi2.libgcc): New insn.
2856         (*bswapsi2.libgcc): New insn.
2857
2858 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
2859
2860         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
2861         the mode of symbolic_opreand RTXes.
2862
2863 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
2864
2865         * config/i386/predicates.md (x86_64_movabs_operand): Return false
2866         for pic_32bit_operand RTXes.
2867         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
2868         in DImode.
2869
2870 2011-07-27  Kai Tietz  <ktietz@redhat.com>
2871
2872         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
2873         for 32-bit, too.
2874         (ix86_handle_abi_attribute): Allow function attributes
2875         ms_abi/sysv_abi in 32-bit mode, too.
2876         * doc/extend.texi: Adjust attribute documentation.
2877
2878         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
2879         expression handling.
2880         (and_var_with_comparison_1): Likewise.
2881
2882 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
2883
2884         * params.h (ALLOW_STORE_DATA_RACES): New.
2885         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
2886         * Makefile.in (expr.o): Depend on PARAMS_H.
2887         * machmode.h (get_best_mode): Add argument.
2888         * fold-const.c (optimize_bit_field_compare): Add argument to
2889         get_best_mode.
2890         (fold_truthop): Same.
2891         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
2892         * expr.c (emit_group_store): Same.
2893         (copy_blkmode_from_reg): Same.
2894         (write_complex_part): Same.
2895         (optimize_bitfield_assignment_op): Add argument.
2896         Add argument to get_best_mode.
2897         (get_bit_range): New.
2898         (expand_assignment): Calculate maxbits and pass it down accordingly.
2899         (store_field): New argument.
2900         (expand_expr_real_2): New argument to store_field.  Include params.h.
2901         * expr.h (store_bit_field): New argument.
2902         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
2903         into account maxbits.
2904         * calls.c (store_unaligned_arguments_into_pseudos): New argument
2905         to store_bit_field.
2906         * expmed.c (store_bit_field_1): New argument.  Use it.
2907         (store_bit_field): Same.
2908         (store_fixed_bit_field): Same.
2909         (store_split_bit_field): Same.
2910         (extract_bit_field_1): Pass new argument to get_best_mode.
2911         (extract_bit_field): Same.
2912         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
2913         * doc/invoke.texi: Document parameter allow-store-data-races.
2914
2915 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
2916
2917         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
2918
2919 2011-07-27  Kai Tietz  <ktietz@redhat.com>
2920
2921         * tree-vrp.c (extract_range_from_binary_expr): Remove
2922         TRUTH-binary cases and add new bitwise-cases.
2923         (extract_range_from_assignment): Likewise.
2924         (register_edge_assert_for_1): Likeiwise.
2925         (register_edge_assert_for): Likewise.
2926         (simplify_truth_ops_using_ranges): Likewise.
2927         (simplify_stmt_using_ranges): Likewise.
2928
2929 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2930
2931         PR target/47372
2932         * config/i386/i386.c (ix86_delegitimize_address): Call
2933         simplify_gen_subreg for PIC with mode of x only if modes of
2934         x and orig_x are different.
2935
2936 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
2937
2938         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
2939         to GC allocated copy of the string.
2940         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
2941         before .debug_line, not after it.
2942
2943 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2944
2945         PR middle-end/47046
2946         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
2947         evolution_function_is_affine_p on CHREC_RIGHT.
2948
2949 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2950
2951         * tree-data-ref.c (max_stmt_executions_tree): Do not call
2952         lang_hooks.types.type_for_size.
2953
2954 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2955
2956         PR middle-end/47653
2957         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
2958         loops using wrapping semantics.
2959
2960 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2961
2962         PR middle-end/48805
2963         * tree-scalar-evolution.c (instantiate_scev_r): Return
2964         chrec_dont_know for ADDR_EXPR.
2965
2966 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
2967             H.J. Lu  <hongjiu.lu@intel.com>
2968
2969         PR target/47369
2970         PR target/49853
2971         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
2972         if legitimize_tls_address returned operand in wrong mode. Allow
2973         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
2974         if legitimize_pic_address returned operand in wrong mode.
2975
2976 2011-07-26  Martin Jambor  <mjambor@suse.cz>
2977
2978         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
2979         return false for invariants.
2980
2981 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
2982
2983         * config/i386/i386.md (add->lea splitter): Implement using SWI
2984         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
2985         (add->lea zext splitter): Change operand 2 predicate to
2986         x86_64_nonmemory_operand.
2987
2988 2011-07-26  Richard Guenther  <rguenther@suse.de>
2989
2990         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
2991         frequency makes everything hot.
2992
2993 2011-07-26  Richard Guenther  <rguenther@suse.de>
2994
2995         PR tree-optimization/49840
2996         * tree-vrp.c (range_fits_type_p): Properly handle full
2997         double-int precision.
2998
2999 2011-07-26  Martin Jambor  <mjambor@suse.cz>
3000
3001         PR bootstrap/49786
3002         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
3003         counts.
3004         (update_specialized_profile): Likewise.
3005
3006 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
3007             H.J. Lu  <hongjiu.lu@intel.com>
3008
3009         PR target/47381
3010         PR target/49832
3011         PR target/49833
3012         * config/i386/i386.md (i): Change SImode attribute to "e".
3013         (g): Change SImode attribute to "rme".
3014         (di): Change SImode attribute to "nF".
3015         (general_operand): Change SImode attribute to x86_64_general_operand.
3016         (general_szext_operand): Change SImode attribute to
3017         x86_64_szext_general_operand.
3018         (immediate_operand): Change SImode attribute to
3019         x86_64_immediate_operand.
3020         (nonmemory_operand): Change SImode attribute to
3021         x86_64_nonmemory_operand.
3022         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
3023         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
3024         (*lea_1): Use SWI48 mode iterator.
3025         (*lea_1_zext): New insn pattern.
3026         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
3027         (*bt<mode>): Ditto.
3028         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
3029         Update operand constraints.
3030         (addsi_1_zext): Ditto.
3031         (*add<mode>2): Ditto.
3032         (*addsi_3_zext): Ditto.
3033         (*subsi_1_zext): Ditto.
3034         (*subsi_2_zext): Ditto.
3035         (*subsi_3_zext): Ditto.
3036         (*addsi3_carry_zext): Ditto.
3037         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
3038         (*mulsi3_1_zext): Ditto.
3039         (*andsi_1): Ditto.
3040         (*andsi_1_zext): Ditto.
3041         (*andsi_2_zext): Ditto.
3042         (*<any_or:code>si_1_zext): Ditto.
3043         (*<any_or:code>si_2_zext): Ditto.
3044         (*test<mode>_1): Use <general_operand> predicate for operand 1.
3045         (*and<mode>_2): Ditto.
3046         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
3047         (add->lea splitter): Check operand modes in insn constraint.  Extend
3048         operands less than SImode wide to SImode.
3049         (add->lea zext splitter): Do not extend input operands to DImode.
3050         (*lea_general_1): Handle only QImode and HImode operands.
3051         (*lea_general_2): Ditto.
3052         (*lea_general_3): Ditto.
3053         (*lea_general_1_zext): Remove.
3054         (*lea_general_2_zext): Ditto.
3055         (*lea_general_3_zext): Ditto.
3056         (*lea_general_4): Check operand modes in insn constraint.  Extend
3057         operands less than SImode wide to SImode.
3058         (ashift->lea splitter): Ditto.
3059         * config/i386/i386.c (ix86_print_operand_address): Print address
3060         registers with 'q' modifier on 64bit targets.
3061         * config/i386/predicates.md (pic_32bit_opreand): Define as special
3062         predicate.  Reject non-SI and non-DI modes.
3063
3064 2011-07-25  Andrew Pinski  <apinski@cavium.com>
3065
3066         PR tree-opt/49671
3067         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
3068         TREE_THIS_NOTRAP into the inner most MEM_REF.
3069         Always copy TREE_THIS_VOLATILE.
3070         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
3071         arguments are not volatile references.
3072
3073 2011-07-25  Richard Henderson  <rth@redhat.com>
3074
3075         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
3076         * final.c (final_scan_insn): Don't test for it.
3077         (rest_of_clean_state): Likewise.
3078
3079 2011-07-25  Richard Henderson  <rth@redhat.com>
3080
3081         PR debug/49841
3082         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
3083         (emit_frame_save): Likewise.
3084         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
3085         insn onto a dummy blockage insn after the join label.
3086
3087 2011-07-25  Richard Henderson  <rth@redhat.com>
3088
3089         * dwarf2cfi.c (dw_trace_info): Add ID member.
3090         (get_trace_index): Remove.  Change users to use ID member.
3091         (before_next_cfi_note): New.
3092         (connect_traces): Remove unreachable traces before the main loop.
3093         Look across one trace and generate remember/restore_state if needed.
3094
3095 2011-07-25  Richard Henderson  <rth@redhat.com>
3096
3097         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
3098
3099 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
3100
3101         * genattr.c (write_upcase, gen_attr <enum definition writing>):
3102         Move to ...
3103         * genattr-common.c ... here.
3104         (main): Call gen_attr.
3105         * optc-gen.awk: Make generated program include insn-attr-common.h .
3106         * Makefile.in (oprions.o): Depend on insn-attr-common.h
3107
3108 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
3109
3110         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3111         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3112         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
3113         m32c_print_operand, m32c_print_operand_address): Remove.
3114         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
3115         Change return type to bool. Change argument type to bool.
3116         (m32c_print_operand, m32c_print_operand_address): Make static.
3117         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3118         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3119
3120 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3121
3122         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3123         attributes): Document mmap.
3124
3125 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
3126
3127         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3128         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3129         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
3130         mmix_print_operand, mmix_print_operand_address): Remove.
3131         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
3132         Change return type to bool. Change argument type to bool.
3133         (mmix_print_operand, mmix_print_operand_address): Make static.
3134         (mmix_intval, mmix_output_condition): Change 'x' argument type
3135         to const_rtx.
3136         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3137         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3138
3139 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
3140
3141         PR target/39386
3142         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
3143         shift counter for x << x and x >> x shifts.
3144
3145 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3146
3147         PR target/47124
3148         * config.gcc: Reject *-*-solaris2 configuration.
3149
3150 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
3151
3152         PR tree-optimization/49809
3153         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
3154         gimple_get_lhs instead of gimple_assign_lhs.
3155
3156 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3157
3158         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
3159
3160 2011-07-25  Richard Guenther  <rguenther@suse.de>
3161
3162         PR tree-optimization/49822
3163         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3164         more.  Make sure to preserve stmts with side-effects.  Properly
3165         handle virtual defs, follow a longer def chain.
3166
3167 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
3168
3169         PR plugins/45348
3170         PR plugins/48425
3171         PR plugins/46577
3172         * Makefile.in: Do not flatten c-family directory when installing
3173         plugin headers.
3174
3175 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3176
3177         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
3178         original nodes if we are dealing with virtual clones.
3179
3180 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
3181
3182         * common/config/c6x/c6x-common.c: New file.
3183
3184 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
3185
3186         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
3187
3188 2011-07-25  Richard Guenther  <rguenther@suse.de>
3189
3190         PR tree-optimization/49715
3191         * tree-vrp.c: Include expr.h and optabs.h.
3192         (range_fits_type_): New function.
3193         (simplify_float_conversion_using_ranges): Likewise.
3194         (simplify_stmt_using_ranges): Call it.
3195         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
3196         * optabs.c (can_float_p): Export.
3197         * optabs.h (can_float_p): Declare.
3198
3199 2011-07-25  Richard Guenther  <rguenther@suse.de>
3200
3201         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
3202         (get_value_range): For out-of-range SSA names or names created
3203         after propagation return a read-only varying range.
3204         (dump_all_value_ranges): Adjust.
3205         (vrp_initialize): Likewise.
3206         (vrp_finalize): Likewise.
3207
3208 2011-07-24  Richard Henderson  <rth@redhat.com>
3209
3210         PR debug/49831
3211         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
3212         them entirely.
3213
3214 2011-07-24  Richard Henderson  <rth@redhat.com>
3215
3216         PR debug/49825
3217         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
3218         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
3219
3220 2011-07-24  Richard Henderson  <rth@redhat.com>
3221
3222         PR debug/49827
3223         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
3224
3225 2011-07-24  Richard Henderson  <rth@redhat.com>
3226
3227         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
3228         Zero args_size for abnormal edges.  Adjust all callers.
3229
3230 2011-07-24  Richard Henderson  <rth@redhat.com>
3231
3232         PR debug/49825
3233         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
3234
3235 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
3236
3237         PR bootstrap/49835
3238         * collect2.c (demangle_flag): Removed.
3239
3240 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
3241
3242         * configure.ac (demangler_in_ld): Default to yes.
3243         * configure: Regenerated.
3244         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
3245         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
3246         --no-demangle options straight through to ld.  When
3247         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
3248         way that has the intended effect on Windows.
3249
3250 2011-07-23  Richard Henderson  <rth@redhat.com>
3251
3252         * dwarf2cfi.c: Include basic-block.h.
3253         (dw_label_info): Remove.
3254         (trace_work_list, trace_index): New.
3255         (remember_row, emit_cfa_remember): Remove.
3256         (dw_trace_info_hash, dw_trace_info_eq): New.
3257         (get_trace_index, get_trace_info): New.
3258         (save_point_p): New.
3259         (free_cfi_row): Remove.
3260         (add_cfi): Do not emit DW_CFA_remember_state.
3261         (cfa_row_equal_p): New.
3262         (barrier_args_size): Remove.
3263         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
3264         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
3265         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
3266         (dwarf2out_cfi_begin_epilogue): Remove.
3267         (dwarf2out_frame_debug_restore_state): Remove.
3268         (connect_traces, create_pseudo_cfg): New.
3269         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
3270         * Makefile.in (dwarf2cfi.o): Update.
3271
3272 2011-07-23  Richard Henderson  <rth@redhat.com>
3273
3274         * dwarf2cfi.c (dw_trace_info): New.
3275         (dw_label_info): New.
3276         (cie_return_save): New.
3277         (cur_trace): New.
3278         (queued_args_size): Rename from args_size.  Update all users.
3279         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
3280         (def_cfa_1): Use cur_trace instead of cfa_*.
3281         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
3282         (clobbers_queued_reg_save, reg_saved_in): Likewise.
3283         (dwarf2out_frame_debug_expr): Likewise.
3284         (create_cie_data): Split out from ...
3285         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
3286
3287 2011-07-23  Richard Henderson  <rth@redhat.com>
3288
3289         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
3290         Update all users to match.
3291         (execute_dwarf2_frame): Free reg_saved_in_data.
3292
3293 2011-07-23  Richard Henderson  <rth@redhat.com>
3294
3295         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
3296         (queued_reg_saves): Don't GTY.  Change to a VEC.
3297         (queue_reg_save): Update to match.
3298         (dwarf2out_flush_queued_reg_saves): Likewise.
3299         (clobbers_queued_reg_save): Likewise.
3300         (reg_saved_in): Likewise.
3301         (execute_dwarf2_frame): Free queued_reg_saves.
3302
3303 2011-07-23  Richard Henderson  <rth@redhat.com>
3304
3305         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
3306
3307 2011-07-23  Richard Henderson  <rth@redhat.com>
3308
3309         * dwarf2cfi.c (add_cfi_args_size): Split out from...
3310         (dwarf2out_args_size): ... here.
3311         (add_cfi_restore): Split out from ...
3312         (dwarf2out_frame_debug_cfa_restore): ... here.
3313         (def_cfa_0): Split out from ...
3314         (def_cfa_1): ... here.
3315         (cfi_oprnd_equal_p, cfi_equal_p): New.
3316         (change_cfi_row): New.
3317         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
3318         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
3319         (output_cfis): Remove.
3320         * dwarf2out.c (output_fde): Simplify output_cfi loop.
3321         (dwarf2out_switch_text_section): Don't call output_cfis.
3322         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
3323         * dwarf2out.h: Update decls.
3324         (enum dw_val_class): Add dw_val_class_none.
3325
3326 2011-07-23  Richard Henderson  <rth@redhat.com>
3327
3328         * dwarf2cfi.c (update_row_reg_save): New.
3329         (dwarf2out_frame_debug_cfa_expression): Use it.
3330         (dwarf2out_frame_debug_cfa_restore): Likewise.
3331         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
3332
3333 2011-07-23  Richard Henderson  <rth@redhat.com>
3334
3335         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
3336
3337 2011-07-23  Richard Henderson  <rth@redhat.com>
3338
3339         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
3340         (cie_cfi_row): New.
3341         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
3342         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
3343         (cur_row, remember_row): New.
3344         (def_cfa_1): Use cur_row instead of the old_* variables.
3345         (dwarf2out_frame_debug_restore_state): Similarly.
3346         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
3347         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
3348         (dwarf2out_frame_debug_adjust_cfa): Likewise.
3349         (dwarf2out_frame_debug_cfa_offset): Likewise.
3350         (dwarf2out_frame_debug_expr): Likewise.
3351         (execute_dwarf2_frame): Set up cur_row.
3352         * dwarf2out.h (struct cfa_loc): Mark for GTY.
3353
3354 2011-07-23  Richard Henderson  <rth@redhat.com>
3355
3356         * basic-block.h (EDGE_PRESERVE): New.
3357         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
3358         * bb-reorder.c: Include except.h.
3359         (fix_up_crossing_landing_pad): New.
3360         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
3361         landing pads in the right partition.  Duplicate as necessary.
3362         (partition_hot_cold_basic_blocks): Fix up DF info after
3363         duplicating landing pads.
3364         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
3365         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
3366         is set properly.  Validate that EH edges are not CROSSING.
3367         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
3368         (dw2_build_landing_pads): ... here.
3369         (convert_to_eh_region_ranges): Remove code to fixup crossing
3370         landing pads.
3371         * except.h (expand_dw2_landing_pad_for_region): Declare.
3372         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
3373
3374 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
3375
3376         PR target/49816
3377         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
3378
3379 2011-07-22  Jason Merrill  <jason@redhat.com>
3380
3381         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
3382
3383 2011-07-22  Richard Henderson  <rth@redhat.com>
3384
3385         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
3386
3387 2011-07-22  Richard Henderson  <rth@redhat.com>
3388
3389         * jump.c (maybe_propagate_label_ref): Split out of...
3390         (mark_all_labels): ... here.  Do not attempt label_ref
3391         propagation while in cfglayout mode.
3392
3393 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
3394
3395         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
3396         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
3397         (dwarf_attr_name): Handle DW_AT_GNU_macros.
3398         (dwarf2out_define): If the vector is empty and
3399         lineno is 0, emit a dummy entry first.
3400         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
3401         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
3402         optimize_macinfo_range): New functions.
3403         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
3404         mergeable, optimize longer strings using
3405         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
3406         optimize longer sequences of define/undef ops from headers
3407         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
3408         emit a section headers.
3409         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
3410         and macinfo_section_label to DEBUG_MACRO_SECTION
3411         resp. DEBUG_MACRO_SECTION_LABEL.
3412         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
3413         instead of DW_AT_macro_info.
3414
3415         PR other/32998
3416         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
3417         options.
3418         * dwarf2out.c: Include opts.h.
3419         (dchar_p): New typedef.  Define heap VEC for it.
3420         (producer_string): New variable.
3421         (gen_producer_string): New function.
3422         (gen_compile_unit_die): Use it.
3423         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
3424         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
3425         * doc/invoke.texi: Document -grecord-gcc-switches and
3426         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
3427         to -frecord-gcc-switches description.
3428
3429 2011-07-22  Jason Merrill  <jason@redhat.com>
3430
3431         PR c++/30112
3432         * c-decl.c (c_linkage_bindings): Define.
3433
3434 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3435
3436         PR debug/49815
3437         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
3438
3439 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
3440
3441         * config/i386/i386.c (ix86_option_override_internal): Disallow
3442         MS ABI in x32 mode.
3443         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
3444         only for TARGET_LP64.
3445         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3446
3447 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3448
3449         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
3450         avoid warnings when GCC is built with a C++ compiler.
3451
3452 2011-07-22  Martin Jambor  <mjambor@suse.cz>
3453
3454         PR lto/49796
3455         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
3456         if decl node is in another partition, call cgraph_get_node only once.
3457
3458 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
3459
3460         * config.gcc (x86_64-*-linux*): Set
3461         default_gnu_indirect_function to yes.
3462
3463 2011-07-22  Richard Guenther  <rguenther@suse.de>
3464
3465         PR tree-optimization/45819
3466         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
3467         preserve volatile and notrap flags.
3468
3469 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3470             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3471
3472         PR bootstrap/49794
3473         * configure.ac: Test AM_ICONV with CXX.
3474         * configure: Regenerate.
3475         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
3476
3477 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3478
3479         PR bootstrap/49797
3480         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
3481         (set_cloog_options): Use it.
3482
3483 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
3484
3485         PR c++/49756
3486         * gcc.c (main): Call stack_limit_increase (64MB).
3487         * toplev.c (toplev_main): Likewise.
3488
3489 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
3490
3491         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
3492         instead of force_reg.
3493
3494 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
3495
3496         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
3497         needed and use force_reg after convert.
3498         (ix86_expand_call): Likewise.
3499         (ix86_expand_special_args_builtin): Likewise.
3500         (ix86_expand_builtin): Likewise.
3501
3502 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3503
3504         PR middle-end/47654
3505         PR middle-end/49649
3506         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
3507         in parameter.  Initialize v1 and v2 based on the values returned
3508         by clast_name_to_lb_ub.
3509         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
3510         values.
3511         (type_for_clast_bin): Same.
3512         (type_for_clast_expr): Same.
3513         (type_for_clast_eq): Update calls to type_for_clast_expr.
3514         (type_for_clast_for): Same.
3515         (build_iv_mapping): Same.
3516         * graphite-ppl.h (value_min): New.
3517
3518 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3519
3520         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
3521         types whenever possible.
3522
3523 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3524
3525         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
3526         and ub fields.
3527         (new_clast_name_index): Add lb and ub parameters.
3528         (free_clast_name_index): New.
3529         (clast_name_to_lb_ub): New.
3530         (save_clast_name_index): Add lb and ub parameters.
3531         (compute_bounds_for_param): New.
3532         (type_for_level): Removed.
3533         (type_for_clast_for): Removed level parameter.  Do not call
3534         type_for_level.
3535         (graphite_create_new_loop): Store the lb and ub for the clast_name
3536         of the iterator of the loop that has been generated.
3537         (graphite_create_new_loop_guard): Remove parameter level.
3538         (create_params_index): Store the lb and ub of each parameter.
3539         (gloog): Use free_clast_name_index.  Pass to create_params_index
3540         the current scop.
3541
3542 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3543
3544         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
3545         (max_precision_type): Inline max_signed_precision_type.
3546         (type_for_clast_red): Use max_precision_type.
3547         (type_for_clast_bin): Same.
3548         (type_for_clast_for): Same.
3549
3550 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3551
3552         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
3553         type_for_interval.
3554         (gcc_type_for_value): Renamed type_for_value.
3555         (gcc_type_for_clast_term): Renamed type_for_clast_term.
3556         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
3557         (gcc_type_for_clast_red): Renamed type_for_clast_red.
3558         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
3559         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
3560         (graphite_translate_clast_equation): Update calls.
3561         (compute_type_for_level): Renamed type_for_level.
3562         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
3563         (build_iv_mapping): Update calls.
3564         (graphite_create_new_loop_guard): Same.
3565
3566 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3567
3568         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
3569         comment.
3570
3571 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3572
3573         * graphite-clast-to-gimple.c (struct ivs_params): New.
3574         (clast_name_to_gcc): Use ivs_params to pass around parameters.
3575         (clast_to_gcc_expression): Same.
3576         (clast_to_gcc_expression_red): Same.
3577         (gcc_type_for_clast_term): Same.
3578         (gcc_type_for_clast_expr): Same.
3579         (gcc_type_for_clast_red): Same.
3580         (gcc_type_for_clast_bin): Same.
3581         (gcc_type_for_clast_eq): Same.
3582         (graphite_translate_clast_equation): Same.
3583         (graphite_create_guard_cond_expr): Same.
3584         (graphite_create_new_guard): Same.
3585         (graphite_create_new_loop): Same.
3586         (build_iv_mapping): Same.
3587         (translate_clast_user): Same.
3588         (graphite_create_new_loop_guard): Same.
3589         (translate_clast): Same.
3590         (translate_clast_for_loop): Same.
3591         (translate_clast_for): Same.
3592         (translate_clast_guard): Same.
3593         (initialize_cloog_names): Fix typo.
3594         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
3595
3596 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3597
3598         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
3599         (new_clast_name_index): Add level parameter.
3600         (clast_name_to_level): New.
3601         (save_clast_name_index): Add level parameter.
3602         (newivs_to_depth_to_newiv): Removed.
3603         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
3604         (graphite_create_new_loop): Add level parameter.  Pass level to
3605         save_clast_name_index.
3606         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
3607         (create_params_index): Pass level to save_clast_name_index.
3608
3609 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3610
3611         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
3612         recompute type, lb, and ub.  Get them from...
3613         (graphite_create_new_loop_guard): ...here.  Pass in parameter
3614         pointers to type, lb, and ub.
3615         (translate_clast_for_loop): Update function calls.
3616         (translate_clast_for): Same.
3617
3618 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3619
3620         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
3621         psct_dynamic_dim.
3622         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
3623         (gcc_type_for_iv_of_clast_loop): Update use of level.
3624         (gloog): Start counting nesting level from 0.
3625         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
3626         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
3627         psct_dynamic_dim on level.
3628
3629 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
3630
3631         * config/i386/i386.c (ix86_legitimize_address): Convert to
3632         Pmode if needed.
3633
3634 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
3635
3636         * config/i386/i386.c (function_value_64): Always return pointers
3637         in Pmode.
3638         (ix86_promote_function_mode): New.
3639         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
3640
3641 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3642
3643         PR tree-optimization/49749
3644         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
3645         remove no-longer-used maxrank variable.
3646
3647 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
3648
3649         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
3650
3651 2011-07-21  Jason Merrill  <jason@redhat.com>
3652
3653         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
3654         * recog.h (struct insn_data_d): Check it instead of
3655         HAVE_DESIGNATED_INITIALIZERS.
3656         * genoutput.c (output_insn_data): Likewise.
3657
3658 2011-07-21  Richard Guenther  <rguenther@suse.de>
3659
3660         PR tree-optimization/49770
3661         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
3662         valueized any operand.  Renamed from ...
3663         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
3664         (valueize_shared_reference_ops_from_ref): Return whether we
3665         valueized any operand.
3666         (vn_reference_lookup): Only when we valueized any operand
3667         use the valueized reference for alias analysis.  Do not preserve
3668         the original reference tree in this case.
3669
3670 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
3671
3672         * config/i386/i386.c (ix86_decompose_address): Reject all but
3673         register operands and subregs of DImode hard registers in index.
3674
3675 2011-07-21  Kai Tietz  <ktietz@redhat.com>
3676
3677         * fold-const.c (fold_unary_loc): Preserve indirect
3678         comparison cast to none-boolean type.
3679         * tree-ssa.c (useless_type_conversion_p): Preserve cast
3680         from/to boolean-type.
3681         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
3682         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
3683         * tree-cfg.c (verify_gimple_comparison): Check result
3684         type of comparison expression.
3685         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
3686         of condition result and disallow type-cast sinking into comparison.
3687
3688 2011-07-21  Richard Guenther  <rguenther@suse.de>
3689
3690         * tree-ssa-forwprop.c (combine_conversions): Return whether
3691         we have to run cfg-cleanup.  Properly remove dead stmts.
3692         (ssa_forward_propagate_and_combine): Adjust.
3693
3694 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
3695
3696         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
3697
3698 2011-07-21  Kai Tietz  <ktietz@redhat.com>
3699
3700         * tree-ssa-propagate.c (substitute_and_fold): Use
3701         do_dce flag to deside, if BB's statements are scanned
3702         in last to first, or first to last order.
3703
3704 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
3705
3706         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
3707
3708 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
3709             Uros Bizjak  <ubizjak@gmail.com>
3710             Richard Henderson  <rth@redhat.com>
3711
3712         * config/i386/constraints.md (w): New.
3713
3714         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
3715         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
3716
3717         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
3718         instead of TARGET_64BIT.
3719
3720         * config/i386/i386.md (indirect_jump): Replace
3721         nonimmediate_operand with indirect_branch_operand.
3722         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
3723         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
3724         Convert operand 0 to Pmode for x32 if not PIC.
3725         (*tablejump_1): Replace nonimmediate_operand with
3726         indirect_branch_operand.  Replace constraint "m" with "w".
3727         (*call_vzeroupper): Replace constraint "m" with "w".
3728         (*call): Likewise.
3729         (*call_rex64_ms_sysv_vzeroupper): Likewise.
3730         (*call_rex64_ms_sysv): Likewise.
3731         (*call_value_vzeroupper): Likewise.
3732         (*call_value): Likewise.
3733         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
3734         (*call_value_rex64_ms_sysv): Likewise.
3735         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
3736
3737         * config/i386/predicates.md (indirect_branch_operand): New.
3738         (call_insn_operand): Support x32.
3739
3740 2011-07-20  Michael Eager  <eager@eagercon.com>
3741
3742         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
3743
3744 2011-07-20  Richard Henderson  <rth@redhat.com>
3745
3746         * cfg.c (dump_bb_info): Dump basic_block->flags.
3747         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
3748
3749 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
3750
3751         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3752         of DImode hard registers in index.
3753         (ix86_legitimate_address_p): Allow subregs of base and index to span
3754         more than a word.  Assert that subregs of base and index satisfy
3755         register_no_elim_operand predicates.  Reject addresses where
3756         base and index have different modes.
3757
3758 2011-07-20  Robert Millan  <rmh@gnu.org>
3759
3760         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
3761
3762 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3763
3764         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
3765         removing now-unnecessary assignment.
3766
3767 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3768
3769         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
3770         memory address space to the type's address space.
3771
3772 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
3773
3774         PR target/36467
3775         PR target/49687
3776         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
3777         and expand appropriately if there is a CONST_INT in operand2.
3778         (usmulqihi3): New insn.
3779         (*sumulqihi3): New insn.
3780         (*osmulqihi3): New insn.
3781         (*oumulqihi3): New insn.
3782         (*muluqihi3.uconst): New insn_and_split.
3783         (*muluqihi3.sconst): New insn_and_split.
3784         (*mulsqihi3.sconst): New insn_and_split.
3785         (*mulsqihi3.uconst): New insn_and_split.
3786         (*mulsqihi3.oconst): New insn_and_split.
3787         (*ashifthi3.signx.const): New insn_and_split.
3788         (*ashifthi3.signx.const7): New insn_and_split.
3789         (*ashifthi3.zerox.const): New insn_and_split.
3790         (mulsqihi3): New insn.
3791         (muluqihi3): New insn.
3792         (muloqihi3): New insn.
3793         * config/avr/predicates.md (const_2_to_7_operand): New.
3794         (const_2_to_6_operand): New.
3795         (u8_operand): New.
3796         (s8_operand): New.
3797         (o8_operand): New.
3798         (s9_operand): New.
3799         (register_or_s9_operand): New.
3800
3801 2011-07-20  Kai Tietz  <ktietz@redhat.com>
3802
3803         * builtins.c (fold_builtin_expect): See through the cast
3804         from truthvalue_type_node to long.
3805
3806 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3807
3808         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
3809         where we can use them from the standard and altivec instruction
3810         sets, instead of always using the 3 operand VSX forms that require
3811         the destination to overlap one of the inputs.
3812         (vsx_fms*): Ditto.
3813         (vsx_fnma*): Ditto.
3814         (vsx_fnms*): Ditto.
3815
3816         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
3817         for DF types.
3818         (fmsdf4_fpr): Ditto.
3819         (nfmadf4_fpr): Ditto.
3820         (nfmsdf4_fpr): Ditto.
3821
3822 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
3823
3824         * genrecog.c (make_insn_sequence): Correct position numbering
3825         when filtering out match_scratch and match_dup.
3826
3827 2011-07-20  Richard Guenther  <rguenther@suse.de>
3828
3829         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3830         against already removed statements.
3831         (forward_propagate_into_comparison): Remove dead defining stmts.
3832         (forward_propagate_into_gimple_cond): Likewise.
3833         (forward_propagate_into_cond): Simplify.
3834         (ssa_forward_propagate_and_combine): Handle changed cfg from
3835         forward_propagate_into_comparison.
3836         * tree-ssa-phiopt.c (conditional_replacement): Use proper
3837         locations for newly built statements.
3838
3839 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
3840
3841         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
3842
3843 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3844
3845         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
3846         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
3847
3848 2011-07-20  Richard Guenther  <rguenther@suse.de>
3849
3850         PR middle-end/18908
3851         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
3852         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
3853         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
3854
3855 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
3856
3857         * config/frv/frv.c (frv_register_move_cost): Define explicitly
3858         costs for subclasses of GR_REGS.
3859
3860 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
3861
3862         PR target/49780
3863         * config/i386/predicates.md (no_seg_addres_operand): No more special.
3864         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3865         of DImode hard registers in base.
3866         (ix86_legitimate_address_p): Allow SImode and DImode base and index
3867         registers.
3868
3869 2011-07-20  Richard Guenther  <rguenther@suse.de>
3870
3871         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
3872         (unify_nodes): Deal with that.
3873         (solve_graph): Likewise.
3874
3875 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
3876
3877         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
3878         canonicalize left operand from ZERO_EXTEND to AND.
3879
3880 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
3881
3882         * target.def (class_max_nregs): New hook.
3883         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
3884         * doc/tm.texi: Regenerate.
3885         * targhooks.c (default_class_max_nregs): New function.
3886         * targhooks.h (default_class_max_nregs): Declare.
3887         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
3888         x_ira_reg_class_min_nregs arrays to unsigned char.
3889         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
3890         hook instead of CLASS_MAX_NREGS macro.
3891         * reginfo.c (restore_register_info): Ditto.
3892         * ira-conflicts.c (process_regs_for_copy): Use
3893         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3894         Change type rclass and aclass vars to reg_class_t.
3895         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
3896         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
3897         reg_class_t.
3898         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
3899         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3900
3901         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
3902         * config/i386/i386.c (ix86_class_max_nregs): New function.
3903         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
3904         instead of CLASS_MAX_NREGS macro.
3905         (TARGET_CLASS_MAX_NREGS): Define.
3906         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
3907         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
3908         * config/avr/avr.c (class_max_nregs): Remove function.
3909         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
3910         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
3911         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
3912         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
3913         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
3914         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
3915         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
3916         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
3917         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
3918         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
3919         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
3920         * config/score/score.h (CLASS_MAX_NREGS): Remove.
3921         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
3922         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
3923         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
3924
3925 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
3926
3927         * cif-code.def (OVERWRITABLE): Fix typo and move around.
3928         (TARGET_OPTIMIZATION_MISMATCH): Delete.
3929         (EH_PERSONALITY): Fix typo.
3930         (NON_CALL_EXCEPTIONS): Fix message.
3931         (OPTIMIZATION_MISMATCH): Adjust message.
3932         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
3933
3934 2011-07-19  Ian Lance Taylor  <iant@google.com>
3935
3936         * doc/install.texi (Configuration): Document
3937         --enable-build-poststage1-with-cxx.
3938
3939 2011-07-19  Robert Millan  <rmh@gnu.org>
3940
3941         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
3942         (GLIBC_DYNAMIC_LINKER): Remove.
3943
3944         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
3945         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
3946         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
3947         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
3948         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
3949         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
3950
3951         * config/mips/linux.h: Remove everything except for ...
3952         (GLIBC_DYNAMIC_LINKER): ... this macro.
3953
3954         * config/mips/linux64.h: Remove everything except for ...
3955         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
3956         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
3957         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
3958         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
3959         (GNU_USER_LINK_EMULATIONN32): New macros.
3960
3961         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
3962         Use the new headers.
3963
3964 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3965
3966         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
3967         Add offset_known_p and size_known_p fields.
3968         (MEM_OFFSET_KNOWN_P): Update accordingly.
3969         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
3970         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
3971         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
3972         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
3973         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
3974         (init_emit_regs): Likewise.
3975
3976 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3977
3978         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
3979         (MEM_OFFSET): Change from returning an rtx to returning a
3980         HOST_WIDE_INT.
3981         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
3982         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
3983         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
3984         (clear_mem_offset): Declare.
3985         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
3986         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
3987         MEM_OFFSET to get a HOST_WIDE_INT offset.
3988         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
3989         (adjust_offset_for_component_ref): Take a bool "known_p"
3990         parameter and a HOST_WIDE_INT "offset" parameter.
3991         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
3992         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
3993         than an rtx.  Use clear_mem_offset to clear the offset.
3994         * cfgcleanup.c (merge_memattrs): Likewise.
3995         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
3996         * function.c (assign_parm_find_stack_rtl): Likewise.
3997         (assign_parm_setup_stack): Likewise.
3998         * print-rtl.c (print_rtx): Likewise.
3999         * reload.c (find_reloads_subreg_address): Likewise.
4000         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4001         * var-tracking.c (INT_MEM_OFFSET): Likewise.
4002         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4003         (get_mem_align_offset): Likewise.
4004         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4005         (clear_mem_offset): New function.
4006         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
4007         offset rather than an rtx.  Assume both the expressio and offset
4008         are available.
4009         (r10k_needs_protection_p_1): Update accordingly, checking the
4010         expression and offset availability here instead.
4011
4012 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
4013
4014         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
4015         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
4016         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
4017         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
4018         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4019         (clear_mem_size): Declare.
4020         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4021         (clear_mem_size): New function.
4022         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
4023         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
4024         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
4025         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
4026         to clear the size.
4027         (nonoverlapping_memrefs_p): Likewise.
4028         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
4029         (expand_builtin_init_trampoline): Likewise.
4030         * calls.c (compute_argument_addresses): Likewise.
4031         * cfgcleanup.c (merge_memattrs): Likewise.
4032         * dce.c (find_call_stack_args): Likewise.
4033         * dse.c (record_store, scan_insn): Likewise.
4034         * dwarf2out.c (dw_sra_loc_expr): Likewise.
4035         * expr.c (emit_block_move_hints): Likewise.
4036         * function.c (assign_parm_find_stack_rtl): Likewise.
4037         * print-rtl.c (print_rtx): Likewise.
4038         * reload.c (find_reloads_subreg_address): Likewise.
4039         * rtlanal.c (may_trap_p_1): Likewise.
4040         * var-tracking.c (track_expr_p): Likewise.
4041         * varasm.c (assemble_trampoline_template): Likewise.
4042         * config/arm/arm.c (arm_print_operand): Likewise.
4043         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
4044         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
4045         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
4046         (expand_constant_setmem_prologue): Likewise.
4047         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
4048         * config/rs6000/rs6000.c (expand_block_move): Likewise.
4049         (adjacent_mem_locations): Likewise.
4050         * config/s390/s390.c (s390_expand_setmem): Likewise.
4051         (s390_expand_insv): Likewise.
4052         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
4053         (*extendqi<mode>2_short_displ): Likewise.
4054         * config/sh/sh.c (expand_block_move): Likewise.
4055         * config/sh/sh.md (extv, extzv): Likewise.
4056
4057 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
4058
4059         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
4060         (mem_attrs_htab_eq): ...here.
4061         (find_mem_attrs): Replace with...
4062         (set_mem_attrs): ...this function.  Take a mem_attrs structure
4063         rather than individual fields.
4064         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4065         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4066         (set_mem_size, change_address, adjust_address_1, offset_address)
4067         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4068         Update accordingly.
4069
4070 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
4071
4072         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
4073         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
4074         Provide a dummy definition of MEM_ADDR_SPACE for generators.
4075         (target_rtl): Add x_mode_mem_attrs.
4076         (mode_mem_attrs): New macro.
4077         (get_mem_attrs): New function.
4078         * emit-rtl.c (get_mem_attrs): Rename to...
4079         (find_mem_attrs): ...this.
4080         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4081         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4082         (set_mem_size, change_address, adjust_address_1, offset_address)
4083         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4084         Update accordingly.
4085         (init_emit_regs): Initialize mode_mem_attrs.
4086
4087 2011-07-19  Richard Guenther  <rguenther@suse.de>
4088
4089         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
4090         TRUTH_*_EXPR handling.
4091         * tree-ssa-operands.c (get_expr_operands): Likewise.
4092         * tree-ssa-pre.c (fully_constant_expression): Likewise.
4093         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
4094         Likewise.
4095         (is_and_or_or): Likewise.
4096         (is_norm_cond_subset_of): Likewise.
4097
4098 2011-07-19  Richard Guenther  <rguenther@suse.de>
4099
4100         * tree.h (fold_build_pointer_plus_loc): New helper function.
4101         (fold_build_pointer_plus_hwi_loc): Likewise.
4102         (fold_build_pointer_plus): Define.
4103         (fold_build_pointer_plus_hwi): Likewise.
4104         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
4105         (fold_builtin_memory_op): Likewise.
4106         (fold_builtin_stpcpy): Likewise.
4107         (fold_builtin_memchr): Likewise.
4108         (fold_builtin_strstr): Likewise.
4109         (fold_builtin_strchr): Likewise.
4110         (fold_builtin_strrchr): Likewise.
4111         (fold_builtin_strpbrk): Likewise.
4112         (fold_builtin_strcat): Likewise.
4113         (expand_builtin_memory_chk): Likewise.
4114         (fold_builtin_memory_chk): Likewise.
4115         * c-typeck.c (build_unary_op): Likewise.
4116         * cgraphunit.c (thunk_adjust): Likewise.
4117         * fold-const.c (build_range_check): Likewise.
4118         (fold_binary_loc): Likewise.
4119         * omp-low.c (extract_omp_for_data): Likewise.
4120         (expand_omp_for_generic): Likewise.
4121         (expand_omp_for_static_nochunk): Likewise.
4122         (expand_omp_for_static_chunk): Likewise.
4123         * tree-affine.c (add_elt_to_tree): Likewise.
4124         * tree-data-ref.c (split_constant_offset_1): Likewise.
4125         * tree-loop-distribution.c (generate_memset_zero): Likewise.
4126         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
4127         * tree-predcom.c (ref_at_iteration): Likewise.
4128         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4129         (add_to_parts): Likewise.
4130         (create_mem_ref): Likewise.
4131         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4132         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
4133         (number_of_iterations_le): Likewise.
4134         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
4135         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4136         (vect_create_addr_base_for_vector_ref): Likewise.
4137         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
4138         (vect_create_cond_for_alias_checks): Likewise.
4139         * tree-vrp.c (extract_range_from_assert): Likewise.
4140         * config/alpha/alpha.c (alpha_va_start): Likewise.
4141         (alpha_gimplify_va_arg_1): Likewise.
4142         * config/i386/i386.c (ix86_va_start): Likewise.
4143         (ix86_gimplify_va_arg): Likewise.
4144         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4145         * config/mep/mep.c (mep_expand_va_start): Likewise.
4146         (mep_gimplify_va_arg_expr): Likewise.
4147         * config/mips/mips.c (mips_va_start): Likewise.
4148         (mips_gimplify_va_arg_expr): Likewise.
4149         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4150         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
4151         (rs6000_gimplify_va_arg): Likewise.
4152         * config/s390/s390.c (s390_va_start): Likewise.
4153         (s390_gimplify_va_arg): Likewise.
4154         * config/sh/sh.c (sh_va_start): Likewise.
4155         (sh_gimplify_va_arg_expr): Likewise.
4156         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4157         * config/spu/spu.c (spu_va_start): Likewise.
4158         (spu_gimplify_va_arg_expr): Likewise.
4159         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4160         Likewise.
4161         (xstormy16_gimplify_va_arg_expr): Likewise.
4162         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
4163         (xtensa_gimplify_va_arg_expr): Likewise.
4164
4165 2011-07-19  Richard Guenther  <rguenther@suse.de>
4166
4167         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
4168         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
4169         handling.
4170
4171         PR middle-end/18908
4172         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
4173         result of BIT_*_EXPR to bitfield precision.
4174
4175 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
4176
4177         PR tree-optimization/49742
4178         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
4179         as a potential write.
4180
4181 2011-07-19  Richard Guenther  <rguenther@suse.de>
4182
4183         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
4184         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
4185         (forward_propagate_comparison): Simplify, remove obsolete code.
4186
4187 2011-07-19  Richard Guenther  <rguenther@suse.de>
4188
4189         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
4190         BIT_XOR_EXPR, same as the RTL expander does.
4191         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
4192         (verify_gimple_assign_unary): Likewise.
4193         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
4194         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
4195         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
4196
4197 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
4198
4199         PR tree-optimization/49768
4200         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
4201         if offset is smaller than bitoffset, but offset+size is bigger
4202         than bitoffset.
4203
4204 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
4205
4206         PR tree-optimization/49771
4207         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
4208         zero step, set segment length to the size of the data-ref's type.
4209
4210 2011-07-18  Martin Jambor  <mjambor@suse.cz>
4211
4212         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
4213         comments.
4214         (ipcp_values_pool): Declare.
4215         (ipcp_sources_pool): Likewise.
4216         (ipcp_lattice): Changed to forward declaration.
4217         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
4218         cannot_devirtualize.
4219         (ipa_node_params): New fields descriptors, lattices, known_vals,
4220         clone_for_all_contexts and node dead, removed fields params and
4221         count_scale.
4222         (ipa_set_param_count): Removed.
4223         (ipa_get_param_count): Made to work with descriptors vector.
4224         (ipa_get_param): Updated.
4225         (ipa_param_cannot_devirtualize_p): Removed.
4226         (ipa_param_types_vec_empty): Likewise.
4227         (ipa_set_param_used): New function.
4228         (ipa_get_param_used): Updated to use descriptors vector.
4229         (ipa_func_list): Removed.
4230         (ipa_init_func_list): Removed declaration.
4231         (ipa_push_func_to_list_1): Likewise.
4232         (ipa_pop_func_from_list): Likewise.
4233         (ipa_push_func_to_list): Removed.
4234         (ipa_lattice_from_jfunc): Remove declaration.
4235         (ipa_get_jf_pass_through_result): Declare.
4236         (ipa_get_jf_ancestor_result): Likewise.
4237         (ipa_value_from_jfunc): Likewise.
4238         (ipa_get_lattice): Update.
4239         (ipa_lat_is_single_const): New function.
4240         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
4241         (ipa_init_func_list): Likewise.
4242         (ipa_pop_func_from_list): Likewise.
4243         (ipa_get_param_decl_index): Fix coding style.
4244         (count_formal_params): Removed.
4245         (count_formal_params_1): Renamed to count_formal_params.
4246         (ipa_populate_param_decls): Update to use descriptors vector.
4247         (ipa_initialize_node_params): Likewise.
4248         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
4249         (ipa_analyze_params_uses): Likewise.
4250         (ipa_free_node_params_substructures): Likewise and free also lattices
4251         and known values.
4252         (duplicate_array): Removed.
4253         (ipa_edge_duplication_hook): Add the new edge to the list of edge
4254         clones.
4255         (ipa_node_duplication_hook): Update to use new lattices.
4256         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
4257         (ipa_free_all_structures_after_iinln): Likewise.
4258         (ipa_write_node_info): Update to use new lattices.
4259         (ipa_read_node_info): Likewise.
4260         (ipa_get_jf_pass_through_result): New function.
4261         (ipa_get_jf_ancestor_result): Likewise.
4262         (ipa_value_from_jfunc): Likewise.
4263         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
4264         * ipa-cp.c: Reimplemented.
4265         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
4266         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
4267         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
4268         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
4269         * doc/invoke.texi (devirt-type-list-size): Removed description.
4270         (ipa-cp-value-list-size): Added description.
4271
4272 2011-07-18  Richard Henderson  <rth@redhat.com>
4273
4274         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
4275         before calling create_basic_block.
4276
4277 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
4278
4279         PR middle-end/49675
4280         * tree.c (build_common_builtin_nodes): Register
4281         __builtin_return_address, __cyg_profile_func_enter
4282         and __cyg_profile_func_exit.
4283
4284 2011-07-18  Richard Henderson  <rth@redhat.com>
4285
4286         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
4287         (add_labels_and_missing_jumps): ... here.
4288         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
4289
4290 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
4291
4292         PR target/47744
4293         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4294         of DImode hard registers in PLUS address chains.
4295
4296 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4297
4298         PR bootstrap/49769
4299         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
4300         (alpha*-*-freebsd*): Likewise.
4301         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4302         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4303         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
4304         crtprec80.o, crtfastmath.o to extra_parts for all targets.
4305         (ia64*-*-elf*): Remove extra_parts.
4306         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
4307         (sparc64-*-linux*): Likewise.
4308         (sparc64-*-freebsd*): Likewise.
4309
4310         Revert:
4311         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
4312         (ia64*-*-linux*): Likewise.
4313         (mips64*-*-linux*): Likewise.
4314         (mips*-*-linux*): Likewise.
4315
4316 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
4317
4318         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
4319
4320 2011-07-18  Richard Guenther  <rguenther@suse.de>
4321
4322         * gimplify.c (gimplify_expr): Use input_location, not saved_location
4323         when building new trees.
4324
4325 2011-07-18  Richard Guenther  <rguenther@suse.de>
4326
4327         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
4328         expansion result to bitfield precision if required.
4329
4330 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4331
4332         * config.gcc (i[3456x]86-*-netware*): Remove.
4333
4334         * gthr-nks.h: Remove.
4335         * configure.ac (enable_threads): Remove nks.
4336         * configure: Regenerate.
4337
4338         * config/i386/i386.c (ix86_encode_section_info): Remove netware
4339         reference.
4340         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
4341         <netware.h> reference.
4342
4343         * config/i386/netware-libgcc.c,
4344         gcc/config/i386/netware-libgcc.def,
4345         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
4346         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
4347         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
4348         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
4349
4350         * doc/extend.texi (Function Attributes,
4351         callee_pop_aggregate_return): Remove i?86-netware reference.
4352         * doc/install.texi (Configuration, --enable-threads): Remove nks.
4353
4354 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4355
4356         PR target/49746
4357         Revert:
4358         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4359
4360         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
4361         patterns.
4362
4363 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
4364
4365         PR middle-end/49732
4366         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
4367
4368 2011-07-16  Matthias Klose  <doko@ubuntu.com>
4369
4370         * doc/install.texi: Document --enable-static-libjava.
4371
4372 2011-07-15  Richard Henderson  <rth@redhat.com>
4373
4374         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4375         Replace all three arguments by returning a VEC of edges.
4376         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
4377         pointers and counts.
4378         (fix_edges_for_rarely_executed_code): Merge ...
4379         (rest_of_handle_partition_blocks): ... into...
4380         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
4381         any work was performed.
4382         (pass_partition_blocks): Clear todo_flags_finish.
4383
4384 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
4385             Jakub Jelinek  <jakub@redhat.com>
4386             Jonathan Wakely  <jwakely.gcc@gmail.com>
4387
4388         PR libstdc++/49745
4389         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
4390         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
4391
4392 2011-07-15  Jason Merrill  <jason@redhat.com>
4393
4394         PR testsuite/49741
4395         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
4396         rather than --tool_opts.
4397
4398 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
4399
4400         * doc/plugins.texi (Building GCC plugins): gengtype needs its
4401         corresponding gtype.state.
4402
4403 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4404
4405         PR target/49723
4406         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
4407
4408 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
4409
4410         PR target/48220
4411         * doc/md.texi (Standard Names): Document window_save.
4412         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
4413         expand_debug_expr and expand_debug_source_expr.  If the target has
4414         a window_save instruction, adjust the ENTRY_VALUE_EXP.
4415         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
4416         SSA_NAME_VAR is a parameter.
4417         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
4418         * var-tracking.c (parm_reg_t): New type and associated vector type.
4419         (windowed_parm_regs): New variable.
4420         (adjust_insn): If the target has a window_save instruction and this
4421         is the instruction, make its effect on parameter registers explicit.
4422         (next_non_note_insn_var_location): New function.
4423         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
4424         (vt_add_function_parameter): If the target has a window_save insn,
4425         adjust the incoming RTL and record that in windowed_parm_regs.
4426         (vt_finalize): Free windowed_parm_regs.
4427
4428 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
4429
4430         * doc/invoke.texi (C6X Options): New section.
4431         * doc/md.texi (TI C6X family): New section.
4432         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
4433         tic6x-*-uclinux.
4434         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
4435         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
4436         Provide C6X definitions.
4437         * config/c6x/c6x.md: New file.
4438         * config/c6x/constraints.md: New file.
4439         * config/c6x/predicates.md: New file.
4440         * config/c6x/c6x-sched.md.in: New file.
4441         * config/c6x/c6x-sched.md: New file.
4442         * config/c6x/gensched.sh: New file.
4443         * config/c6x/c6x-mult.md.in: New file.
4444         * config/c6x/genmult.sh: New file.
4445         * config/c6x/c6x-mult.md: New file.
4446         * config/c6x/sync.md: New file.
4447         * config/c6x/c6x-protos.h: New file.
4448         * config/c6x/sfp-machine.h: New file.
4449         * config/c6x/c6x.c: New file.
4450         * config/c6x/c6x.h: New file.
4451         * config/c6x/crti.s: New file.
4452         * config/c6x/crtn.s: New file.
4453         * config/c6x/lib1funcs.asm: New file.
4454         * config/c6x/c6x-modes.def: New file.
4455         * config/c6x/genopt.sh: New file.
4456         * config/c6x/c6x.opt: New file.
4457         * config/c6x/c6x-tables.opt: New file.
4458         * config/c6x/c6x-opts.h: New file.
4459         * config/c6x/c6x-isas.def: New file.
4460         * config/c6x/elf.h: New file.
4461         * config/c6x/elf-common.h: New file.
4462         * config/c6x/uclinux-elf.h: New file.
4463         * config/c6x/t-c6x: New file.
4464         * config/c6x/t-c6x-elf: New file.
4465         * config/c6x/t-c6x-uclinux: New file.
4466         * config/c6x/t-c6x-softfp: New file.
4467         * config/c6x/gtd.c: New file.
4468         * config/c6x/gtf.c: New file.
4469         * config/c6x/ltd.c: New file.
4470         * config/c6x/ltf.c: New file.
4471         * config/c6x/ged.c: New file.
4472         * config/c6x/gef.c: New file.
4473         * config/c6x/led.c: New file.
4474         * config/c6x/lef.c: New file.
4475         * config/c6x/eqd.c: New file.
4476         * config/c6x/eqf.c: New file.
4477         * config/c6x/libgcc-c6xeabi.ver: New file.
4478
4479         Revert
4480         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4481         PR rtl-optimization/11320
4482         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4483         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4484         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4485         current_sched_info->compute_jump_reg_dependencies. Record which
4486         registers are used and which registers are set by the jump.
4487         Clear deps->reg_conditional_sets after a barrier.
4488         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4489         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4490         (init_deps): Initialize reg_conditional_sets.
4491         (free_deps): Clear reg_conditional_sets.
4492         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4493         Mark registers live on entry of the fallthrough block and conditionally
4494         set as set by the jump. Mark registers live on entry of non-fallthrough
4495         blocks as used by the jump.
4496         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4497         Mark new parameters as unused.
4498
4499 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
4500
4501         PR tree-opt/49309
4502         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
4503         Use fold_build2_loc instead of build2.
4504         Use the correct type for the new tree.
4505
4506 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4507
4508         PR rtl-optimization/11320
4509         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
4510         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
4511
4512 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
4513
4514         PR target/49487
4515         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
4516         of REG.
4517         (*rotw<mode>): Use const_int_operand for operand2.
4518         Use match_scatch for operand3.
4519         (*rotb<mode>): Ditto
4520         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
4521
4522 2011-07-14  Richard Guenther  <rguenther@suse.de>
4523
4524         PR tree-optimization/49651
4525         * tree-ssa-structalias.c (get_constraint_for_1): Properly
4526         handle dereferences with subvariables.
4527
4528 2011-07-14  Richard Guenther  <rguenther@suse.de>
4529
4530         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
4531         (fold_stmt_1): Do it here directly on gimple and as a first thing.
4532
4533 2011-07-14  Richard Guenther  <rguenther@suse.de>
4534
4535         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
4536         not bool_var when folding bool_var != 1 or bool_var == 0.
4537
4538 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4539
4540         * haifa-sched.c (schedule_insns): Remove outdated comment.
4541         (schedule_block): When computing a known value for TODO_SPEC,
4542         just set it rather than using logical operations.
4543         (try_ready): Likewise.  Use a local variable rather than a
4544         pointer to TODO_SPEC.  Reorder an if statement to move the
4545         easy case to the then block.
4546         * sched-deps.c (dep_spec_p): New static function.
4547         (update_dep): Use it to decide whether to call
4548         change_spec_dep_to_hard.
4549         (get_back_and_forw_lists): Use it.
4550         (sd_resolve_dep): Likewise.
4551         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
4552         (haifa_note_mem_dep): Likewise.
4553         (check_dep): Likewise.
4554         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
4555         (sched_free_deps): Free in two passes.
4556
4557 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
4558
4559         PR middle-end/49736
4560         * expr.c (all_zeros_p): Undo bogus part of last change.
4561
4562 2011-07-14  Matthias Klose <doko@ubuntu.com>
4563
4564         * doc/extend.texi (optimize attribute): Fix typo.
4565
4566 2011-07-14  Richard Guenther  <rguenther@suse.de>
4567
4568         * gimplify.c (gimplify_expr): Only do required conversions.
4569
4570 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
4571
4572         PR target/43746
4573         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
4574         i.e. use default_elf_select_section.
4575         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
4576         (READONLY_DATA_SECTION_ASM_OP): Remove.
4577         (TARGET_ASM_NAMED_SECTION): Move from here...
4578         * config/avr/avr.c: ...to here.
4579         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
4580         (avr_asm_named_section): Make static.
4581
4582 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4583
4584         PR bootstrap/49739
4585         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
4586         and crtfastmath.o for Linux/x86.
4587
4588 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4589
4590         * haifa-sched.c: Include "hashtab.h"
4591         (sched_no_dce): New global variable.
4592         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
4593         SHADOW_P): New macros.
4594         (last_clock_var, cycle_issued_insns): Move declarations.
4595         (must_backtrack): New static variable.
4596         (struct delay_pair): New structure.
4597         (delay_htab, delay_htab_i2): New static variables.
4598         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
4599         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
4600         functions.
4601         (dep_cost_1): If delay pairs exist, try to look up the insns and
4602         use the correct pair delay if we find them.
4603         (rank-for_schedule): Tweak priority for insns that must be scheduled
4604         soon to avoid backtracking.
4605         (queue_insn): Detect conditions which force backtracking.
4606         (ready_add): Likewise.
4607         (struct sched_block_state): Add member shadows_only_p.
4608         (struct haifa_save_data): New structure.
4609         (backtrack_queue): New static variable.
4610         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
4611         unschedule_insns_until, restore_last_backtrack_point,
4612         free_topmost_backtrack_point, free_backtrack_queue,
4613         estimate_insn_tick, estimate_shadow_tick): New functions.
4614         (prune_ready_list): New arg shadows_only_p.  All callers changed.
4615         If true, remove everything that isn't SHADOW_P.  Look up delay
4616         pairs and estimate ticks to avoid scheduling the first insn too early.
4617         (verify_shadows): New function.
4618         (schedule_block): Add machinery to enable backtracking.
4619         (sched_init): Take sched_no_dce into account when setting
4620         DF_LR_RUN_DCE.
4621         (free_delay_pairs): New function.
4622         (init_h_i_d): Initialize INSN_EXACT_TICK.
4623         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
4624         * sched-deps.c (sd_unresolve_dep): New function.
4625         * sched-int. (struct haifa_sched_info): New fields save_state
4626         and restore_state.
4627         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
4628         feeds_backtrack_insn and shadow_p.
4629         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
4630         (sched_no_dce): Declare variable.
4631         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
4632         sd_unresolve_dep): Declare functions.
4633         * modulo-sched.c (sms_sched_info): Clear the two new fields.
4634         * sched-rgn.c (rgn_const_sched_info): Likewise.
4635         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4636         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
4637         (ebb_sched_info): Add them for the two new fields.
4638         (add_deps_for_risky_insns): Call add_delay_dependencies.
4639
4640 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4641
4642         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
4643         Rename -mr11.
4644         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
4645         (rs6000_call_indirect_aix): Ditto.
4646         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
4647         (call_indirect_aix<ptrsize>_internal): Ditto.
4648         (call_indirect_aix<ptrsize>_nor11): Ditto.
4649         (call_indirect_aix<ptrsize>_internal2): Ditto.
4650         (call_value_indirect_aix<ptrsize>): Ditto.
4651         (call_value_indirect_aix<ptrsize>_internal): Ditto.
4652         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4653         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4654         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
4655
4656 2011-07-13  Jason Merrill  <jason@redhat.com>
4657
4658         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
4659
4660 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4661
4662         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
4663         * config/spu/spu.md ("clrsb<mode>2"): New expander.
4664
4665 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
4666
4667         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
4668         * configure: Regenerate.
4669
4670 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4671
4672         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
4673         (asm_file_start): Remove.
4674         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
4675         free_bb_for_insn around code that modifies insns before
4676         restarting df analysis.
4677
4678 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4679
4680         PR target/49541
4681         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
4682         (LINK_SPEC): ... here.
4683
4684 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
4685
4686         * haifa-sched.c (struct sched_block_state): New.
4687         (schedule_block): Move some local variables into such a structure.
4688
4689 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4690
4691         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
4692         * config/i386/t-crtpc: Remove.
4693         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4694         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
4695         tmake_file.
4696         (x86_64-*-darwin*): Likewise.
4697         (i[34567]86-*-linux*): Likewise.
4698         (x86_64-*-linux*): Likewise.
4699
4700         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
4701         Handle -mpc32, -mpc64, -mpc80.
4702
4703 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4704
4705         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
4706         * config/alpha/t-crtfm: Remove.
4707         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
4708         * config/i386/t-crtfm: Remove.
4709         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
4710         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
4711         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
4712         * config/sparc/t-crtfm: Remove.
4713
4714         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
4715         (alpha*-*-freebsd*): Likewise.
4716         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
4717         (x86_64-*-darwin*): Likewise.
4718         (i[34567]86-*-linux*): Likewise.
4719         (x86_64-*-linux*): Likewise.
4720         (x86_64-*-mingw*): Likewise.
4721         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
4722         (ia64*-*-freebsd*): Likewise.
4723         (ia64*-*-linux*): Likewise.
4724         (mips64*-*-linux*): Likewise.
4725         (mips*-*-linux*): Likewise.
4726         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
4727         (sparc64-*-linux*): Likewise.
4728         (sparc64-*-freebsd*): Likewise.
4729
4730 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4731
4732         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
4733         * config/darwin-crt3.c: Move to ../libgcc/config.
4734         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4735         ($(T)crt3$(objext)): Remove.
4736         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
4737         ($(T)crt2$(objext)): Remove.
4738         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
4739         (powerpc64-*-darwin*): Likewise.
4740
4741 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
4742
4743         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
4744
4745         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
4746         (addsi_1_zext): This.
4747
4748 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
4749
4750         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
4751         * doc/tm.texi: Regenerate.
4752         * target.def (mergeable_rodata_prefix): New defhookpod.
4753         * varasm.c (mergeable_string_section, mergeable_constant_section):
4754         Use it. Allocate name with alloca.
4755
4756 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
4757
4758         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
4759
4760 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
4761
4762         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
4763         overlap check.
4764
4765 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
4766
4767         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
4768         (count_type_elements): Delete.
4769         (complete_ctor_at_level_p): Declare.
4770         * expr.c (flexible_array_member_p): New function, split out from...
4771         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
4772         parameter with for_ctor_p.  When for_ctor_p is true, return the
4773         number of elements that should appear in the top-level constructor,
4774         otherwise return an estimate of the number of scalars.
4775         (categorize_ctor_elements): Replace p_must_clear with p_complete.
4776         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
4777         (complete_ctor_at_level_p): New function, borrowing union logic
4778         from old categorize_ctor_elements_1.
4779         (mostly_zeros_p): Return true if the constructor is not complete.
4780         (all_zeros_p): Update call to categorize_ctor_elements.
4781         * gimplify.c (gimplify_init_constructor): Update call to
4782         categorize_ctor_elements.  Don't call count_type_elements.
4783         Unconditionally prevent clearing for variable-sized types,
4784         otherwise rely on categorize_ctor_elements to detect
4785         incomplete initializers.
4786
4787 2011-07-13  Richard Guenther  <rguenther@suse.de>
4788
4789         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
4790         the final type is integral.
4791
4792 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
4793
4794         * sched-int.h (struct _dep): Add member cost.
4795         (DEP_COST, UNKNOWN_DEP_COST): New macros.
4796         * sched-deps.c (init_dep_1): Initialize DEP_COST.
4797         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
4798         (sched_change_pattern): Reset it for dependent insns.
4799
4800 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4801
4802         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
4803         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
4804         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
4805         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
4806         (CRT0_S, MCRT0_S): Remove.
4807         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
4808         Remove.
4809         (s-crt0): Remove.
4810         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
4811
4812 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
4813
4814         * cse.c (insert_with_costs): Put semi-colon after empty loop body
4815         on the next line.
4816         * emit-rtl.c (push_to_sequence): Likewise.
4817         * haifa-sched.c (max_issue): Likewise.
4818         * matrix-reorg.c (add_allocation_site): Likewise.
4819         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4820         * reload.c (alternative_allows_const_pool_ref): Likewise.
4821         * sched-rgn.c (rgn_add_block): Likewise.
4822         (rgn_fix_recovery_cfg): Likewise.
4823         * tree.c (attribute_list_contained): Likewise.
4824
4825 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
4826
4827         * config/i386/i386.c: Tidy processor feature bitmasks.
4828         (m_P4_NOCONA): New.
4829
4830 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
4831
4832         PR rtl-opt/49474
4833         * cprop.c (find_implicit_sets): Correct the condition.
4834
4835 2011-07-12  Richard Henderson  <rth@redhat.com>
4836
4837         PR target/49713
4838         * dwarf2out.h (dwarf_frame_regnum): Remove.
4839         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
4840         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
4841         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
4842         (execute_dwarf2_frame): Initialize them.
4843         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
4844         users of the macros with the variables.
4845         (expand_builtin_dwarf_sp_column): Revert last change.
4846         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
4847         result of DWARF_FRAME_REGNUM into a local variable.
4848
4849 2011-07-12  Richard Henderson  <rth@redhat.com>
4850
4851         PR target/49714
4852         * config/i386/i386.c (x86_output_mi_thunk): Use
4853         machopic_indirect_call_target instead of machopic_indirection_name
4854         directly.
4855
4856 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
4857             Eric Botcazou  <ebotcazou@adacore.com>
4858
4859         * prefix.h: Wrap up in extern "C" block.
4860
4861 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
4862
4863         AMD bdver2 Enablement
4864         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
4865         (case ${target}): Add bdver2.
4866         * config/i386/driver-i386.c (host_detect_local_cpu): Let
4867         -march=native recognize bdver2 processors.
4868         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4869         bdver2 def_and_undef
4870         * config/i386/i386.c (struct processor_costs bdver2_cost): New
4871         bdver2 cost table.
4872         (m_BDVER2): New definition.
4873         (m_AMD_MULTIPLE): Includes m_BDVER2.
4874         (initial_ix86_tune_features): Add bdver2 tuning.
4875         (processor_target_table): Add bdver2 entry.
4876         (static const char *const cpu_names): Add bdver2 entry.
4877         (ix86_option_override_internal): Add bdver2 instruction sets.
4878         (ix86_issue_rate): Add bdver2.
4879         (ix86_adjust_cost): Add bdver2.
4880         (has_dispatch): Add bdver2.
4881         * config/i386/i386.h (TARGET_BDVER2): New definition.
4882         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
4883         (enum processor_type): Add PROCESSOR_BDVER2.
4884         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
4885         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
4886         description.
4887
4888 2011-07-12  Richard Henderson  <rth@redhat.com>
4889
4890         PR target/49714
4891         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
4892         destination address in memory on some paths.
4893
4894 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
4895
4896         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
4897         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
4898         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
4899         * function.c (locate_and_pad_parm): Take it into account.
4900         * target.def (function_arg_round_boundary): New hook.
4901         * targhooks.c (default_function_arg_round_boundary): New function.
4902         * targhooks.h (default_function_arg_round_boundary): Declare.
4903         * doc/tm.texi: Regenerate.
4904
4905 2011-07-12  Richard Guenther  <rguenther@suse.de>
4906
4907         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
4908         Do not perform no-op changes.
4909
4910 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
4911
4912         * config/arm/predicates.md (neon_struct_operand): Make a normal
4913         predicate.
4914         (neon_struct_or_register_operand): New predicate.
4915         * config/arm/neon.md (movmisalign<mode>): Replace predicates
4916         with neon_struct_or_register_operand.
4917         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
4918         neon_struct_operand instead of memory_operand.
4919
4920 2011-07-12  Martin Jambor  <mjambor@suse.cz>
4921
4922         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
4923         * cgraph.c (cgraph_get_node_or_alias): Removed.
4924         (change_decl_assembler_name): Changed all calls to
4925         cgraph_get_node_or_alias to a call to cgraph_get_node.
4926         (cgraph_make_decl_local): Likewise.
4927         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
4928         * varasm.c (default_binds_local_p_1): Likewise.
4929         (decl_binds_to_current_def_p): Likewise.
4930
4931 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
4932
4933         PR tree-optimization/49712
4934         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
4935
4936 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
4937
4938         * genautomata.c (add_arc): Return void.  All callers changed.
4939         (make_automaton): Remove dead code.
4940
4941 2011-07-11  Richard Henderson  <rth@redhat.com>
4942
4943         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
4944         (DW_FRAME_POINTER_REGNUM): New.
4945         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
4946         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
4947         (dwf_regno): New.
4948         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
4949         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
4950         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
4951         Use it.
4952         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
4953         * dwarf2out.h (dwarf_frame_regnum): New.
4954         (struct cfa_loc): Document the domain of the reg member.
4955
4956 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
4957
4958         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
4959         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
4960
4961 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
4962
4963         PR debug/49676
4964         * dwarf2out.c (int_shift_loc_descriptor): New function.
4965         (int_loc_descriptor): If shorter, emit i as
4966         (i >> shift), shift, DW_OP_shl for suitable shift value.
4967         Similarly, try to optimize large negative values using
4968         DW_OP_neg of a positive value if shorter.
4969         (size_of_int_shift_loc_descriptor): New function.
4970         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
4971         changes.
4972         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
4973         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
4974         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
4975         is shorter.
4976         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
4977         addend as added DW_OP_plus if it is shorter.
4978
4979 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4980
4981         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
4982         (DTORS_SECTION_ASM_OP): Define.
4983
4984 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4985
4986         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
4987         * config/t-dfprules: Move to ../libgcc/config.
4988         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4989         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4990         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
4991         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
4992         Likewise.
4993         (i[34567]86-*-cygwin*): Likewise.
4994         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
4995         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
4996         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
4997         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
4998         D64PBIT_FUNCS, D128PBIT_FUNCS.
4999
5000 2011-07-11  Richard Guenther  <rguenther@suse.de>
5001
5002         * tree-vrp.c (simplify_conversion_using_ranges): Manually
5003         translate the source value-range through the conversion chain.
5004
5005 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
5006
5007         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5008
5009 2011-07-11  Arthur Loiret  <aloiret@debian.org>
5010
5011         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
5012         a bi-arch compiler defaulting to 31-bit. In this case:
5013         (tmake_file): Add s390/t-linux64.
5014         * doc/install.texi: Add s390-linux to the list of targets supporting
5015         --enable-targets=all.
5016
5017 2011-07-11  Arthur Loiret  <aloiret@debian.org>
5018             Matthias Klose <doko@debian.org>
5019
5020         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
5021         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
5022         (tm_file): Add mips/linux64.h.
5023         (tmake_file): Add mips/t-linux64.
5024         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5025         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
5026         instead of hardcoded mabi=n32.
5027         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5028         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5029         convention.
5030
5031 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5032
5033         * passes.c (init_optimization_passes): Add invariant motion pass
5034         after induction variable optimization.
5035
5036 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
5037
5038         PR target/39633
5039         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
5040         offsets 1..5 set cc0 in a usable way.
5041
5042 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
5043
5044         * tree.h (call_expr_arg): Remove.
5045         (call_expr_argp): Likewise.
5046
5047 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
5048
5049         * config/sparc/sparc.md (save_register_window_1): Rename to...
5050         (window_save): ...this.
5051         * config/sparc/sparc.c (emit_save_register_window): Rename to...
5052         (emit_window_save): ...this.
5053         (sparc_expand_prologue): Adjust to above renaming.
5054
5055 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
5056
5057         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
5058         of movabs for x32.
5059
5060 2011-07-10  Richard Henderson  <rth@redhat.com>
5061
5062         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
5063         run final, instead of emitting text directly.
5064
5065 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
5066
5067         * config/i386/i386.c (ix86_option_override_internal): Turn on
5068         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
5069         small PIC models for TARGET_X32.
5070
5071 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
5072
5073         PR target/49684
5074         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
5075         $(LIBGCC2_CFLAGS).
5076
5077         PR bootstrap/49680
5078         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
5079         stray notes and debug insns by using prev_nonnote_nondebug_insn
5080         instead of PREV_INSN.
5081
5082 2011-07-09  Richard Henderson  <rth@redhat.com>
5083
5084         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
5085         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
5086         * dwarf2out.c: ... here.
5087         (output_all_cfis): Remove.
5088         (dwarf2out_switch_text_section): Use output_cfis directly.
5089         (size_of_locs): Export.
5090         (output_loc_sequence, output_loc_sequence_raw): Export.
5091         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
5092         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
5093         output_cfa_loc_raw): Move to ...
5094         * dwarfcfi.c: ... here.
5095         * dwarf2out.h: Update decls.
5096
5097 2011-07-09  Richard Henderson  <rth@redhat.com>
5098
5099         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
5100         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
5101         * dwarf2cfi.c: ... here.
5102         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
5103         (DWARF_ROUND, DWARF_CIE_ID): Remove.
5104         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
5105         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
5106         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
5107
5108 2011-07-09  Richard Henderson  <rth@redhat.com>
5109
5110         * dwarf2cfi.c (cie_return_save): New.
5111         (queue_reg_save): Use compare_reg_or_pc.
5112         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
5113         (dwarf2out_frame_debug_expr): Likewise.
5114         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
5115         (initial_return_save): Likewise.
5116         (execute_dwarf2_frame): Save and restore initial return save from
5117         the cie to the fde.
5118         * config/mips/mips.c (mips_frame_set): Remove special case for
5119         DWARF_FRAME_RETURN_COLUMN.
5120
5121 2011-07-09  Richard Henderson  <rth@redhat.com>
5122
5123         * dwarf2cfi.c (lookup_cfa): Remove.
5124         (execute_dwarf2_frame): Assert queues are empty on entry.
5125         Setup initial cfa directly, not via lookup_cfa.
5126         Don't clear args_size state here.
5127
5128 2011-07-09  Richard Henderson  <rth@redhat.com>
5129
5130         * dwarf2cfi.c (add_cfi_vec): New.
5131         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
5132         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
5133         (execute_dwarf2_frame): Set add_cfi_vec.
5134
5135 2011-07-09  Richard Henderson  <rth@redhat.com>
5136
5137         * defaults.h (ASM_COMMENT_START): Move here...
5138         * dwarf2asm.c: ... from here.
5139         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
5140         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
5141         * varasm.c: Likewise.
5142
5143 2011-07-09  Richard Henderson  <rth@redhat.com>
5144
5145         PR debug/49686
5146         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
5147         (create_cfi_notes): ... do it here instead.
5148
5149 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
5150
5151         PR debug/49676
5152         * dwarf2out.c (size_of_int_loc_descriptor): New function.
5153         (address_of_int_loc_descriptor): Use it.
5154         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5155
5156 2011-07-09  Richard Henderson  <rth@redhat.com>
5157
5158         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
5159         (prologue, epilogue): New.
5160         (return, *rts): New.
5161         (blockage, setd, seti): New.
5162         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5163         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
5164         (pdp11_saved_regno): New.
5165         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
5166         generate rtl instead of text.
5167         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
5168         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
5169         * config/pdp11/pdp11-protos.h: Update.
5170
5171 2011-07-09  Richard Henderson  <rth@redhat.com>
5172
5173         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5174         try to insert an rtl prologue here.
5175         (rs6000_output_function_epilogue): Similarly.
5176         * config/rs6000/rs6000.md (prologue): Emit a barrier to
5177         satisfy !TARGET_SCHED_PROLOG.
5178         (epilogue, sibcall_epilogue): Likewise.
5179
5180 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
5181
5182         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
5183         (FP_REG_P): Delete.
5184         (IN_OR_GLOBAL_P): Likewise.
5185
5186 2011-07-08  Jason Merrill  <jason@redhat.com>
5187
5188         PR c++/45437
5189         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
5190         compound assignment.
5191
5192         * cgraph.c (cgraph_add_to_same_comdat_group): New.
5193         * cgraph.h: Declare it.
5194         * ipa.c (function_and_variable_visibility): Make sure thunks
5195         have the right visibility.
5196
5197 2011-07-08  Richard Henderson  <rth@redhat.com>
5198
5199         PR bootstrap/49680
5200         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
5201         any tablejump vector.
5202
5203         PR bootstrap/49680
5204         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
5205         end of the prologue.
5206
5207 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
5208
5209         PR target/49621
5210         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
5211         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
5212         * config/rs6000/vector.md (vector_select_<mode>,
5213         vector_select_<mode>_uns): Change second operand of NE to
5214         CONST0_RTX (<MODE>mode) instead of const0_rtx.
5215         * config/rs6000/altivec.md (*altivec_vsel<mode>,
5216         *altivec_vsel<mode>_uns): Expect second operand of NE to be
5217         zero_constant of the corresponding vector mode.
5218         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
5219         Likewise.
5220
5221 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5222
5223         * graphite-dependences.c (build_alias_set_powerset): Remove
5224         continue from loop, add one more assert.
5225
5226 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
5227
5228         PR target/46779
5229         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5230         In particular, allow 8-bit values in r28 and r29.
5231         (avr_hard_regno_scratch_ok): Disallow any register that might be
5232         part of the frame pointer.
5233         (avr_hard_regno_rename_ok): Same.
5234         (avr_legitimate_address_p): Don't allow SUBREGs.
5235
5236 2011-07-08  Julian Brown  <julian@codesourcery.com>
5237
5238         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
5239         big-endian mode.
5240         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
5241         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
5242         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
5243         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
5244         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
5245         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
5246         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
5247         registers in big-endian mode.
5248
5249 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
5250
5251         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
5252         in terms of another.
5253         (write_attr_value): Write a cast if necessary.
5254
5255         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
5256         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
5257         (REG_WORDS_BIG_ENDIAN): Document.
5258         * doc/tm.texi: Regenerate.
5259         * reload.c (operands_match_p): Take it into account.
5260         (reload_adjust_reg_for_mode): Likewise.
5261         * rtlanal.c (subreg_get_info): Likewise.
5262
5263 2011-07-08  Richard Guenther  <rguenther@suse.de>
5264
5265         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
5266         folding.
5267
5268 2011-07-08  Kai Tietz  <ktietz@redhat.com>
5269
5270         * fold-const.c (fold_truth_andor): Factored out truth_andor
5271         label from fold_binary as function.
5272         (fold_binary_loc): Replace truth_andor lable
5273         by function fold_truth_andor.
5274
5275 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
5276
5277         PR middle-end/49519
5278         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5279         check if address is stored in register. If so - give up.
5280         (check_sibcall_argument_overlap_1): Do not perform check of
5281         overlapping when it is call to address.
5282
5283 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
5284
5285         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
5286         of magic '31'.
5287
5288 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
5289
5290         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
5291         GET_MODE_BITSIZE where appropriate.
5292         (widen_leading, expand_parity, expand_ctz, expand_ffs,
5293         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
5294         expand_float, expand_fix): Likewise.
5295         * expr.c (convert_move, convert_modes, expand_expr_real_2,
5296         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5297         * stor-layout.c (get_mode_bounds): Likewise.
5298         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
5299         Likewise.
5300         * convert.c (convert_to_integer): Likewise.
5301         * expmed.c (expand_shift_1): Likewise.
5302
5303         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
5304         a bitsize.
5305
5306         * optabs.c (expand_binop): Tighten conditions for doubleword
5307         expansions.
5308         (widen_bswap): Assert that mode bitsize and precision are the same.
5309         * stor-layout.c (get_best_mode): Skip modes that have lower
5310         precision than bitsize.
5311         * recog.c (simplify_while_replacing): Assert that bitsize and
5312         precision are the same.
5313
5314 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5315
5316         * Makefile.in (LIBGCOV): Remove.
5317         (libgcc.mvars): Remove LIBGCOV.
5318         * libgov.c: Move to ../libgcc.
5319
5320 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5321
5322         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
5323
5324 2011-07-08  Martin Jambor  <mjambor@suse.cz>
5325
5326         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
5327         is too big for total scalarization.
5328
5329 2011-07-07  Richard Henderson  <rth@redhat.com>
5330
5331         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
5332         (DBX_DEBUGGING_INFO): Undef.
5333
5334 2011-07-07  Richard Henderson  <rth@redhat.com>
5335
5336         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
5337         Handle some opcodes specially for debugging.
5338         * print-rtl.c: Include dwarf2out.h
5339         (print_rtx): Handle NOTE_INSN_CFI.
5340         * Makefile.in (print-rtl.o): Update.
5341
5342 2011-07-07  Richard Henderson  <rth@redhat.com>
5343
5344         * tree-pass.h (pass_dwarf2_frame): Declare.
5345         * passes.c (init_optimization_passes): Add it.
5346         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
5347         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
5348         make static, do not call add_cfis_to_fde.
5349         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
5350         dwarf2out_frame_init): Merge into...
5351         (execute_dwarf2_frame): ... here.  New function.
5352         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
5353         saved_do_cfi_asm to a tri-state variable.
5354         (gate_dwarf2_frame, pass_dwarf2_frame): New.
5355         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
5356         if it has yet to be done.  Don't call dwarf2cfi_function_init.
5357         * dwarf2out.h, debug.h: Update decls.
5358         * final.c (final_start_function): Don't call
5359         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
5360         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
5361         * toplev.c (lang_dependent_init): Likewise.
5362
5363 2011-07-07  Richard Henderson  <rth@redhat.com>
5364
5365         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
5366         FDE_TABLE_INCREMENT): Replace with...
5367         (fde_vec): ... this, a new vector.
5368         (current_fde): Remove.  Replace all users with cfun->fde.
5369         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
5370         (size_of_aranges, dwarf2out_finish): Likewise.
5371         (dwarf2out_alloc_current_fde): Break out from ...
5372         (dwarf2out_begin_prologue): ... here.
5373         (dwarf2out_frame_init): Remove.
5374         * dwarf2cfi.c: Update all users of current_fde.
5375         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
5376         * dwarf2out.h: Update decls.
5377         (dw_fde_node): Add fde_index member.
5378         * function.h (struct function): Add fde member.
5379
5380 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5381             Richard Henderson  <rth@redhat.com>
5382
5383         * dwarf2cfi.c (add_cfi): Remove.
5384         (dwarf2out_cfi_label): Remove force argument.  Only generate the
5385         label name.
5386         (add_fde_cfi): Simplify the different code paths.
5387         (add_cie_cfi): New.
5388         (old_cfa, old_cfa_remember): New.
5389         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
5390         (last_reg_save_label): Remove.
5391         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
5392         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5393         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5394         dwarf2out_frame_debug_cfa_expression,
5395         dwarf2out_frame_debug_cfa_restore,
5396         dwarf2out_frame_debug_cfa_window_save,
5397         dwarf2out_frame_debug_expr): Remove label parameter.
5398         (cfi_label_required_p, add_cfis_to_fde): New.
5399         (dwarf2out_frame_debug_after_prologue): New.
5400         (dwarf2cfi_frame_init): Initialize old_cfa.
5401         (dwarf2out_frame_debug_restore_state): Likewise.
5402         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
5403         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
5404         * final.c (final_start_function): Call
5405         dwarf2out_frame_debug_after_prologue.
5406
5407 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5408             Richard Henderson  <rth@redhat.com>
5409
5410         * dwarf2cfi.c (cfi_insn): New.
5411         (dwarf2out_cfi_label): Don't emit cfi label here.
5412         (add_fde_cfi): Create a NOTE_INSN_CFI.
5413         (dwarf2out_frame_debug): Setup cfi_insn.
5414         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
5415         (dwarf2out_cfi_begin_epilogue): Make static.
5416         (dwarf2out_frame_debug_restore_state): Make static.
5417         * dwarf2out.c (output_cfi_directive): Make static.
5418         (dwarf2out_emit_cfi): New.
5419         * dwarf2out.h: Update.
5420         * final.c (final): Remove CFI notes.
5421         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
5422         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
5423         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
5424         * insn-notes.def (NOTE_INSN_CFI): New.
5425         (NOTE_INSN_CFI_LABEL): New.
5426         * rtl.h (union rtunion_def): Add rt_cfi member.
5427         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
5428
5429 2011-07-07  Richard Henderson  <rth@redhat.com>
5430
5431         * dwarf2cfi.c: New file.
5432         * Makefile.in (OBJS): Add it.
5433         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
5434         * gengtype.c (open_base_files): Include dwarf2out.h.
5435         * coretypes.h (enum var_init_status): Move from ...
5436         * rtl.h: ... here.
5437         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
5438         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
5439         expand_builtin_dwarf_sp_column, init_return_column_size,
5440         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
5441         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
5442         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
5443         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
5444         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
5445         compute_barrier_args_size, dwarf2out_args_size,
5446         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
5447         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
5448         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
5449         queue_reg_save, dwarf2out_flush_queued_reg_saves,
5450         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
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, dwarf2out_frame_debug_expr,
5456         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
5457         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
5458         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
5459         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
5460         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
5461         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
5462         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
5463         dw_loc_descr_node): Move to dwarf2out.h.
5464         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
5465         mem_loc_descriptor): Export.
5466         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
5467         (dwarf2out_frame_init): Extract CIE generation code to
5468         dwarf2cfi_frame_init.
5469
5470 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
5471
5472         PR target/49660
5473         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
5474         MASK_V8PLUS, remove commented out flag and reorder.
5475
5476 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
5477
5478         PR c/49644
5479         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
5480         one non-complex and one complex argument, call c_save_expr on both
5481         operands.
5482
5483 2011-07-07  Martin Jambor  <mjambor@suse.cz>
5484
5485         PR middle-end/49495
5486         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
5487         (verify_cgraph_node): Some functinality moved to
5488         verify_edge_corresponds_to_fndecl, call it.
5489
5490 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
5491
5492         * config.gcc (*local*): Remove.
5493         * doc/install-old.texi: Don't mention local configurations.
5494
5495 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
5496
5497         PR debug/49522
5498         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
5499         referencing debug insns that have been reset.
5500         (dead_debug_insert_before): Don't assert reg is non-NULL,
5501         instead return immediately if it is NULL.
5502
5503 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
5504
5505         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
5506
5507 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5508
5509         * hw-doloop.c: New file.
5510         * hw-doloop.h: New file.
5511         * Makefile.in (OBJS): Add hw-doloop.o.
5512         (hw-doloop.o): New rule.
5513         ($(obj_out_file)): Add hw-doloop.h dependency.
5514         * config/bfin/bfin.c: Include "hw-doloop.h".
5515         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
5516         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
5517         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
5518         type changed to hwloop_info.  Return bool, true if the loop was
5519         successfully optimized.  Remove code that was moved to
5520         hw-doloop.c, and adjust other parts.
5521         (hwloop_fail): New static function, containing parts that used
5522         to be in bfin_optimize_loop.
5523         (bfin_discover_loop, bfin_discover_loops, free_loops,
5524         bfin_reorder_loops): Remove.
5525         (hwloop_pattern_reg): New static function.
5526         (bfin_doloop_hooks): New variable.
5527         (bfin_reorg_loops): Remove most code, call reorg_loops.
5528         * config/bfin/bfin.md (doloop_end splitter): Also enable if
5529         loop counter is a memory_operand.
5530
5531 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5532
5533         * config.gcc: Support --with-multilib-list for x86 Linux targets.
5534
5535         * configure.ac: Mention x86-64 for --with-multilib-list.
5536         * configure: Regenerated.
5537
5538         * config/i386/gnu-user64.h (SPEC_64): Support x32.
5539         (SPEC_32): Likewise.
5540         (ASM_SPEC): Likewise.
5541         (LINK_SPEC): Likewise.
5542         (TARGET_THREAD_SSP_OFFSET): Likewise.
5543         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
5544         (SPEC_X32): New.
5545
5546         * config/i386/i386.h (TARGET_X32): New.
5547         (TARGET_LP64): New.
5548         (LONG_TYPE_SIZE): Likewise.
5549         (POINTER_SIZE): Likewise.
5550         (POINTERS_EXTEND_UNSIGNED): Likewise.
5551         (OPT_ARCH64): Support x32.
5552         (OPT_ARCH32): Likewise.
5553
5554         * config/i386/i386.opt (mx32): New.
5555
5556         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
5557         (GLIBC_DYNAMIC_LINKERX32): Likewise.
5558         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
5559         (GLIBC_DYNAMIC_LINKERX32): Likewise.
5560
5561         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
5562         (BIONIC_DYNAMIC_LINKERX32): Likewise.
5563         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
5564
5565         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
5566
5567         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
5568
5569         * doc/invoke.texi: Document -mx32.
5570
5571 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
5572
5573         * doc/invoke.texi (mwords-little-endian): Deprecate.
5574         * config/arm/arm.opt (mwords-little-endian): Likewise.
5575         * config/arm/arm.c (arm_option_override): Warn about the deprecation
5576         of -mwords-little-endian.
5577
5578 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
5579
5580         * reload1.c (choose_reload_regs): Use mode sizes to check whether
5581         an old reload register completely defines the required value.
5582
5583 2011-07-07  Richard Guenther  <rguenther@suse.de>
5584
5585         * fold-const.c (fold_unary_loc): Do not strip sign-changes
5586         for NEGATE_EXPR.
5587
5588 2011-07-07  Richard Guenther  <rguenther@suse.de>
5589
5590         * tree-vrp.c (simplify_conversion_using_ranges): New function.
5591         (simplify_stmt_using_ranges): Call it.
5592
5593 2011-07-07  Kai Tietz  <ktietz@redhat.com>
5594
5595         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
5596         (lookup_logical_inverted_value): Likewise.
5597         (simplify_bitwise_binary_1): Likewise.
5598         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
5599
5600 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
5601
5602         * gcc.c (%[Spec]): Don't document.
5603         (struct spec_list): Update comment.
5604         (do_spec_1): Don't handle %[Spec].
5605         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
5606
5607 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
5608
5609         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
5610         default based on TARGET_ASM_NAMED_SECTION.
5611         * common/common-target.def (have_named_sections): Default to true.
5612         * common/config/default-common.c: Don't include tm.h.
5613         * common/config/picochip/picochip-common.c
5614         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
5615         * common/config/m32c/m32c-common.c: Remove.
5616         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
5617         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5618         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5619         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5620         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5621         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5622         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5623
5624 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
5625
5626         PR middle-end/49640
5627         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
5628         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
5629
5630 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5631
5632         PR libmudflap/49550
5633         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
5634
5635 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5636
5637         PR target/39150
5638         * configure.ac (gcc_cv_as_hidden): Also accept
5639         x86_64-*-solaris2.1[0-9]*.
5640         (gcc_cv_as_cfi_directive): Likewise.
5641         (gcc_cv_as_comdat_group_group): Likewise.
5642         (set_have_as_tls): Likewise.
5643         * configure: Regenerate.
5644         * config.gcc (i[34567]86-*-solaris2*): Also handle
5645         x86_64-*-solaris2.1[0-9]*.
5646         * config.host (i[34567]86-*-solaris2*): Likewise.
5647         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
5648         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
5649         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
5650         (TARGET_LD_EMULATION): Use it.
5651         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
5652         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
5653         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
5654         (ASM_CPU64_DEFAULT_SPEC): Define.
5655         (ASM_CPU_SPEC): Use %(asm_cpu_default).
5656         (ASM_SPEC): Redefine.
5657         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
5658         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
5659         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
5660         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
5661         configuration.
5662         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
5663
5664 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5665
5666         * config/sol2.h (ASM_SPEC): Split into ...
5667         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
5668         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
5669         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
5670         (ASM_SPEC): Use ASM_SPEC_BASE.
5671         * config/sparc/sol2.h (ASM_SPEC): Redefine.
5672
5673 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
5674
5675         * config/avr/avr.md (*reload_insi): Change predicate #1 to
5676         const_int_operand.  Ditto for peep2 producing this insn.
5677         Add argument to output_reload_insisf call.
5678         (*movsi,*movsf): Add argument to output_movsisf call.
5679         (*reload_insf): New insn and new peep2 to produce it.
5680         * config/avr/avr-protos.h (output_movsisf): Change prototype.
5681         (output_reload_insisf): Change prototype.
5682         * config/avr/avr.c (avr_asm_len): New function.
5683         (output_reload_insisf): Rewrite.
5684         (output_movsisf): Change prototype.  output_reload_insisf for
5685         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
5686         (adjust_insn_length): Add argument to output_movsisf and
5687         output_reload_insisf call.
5688
5689 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5690
5691         * emit-rtl.c (paradoxical_subreg_p): New function.
5692         * rtl.h (paradoxical_subreg_p): Declare.
5693         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
5694         apply_distributive_law, simplify_comparison, simplify_set): Use it.
5695         * cse.c (record_jump_cond, cse_insn): Likewise.
5696         * expr.c (force_operand): Likewise.
5697         * rtlanal.c (num_sign_bit_copies1): Likewise.
5698         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
5699         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
5700         (push_reload): Use precision to check for paradoxical subregs.
5701         * expmed.c (extract_bit_field_1): Likewise.
5702
5703         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
5704         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
5705         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
5706         simplify_set, simplify_logical, expand_compound_operation,
5707         make_extraction, force_to_mode, if_then_else_cond, extended_count,
5708         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
5709         record_value_for_reg): Likewise.
5710         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
5711         * simplify-rtx. c (simplify_unary_operation_1,
5712         simplify_binary_operation_1, simplify_const_relational_operation):
5713         Likewise.
5714
5715         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
5716         instead of GET_MODE_BITSIZE where appropriate.
5717         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
5718         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
5719         init_num_sign_bit_copies_in_rep): Likewise.
5720         * cse.c (fold_rtx, cse_insn): Likewise.
5721         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
5722         * simplify-rtx.c (simplify_unary_operation_1,
5723         simplify_const_unary_operation, simplify_binary_operation_1,
5724         simplify_const_binary_operation, simplify_ternary_operation,
5725         simplify_const_relational_operation, simplify_subreg): Likewise.
5726         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
5727         simplify_if_then_else, simplify_set, expand_compound_operation,
5728         expand_field_assignment, make_extraction, if_then_else_cond,
5729         make_compound_operation, force_to_mode, make_field_assignment,
5730         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
5731         extended_count, try_widen_shift_mode, simplify_shift_const_1,
5732         simplify_comparison, record_promoted_value, simplify_compare_const,
5733         record_dead_and_set_regs_1): Likewise.
5734
5735         Revert:
5736         * simplify-rtx.c (simplify_const_binary_operation): Use the
5737         shift_truncation_mask hook instead of performing modulo by width.
5738         Compare against mode precision, not bitsize.
5739         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
5740         Use shift_truncation_mask instead of constructing the value manually.
5741
5742 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5743
5744         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
5745         declaration.
5746         (rs6000_save_toc_in_prologue_p): Ditto.
5747
5748         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
5749         up the static chain (r11) during indirect function calls.
5750         (-msave-toc-indirect): New undocumented debug switch.
5751
5752         * config/rs6000/rs6000.c (struct machine_function): Add
5753         save_toc_in_prologue field to note whether the prologue needs to
5754         save the TOC value in the reserved stack location.
5755         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
5756         to save the TOC in the prologue, do so.
5757         (rs6000_trampoline_init): Don't allow creating AIX style
5758         trampolines if -mno-r11 is in effect.
5759         (rs6000_call_indirect_aix): New function to create AIX style
5760         indirect calls, adding support for -mno-r11 to suppress loading
5761         the static chain, and saving the TOC in the prologue instead of
5762         the call body.
5763         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
5764         TOC in the prologue.
5765
5766         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
5767         register numbers.
5768         (TOC_REGNUM): Ditto.
5769         (STATIC_CHAIN_REGNUM): Ditto.
5770         (ARG_POINTER_REGNUM): Ditto.
5771         (SFP_REGNO): Delete, unused.
5772         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
5773         function descriptor offsets.
5774         (TOC_SAVE_OFFSET_64BIT): Ditto.
5775         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
5776         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
5777         (AIX_FUNC_DESC_SC_32BIT): Ditto.
5778         (AIX_FUNC_DESC_SC_64BIT): Ditto.
5779         (ptrload): New mode attribute for the appropriate load of a pointer.
5780         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
5781         (call_indirect_aix64): Ditto.
5782         (call_value_indirect_aix32): Ditto.
5783         (call_value_indirect_aix64): Ditto.
5784         (call_indirect_nonlocal_aix32_internal): Ditto.
5785         (call_indirect_nonlocal_aix32): Ditto.
5786         (call_indirect_nonlocal_aix64_internal): Ditto.
5787         (call_indirect_nonlocal_aix64): Ditto.
5788         (call): Rewrite AIX indirect function calls.  Add support for
5789         eliminating the static chain, and for moving the save of the TOC
5790         to the function prologue.
5791         (call_value): Ditto.
5792         (call_indirect_aix<ptrsize>): Ditto.
5793         (call_indirect_aix<ptrsize>_internal): Ditto.
5794         (call_indirect_aix<ptrsize>_internal2): Ditto.
5795         (call_indirect_aix<ptrsize>_nor11): Ditto.
5796         (call_value_indirect_aix<ptrsize>): Ditto.
5797         (call_value_indirect_aix<ptrsize>_internal): Ditto.
5798         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5799         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5800         (call_nonlocal_aix32): Relocate in the rs6000.md file.
5801         (call_nonlocal_aix64): Ditto.
5802
5803         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
5804         -mno-r11 documentation.
5805
5806 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5807
5808         PR other/49658
5809         * doc/extend.texi (Compound Literals): Fix typo.
5810
5811 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
5812
5813         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
5814
5815 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
5816
5817         * configure.ac (plugin-version.h): Generate
5818         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
5819         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
5820         macros.
5821
5822         * configure: Regenerate.
5823
5824         * doc/plugins.texi (Building GCC plugins): Mention
5825         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
5826
5827 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5828
5829         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
5830         * combine.c (make_extraction, gen_lowpart_or_truncate,
5831         apply_distributive_law, simplify_comparison,
5832         reg_truncated_to_mode, record_truncated_value): Use it.
5833         * cse.c (notreg_cost): Likewise.
5834         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
5835         * expr.c (convert_move, convert_modes): Likewise.
5836         * optabs.c (expand_binop, expand_unop): Likewise.
5837         * postreload.c (move2add_last_label): Likewise.
5838         * regmove.c (optimize_reg_copy_3): Likewise.
5839         * rtlhooks.c (gen_lowpart_general): Likewise.
5840         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5841
5842 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
5843
5844         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
5845
5846 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5847
5848         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
5849         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
5850         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
5851         (simplify_const_unary_operation, simplify_binary_operation_1,
5852         simplify_const_binary_operation, simplify_const_relational_operation):
5853         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
5854         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
5855         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
5856         simplify_shift_const_1, simplify_comparison): Likewise.
5857         * expr.c (convert_modes): Likewise.
5858         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
5859         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
5860         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
5861
5862         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
5863
5864 2011-07-06  Richard Guenther  <rguenther@suse.de>
5865
5866         PR tree-optimization/49645
5867         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
5868         register variables.
5869         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
5870         in type qualification here ...
5871         (copy_reference_ops_from_ref): ... not here.
5872         (vn_reference_lookup_3): ... or here.
5873         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
5874         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
5875
5876 2011-07-06  Ian Lance Taylor  <iant@google.com>
5877
5878         * doc/install.texi (Configuration): It's
5879         --enable-gnu-indirect-function, not --enable-indirect-function.
5880
5881 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5882
5883         * simplify-rtx.c (simplify_const_binary_operation): Use the
5884         shift_truncation_mask hook instead of performing modulo by width.
5885         Compare against mode precision, not bitsize.
5886         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
5887         Use shift_truncation_mask instead of constructing the value manually.
5888
5889 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5890
5891         PR middle-end/47383
5892         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
5893         address computation and convert to address_mode if needed.
5894
5895 2011-07-06  Richard Guenther  <rguenther@suse.de>
5896
5897         * tree.c (build_common_tree_nodes_2): Merge with
5898         build_common_tree_nodes.
5899         * tree.h (build_common_tree_nodes): Adjust prototype.
5900         (build_common_tree_nodes_2): Remove.
5901         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
5902         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
5903
5904 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
5905
5906         PR tree-optimization/49618
5907         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
5908         t recurse on the decl.
5909         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
5910         return true if expr isn't known to be defined in current
5911         TU or some other LTO partition.
5912
5913 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
5914
5915         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
5916         override CASE_VALUES_THRESHOLD.
5917
5918         * stmt.c (toplevel): Include params.h.
5919         (case_values_threshold): Use the --param case-values-threshold
5920         value if non-zero, otherwise use machine dependent value.
5921         (expand_case): Use case_values_threshold.
5922
5923         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
5924
5925         * doc/invoke.texi (--param case-values-threshold): Document.
5926
5927 2011-07-05  Richard Henderson  <rth@redhat.com>
5928
5929         * dwarf2out.c (dwarf2out_cfi_label): Make static.
5930         (dwarf2out_flush_queued_reg_saves): Make static.
5931         (dwarf2out_reg_save): Remove.
5932         (dwarf2out_return_save): Remove.
5933         (dwarf2out_return_reg): Remove.
5934         (dwarf2out_reg_save_reg): Remove.
5935         (dwarf2out_def_cfa): Merge into ...
5936         (dwarf2out_frame_init): ... here.
5937         * dwarf2out.h, tree.h: Remove declarations as necessary.
5938
5939 2011-07-05  Richard Henderson  <rth@redhat.com>
5940
5941         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
5942         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5943         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
5944         the alloc insn.
5945
5946         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
5947         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
5948         (process_epilogue): Don't call dwarf2out_def_cfa.
5949
5950         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
5951         indicate the return address save.
5952         (process_cfa_register): Likewise.
5953
5954         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
5955         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
5956
5957         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
5958         for ar.pfs save at alloc insn.
5959
5960 2011-07-05  Richard Henderson  <rth@redhat.com>
5961
5962         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
5963         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5964         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
5965         stack pointer save.
5966         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
5967         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
5968         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
5969         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
5970
5971 2011-07-05  Richard Henderson  <rth@redhat.com>
5972
5973         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
5974         VUNSPEC_* constants here instead of via define_constants.
5975         (VUNSPEC_PEM): New constant.
5976         (procedure_entry_mask): New insn.
5977         (prologue): New expander.
5978         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
5979         (vax_expand_prologue): Rename from vax_output_function_prologue;
5980         emit rtl instead of text.
5981         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5982         (print_operand): Add 'x' prefix.
5983
5984 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5985
5986         PR middle-end/47715
5987         * calls.c (precompute_register_parameters): Promote the function
5988         argument before checking non-legitimate constant.
5989
5990 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
5991
5992         PR tree-optimization/47654
5993         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
5994         (lst_do_strip_mine_loop): Return an int.
5995         (lst_do_strip_mine): Same.
5996         (scop_do_strip_mine): Same.
5997         (scop_do_block): Loop blocking should strip-mine at least two loops.
5998         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
5999         (scop_do_interchange): Same.
6000         * graphite-poly.h (scop_do_interchange): Update declaration.
6001         (scop_do_strip_mine): Same.
6002
6003 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
6004
6005         * graphite-clast-to-gimple.c (precision_for_value): Removed.
6006         (precision_for_interval): Removed.
6007         (gcc_type_for_interval): Use mpz_sizeinbase.
6008
6009 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
6010
6011         * graphite-ppl.h (value_max): Correct computation of max.
6012
6013 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
6014
6015         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
6016
6017 2011-07-05  Richard Guenther  <rguenther@suse.de>
6018
6019         * c-decl.c (c_init_decl_processing): Defer building common
6020         tree nodes to c_common_nodes_and_builtins.
6021
6022 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
6023
6024         PR tree-optimization/49580
6025         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
6026         the loop's number of iterations.
6027         * tree-parloops.c (transform_to_exit_first_loop): Add the
6028         handling of the loop's number of iterations before the call
6029         to gimple_duplicate_sese_tail.
6030         Insert the stmt caclculating the new rhs of the loop's
6031         condition stmt to the preheader instead of iters_bb.
6032
6033 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6034
6035         PR rtl-optimization/47449
6036         * fwprop.c (forward_propagate_subreg): Don't propagate hard
6037         register nor zero/sign extended hard register.
6038
6039 2011-07-05  Richard Guenther  <rguenther@suse.de>
6040
6041         PR tree-optimization/49518
6042         PR tree-optimization/49628
6043         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6044         irrelevant and invariant data-references.
6045         (vect_analyze_data_ref_access): For invariant loads clear the
6046         group association.
6047
6048 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
6049
6050         PR rtl-optimization/49619
6051         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
6052         pass VOIDmode as op0_mode to recursive call, and return temp even
6053         when different from tor, just if it is not IOR of the original
6054         PLUS arguments.
6055
6056         PR rtl-optimization/49472
6057         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
6058         negating MULT, negate the second operand instead of first.
6059         (simplify_binary_operation_1) <case MULT>: If one operand is
6060         a NEG and the other is MULT, don't attempt to optimize by negation
6061         of the MULT operand if it only moves the NEG operation around.
6062
6063         PR debug/49602
6064         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
6065         get_current_def return value if it can't be trusted to be
6066         the current value of the variable in the current bb.
6067
6068 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
6069
6070         PR target/49600
6071         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
6072         general register to memory for !TARGET_INTER_UNIT_MOVES.
6073
6074 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
6075
6076         PR target/44643
6077         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
6078         instead of TREE_READONLY.
6079
6080 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
6081
6082         * doc/extend.texi (AVR Built-in Functions): Update documentation
6083         of __builtin_avr_fmul*.
6084         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
6085         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
6086         * config/avr/avr.md (fmul): Rename to fmul_insn.
6087         (fmuls): Rename to fmuls_insn.
6088         (fmulsu): Rename to fmulsu_insn.
6089         (fmul,fmuls,fmulsu): New expander.
6090         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
6091         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
6092         * config/avr/libgcc.S (__fmul): New function.
6093         (__fmuls): New function.
6094         (__fmulsu,__fmulsu_exit): New function.
6095
6096 2011-07-04  Richard Guenther  <rguenther@suse.de>
6097
6098         PR tree-optimization/49615
6099         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
6100         basic-block index check.
6101
6102 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
6103
6104         * longlong.h (count_leading_zeros, count_trailing_zeros,
6105         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
6106         resp. 64.
6107
6108 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
6109
6110         PR tree-optimization/49610
6111         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
6112         a basic block.
6113
6114 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6115             Olivier Hainque  <hainque@adacore.com>
6116             Nicolas Setton  <setton@adacore.com>
6117
6118         * tree.h (TYPE_ARTIFICIAL): New flag.
6119         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
6120         the DIE of the type if it is artificial.
6121         (gen_array_type_die): Likewise.
6122         (gen_enumeration_type_die): Likewise.
6123         (gen_struct_or_union_type_die): Likewise.
6124         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
6125         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
6126
6127 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
6128
6129         * tree-object-size.c (pass_through_call): Handle
6130         BUILT_IN_ASSUME_ALIGNED.
6131
6132 2011-07-01  Martin Jambor  <mjambor@suse.cz>
6133
6134         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
6135
6136 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
6137
6138         PR middle-end/48016
6139         * explow.c (update_nonlocal_goto_save_area): Use proper mode
6140         for stack save area.
6141         * function.c (expand_function_start): Likewise.
6142
6143 2011-07-01  Richard Guenther  <rguenther@suse.de>
6144
6145         PR middle-end/49596
6146         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
6147         may have unknown refs.
6148
6149 2011-07-01  Kai Tietz  <ktietz@redhat.com>
6150
6151         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
6152
6153 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6154
6155         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
6156         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
6157         (Specific, mips-sgi-irix6): Likewise.
6158
6159 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6160
6161         PR libmudflap/49549
6162         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
6163
6164 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
6165
6166         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
6167         [idx]= and [idx1 ... idx2]= before initializers if needed for
6168         array initializers.
6169
6170 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
6171
6172         * config.gcc (score-*-elf): Remove score7.o.
6173         * config/score/t-score-elf: Likewise.
6174         * config/score/score.c: Merge score7 to score.c and
6175         remove forwarding functions.
6176         * config/score/score7.c: Deleted.
6177         * config/score/score7.h: Deleted.
6178
6179 2011-07-01  Richard Guenther  <rguenther@suse.de>
6180
6181         PR tree-optimization/49603
6182         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
6183
6184 2011-06-30  Martin Jambor  <mjambor@suse.cz>
6185
6186         * tree-sra.c (struct access): Rename total_scalarization to
6187         grp_total_scalarization
6188         (completely_scalarize_var): New function.
6189         (sort_and_splice_var_accesses): Set total_scalarization in the
6190         representative access.
6191         (analyze_access_subtree): Propagate total scalarization accross the
6192         tree, no holes in totally scalarized trees, simplify coverage
6193         computation.
6194         (analyze_all_variable_accesses): Call completely_scalarize_var instead
6195         of completely_scalarize_record.
6196
6197 2011-06-30  Richard Henderson  <rth@redhat.com>
6198
6199         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
6200         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
6201         * config/i386/i386.c: Don't include dwarf2out.h.
6202         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
6203         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
6204         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
6205         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
6206         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
6207
6208 2011-06-30  Richard Henderson  <rth@redhat.com>
6209
6210         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
6211         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6212         * final.c (final_scan_insn): Look for it, and invoke
6213         dwarf2out_frame_debug before the insn if found.
6214
6215 2011-06-30  Richard Henderson  <rth@redhat.com>
6216
6217         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
6218         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
6219
6220 2011-06-30  Richard Henderson  <rth@redhat.com>
6221
6222         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
6223         Define a vector of this type.
6224         (regs_saved_in_regs): Use a VEC.
6225         (num_regs_saved_in_regs): Remove.
6226         (compare_reg_or_pc): New.
6227         (record_reg_saved_in_reg): Split out from...
6228         (dwarf2out_flush_queued_reg_saves): ... here.
6229         (clobbers_queued_reg_save): Update for VEC.
6230         (reg_saved_in): Likewise.
6231         (dwarf2out_frame_debug_init): Likewise.
6232         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
6233         (dwarf2out_frame_debug_cfa_register): Likewise.
6234
6235 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
6236
6237         PR tree-optimization/49572
6238         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
6239         type of the RHS instead of that of the LHS for the expression type.
6240
6241 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
6242
6243         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6244         unconditionally.
6245
6246 2011-06-30  Richard Guenther  <rguenther@suse.de>
6247
6248         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
6249         * tree-ssa-structalias.c (create_variable_info_for): Do not
6250         add initial constraints for non-var-decls.  Properly handle
6251         globals in other ltrans partitions.
6252         (intra_create_variable_infos): Manually create constraints for
6253         the fake no-alias parameter.
6254         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
6255         and assert there are no clones.
6256
6257 2011-06-30  Richard Guenther  <rguenther@suse.de>
6258
6259         PR tree-optimization/46787
6260         * tree-data-ref.c (dr_address_invariant_p): Remove.
6261         (find_data_references_in_stmt): Invariant accesses are ok now.
6262         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
6263         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6264         invariant loads.
6265
6266 2011-06-30  Martin Jambor  <mjambor@suse.cz>
6267
6268         PR tree-optimization/49094
6269         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
6270         (build_accesses_from_assign): Use it.
6271
6272 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
6273
6274         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6275         handling of BUILT_IN_ASSUME_ALIGNED.
6276
6277         PR debug/49364
6278         * dwarf2out.c (output_abbrev_section): Don't return early
6279         if abbrev_die_table_in_use is 1.
6280         (dwarf2out_finish): Instead don't call output_abbrev_section
6281         nor emit abbrev_section_label in that case.
6282
6283 2011-06-30  Nick Clifton  <nickc@redhat.com>
6284
6285         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
6286         for the V850E.
6287
6288 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
6289
6290         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6291         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
6292
6293 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
6294
6295         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6296         both pattern and original statements if necessary.
6297         (vect_transform_loop): Likewise.
6298         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
6299         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
6300         Mark the pattern statement only if the original statement doesn't
6301         have its own uses.
6302         (process_use): Call vect_mark_relevant with additional parameter.
6303         (vect_mark_stmts_to_be_vectorized): Likewise.
6304         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
6305         (vect_analyze_stmt): Handle both pattern and original statements
6306         if necessary.
6307         (vect_transform_stmt): Don't store vectorized pattern statement
6308         in the original statement.
6309         (vect_is_simple_use_1): Use related pattern statement only if the
6310         original statement is irrelevant.
6311         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6312
6313 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
6314
6315         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
6316         option.
6317         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
6318         entry.
6319         (TARGET_AVX128_OPTIMAL): New definition.
6320         * config/i386/i386.c (initial_ix86_tune_features): Initialize
6321         X86_TUNE_AVX128_OPTIMAL entry.
6322         (ix86_option_override_internal): Enable the generation
6323         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
6324         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
6325         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
6326
6327 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
6328
6329         PR tree-optimization/49539
6330         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
6331         names by means of stmt_references_abnormal_ssa_name.
6332         (associate_plusminus): Call can_propagate_from before propagating
6333         from definition statements.
6334         (ssa_forward_propagate_and_combine): Remove superfluous newline.
6335
6336 2011-06-29  Richard Guenther  <rguenther@suse.de>
6337
6338         * doc/invoke.texi: Document -scev dump modifier.
6339         * tree-pass.h (TDF_SCEV): New dump flag.
6340         * tree-dump.c (dump_option_value_in): Add scev.
6341         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
6342         * tree-scalar-evolution.c: Likewise.
6343
6344 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
6345
6346         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
6347         (cxa_type_match): Correct declaration.
6348         (__gnu_unwind_pr_common): Reconstruct additional indirection
6349         when __cxa_type_match returns succeeded_with_ptr_to_base.
6350
6351 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6352
6353         PR rtl-optimization/49114
6354         * reload.c (struct replacement): Remove SUBREG_LOC member.
6355         (push_reload): Do not set it.
6356         (push_replacement): Likewise.
6357         (subst_reload): Remove dead code.
6358         (copy_replacements): Remove assertion.
6359         (copy_replacements_1): Do not handle SUBREG_LOC.
6360         (move_replacements): Likewise.
6361         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
6362         Detect subregs via recursive descent instead of via SUBREG_LOC.
6363
6364 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
6365
6366         * config/avr/avr.c (avr_encode_section_info): Dispatch to
6367         default_encode_section_info.
6368
6369 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
6370
6371         PR tree-optimization/49545
6372         * builtins.c (get_object_alignment_1): Update function comment.
6373         Do not use DECL_ALIGN for functions, but test
6374         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
6375         * fold-const.c (get_pointer_modulus_and_residue): Don't check
6376         for functions here.
6377         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6378
6379 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
6380
6381         PR debug/49567
6382         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
6383         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
6384
6385 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
6386
6387         PR target/34734
6388         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
6389         about uninitialized data attributed 'progmem' from here...
6390         (avr_encode_section_info): ...to this new function.
6391         (TARGET_ENCODE_SECTION_INFO): New define.
6392         (avr_section_type_flags): For data in ".progmem.data", remove
6393         section flag SECTION_WRITE.
6394
6395 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
6396
6397         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
6398         _xmulhisi3_exit.
6399         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
6400         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
6401         (__umulhisi3): Ditto.
6402         * config/avr/avr.md (mulhisi3): New insn expender.
6403         (umulhisi3): New insn expender.
6404         (*mulhisi3_call): New insn.
6405         (*umulhisi3_call): New insn.
6406
6407 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
6408
6409         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
6410
6411 2011-06-28  Richard Henderson  <rth@redhat.com>
6412
6413         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
6414         all code and arguments that handled pushes.  Update all callers.
6415
6416 2011-06-28  Richard Henderson  <rth@redhat.com>
6417
6418         * config/arm/arm.c (arm_output_function_prologue): Don't call
6419         thumb1_output_function_prologue.
6420         (arm_expand_prologue): Avoid dead store.
6421         (number_of_first_bit_set): Use ctz_hwi.
6422         (thumb1_emit_multi_reg_push): New.
6423         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
6424         to emit the entire prologue as rtl.
6425         (thumb1_output_interwork): Split out from
6426         thumb1_output_function_prologue.
6427         (thumb1_output_function_prologue): Remove.
6428         (arm_attr_length_push_multi): Handle thumb1.
6429         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
6430         (prologue_thumb1_interwork): New.
6431         (*push_multi): Allow thumb1; use push_mult_memory_operand.
6432         * config/arm/predicates.md (push_mult_memory_operand): New.
6433
6434 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
6435
6436         * config/sparc/sync.md (*stbar): Delete.
6437         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
6438
6439 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
6440
6441         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
6442
6443 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6444
6445         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
6446         (TARGET_64BIT_DEFAULT): Define.
6447         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
6448         of tm_file.
6449         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
6450
6451 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
6452
6453         * common.opt (in_lto_p): New Variable entry.
6454         * flags.h (in_lto_p): Move to common.opt.
6455         * gcc.c: Include params.h.
6456         (set_option_handlers): Also use common_handle_option and
6457         target_handle_option.
6458         (main): Call global_init_params, finish_params and init_options_struct.
6459         * opts.c (debug_type_names): Move from toplev.c.
6460         (print_filtered_help): Access quiet_flag through opts pointer.
6461         (common_handle_option): Return early in the driver for some options.
6462         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
6463         opts pointer.
6464         * toplev.c (in_lto_p): Move to common.opt.
6465         (debug_type_names): Move to opts.c.
6466         * Makefile.in (OBJS): Remove opts.o.
6467         (OBJS-libcommon-target): Add opts.o.
6468         (gcc.o): Update dependencies.
6469
6470 2011-06-28  Kai Tietz  <ktietz@redhat.com>
6471
6472         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
6473
6474 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6475
6476         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
6477         with '=' constraint modifier.
6478         (*divdf3_vfp): Likewise.
6479         ("*mulsf3_vfp"): Likewise.
6480         ("*muldf3_vfp"): Likewise.
6481         ("*mulsf3negsf_vfp"): Likewise.
6482         ("*muldf3negdf_vfp"): Likewise.
6483
6484 2011-06-28  Nick Clifton  <nickc@redhat.com>
6485
6486         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
6487         relaxation when performing an incremental link.
6488
6489 2011-06-28  Kai Tietz  <ktietz@redhat.com>
6490
6491         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
6492         within BB from last to first.
6493
6494 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
6495
6496         * genattr-common.c: New.  Based on genattr.c.
6497         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
6498         (MOSTLYCLEANFILES): Add insn-attr-common.h.
6499         (opts.o): Update dependencies.
6500         (.PRECIOUS): Add insn-attr-common.h.
6501         (simple_rtl_generated_h): Add insn-attr-common.h.
6502         (build/genattr-common.o): New.
6503         (genprogrtl): Add attr-common.
6504         * genattr.c (main): Include insn-attr-common.h.  Don't generate
6505         definitions of DELAY_SLOTS or INSN_SCHEDULING.
6506         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
6507
6508 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
6509
6510         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
6511         avr-*-* and avr-*-rtems* targets.
6512
6513         * config/avr/elf.h: New file.
6514         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
6515         (TARGET_ASM_SELECT_SECTION): Define.
6516         (INIT_SECTION_ASM_OP): Undefine.
6517         (FINI_SECTION_ASM_OP): Undefine.
6518         (READONLY_DATA_SECTION_ASM_OP): Undefine.
6519         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
6520         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
6521         * config/avr/avr.h:
6522         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
6523         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
6524         (MAX_OFILE_ALIGNMENT): Move to elf.h.
6525         (STRING_LIMIT): Move to elf.h.
6526         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
6527         (ASM_DECLARE_OBJECT_NAME): Remove.
6528         (ESCAPES): Remove.
6529         (ASM_OUTPUT_SKIP): Remove.
6530         (DWARF2_DEBUGGING_INFO): Remove.
6531         (OBJECT_FORMAT_ELF): Remove.
6532         (USER_LABEL_PREFIX): Remove.
6533         (ASM_OUTPUT_EXTERNAL): Remove.
6534         (ASM_OUTPUT_ASCII): Remove.
6535         (TYPE_ASM_OP): Remove.
6536         (SIZE_ASM_OP): Remove.
6537         (WEAK_ASM_OP): Remove.
6538         (STRING_ASM_OP): Remove.
6539         (SET_ASM_OP): Remove.
6540         (ASM_WEAKEN_LABEL): Remove.
6541         (TYPE_OPERAND_FMT): Remove.
6542         (ASM_DECLARE_FUNCTION_SIZE): Remove.
6543         (ASM_FINISH_DECLARE_OBJECT): Remove.
6544         (NO_DOLLAR_IN_LABEL): Remove.
6545         (ASM_GENERATE_INTERNAL_LABEL): Remove.
6546         (ASM_OUTPUT_CASE_LABEL): Remove.
6547         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
6548         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
6549         (gas_output_ascii): Remove.
6550         (gas_output_limited_string): Remove.
6551         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
6552         * config/avr/avr-protos.h
6553         (gas_output_ascii): Remove prototye.
6554         (gas_output_limited_string): Remove prototype.
6555
6556 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
6557
6558         PR target/48637
6559         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
6560         asm operands.
6561
6562 2011-06-27  Jan Hubicka  <jh@suse.cz>
6563
6564         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
6565         node instead of references in node.
6566
6567 2011-06-27  Richard Henderson  <rth@redhat.com>
6568
6569         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
6570         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
6571         inside ifdef.
6572
6573 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
6574
6575         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
6576
6577         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
6578         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
6579         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
6580         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
6581         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
6582         (evaluate_stmt, execute_fold_all_builtins): Handle
6583         BUILT_IN_ASSUME_ALIGNED.
6584         * tree-ssa-dce.c (propagate_necessity): Likewise.
6585         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6586         call_may_clobber_ref_p_1): Likewise.
6587         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
6588         (expand_builtin_assume_aligned): New function.
6589         * doc/extend.texi (__builtin_assume_aligned): Document.
6590
6591         PR debug/49544
6592         * cselib.c (promote_debug_loc): If cselib_preserve_constants
6593         and l has two DEBUG_INSN owned locs instead of just one, adjust
6594         the second location's setting_insn too.
6595
6596 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6597
6598         PR libmudflap/38738
6599         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
6600
6601 2011-06-27  Nick Clifton  <nickc@redhat.com>
6602
6603         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
6604         bit position of highest bit set into a count of the high zero bits.
6605
6606 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6607
6608         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
6609
6610 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6611
6612         PR lto/48492
6613         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
6614         to a NULL parent.
6615
6616 2011-06-27  Richard Guenther  <rguenther@suse.de>
6617
6618         PR tree-optimization/49394
6619         * passes.c (execute_one_pass): Restore current_pass after
6620         applying IPA transforms.
6621
6622 2011-06-27  Kai Tietz  <ktietz@redhat.com>
6623
6624         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
6625         out of type precision after operation.
6626         (find_bswap): Take for limit value the integer auto-promotion
6627         into account.
6628
6629 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6630
6631         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
6632         forward scan as well.
6633
6634 2011-06-27  Tristan Gingold  <gingold@adacore.com>
6635
6636         PR target/44241
6637         * config/vms/vms-protos.h: New file.
6638         * config/vms/vms-crtlmap.map: New file.
6639         * config/vms/vms.c: New file.
6640         * config/vms/make-crtlmap.awk: New file.
6641         * config/vms/vms-crtl.h: File removed.
6642         * config/vms/vms-crtl-64.h: File removed.
6643         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
6644         * config/alpha/vms64.h: Do not include vms-crtl-64.h
6645         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
6646         clear some builtins on VMS.  Calls vms_patch_builtins.
6647         (avms_asm_output_external): Remove.
6648         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
6649         (struct crtl_name_spec): Remove
6650         (DO_CTRL_NAMES): Remove.
6651         * config/ia64/vms.h (struct crtl_name_spec): Remove
6652         (DO_CTRL_NAMES): Remove.
6653         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
6654         clear some builtins on VMS.  Calls vms_patch_builtins.
6655         (ia64_asm_output_external): Remove DO_CRTL_NAME.
6656         * config/ia64/vms64.h: Do not include vms-crtl-64.h
6657         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
6658
6659 2011-06-27  Tristan Gingold  <gingold@adacore.com>
6660
6661         * config/alpha/alpha.c (alpha_end_function): Always generate .end
6662         directive on VMS.
6663
6664 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6665
6666         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
6667         the function receives nonlocal gotos.
6668
6669 2011-06-27  Richard Guenther  <rguenther@suse.de>
6670
6671         PR tree-optimization/49536
6672         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6673         For non-scalar inner types use a scalar type according to
6674         the scalar inner mode.
6675
6676 2011-06-27  Richard Guenther  <rguenther@suse.de>
6677
6678         PR tree-optimization/49365
6679         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
6680
6681 2011-06-27  Richard Guenther  <rguenther@suse.de>
6682
6683         PR tree-optimization/49169
6684         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
6685         the alignment of function decls.
6686
6687 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
6688
6689         PR target/47997
6690         * config/darwin.c (darwin_mergeable_string_section): Place string
6691         constants in '.cstring' rather than '.const' when CF/NSStrings are
6692         active.
6693
6694 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
6695
6696         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
6697         (emit_save_register_window): Likewise.
6698         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
6699         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
6700         Swap back %o7/%i7 in register naming.
6701
6702 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
6703
6704         PR driver/49371
6705         * config/darwin.c (darwin_override_options): Improve warning when
6706         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
6707         is given with fpie/fPIE.
6708         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
6709         * config/darwin9.h (PIE_SPEC): New.
6710
6711 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
6712
6713         * timevar.c (timevar_print): Increase width for display of timevar
6714         name.
6715
6716 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
6717
6718         PR c++/46400
6719         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
6720         instead of TYPE_CHAIN for chain_next for types.
6721
6722 2011-06-24  Richard Henderson  <rth@redhat.com>
6723
6724         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
6725         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
6726         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
6727         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
6728         (sparc_flat_expand_prologue): Emit individual instructions
6729         instead of one of the above.
6730
6731 2011-06-24  Easwaran Raman  <eraman@google.com>
6732
6733         PR rtl-optimization/49429
6734         PR target/49454
6735         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
6736         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
6737         used to copy y into x.
6738         * calls.c (initialize_argument_information): Mark
6739         an argument addressable if it is passed by invisible reference.
6740         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
6741         if it is passed by reference.
6742
6743 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
6744
6745         PR rtl-optimization/49504
6746         * rtlanal.c (nonzero_bits1): Properly handle addition or
6747         subtraction of a pointer in Pmode if pointers extend unsigned.
6748         (num_sign_bit_copies1): Likewise.
6749
6750 2011-06-24  Martin Jambor  <mjambor@suse.cz>
6751
6752         PR tree-optimizations/49516
6753         * tree-sra.c (sra_modify_assign): Choose the safe path for
6754         aggregate copies if we also did scalar replacements.
6755
6756 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6757
6758         PR target/49335
6759         * config/arm/predicates.md (add_operator): New.
6760         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
6761
6762 2011-06-24  Andi Kleen  <ak@linux.intel.com>
6763
6764         * tree-sra.c (type_internals_preclude_sra_p): Add msg
6765         parameter. Split up ifs and report reason in *msg.
6766         (reject): Add.
6767         (find_var_candiate): Add msg variable.
6768         Split up ifs and report reason to reject.
6769         (find_param_candidates): Add msg variable.
6770         Pass msg to type_internals_preclude_sra_p.
6771
6772 2011-06-23  Jeff Law  <law@redhat.com>
6773
6774         PR middle-end/48770
6775         * reload.h (reload): Change to return a bool.
6776         * ira.c (ira): If requested by reload, run a fast DCE pass after
6777         reload has completed.  Fix comment typo.
6778         * reload1.c (need_dce): New file scoped static.
6779         (reload): Set reload_completed here.  Return whether or not a DCE
6780         pass after reload is needed.
6781         (delete_dead_insn): Set need_dce as needed.
6782
6783         PR middle-end/49465
6784         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
6785         to detect threading through joiner block.  If there was already
6786         an edge to the new target, then do not change the PHI nodes.
6787
6788 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
6789
6790         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6791         get_pointer_alignment to see if base isn't sufficiently aligned.
6792
6793 2011-06-23  Jan Hubicka  <jh@suse.cz>
6794
6795         PR tree-optimize/49373
6796         * tree-pass.h (all_late_ipa_passes): Declare.
6797         * cgraphunit.c (init_lowered_empty_function): Fix properties.
6798         (cgraph_optimize): Execute late passes; remove unreachable funcions
6799         after materialization.
6800         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
6801         LTOing.
6802         * passes.c (all_late_ipa_passes): Declare.
6803         (dump_passes, register_pass): Handle late ipa passes.
6804         (init_optimization_passes): Move ipa_pta to late passes; schedule
6805         fixup_cfg at beggining of all_passes.
6806         (apply_ipa_transforms): New function.
6807         (execute_one_pass): When doing simple ipa pass, apply all transforms.
6808
6809 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
6810
6811         * params.c: Include common/common-target.h.  Don't include tm.h.
6812         (lang_independent_params): Move from toplev.c.
6813         (global_init_params): New.
6814         * params.h (global_init_params): Declare.
6815         * target.def (default_params): Move to common-target.def.
6816         * toplev.c (lang_independent_options): Remove.
6817         (lang_independent_params): Move to params.c.
6818         (general_init): Use global_init_params.
6819         * common/common-target.def (option_default_params): Move from
6820         target.def.
6821         * common/config/ia64/ia64-common.c: Include params.h.
6822         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6823         from ia64.c.
6824         * common/config/rs6000/rs6000-common.c: Include params.h.
6825         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6826         from rs6000.c.
6827         * common/config/sh/sh-common.c: Include params.h.
6828         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6829         from sh.c.
6830         * common/config/spu/spu-common.c: Include params.h.
6831         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6832         from spu.c.
6833         * config/ia64/ia64.c (ia64_option_default_params,
6834         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
6835         * config/rs6000/rs6000.c (rs6000_option_default_params,
6836         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
6837         * config/sh/sh.c (sh_option_default_params,
6838         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
6839         * config/spu/spu.c (spu_option_default_params,
6840         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
6841         * Makefile.in (OBJS): Remove params.o.
6842         (OBJS-libcommon-target): Add params.o.
6843         (params.o, $(common_out_object_file)): Update dependencies.
6844         * doc/tm.texi: Regenerate.
6845
6846 2011-06-23  Alan Modra  <amodra@gmail.com>
6847
6848         PR bootstrap/49383
6849         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
6850         invocation for 2011-06-09 changes.
6851
6852 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
6853
6854         PR libgomp/49490
6855         * omp-low.c (expand_omp_for_static_nochunk): Only
6856         use n ceil/ nthreads size for the first n % nthreads threads in the
6857         team instead of all threads except for the last few ones which
6858         get less work or none at all.
6859
6860         PR debug/49496
6861         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
6862         uses.
6863
6864 2011-06-22  Richard Guenther  <rguenther@suse.de>
6865
6866         PR tree-optimization/49493
6867         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
6868         Refer to the alias target of variables.
6869         (associate_varinfo_to_alias_1): Remove.
6870         (ipa_pta_execute): Do not associate aliases with anything.
6871         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
6872         (cgraph_function_node): Likewise.
6873         (cgraph_function_or_thunk_node): Likewise.
6874         (varpool_variable_node): Likewise.
6875
6876 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
6877
6878         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
6879         * config.gcc (arm*-*-linux*): Default to gnu tls.
6880         (arm*-*-*): Add --with-tls option.
6881         (all_defaults): Add 'tls'.
6882
6883 2011-06-22  Richard Henderson  <rth@redhat.com>
6884
6885         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
6886         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6887         (dwarf2out_frame_debug_cfa_window_save): Rename from
6888         dwarf2out_window_save; make static.
6889         * tree.h (dwarf2out_window_save): Don't declare.
6890
6891         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
6892         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6893         (emit_save_register_window): Rename from gen_save_register_window;
6894         emit the insn and add REG_CFA_* notes.
6895         (sparc_expand_prologue): Update to match.
6896         * config/sparc/sparc.md (save_register_window_1): Simplify from
6897         save_register_window<P:mode>.
6898
6899 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
6900
6901         PR target/49497
6902         * config/i386/i386.md (*lea_general_2): Always allow SImode.
6903         (*lea_general_2_zext): Likewise.
6904         (imul to lea peepholes): Use const359_operand and check
6905         TARGET_PARTIAL_REG_STALL.
6906
6907         * config/i386/predicates.md (const359_operand): New.
6908
6909 2011-06-22  Michael Matz  <matz@suse.de>
6910
6911         * cgraphunit.c (assemble_thunk): Use correct return type.
6912
6913 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
6914             Dmitry Melnik  <dm@ispras.ru>
6915
6916         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
6917         (neon_output_shift_immediate): Ditto.
6918         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
6919         prototype.
6920         (neon_output_shift_immediate): Ditto.
6921         * config/arm/neon.md (vashl<mode>3): Modified constraint.
6922         (vashr<mode>3_imm): New insn pattern.
6923         (vlshr<mode>3_imm): Ditto.
6924         (vashr<mode>3): Modified constraint.
6925         (vlshr<mode>3): Ditto.
6926         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
6927         predicate.
6928         (imm_for_neon_rshift_operand): Ditto.
6929         (imm_lshift_or_reg_neon): Ditto.
6930         (imm_rshift_or_reg_neon): Ditto.
6931
6932         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
6933
6934 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
6935
6936         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
6937         builtin calls even if likelyvalue is not CONSTANT.
6938         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
6939         Return get_value_for_expr of first operand
6940         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
6941         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6942         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
6943         their non-checking counterparts.
6944         (call_may_clobber_ref_p_1): Likewise.
6945         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
6946         like their non-checking counterparts.
6947         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6948         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
6949         like their non-checking counterparts.
6950         (find_func_clobbers): Likewise.
6951         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
6952         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
6953
6954         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
6955         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
6956         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
6957         of base type reference as argument.
6958         (resolve_addr_in_expr): Likewise.  Fix keep computation.
6959         (convert_descriptor_to_signed): Renamed to...
6960         (convert_descriptor_to_mode): ... this.  For wider types convert to
6961         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
6962         (typed_binop): New function.
6963         (scompare_loc_descriptor, ucompare_loc_descriptor,
6964         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
6965         default to unsigned type instead of signed.
6966
6967         PR debug/47858
6968         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
6969         (gimple_build_debug_source_bind_stat): New prototype.
6970         (gimple_build_debug_source_bind): Define.
6971         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
6972         gimple_debug_source_bind_get_value,
6973         gimple_debug_source_bind_get_value_ptr,
6974         gimple_debug_source_bind_set_var,
6975         gimple_debug_source_bind_set_value): New inlines.
6976         * gimple.c (gimple_build_debug_source_bind_stat): New function.
6977         * gimple-pretty-print.c (dump_gimple_debug): Handle
6978         GIMPLE_DEBUG_SOURCE_BIND.
6979         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
6980         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6981         * tree-parloops.c (eliminate_local_variables,
6982         separate_decls_in_region): Likewise.
6983         (separate_decls_in_region_debug): Renamed from
6984         separate_decls_in_region_debug_bind.  Handle
6985         gimple_debug_source_bind_p.
6986         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
6987         prototypes.
6988         (DECL_HAS_DEBUG_ARGS_P): Define.
6989         (struct tree_function_decl): Add has_debug_args_flag field.
6990         * tree.c (debug_args_for_decl): New variable.
6991         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
6992         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
6993         (rewrite_debug_stmt_uses): New function.
6994         (rewrite_stmt): Use it to rewrite debug stmt uses.
6995         * rtl.def (DEBUG_PARAMETER_REF): New.
6996         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
6997         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
6998         DEBUG_PARAMETER_REF.
6999         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
7000         * print-rtl.c (print_rtx): Likewise.
7001         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
7002         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
7003         debug stmts in the first bb.
7004         * tree-inline.c (remap_ssa_name): If remapping default def
7005         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
7006         a source bind debug stmt.
7007         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
7008         (maybe_move_debug_stmts_to_successors): Likewise.
7009         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
7010         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
7011         debug args vector from old_decl to new_decl.
7012         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
7013         or modified parameters, add debug bind stmts before call
7014         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
7015         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
7016         on DECL_DEBUG_EXPRs from debug args vector.
7017         (expand_debug_source_expr): New function.
7018         (expand_debug_locations): Use it for source bind insns.
7019         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
7020         * var-tracking.c (prepare_call_arguments): Add debug args
7021         to call_arguments if any.
7022         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
7023         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
7024         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
7025         (get_ref_die_offset, parameter_ref_descriptor): New functions.
7026         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
7027         (gen_subprogram_die): Handle parameters identified by
7028         DEBUG_PARAMETER_REF.
7029
7030 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
7031
7032         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
7033         * doc/install.texi (Configuration): Document --with-tls.
7034         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
7035         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
7036         (arm_tls_descseq_addr): New.
7037         (legitimize_tls_address): Add tlsdesc support.
7038         (arm_cannot_copy_insn_p): Check for tlscall.
7039         (arm_emit_tls_decoration): Likewise.
7040         * config/arm/arm.h (TARGET_GNU2_TLS): New.
7041         (OPTION_DEFAULT_SPECS): Add with-tls support.
7042         * config/arm/arm.md (R1_REGNUM): Define.
7043         (tlscall): New.
7044         * config/arm/arm.opt (tls_type): New enumeration type and values.
7045         (mtls-dialect): New switch.
7046         * config/arm/arm-opts.h (enum tls_type): New.
7047
7048 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7049
7050         * attribs.c (register_attribute): Added assert to check that all
7051         attribute specs are registered with a name that is not empty and
7052         does not start with '_'.
7053         (decl_attributes): Avoid the lookup of the "naked" attribute spec
7054         if the function has no attributes.
7055         * tree.c (is_attribute_with_length_p): Removed.
7056         (is_attribute_p): Removed.
7057         (private_is_attribute_p): New.
7058         (private_lookup_attribute): New.
7059         (lookup_attribute): Removed.
7060         (lookup_ident_attribute): New.
7061         (remove_attribute): Require the first argument to be in the form
7062         'text', not '__text__'.  Updated asserts.
7063         (merge_attributes): Use lookup_ident_attributes instead of
7064         lookup_attribute.
7065         (merge_dllimport_decl_attributes): Use remove_attribute.
7066         (attribute_list_contained): Likewise.
7067         (attribute_list_equal): Immediately return 1 if the arguments are
7068         identical pointers.
7069         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
7070         'int'.  Require the first argument to be in the form 'text', not
7071         '__text__'.  Require the second argument to be an identifier.
7072         (lookup_attribute): Made inline.  Require the first argument to be
7073         in the form 'text', not '__text__'.
7074         (private_is_attribute_p, private_lookup_attribute): New.
7075         Updated comments.
7076
7077 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
7078
7079         * builtins.c: Add sync_ or SYNC__ to builtin names.
7080         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
7081         * omp-low.c: Add sync_ or SYNC__ to builtin names.
7082
7083 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
7084
7085         PR target/33049
7086         * config/avr/avr.md (extzv): New expander.
7087         (*extzv): New insn.
7088         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
7089         * config/avr/constraints.md (C04): New constraint.
7090         * doc/md.texi (Machine Constraints): Document it.
7091
7092 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
7093
7094         PR middle-end/49489
7095         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
7096         unsignedp argument instead of 1 for clrsb_optab.
7097         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7098         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
7099         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
7100         * optabs.c (widen_leading): Call widen_operand and expand_unop
7101         with 0 as unsignedp argument instead of 1 for clrsb_optab.
7102         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
7103
7104 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
7105
7106         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
7107
7108 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
7109
7110         * gensupport.c (add_define_attr): New static function.
7111         (is_predicable): Allow multi-alternative lists for the "predicable"
7112         attribute.
7113         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
7114         (process_one_cond_exec): Call alter_attrs_for_insn.
7115         * doc/md.texi (Defining Attributes): Mention some standard names.
7116         (Conditional Execution): Update documentation for "predicable".
7117
7118         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
7119         __builtin_clrsbll): Document.
7120         * doc/rtl.texi (clrsb): New entry.
7121         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
7122         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
7123         (expand_unop): Handle clrsb_optab.
7124         (init_optabs): Initialize it.
7125         * optabs.h (enum optab_index): New entry OTI_clrsb.
7126         (clrsb_optab): Define.
7127         * genopinit.c (optabs): Add an entry for it.
7128         * builtins.c (expand_builtin): Handle clrsb builtin functions.
7129         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
7130         BUILT_IN_CLRSBLL): New.
7131         * rtl.def (CLRSB): New code.
7132         * dwarf2out.c (mem_loc_descriptor): Handle it.
7133         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7134         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
7135         and popcount.
7136         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
7137         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
7138         (__ctzDI2): Move declaration.
7139         * config/bfin/bfin.md (clrsbsi2): New expander.
7140         (signbitssi2): Use the CLRSB rtx.
7141         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
7142         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
7143
7144 2011-06-21  Richard Guenther  <rguenther@suse.de>
7145
7146         * ipa-inline-transform.c (inline_transform): Fix previous change.
7147
7148 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
7149
7150         PR tree-optimization/49478
7151         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
7152         with constant operand.
7153
7154 2011-06-21  Richard Guenther  <rguenther@suse.de>
7155
7156         * ipa-inline-transform.c (inline_transform): Fix typo.
7157
7158 2011-06-21  Richard Guenther  <rguenther@suse.de>
7159
7160         PR tree-optimization/49483
7161         * tree-vect-stmts.c (vectorizable_assignment): Also handle
7162         VIEW_CONVERT_EXPR conversions.
7163
7164 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
7165
7166         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
7167         * config/avr/avr-tables.opt: New file (generated).
7168         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
7169         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
7170         avr-mcus.def.
7171         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
7172         (avr_option_override): Don't process -mmcu= argument here.  Set
7173         avr_current_device using avr_mcu_index.
7174         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
7175         * config/avr/avr.opt (mmcu=): Use Enum.
7176         * config/avr/t-avr (avr-devices.o): Update dependencies.
7177         ($(srcdir)/config/avr/avr-tables.opt): New.
7178         * target.def (help): Remove.
7179         * doc/tm.texi.in (TARGET_HELP): Remove.
7180         * doc/tm.texi: Regenerate.
7181         * opts.c: Don't include target.h.
7182         (common_handle_option): Don't call targetm.help.
7183         * system.h (TARGET_HELP): Poison.
7184         * Makefile.in (opts.o): Update dependencies.
7185
7186 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7187
7188         * config/usegld.h: New file.
7189         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
7190         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
7191         (LIB_SPEC): Likewise.  Search /lib.
7192         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
7193         (RDYNAMIC_SPEC): Handle GNU ld.
7194         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
7195         Define.
7196         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
7197         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
7198         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
7199         (STACK_CHECK_STATIC_BUILTIN): Define.
7200         * config/sol2.opt (compat-bsd): Remove.
7201         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
7202         * config/sol2-bi.h: New file.
7203         * config/sol2-gld.h: Remove.
7204         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
7205         (NO_DBX_BNSYM_ENSYM): Remove.
7206         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7207         (STACK_CHECK_STATIC_BUILTIN): Remove.
7208         Test USE_GLD instead of TARGET_GNU_LD.
7209         * config/i386/sol2-10.h: Rename to ...
7210         * config/i386/sol2-bi.h .. this.
7211         (SUBTARGET_EXTRA_SPECS): Redefine.
7212         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
7213         (MULTILIB_DEFAULTS): Remove.
7214         (DEFAULT_ARCH32_P): Define.
7215         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
7216         (ARCH64_SUBDIR): Define.
7217         Test USE_GLD instead of TARGET_GNU_LD.
7218         (I386_EMULATION): Rename to ...
7219         (ARCH32_EMULATION): ... this.
7220         (X86_64_EMULATION): Rename to ...
7221         (ARCH64_EMULATION): ... this.
7222         (TARGET_LD_EMULATION): Remove.
7223         (LINK_ARCH_SPEC): Remove.
7224         * config/i386/sol2-gas.h: Remove.
7225         * config/i386/t-sol2-10: Rename to ...
7226         * config/i386/t-sol2-64: ... this.
7227         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
7228         (AS_SPARC64_FLAG): Define.
7229         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
7230         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
7231         depending on TARGET_CPU_DEFAULT.
7232         (CPP_CPU_SPEC): Redefine.
7233         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
7234         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
7235         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
7236         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
7237         ASM_ARCH_DEFAULT_SPEC): Redefine.
7238         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7239         LINK_ARCH_DEFAULT_SPEC.
7240         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
7241         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
7242         (ARCH64_SUBDIR): Define.
7243         (LINK_ARCH64_SPEC): Redefine.
7244         (CC1_SPEC): Redefine.
7245         (OPTION_DEFAULT_SPECS): Redefine.
7246         (MULTILIB_DEFAULTS): Define.
7247         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
7248         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
7249         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
7250         (NO_DBX_BNSYM_ENSYM): Remove.
7251         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7252         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
7253         (TARGET_ASM_NAMED_SECTION): Likewise.
7254         (STACK_CHECK_STATIC_BUILTIN): Remove.
7255         * config/sparc/sol2-bi.h: Remove.
7256         * config/sparc/sol2-gas-bi.h: Remove.
7257         * config/sparc/sol2-gas.h: Remove.
7258         * config/sparc/sol2-gld-bi.h: Remove.
7259         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
7260         common parts ...
7261         (*-*-solaris2*): ... here.
7262
7263 2011-06-21  Christian Bruel  <christian.bruel@st.com>
7264
7265         PR other/43564
7266         * ipa-inline.c (can_inline_edge_p): Check
7267         !DECL_DISREGARD_INLINE_LIMITS.
7268
7269 2011-06-21  Christian Bruel  <christian.bruel@st.com>
7270
7271         PR middle-end/49139
7272         * cgraphunit.c (process_function_and_variable_attributes): warn when
7273         always_inline functions that are not inline.
7274         * ipa-inline-transform.c (inline_transform): Always call
7275         optimize_inline.
7276         * tree-inline.c (tree_inlinable_function_p): Use error instead
7277         of sorry.
7278         (expand_call_inline): Likewise.
7279
7280 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
7281
7282         * Makefile.in (dg_target_exps): Set.
7283         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
7284         instead of 7, try to divide it more evenly.
7285
7286 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
7287
7288         PR target/49089
7289         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
7290         (avx256_split_unaligned_store): New definition.
7291         (ix86_option_override_internal): Enable avx256 unaligned load/store
7292         splitting only when avx256_split_unaligned_load/store is set.
7293
7294 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
7295
7296         * regrename.c (scan_rtx_reg): Handle the case where we write to an
7297         open chain in a smaller mode without failing the entire block.
7298
7299 2011-06-21  Alan Modra  <amodra@gmail.com>
7300
7301         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
7302         CONST high part large-toc address.
7303         (rs6000_tls_referenced_p): Make static.
7304         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
7305
7306 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7307
7308         PR target/49385
7309         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
7310         one of the operands is a register.
7311
7312 2011-06-20  Kai Tietz  <ktietz@redhat.com>
7313
7314         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
7315         operations in combination with binary and.
7316
7317 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
7318
7319         * regrename.c (do_replace): Don't update notes.
7320
7321 2011-06-20  Alan Modra  <amodra@gmail.com>
7322
7323         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
7324         of toc-relative address in CONST.
7325         (rs6000_delegitimize_address): Recognize changed address.
7326         (rs6000_legitimize_reload_address): Likewise.
7327         (rs6000_emit_move): Don't force these constants to memory.
7328         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
7329         toc-relative address in CONST.
7330         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
7331         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
7332
7333 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
7334
7335         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
7336         (count_trailing_zeros): Likewise.
7337
7338 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
7339
7340         PR other/49325
7341         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
7342         .init_array can be used with .ctors on targets.
7343         * configure: Regenerated.
7344
7345 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
7346
7347         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
7348         if the element type is volatile.
7349
7350 2011-06-18  Jan Hubicka  <jh@suse.cz>
7351
7352         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
7353         extra name aliases.
7354         (lto_symtab_resolve_can_prevail_p): Likewise.
7355         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7356         * cgraphbuild.c (record_reference): Remove extra body alias code.
7357         (mark_load): Likewise.
7358         (mark_store): Likewise.
7359         * cgraph.h (varpool_node): Remove extra_name filed;
7360         add alias_of and extraname_alias.
7361         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
7362         (varpool_alias_aliased_node): New inline function.
7363         (varpool_variable_node): New function.
7364         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
7365         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
7366         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
7367         (input_varpool_node): Likewise.
7368         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
7369         (varpool_externally_visible_p): Remove extra body alias code.
7370         (function_and_variable_visibility): Likewise.
7371         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
7372         (ipa_pta_execute): Use it.
7373         * varpool.c (varpool_remove_node): Remove extra name alias code.
7374         (varpool_mark_needed_node): Likewise.
7375         (varpool_analyze_pending_decls): Analyze aliases.
7376         (assemble_aliases): New functoin.
7377         (varpool_assemble_decl): Use it.
7378         (varpool_create_variable_alias): New function.
7379         (varpool_extra_name_alias): Rewrite.
7380         (varpool_for_node_and_aliases): New function.
7381
7382 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
7383
7384         PR target/49411
7385         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
7386         last_arg_constant and last argument doesn't match its predicate,
7387         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
7388         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
7389         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
7390         spelling of error message.
7391         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
7392         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
7393         const_0_to_255_operand instead of const_int_operand.
7394
7395         Revert:
7396         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
7397
7398         * config/i386/sse.md (blendbits): Remove mode attribute.
7399         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7400         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7401         Check integer value of operand 3 in insn constraint.
7402
7403 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
7404
7405         PR rtl-optimization/48542
7406         * reload.c (find_equiv_reg): Stop looking when finding a
7407         setjmp-type call.
7408         * reload1.c (reload_as_needed): Invalidate all reload
7409         registers when crossing a setjmp-type call.
7410
7411 2011-06-16  Jeff Law  <law@redhat.com>
7412
7413         * tree-ssa-threadupdate.c (struct redirection_data): New field
7414         intermediate_edge.
7415         (THREAD_TARGET2): Define.
7416         (redirection_data_eq): Also check that the intermediate edge is equal.
7417         (lookup_redirection_data): Drop useless argument.  Extract the
7418         outgoing_edge and intermediate edge from E.  Callers updated.
7419         (copy_phi_args, update_destination_phis): New functions.
7420         (fix_duplicate_block_edges): Likewise.
7421         (create_edge_and_update_destination_phis): Duplicate all the edges
7422         hung off e->aux.  Use copy_phi_args.
7423         (create_duplicates): Use fix_duplicate_block_edges.
7424         (fixup_template_block): Likewise.
7425         (redirect_edges): If necessary, redirect the joiner block's incoming
7426         edge to the duplicate of the joiner block.
7427         (thread_block): Don't muck up loops when threading through a joiner
7428         block.
7429         (thread_through_loop_header): Handle threading through a joiner block.
7430         (mark_threaded_blocks, register_jump_thread): Likewise.
7431         * tree-flow.h (register_jump_thread): Add new argument.  Callers
7432         updated.
7433         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
7434         (thread_across_edge): Handle threading through a joiner block.
7435
7436 2011-06-16  Martin Jambor  <mjambor@suse.cz>
7437
7438         PR tree-optimization/49343
7439         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
7440         calculate offset, provide 2nd operand for the new COMPONENT_REF.
7441
7442 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
7443
7444         * config/darwin-protos.h (machopic_select_rtx_section): Move to
7445         inside RTX_CODE ifdef.
7446
7447 2011-06-16  Tom de Vries  <tom@codesourcery.com>
7448
7449         PR target/45098
7450         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
7451         Disallow NULL pointer for pointer arithmetic.
7452
7453 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7454
7455         PR target/49398
7456         Revert.
7457         2011-06-10  Wei Guozhi  <carrot@google.com>
7458
7459         PR target/45335
7460         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
7461         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
7462         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
7463         related peephole2.
7464         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
7465         related peephole2.
7466         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
7467         (arm_legitimate_ldrd_p): New prototype.
7468         (arm_output_ldrd): New prototype.
7469         * config/arm/arm.c (arm_check_ldrd_operands): New function.
7470         (arm_legitimate_ldrd_p): New function.
7471         (arm_output_ldrd): New function.
7472
7473 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
7474
7475         PR middle-end/46500
7476         * doc/tm.texi.in: Update Copyright date.
7477         * doc/tm.texi: Regenerate.
7478         * targhooks.c (default_setup_incoming_varargs): Replace
7479         CUMULATIVE_ARGS* argument type with cumulative_args_t.
7480         (default_pretend_outgoing_varargs_named): Likewise.
7481         (hook_pass_by_reference_must_pass_in_stack): Likewise.
7482         (hook_callee_copies_named): Likewise.
7483         (default_function_arg_advance): Likewise.
7484         (default_function_arg): Likewise.
7485         (default_function_incoming_arg): Likewise.
7486         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7487         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7488         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7489         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7490         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7491         * targhooks.h (default_setup_incoming_varargs): Likewise.
7492         (default_pretend_outgoing_varargs_named): Likewise.
7493         (hook_pass_by_reference_must_pass_in_stack): Likewise.
7494         (hook_callee_copies_named): Likewise.
7495         (default_function_arg_advance): Likewise.
7496         (default_function_arg): Likewise.
7497         (default_function_incoming_arg): Likewise.
7498         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7499         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7500         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7501         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7502         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7503         * target.def (pass_by_reference): Likewise.
7504         (setup_incoming_varargs, strict_argument_naming): Likewise.
7505         (pretend_outgoing_varargs_named, callee_copies): Likewise.
7506         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
7507         (function_incoming_arg): Likewise.
7508         * target.h: Don't include "tm.h" .
7509         (cumulative_args_t): New typedef.
7510         [GCC_TM_H] (get_cumulative_args): New static inline function.
7511         [GCC_TM_H] (pack_cumulative_args): Likewise.
7512         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
7513         argument type with cumulative_args_t.
7514         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
7515         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
7516         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7517         (frv_arg_partial_bytes, frv_function_arg): Likewise.
7518         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
7519         (frv_function_arg_1): Likewise.
7520         * config/s390/s390.c (s390_pass_by_reference): Likewise.
7521         (s390_function_arg_advance, s390_function_arg): Likewise.
7522         * config/m32c/m32c.c (m32c_function_arg): Likewise.
7523         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
7524         (m32c_strict_argument_naming): Likewise.
7525         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
7526         (spu_function_arg_advance): Likewise.
7527         (spu_setup_incoming_varargs): Likewise.  Make static.
7528         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
7529         Remove prototype.
7530         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
7531         CUMULATIVE_ARGS* argument type with cumulative_args_t.
7532         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
7533         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
7534         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
7535         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
7536         (mep_pass_by_reference, mep_function_arg): Likewise.
7537         (mep_function_arg_advance): Likewise.
7538         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7539         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
7540         (m32r_function_arg, m32r_function_arg_advance): Likewise.
7541         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
7542         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7543         (ix86_function_arg, ix86_pass_by_reference): Likewise.
7544         (ix86_setup_incoming_varargs): Likewise.
7545         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7546         (sh_strict_argument_naming): Likewise.
7547         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
7548         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
7549         (sh_function_arg_advance, sh_function_arg): Likewise.
7550         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7551         (pdp11_function_arg_advance): Likewise.
7552         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7553         Likewise.
7554         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
7555         * config/avr/avr.c (avr_function_arg): Likewise.
7556         (avr_function_arg_advance): Likewise.
7557         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7558         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
7559         (xtensa_function_arg_1): Likewise.
7560         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
7561         Likewise.
7562         (xstormy16_function_arg): Likewise.
7563         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7564         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7565         (fr30_function_arg_advance): Likewise.
7566         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7567         (lm32_function_arg, lm32_function_arg_advance): Likewise.
7568         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7569         (moxie_function_arg, moxie_function_arg_advance): Likewise.
7570         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
7571         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7572         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
7573         (cris_function_arg, cris_function_incoming_arg): Likewise.
7574         (cris_function_arg_advance, cris_function_arg_1): Likewise.
7575         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7576         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
7577         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
7578         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7579         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
7580         (mn10300_arg_partial_bytes): Likewise.
7581         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7582         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
7583         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
7584         (ia64_function_arg_1): Likewise.
7585         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7586         (m68k_function_arg): Likewise.
7587         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
7588         (rs6000_function_arg, setup_incoming_varargs): Likewise.
7589         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
7590         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
7591         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
7592         (picochip_arg_advance): Likewise.
7593         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7594         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
7595         (mcore_function_arg_advance): Likewise.
7596         * config/score/score.c (score_pass_by_reference): Likewise.
7597         (score_function_arg_advance): Likewise.
7598         (score_arg_partial_bytes): Likewise.  Make static.
7599         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
7600         * config/arm/arm.c (arm_arg_partial_bytes): Replace
7601         CUMULATIVE_ARGS* argument type with cumulative_args_t.
7602         (arm_function_arg, arm_function_arg_advance): Likewise.
7603         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
7604         * config/pa/pa.c (pa_pass_by_reference): Likewise.
7605         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
7606         (pa_function_arg): Likewise.
7607         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
7608         (mips_function_arg, mips_function_arg_advance): Likewise.
7609         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
7610         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
7611         * config/vax/vax.c (vax_function_arg): Likewise.
7612         (vax_function_arg_advance): Likewise.
7613         * config/h8300/h8300.c (h8300_function_arg): Likewise.
7614         (h8300_function_arg_advance): Likewise.
7615         * config/v850/v850.c (v850_pass_by_reference): Likewise.
7616         (v850_strict_argument_naming, v850_function_arg): Likewise.
7617         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
7618         (v850_setup_incoming_varargs): Likewise.
7619         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7620         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
7621         (mmix_function_arg, mmix_pass_by_reference): Likewise.
7622         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
7623         with const void *.
7624         * config/bfin/bfin.c (setup_incoming_varargs): Replace
7625         CUMULATIVE_ARGS* argument type with cumulative_args_t.
7626         (bfin_function_arg_advance, bfin_function_arg): Likewise.
7627         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
7628         * calls.c (emit_call_1): Change type of args_so_far to
7629         cumulative_args_t.  Changed all callers.
7630         (initialize_argument_information): Likewise.
7631         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
7632         * dse.c (get_call_args): Likewise.
7633         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7634         * function.c (pass_by_reference, reference_callee_copied): Likewise.
7635         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
7636         New member args_so_far_v.  Changed all users.
7637         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
7638         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7639         * config/mips/mips.c (mips_output_args_xfer): Likewise.
7640         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7641         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7642         * config/microblaze/microblaze.c (microblaze_expand_prologue):
7643         Likewise.
7644         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
7645         m32r_pass_by_reference.
7646
7647 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
7648
7649         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
7650         argument to be a VEC of statements.
7651         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
7652         assert that pattern statements have to have their vector type set.
7653         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
7654         Change the first argument to be a VEC of statements.  Update
7655         documentation.
7656         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
7657         (vect_handle_widen_mult_by_const): New function.
7658         (vect_recog_widen_mult_pattern):  Change the first argument to be a
7659         VEC of statements.  Update documentation.  Check that the constant is
7660         INTEGER_CST.  Support multiplication by a constant that fits an
7661         intermediate type - call vect_handle_widen_mult_by_const.
7662         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
7663         call.  Handle additional pattern statements if necessary.
7664
7665 2011-06-16  Nick Clifton  <nickc@redhat.com>
7666
7667         PR target/49427
7668         * config.gcc: Set cpu_type to v850 for any V850 architecture.
7669         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
7670         md_file, extra_modes, out_file and extra_options are these are all
7671         deduced from cpu_type.
7672
7673 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
7674
7675         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
7676         truncation mask to 63.
7677
7678 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
7679
7680         PR target/49313
7681         PR target/29524
7682         * longlong.h: Add AVR support:
7683         (count_leading_zeros): New macro.
7684         (count_trailing_zeros): New macro.
7685         (COUNT_LEADING_ZEROS_0): New macro.
7686         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
7687         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
7688         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
7689         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
7690         (LIB2FUNCS_EXCLUDE): Add _clz.
7691         * config/avr/libgcc.S (XCALL): Move up in file.
7692         (XJMP): New C Macro.
7693         (DEFUN): New asm macro.
7694         (ENDF): New asm macro.
7695         (__ffssi2): New function.
7696         (__ffshi2): New function.
7697         (__loop_ffsqi2): New function.
7698         (__ctzsi2): New function.
7699         (__ctzhi2): New function.
7700         (__clzdi2): New function.
7701         (__clzsi2): New function.
7702         (__clzhi2): New function.
7703         (__paritydi2): New function.
7704         (__paritysi2): New function.
7705         (__parityhi2): New function.
7706         (__parityqi2): New function.
7707         (__popcounthi2): New function.
7708         (__popcountsi2): New function.
7709         (__popcountdi2): New function.
7710         (__popcountqi2): New function.
7711         (__bswapsi2): New function.
7712         (__bswapdi2): New function.
7713         (__ashldi3): New function.
7714         (__ashrdi3): New function.
7715         (__lshrdi3): New function.
7716         Fix suspicous lines.
7717
7718 2011-06-16  Richard Guenther  <rguenther@suse.de>
7719
7720         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
7721         the same as x != 0.
7722         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
7723         to (bool) X & 1.
7724         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
7725         equality compares against zero for the lower bit.
7726
7727 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
7728
7729         PR tree-optimization/49419
7730         * tree-vrp.c (execute_vrp): Call init_range_assertions
7731         before estimate_numbers_of_iterations, call
7732         free_number_of_iterations_estimates before calling
7733         remove_range_assertions.
7734
7735 2011-06-16  Revital Eres  <revital.eres@linaro.org>
7736
7737         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
7738         (struct partial_schedule): Add rows_length field.
7739         (verify_partial_schedule): Check rows_length.
7740         (ps_insert_empty_row): Handle rows_length.
7741         (create_partial_schedule): Likewise.
7742         (free_partial_schedule): Likewise.
7743         (reset_partial_schedule): Likewise.
7744         (create_ps_insn): Remove rest_count argument.
7745         (remove_node_from_ps): Update rows_length.
7746         (add_node_to_ps): Update rows_length and call create_ps_insn
7747         without passing row_rest_count.
7748         (rotate_partial_schedule): Update rows_length.
7749
7750 2011-06-16  Revital Eres  <revital.eres@linaro.org>
7751
7752         * ddg.c (add_intra_loop_mem_dep): New function.
7753         (build_intra_loop_deps): Call it.
7754
7755 2011-06-13  Jeff Law  <law@redhat.com>
7756
7757         * df-problems.c (df_lr_local_compute): Manually CSE
7758         PIC_OFFSET_TABLE_REGNUM.
7759         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
7760         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
7761
7762 2011-06-13  Jan Hubicka  <jh@suse.cz>
7763
7764         * cgraphunit.c (handle_alias_pairs): New function.
7765         (cgraph_finalize_compilation_unit): Use it.
7766         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
7767         as externally visible.
7768
7769 2011-06-15  Richard Guenther  <rguenther@suse.de>
7770
7771         * expr.c (expand_expr_real_2): Reduce all integral types to
7772         bitfield precision.
7773         (expand_expr_real_1): Likewise.
7774
7775 2011-06-15  Martin Jambor  <mjambor@suse.cz>
7776
7777         PR tree-optimization/48613
7778         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
7779         ipa_node_params_vector is NULL.
7780
7781 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
7782
7783         PR debug/49382
7784         * dwarf2out.c (dw_loc_list_node): Add force field.
7785         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
7786         location in the list, even if it is modified before first real insn.
7787         (output_loc_list): Emit empty ranges with force flag set.
7788         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
7789
7790 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
7791
7792         PR target/49349
7793         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
7794         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
7795         above a fence.  Update comments.
7796         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
7797         placed just above it.  Do not allow NULL place_to_insert.
7798
7799 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
7800
7801         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
7802         (slpeel_tree_peel_loop_to_edge): Don't call
7803         remove_dead_stmts_from_loop.
7804         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7805         remove irrelevant pattern statements.  For irrelevant statements
7806         check if it is the last statement of a detected pattern, use
7807         corresponding pattern statement instead.
7808         (destroy_loop_vec_info): No need to remove pattern statements,
7809         only free stmt_vec_info.
7810         (vect_transform_loop): For irrelevant statements check if it is
7811         the last statement of a detected pattern, use corresponding
7812         pattern statement instead.
7813         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
7814         pattern statements.  Set basic block for the new statement.
7815         (vect_pattern_recog): Update documentation.
7816         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
7817         operands of pattern statements.
7818         (vectorizable_call): Fix printing.  In case of a pattern statement
7819         use the lhs of the original statement when creating a dummy
7820         statement to replace the original call.
7821         (vect_analyze_stmt): For irrelevant statements check if it is
7822         the last statement of a detected pattern, use corresponding
7823         pattern statement instead.
7824         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
7825         statements use gsi of the original statement.
7826
7827 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7828
7829         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
7830         common/common-target-def.h.
7831         * target.def (default_target_flags, handle_option,
7832         supports_split_stack, optimization_table, init_struct,
7833         except_unwind_info, unwind_tables_default, have_named_sections):
7834         Move to common/common-target.def.
7835         * target.h (enum opt_levels, struct default_options): Move to
7836         common/common-target.h.
7837         * targhooks.c (default_except_unwind_info,
7838         dwarf2_except_unwind_info, sjlj_except_unwind_info,
7839         default_target_handle_option, empty_optimization_table): Move to
7840         common/common-targhooks.c.
7841         * targhooks.h (default_except_unwind_info,
7842         dwarf2_except_unwind_info, sjlj_except_unwind_info,
7843         default_target_handle_option, empty_optimization_table): Move to
7844         common/common-targhooks.h.
7845         * common/common-target-def.h: Include common/common-targhooks.h.
7846         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
7847         defined.
7848         * common/common-target.def (handle_option, option_init_struct,
7849         option_optimization_table, default_target_flags,
7850         except_unwind_info, supports_split_stack, unwind_tables_default,
7851         have_named_sections): Move from target.def.
7852         (HOOK_PREFIX): Undefine at end of file.
7853         * common/common-target.h: Include input.h.
7854         (enum opt_levels, struct default_options): Move from target.h.
7855         * common/common-targhooks.c, common/common-targhooks.h: New.
7856         * config.gcc (target_has_targetm_common): Default to yes.
7857         (moxie*): Set target_has_targetm_common=no.
7858         (hppa*-*-*): Don't set target_has_targetm_common=yes.
7859         * doc/tm.texi: Regenerate.
7860         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
7861         (C_TARGET_DEF_H): Add common/common-targhooks.h.
7862         (GCC_OBJS): Remove vec.o.
7863         (OBJS): Remove hooks.o and vec.o.
7864         (OBJS-libcommon-target): Add vec.o, hooks.o and
7865         common/common-targhooks.o.
7866         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
7867         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
7868         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
7869         cfglayout.o, $(out_object_file), $(common_out_object_file)):
7870         Update dependencies.
7871         (common/common-targhooks.o): New.
7872         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
7873         * common/config/pa/pa-common.c: Include more headers.  Take
7874         copyright dates from pa.c.
7875         (pa_option_optimization_table, pa_handle_option,
7876         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
7877         TARGET_HANDLE_OPTION): Move from pa.c.
7878         * common/config/alpha/alpha-common.c,
7879         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
7880         common/config/bfin/bfin-common.c,
7881         common/config/cris/cris-common.c,
7882         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
7883         common/config/h8300/h8300-common.c,
7884         common/config/i386/i386-common.c,
7885         common/config/ia64/ia64-common.c,
7886         common/config/iq2000/iq2000-common.c,
7887         common/config/lm32/lm32-common.c,
7888         common/config/m32c/m32c-common.c,
7889         common/config/m32r/m32r-common.c,
7890         common/config/m68k/m68k-common.c,
7891         common/config/mcore/mcore-common.c,
7892         common/config/mep/mep-common.c,
7893         common/config/microblaze/microblaze-common.c,
7894         common/config/mips/mips-common.c,
7895         common/config/mmix/mmix-common.c,
7896         common/config/mn10300/mn10300-common.c,
7897         common/config/pdp11/pdp11-common.c,
7898         common/config/picochip/picochip-common.c,
7899         common/config/rs6000/rs6000-common.c,
7900         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
7901         common/config/score/score-common.c, common/config/sh/sh-common.c,
7902         common/config/sparc/sparc-common.c,
7903         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
7904         common/config/vax/vax-common.c,
7905         common/config/xstormy16/xstormy16-common.c,
7906         common/config/xtensa/xtensa-common.c: New.
7907         * config/alpha/alpha.c: Include common/common-target.h.
7908         (alpha_option_optimization_table, alpha_handle_option,
7909         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7910         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
7911         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
7912         * config/arm/arm.c (arm_option_optimization_table,
7913         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7914         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
7915         arm-common.c.
7916         * config/avr/avr.c (avr_option_optimization_table,
7917         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
7918         to avr-common.c.
7919         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
7920         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
7921         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
7922         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
7923         * config/cris/cris.c (cris_option_optimization_table,
7924         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7925         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
7926         cris-common.c.
7927         * config/fr30/fr30.c (fr30_option_optimization_table,
7928         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
7929         to fr30-common.c.
7930         * config/frv/frv.c (frv_option_optimization_table,
7931         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
7932         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
7933         * config/h8300/h8300.c (h8300_option_optimization_table,
7934         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7935         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
7936         * config/i386/i386-protos.h (ix86_handle_option): Declare.
7937         * config/i386/i386.c: Include common/common-target.h.
7938         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
7939         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
7940         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
7941         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
7942         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
7943         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
7944         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
7945         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
7946         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
7947         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
7948         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
7949         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
7950         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
7951         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
7952         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
7953         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
7954         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
7955         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
7956         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
7957         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
7958         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
7959         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
7960         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
7961         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
7962         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
7963         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
7964         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
7965         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
7966         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
7967         ix86_option_optimization_table, ix86_option_init_struct,
7968         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
7969         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
7970         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
7971         i386-common.c.
7972         * config/i386/t-i386 (i386.o): Update dependencies.
7973         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
7974         * config/ia64/ia64.c (ia64_option_optimization_table,
7975         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
7976         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7977         ia64_handle_option): Move to ia64-common.c.
7978         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
7979         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
7980         * config/lm32/lm32.c (lm32_option_optimization_table,
7981         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
7982         to lm32-common.c.
7983         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
7984         m32c-common.c.
7985         * config/m32r/m32r.c (m32r_option_optimization_table,
7986         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7987         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
7988         m32r_handle_option): Move to m32r-common.c.
7989         (m32r_memory_move_cost): Remove comment referring to
7990         TARGET_HANDLE_OPTION.
7991         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
7992         Move to m68k-common.c.
7993         * config/mcore/mcore.c (mcore_option_optimization_table,
7994         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7995         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
7996         * config/mep/mep.c (mep_option_optimization_table,
7997         mep_handle_option, TARGET_HANDLE_OPTION,
7998         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
7999         Move to mep-common.c.
8000         * config/microblaze/microblaze.c
8001         (microblaze_option_optimization_table,
8002         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8003         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
8004         * config/mips/mips.c (mips_handle_option,
8005         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8006         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
8007         mips-common.c.
8008         * config/mmix/mmix.c (mmix_option_optimization_table,
8009         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8010         Move to mmix-common.c.
8011         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8012         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
8013         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8014         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
8015         * config/pa/pa.c: Include common/common-target.h.
8016         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8017         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8018         pa_handle_option): Move to pa-common.c.
8019         (pa_option_override): Use targetm_common.except_unwind_info.
8020         (pa_asm_output_mi_thunk, pa_function_section): Use
8021         targetm_common.have_named_sections.
8022         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
8023         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8024         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8025         pdp11_handle_option, pdp11_option_init_struct): Move to
8026         pdp11-common.c.
8027         * config/picochip/picochip.c (picochip_option_optimization_table,
8028         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
8029         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
8030         * config/rs6000/rs6000.c: Include common/common-target.h.
8031         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
8032         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
8033         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
8034         rs6000_handle_option): Move to rs6000-common.c.
8035         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8036         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
8037         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8038         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
8039         * config/s390/s390.c (processor_flags_table,
8040         s390_option_optimization_table, s390_option_init_struct,
8041         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
8042         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8043         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
8044         * config/s390/s390.h (processor_flags_table): Declare.
8045         * config/score/score.c (score_option_optimization_table,
8046         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8047         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
8048         score_handle_option): Move to score-common.c.
8049         * config/sh/sh.c (sh_option_optimization_table,
8050         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8051         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8052         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
8053         * config/sparc/sparc.c: Include common/common-target.h.
8054         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8055         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
8056         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
8057         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
8058         spu_option_init_struct): Move to spu-common.c.
8059         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8060         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
8061         * config/v850/v850.c (small_memory_physical_max,
8062         v850_handle_memory_optionn v850_handle_option,
8063         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8064         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
8065         v850-common.c.
8066         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
8067         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
8068         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8069         Move to xtensa-common.c.
8070         * cfglayout.c: Include common/common-target.h.
8071         (fixup_reorder_chain): Use targetm_common.have_named_sections.
8072         * cfgrtl.c: Include common/common-target.h.
8073         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
8074         targetm_common.have_named_sections.
8075         * dbxout.c: Include common/common-target.h.
8076         (dbxout_function_end): Use targetm_common.have_named_sections.
8077         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
8078         targetm_common.except_unwind_info.
8079         * dwarf2out.c: Include common/common-target.h.
8080         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
8081         dwarf2out_begin_prologue, dwarf2out_frame_init,
8082         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
8083         targetm_common.except_unwind_info.
8084         * except.c: Include common/common-target.h.
8085         (init_eh, finish_eh_generation,
8086         output_one_function_exception_table): Use
8087         targetm_common.except_unwind_info.
8088         (switch_to_exception_section): Use targetm_common.have_named_sections.
8089         * explow.c: Include common/common-target.h.
8090         * expr.c: Include common/common-target.h.
8091         (build_personality_function): Use targetm_common.except_unwind_info.
8092         * function.c: Include common/common-target.h.
8093         (expand_function_end): Use targetm_common.except_unwind_info.
8094         * haifa-sched.c: Include common/common-target.h.
8095         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
8096         * lto-opts.c: Include common/common-target.h instead of target.h.
8097         (lto_reissue_options): Use targetm_common.handle_option.
8098         * opts.c: Include common/common-target.h.
8099         (target_handle_option): Use targetm_common.handle_option.
8100         (init_options_struct): Update comment referring to
8101         targetm.target_option.optimization.  Use
8102         targetm_common.default_target_flags,
8103         targetm_common.unwind_tables_default and
8104         targetm_common.option_init_struct.
8105         (default_options_optimization): Use
8106         targetm_common.option_optimization_table.
8107         (finish_options): Use targetm_common.except_unwind_info,
8108         targetm_common.unwind_tables_default,
8109         targetm_common.have_named_sections and
8110         targetm_common.supports_split_stack.
8111         * toplev.c: Include common/common-target.h.
8112         (process_options): Use targetm_common.have_named_sections.
8113         * tree-tailcall.c: Include common/common-target.h.
8114         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
8115         * tree.c: Include common/common-target.h.
8116         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
8117         * varasm.c: Include common/common-target.h.
8118         (resolve_unique_section, hot_function_section,
8119         default_function_section): Use targetm_common.have_named_sections.
8120
8121 2011-06-14  Easwaran Raman  <eraman@google.com>
8122
8123         PR rtl-optimization/44194
8124         * dse.c: Include tree-flow.h
8125         (insn_info): Add new field non_frame_wild_read.
8126         (group_info): Add new fields escaped_n and escaped_p.
8127         (kill_on_calls): New variable.
8128         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
8129         (dse_step0): Initialize kill_on_calls.
8130         (can_escape): New function.
8131         (set_usage_bits): Add additional parameter; record information
8132         about escaped locations.
8133         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
8134         (dse_step2_nospill): Set kill_on_calls based on
8135         group->escaped_n and group->escaped_n.
8136         (add_wild_read): Refactor into...
8137         (reset_active_stores): ... New function, and
8138         (free_read_records): ... New function.
8139         (add_non_frame_wild_read): New function.
8140         (scan_insn): Call add_non_frame_wild_read on non-const calls.
8141         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
8142         (dse_step5_nospill): Call scan_reads_nospill for instructions
8143         marked as non_frame_wild_read.
8144         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
8145
8146 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
8147
8148         * common/common-target-def.h, common/common-target.def,
8149         common/common-target.h, common/config/default-common.c,
8150         common/config/pa/pa-common.c: New files.
8151         * Makefile.in (common_out_file, common_out_object_file,
8152         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
8153         (OBJS-libcommon-target): Include $(common_out_object_file).
8154         (prefix.o): Update dependencies.
8155         ($(common_out_object_file), common/common-target-hooks-def.h,
8156         s-common-target-hooks-def-h): New.
8157         (s-tm-texi): Also check timestamp on common-target.def.
8158         (build/genhooks.o): Update dependencies.
8159         * config.gcc (common_out_file, target_has_targetm_common): Define.
8160         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
8161         TARGET_ALWAYS_STRIP_DOTDOT.
8162         * configure.ac (common_out_object_file): Define.
8163         (common_out_file, common_out_object_file): Substitute.
8164         (common): Create directory.
8165         * configure: Regenerate.
8166         * doc/tm.texi.in (targetm_common): Document.
8167         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
8168         * doc/tm.texi: Regenerate.
8169         * genhooks.c (hook_array): Also include common/common-target.def.
8170         * prefix.c (tm.h): Don't include.
8171         (common/common-target.h): Include.
8172         (ALWAYS_STRIP_DOTDOT): Don't define.
8173         (update_path): Use targetm_common.always_strip_dotdot instead of
8174         ALWAYS_STRIP_DOTDOT.
8175         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
8176
8177 2011-06-14  David Li  <davidxl@google.com>
8178
8179         * passes.c (execute_function_todo): Remove TODO_dump_func.
8180         (execute_one_pass): Remove TODO_dump_func.
8181         (execute_function_dump): New function.
8182         * tree-vrp.c: Remove TODO_dump_func.
8183         * regrename.c: Remove TODO_dump_func.
8184         * fwprop.c: Remove TODO_dump_func.
8185         * tree-into-ssa.c: Remove TODO_dump_func.
8186         * tree-complex.c: Remove TODO_dump_func.
8187         * tracer.c: Remove TODO_dump_func.
8188         * tree-loop-distribution.c: Remove TODO_dump_func.
8189         * postreload-gcse.c: Remove TODO_dump_func.
8190         * postreload.c: Remove TODO_dump_func.
8191         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
8192         * tree-tailcall.c: Remove TODO_dump_func.
8193         * ipa-cp.c: Remove TODO_dump_func.
8194         * final.c: Remove TODO_dump_func.
8195         * tree-emutls.c: Remove TODO_dump_func.
8196         * omp-low.c: Remove TODO_dump_func.
8197         * tree-ssa-dse.c: Remove TODO_dump_func.
8198         * tree-ssa-uncprop.c: Remove TODO_dump_func.
8199         * auto-inc-dec.c: Remove TODO_dump_func.
8200         * reorg.c: Remove TODO_dump_func.
8201         * tree-ssa-copyrename.c: Remove TODO_dump_func.
8202         * tree-ssa-ccp.c: Remove TODO_dump_func.
8203         * compare-elim.c: Remove TODO_dump_func.
8204         * mode-switching.c: Remove TODO_dump_func.
8205         * modulo-sched.c: Remove TODO_dump_func.
8206         * tree-call-cdce.c: Remove TODO_dump_func.
8207         * cse.c: Remove TODO_dump_func.
8208         * web.c: Remove TODO_dump_func.
8209         * tree-stdarg.c: Remove TODO_dump_func.
8210         * lto-streamer-out.c: Remove TODO_dump_func.
8211         * tree-ssa-math-opts.c: Remove TODO_dump_func.
8212         * tree-ssa-dom.c: Remove TODO_dump_func.
8213         * tree-nrv.c: Remove TODO_dump_func.
8214         * loop-init.c: Remove TODO_dump_func.
8215         * gimple-low.c: Remove TODO_dump_func.
8216         * ipa-inline.c: Remove TODO_dump_func.
8217         * tree-ssa-sink.c: Remove TODO_dump_func.
8218         * jump.c: Remove TODO_dump_func.
8219         * ifcvt.c: Remove TODO_dump_func.
8220         * tree-ssa-loop.c: Remove TODO_dump_func.
8221         * recog.c: Remove TODO_dump_func.
8222         * dse.c: Remove TODO_dump_func.
8223         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
8224         * matrix-reorg.c: Remove TODO_dump_func.
8225         * tree-eh.c: Remove TODO_dump_func.
8226         * regmove.c: Remove TODO_dump_func.
8227         * function.c: Remove TODO_dump_func.
8228         * tree-vectorizer.c: Remove TODO_dump_func.
8229         * ipa-split.c: Remove TODO_dump_func.
8230         * gcse.c: Remove TODO_dump_func.
8231         * tree-if-conv.c: Remove TODO_dump_func.
8232         * init-regs.c: Remove TODO_dump_func.
8233         * tree-ssa-phiopt.c: Remove TODO_dump_func.
8234         * implicit-zee.c: Remove TODO_dump_func.
8235         * lower-subreg.c: Remove TODO_dump_func.
8236         * bt-load.c: Remove TODO_dump_func.
8237         * tree-dfa.c: Remove TODO_dump_func.
8238         * except.c: Remove TODO_dump_func.
8239         * emit-rtl.c: Remove TODO_dump_func.
8240         * store-motion.c: Remove TODO_dump_func.
8241         * cfgexpand.c: Remove TODO_dump_func.
8242         * tree-cfgcleanup.c: Remove TODO_dump_func.
8243         * cfgcleanup.c: Remove TODO_dump_func.
8244         * tree-ssa-pre.c: Remove TODO_dump_func.
8245         * tree-sra.c: Remove TODO_dump_func.
8246         * tree-mudflap.c: Remove TODO_dump_func.
8247         * tree-ssa-copy.c: Remove TODO_dump_func.
8248         * cfglayout.c: Remove TODO_dump_func.
8249         * tree-ssa-forwprop.c: Remove TODO_dump_func.
8250         * tree-ssa-dce.c: Remove TODO_dump_func.
8251         * ira.c: Remove TODO_dump_func.
8252         * tree-ssa.c: Remove TODO_dump_func.
8253         * integrate.c: Remove TODO_dump_func.
8254         * tree-optimize.c: Remove TODO_dump_func.
8255         * tree-ssa-phiprop.c: Remove TODO_dump_func.
8256         * tree-object-size.c: Remove TODO_dump_func.
8257         * combine.c: Remove TODO_dump_func.
8258         * bb-reorder.c: Remove TODO_dump_func.
8259         * cprop.c: Remove TODO_dump_func.
8260         * var-tracking.c: Remove TODO_dump_func.
8261         * tree-profile.c: Remove TODO_dump_func.
8262         * tree-vect-generic.c: Remove TODO_dump_func.
8263         * reg-stack.c: Remove TODO_dump_func.
8264         * sched-rgn.c: Remove TODO_dump_func.
8265         * tree-ssa-structalias.c: Remove TODO_dump_func.
8266         * tree-switch-conversion.c: Remove TODO_dump_func.
8267         * tree-cfg.c: Remove TODO_dump_func.
8268         * tree-ssa-reassoc.c: Remove TODO_dump_func.
8269         * combine-stack-adj.c: Remove TODO_dump_func.
8270         * dce.c: Remove TODO_dump_func.
8271         * tree-ssanames.c: Remove TODO_dump_func.
8272         * regcprop.c: Remove TODO_dump_func.
8273
8274 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
8275
8276         PR middle-end/47364
8277         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
8278         and properly handle result not in Pmode.
8279
8280 2011-06-14  Robert Millan  <rmh@gnu.org>
8281
8282         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
8283         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
8284         `config/linux.h'.
8285
8286         * config/i386/kfreebsd-gnu64.h: New file.
8287         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
8288         with `i386/kfreebsd-gnu64.h'.
8289
8290         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
8291         (GNU_USER_LINK_EMULATION64): New macros.
8292         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
8293         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
8294         of hardcoding `elf_i386' and `elf_x86_64'.
8295
8296 2011-06-14  Nick Clifton  <nickc@redhat.com>
8297
8298         PR target/49403
8299         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
8300
8301         PR target/49402
8302         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
8303
8304 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
8305
8306         PR fortran/49103
8307         * tree.h (DECL_NONSHAREABLE): Define.
8308         (struct tree_decl_common): Change decl_common_unused to
8309         decl_nonshareable_flag.
8310         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
8311         Ignore vars with DECL_NONSHAREABLE bit set.
8312         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
8313         on stores to automatic aggregate vars.
8314
8315         PR rtl-optimization/49390
8316         Revert:
8317         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
8318
8319         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8320         MEM_ALIAS_SET.
8321
8322 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
8323             Tom de Vries  <tom@codesourcery.com>
8324
8325         PR target/45098
8326         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
8327         Document changed semantics.
8328         (max_stmt_executions, max_stmt_executions_int): Declare.
8329         * tree-data-ref.c (estimated_loop_iterations)
8330         (estimated_loop_iterations_int): Move functions...
8331         * tree-ssa-loop-niter.c (estimated_loop_iterations)
8332         (estimated_loop_iterations_int): here.
8333         (record_estimate): Change nb_iterations_upper_bound and
8334         nb_iterations_estimate semantics.
8335         (max_stmt_executions, max_stmt_executions_int): New function.
8336         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
8337         (max_stmt_executions_tree): this.
8338         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
8339         estimated_loop_iterations_tree.
8340         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
8341         max_stmt_executions_int instead of estimated_loop_iterations_int.
8342         * predict.c (predict_loops): Idem.
8343         * tree-parloops.c (parallelize_loops): Idem.
8344         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
8345         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
8346         (init_omega_for_ddr_1): Idem.
8347         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
8348         (loop_prefetch_arrays): Idem
8349         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
8350         max_stmt_executions instead of estimated_loop_iterations.
8351         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
8352         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
8353         instead of nb_iterations_upper_bound.
8354
8355 2011-06-13  Jan Hubicka  <jh@suse.cz>
8356
8357         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
8358
8359 2011-06-14  Richard Henderson  <rth@redhat.com>
8360
8361         PR debug/48459
8362         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
8363         (based_loc_descr): Assert it's true.
8364         (compute_frame_pointer_to_fb_displacement): Set it, rather than
8365         aborting immediately.
8366
8367 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
8368             Mingfeng Wu  <mingfeng@faraday-tech.com>
8369
8370         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
8371
8372 2011-06-13  Jan Hubicka  <jh@suse.cz>
8373
8374         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
8375
8376 2011-06-13  Jan Hubicka  <jh@suse.cz>
8377
8378         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
8379         similarly to DECL_COMDAT.
8380         * cgraphunit.c (cgraph_analyze_function): Likewise.
8381         * ipa.c (function_and_variable_visibility): Likewise.
8382
8383 2011-06-13  Jan Hubicka  <jh@suse.cz>
8384
8385         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
8386         BINFO_VIRTUALS when streaming for ltrans unit.
8387
8388 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
8389
8390         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
8391         (movdi_internal64): Same.
8392
8393 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
8394
8395         PR target/44618
8396         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
8397         a set of similar patterns, where the MATCH_OPERAND for the function
8398         argument is replaced with individual references to hardware registers.
8399         (save_fpregs_<mode>): Ditto
8400         (restore_gpregs_<mode>): Ditto
8401         (return_and_restore_gpregs_<mode>): Ditto
8402         (return_and_restore_fpregs_<mode>): Ditto
8403         (return_and_restore_fpregs_aix_<mode>): Ditto
8404
8405 2011-06-13  Jan Hubicka  <jh@suse.cz>
8406
8407         * ipa-utils.c (postorder_stack): New structure.
8408         (ipa_reverse_postorder): Handle aliases.
8409
8410 2011-06-13  Jan Hubicka  <jh@suse.cz>
8411
8412         * ipa-inline.c (reset_edge_caches): Walk aliases.
8413         (update_caller_keys): Do not test inlinability of aliases.
8414         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
8415         (do_estimate_growth): Fix typo.
8416
8417 2011-06-13  Jan Hubicka  <jh@suse.cz>
8418
8419         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
8420         (can_remove_node_now_p): ... here; handle same comdat groups.
8421         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
8422         (inline_call): Update use of can_remove_node_now_p.
8423
8424 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
8425
8426         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
8427         condition to disallow non-identical memory locations.
8428         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
8429         preference to bit manipulation instructions.
8430
8431 2011-06-13  Jan Hubicka  <jh@suse.cz>
8432
8433         * cgraph.c (cgraph_for_node_thunks_and_aliases,
8434         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
8435         (nonremovable_p): New function.
8436         (cgraph_can_remove_if_no_direct_calls_p): New function.
8437         (used_from_object_file_p): New functoin.
8438         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
8439         references from aliases.
8440         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
8441         * ipa-inline.c (check_caller_edge): New function.
8442         (want_inline_function_called_once_p): Use it; accept aliases called
8443         once, too.
8444         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
8445
8446 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8447
8448         PR target/48454
8449         * config/arm/neon.md (vec_pack_trunc): Set the lengths
8450         correctly for the case with Quad vectors.
8451
8452 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
8453            Ira Rosen  <ira.rosen@linaro.org>
8454
8455         PR tree-optimization/49352
8456         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
8457         all, make sure loop_use_stmt after the loop is a def stmt of a used
8458         SSA_NAME that is the only one defined inside of the loop.  Don't
8459         check for COND_EXPR and GIMPLE_BINARY_RHS.
8460         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
8461         check_reduction is true.
8462
8463 2011-06-11  Jan Hubicka  <jh@suse.cz>
8464
8465         PR middle-end/49373
8466         * ipa.c (cgraph_externally_visible_p): Check resolution info.
8467
8468 2011-06-11  Jan Hubicka  <jh@suse.cz>
8469
8470         PR middle-end/48836
8471         * ipa-inline-transform.c: Include tree-pass.h
8472         (inline_transform): Set TODO_update_ssa_only_virtuals.
8473         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
8474
8475 2011-06-11  Jan Hubicka  <jh@suse.cz>
8476
8477         PR middle-end/49378
8478         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
8479         aliases and thunks.
8480
8481 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
8482
8483         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
8484         Take number of iterations to peel into account for equally frequent
8485         misalignment values.
8486
8487 2011-06-11  Jan Hubicka  <jh@suse.cz>
8488
8489         * lto-streamer-out.c (produce_symtab): Stream out the newly
8490         represented aliases.
8491
8492 2011-06-11  Jan Hubicka  <jh@suse.cz>
8493
8494         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
8495         varying args.
8496         (ipa_update_after_lto_read): Likewise.
8497         (ipa_write_node_info): Do not sream call_with_var_arguments.
8498         (ipa_read_node_info): Likewise.
8499
8500 2011-06-11  Jan Hubicka  <jh@suse.cz>
8501
8502         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
8503
8504 2011-06-11  Jan Hubicka  <jh@suse.cz>
8505
8506         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
8507         (lto_symtab_resolve_can_prevail_p): Likewise.
8508         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
8509         * cgraph.c (same_body_aliases_done): New global var.
8510         (cgraph_same_body_alias_1): Rename to ...
8511         (cgraph_create_function_alias): ... this one; reorg to new
8512         representation.
8513         (cgraph_same_body_alias): Use cgraph_create_function_alias;
8514         record references when asked to.
8515         (cgraph_add_thunk): Fix formating.
8516         (cgraph_get_node): Kill same body alias code.
8517         (cgraph_node_for_asm): Likewise.
8518         (cgraph_remove_same_body_alias): Remove.
8519         (cgraph_remove_node): Kill same body alias code.
8520         (cgraph_mark_address_taken_node): Mark also the aliased function
8521         as having address taken.
8522         (dump_cgraph_node): Dump same body aliases.
8523         (cgraph_for_node_thunks_and_aliases): Update for new alias
8524         representation.
8525         (cgraph_for_node_and_aliases): Likewise.
8526         * cgraph.h (same_body): Kll pointer.
8527         (same_body_alias): Update comment.
8528         (same_body_aliases_done): Declare.
8529         (cgraph_remove_same_body_alias): Remove declaration.
8530         (cgraph_create_function_alias): Declare.
8531         (cgraph_process_same_body_aliases): Declare.
8532         (cgraph_function_with_gimple_body_p): Check for alias.
8533         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
8534         (cgraph_alias_aliased_node): New function.
8535         (cgraph_function_node): Update for new aliases.
8536         (cgraph_function_or_thunk_node): Likewise.
8537         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
8538         (inline_call): Remove dead aliases.
8539         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
8540         name hack for same body aliases.
8541         (clone_of_p): Look through aliases.
8542         (verify_cgraph_node): Verify aliases.
8543         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
8544         (cgraph_process_same_body_aliases): New function.
8545         (process_function_and_variable_attributes): Disable weakref warning on
8546         alias.
8547         (cgraph_analyze_functions): Handle aliases.
8548         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
8549         (assemble_thunks): Rename to ...
8550         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
8551         (cgraph_expand_function): Remove alias output code.
8552         (cgraph_output_in_order): Skip aliases.
8553         (cgraph_preserve_function_body_p): Aliases don't need preserving.
8554         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
8555         (ipa_record_reference): Do not assert on alias references.
8556         (ipa_ref_has_aliases_p): New function.
8557         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
8558         (ipa_ref_has_aliases_p): Declare.
8559         * lto-cgraph.c (lto_output_node): Handle aliases.
8560         (input_node): Likewise.
8561         * lto-streamer-out.c (lto_output): Skip aliases.
8562         (produce_symtab): Kill same_body_alias code.
8563         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
8564         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
8565         * ipa-inline.c (update_caller_keys): Walk aliases.
8566         (inline_small_functions): Fix thinko in previous patch.
8567         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
8568         (function_and_variable_visibility): Do not walk same body aliases.
8569         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
8570         (ipa_pta_execute): Use it.
8571
8572 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
8573
8574         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
8575         (*vec_dupv2df): Rename from vec_dupv2df.
8576         (vec_dupv2df): New expander.
8577
8578 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
8579
8580         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
8581
8582 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
8583
8584         * config/i386/i386.md: Use default value in "isa" attribute.
8585         * config/i386/sse.md: Ditto.
8586         * config/i386/mmx.md: Ditto.
8587
8588 2011-06-10  Wei Guozhi  <carrot@google.com>
8589
8590         PR target/45335
8591         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8592         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8593         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8594         related peephole2.
8595         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8596         related peephole2.
8597         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8598         (arm_legitimate_ldrd_p): New prototype.
8599         (arm_output_ldrd): New prototype.
8600         * config/arm/arm.c (arm_check_ldrd_operands): New function.
8601         (arm_legitimate_ldrd_p): New function.
8602         (arm_output_ldrd): New function.
8603
8604 2011-06-10  David Li  <davidxl@google.com>
8605
8606         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8607         * passes.c (passr_eq): New function.
8608         (create_pass_tab): New function.
8609         (pass_traverse): New function.
8610         (dump_one_pass): New function.
8611         (dump_pass_list): New function.
8612         (dump_passes): New function.
8613
8614 2011-06-10  Jan Hubicka  <jh@suse.cz>
8615
8616         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
8617         setting the nothrow flag.
8618         * ipa-reference.c (propagate): Skip aliases.
8619         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
8620         (propagate_nothrow): Skip aliases; do not update cgraph.
8621         (local_pure_const): Do not update cgraph.
8622         * tree-profile.c (tree_profiling): Do fixup_cfg.
8623
8624 2011-06-10  Jan Hubicka  <jh@suse.cz>
8625
8626         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
8627         (cgraph_local_node_p): ... here; handle aliases.
8628         (has_addr_references_p): Break out from ...;
8629         (cgraph_remove_unreachable_nodes) ... here.
8630
8631 2011-06-10  Jan Hubicka  <jh@suse.cz>
8632
8633         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
8634         * common.opt (flag_inline_functions_called_once): Do not
8635         initialize to 1.
8636
8637 2011-06-10  Jan Hubicka  <jh@suse.cz>
8638
8639         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
8640         (ipcp_initialize_node_lattices): Do not deal with aliases;
8641         Do not try to propagate through thunks.
8642         (ipcp_change_tops_to_bottom): Do not deal with aliases.
8643
8644 2011-06-10  Jan Hubicka  <jh@suse.cz>
8645
8646         * ipa-prop.c (ipa_write_node_info): Stream jump functions
8647         for indirect calls.
8648         (ipa_read_node_info): Likewise.
8649
8650 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8651
8652         PR lto/49302
8653         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
8654         (build_and_insert_call): Likewise.
8655         (build_and_insert_ref): New.
8656         (gimple_expand_builtin_pow): Minor cleanup.
8657         (gimple_expand_builtin_cabs): New.
8658         (execute_cse_sincos): Add case for BUILT_IN_CABS.
8659
8660 2011-06-10  Jan Hubicka  <jh@suse.cz>
8661
8662         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
8663         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
8664         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
8665         (ipcp_propagate_stage): Skip aliases when propagating.
8666         (ipcp_need_redirect_p): Skip aliases.
8667         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
8668         collect_callers_of_node.
8669         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
8670         for aliases.
8671         (ipa_compute_jump_functions): Look through aliases.
8672
8673 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8674
8675         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
8676
8677 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8678
8679         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
8680         Adjust comments.
8681         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
8682
8683 2011-06-10  Jan Hubicka  <jh@suse.cz>
8684
8685         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
8686         Update call of gimple_get_virt_method_for_binfo.
8687         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
8688         refuse_thunks parameter.
8689         (gimple_fold_call): Update.
8690         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
8691
8692 2011-06-10  Jan Hubicka  <jh@suse.cz>
8693
8694         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
8695         (not_all_callers_have_enough_arguments_p): ... this one; turn into
8696         worker for cgraph_for_node_and_aliases.
8697         (convert_callers_for_node): Break out from ...
8698         (convert_callers): ... here.
8699         (modify_function): Use collect_callers_of_node.
8700         (ipa_early_sra): Use cgraph_for_node_and_aliases.
8701
8702 2011-06-10  Richard Guenther  <rguenther@suse.de>
8703
8704         PR tree-optimization/49361
8705         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
8706         when not already in gimple form.
8707
8708 2011-06-10  Richard Guenther  <rguenther@suse.de>
8709
8710         PR bootstrap/49344
8711         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
8712         FOR_EACH_PHI_OR_STMT_USE.
8713
8714 2011-06-10  Jan Hubicka  <jh@suse.cz>
8715
8716         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
8717         (clone_inlined_nodes): ... here.
8718         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
8719         to real destination prior inlining.
8720         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
8721         can_early_inline_edge_p, want_early_inline_function_p,
8722         want_early_inline_function_p, want_inline_small_function_p,
8723         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
8724         edge_badness, update_all_callee_keys, lookup_recursive_calls,
8725         add_new_edges_to_heap, inline_small_functions, flatten_function,
8726         inline_always_inline_functions, early_inline_small_functions): Use
8727         cgraph_function_or_thunk_node.
8728         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
8729         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
8730         (do_estimate_edge_growth_1): Break out from ...
8731         (do_estimate_growth) ... here; walk aliases.
8732         (inline_generate_summary): Skip aliases.
8733
8734 2011-06-10  Richard Guenther  <rguenther@suse.de>
8735
8736         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
8737         forward when combining, visit inserted stmts when a stmt was changed.
8738
8739 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
8740
8741         * tree.h (error_operand_p): Add.
8742         * dbxout.c (dbxout_type_fields): Use the latter.
8743         * c-decl.c (add_stmt): Likewise.
8744         * gimplify.c (omp_add_variable, omp_notice_variable,
8745         gimplify_scan_omp_clauses): Likewise.
8746
8747 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
8748
8749         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
8750         when a value is actually passed in regs.
8751
8752 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
8753             Laurent Rougé  <laurent.rouge@menta.fr>
8754
8755         * doc/invoke.texi (SPARC options): Add -mflat.
8756         * config/sparc/sparc.opt: Likewise.
8757         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
8758         (sparc_flat_expand_prologue): Declare.
8759         (sparc_flat_expand_epilogue): Likewise.
8760         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
8761         (CPP_ENDIAN_SPEC): Replace with...
8762         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
8763         (CPP_SPEC): Adjust to above change.
8764         (EXTRA_SPECS): Likewise.
8765         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
8766         (INCOMING_REGNO): Likewise.
8767         (OUTGOING_REGNO): Likewise.
8768         (LOCAL_REGNO): Likewise.
8769         (SETUP_FRAME_ADDRESSES): Likewise.
8770         (FIXED_REGISTERS): Set 0 for %fp.
8771         (CALL_USED_REGISTERS): Likewise.
8772         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
8773         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
8774         (RETURN_ADDR_REGNUM): Define.
8775         (RETURN_ADDR_RTX): Use it.
8776         (INCOMING_RETURN_ADDR_REGNUM): Define.
8777         (INCOMING_RETURN_ADDR_RTX): Use it.
8778         (DWARF_FRAME_RETURN_COLUMN): Likewise.
8779         (EH_RETURN_REGNUM): Define.
8780         (EH_RETURN_STACKADJ_RTX): Use it.
8781         (EH_RETURN_HANDLER_RTX): Delete.
8782         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
8783         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
8784         Delete.
8785         (struct machine_function): Add frame_size, apparent_frame_size,
8786         frame_base_reg, frame_base_offset, n_global_fp_regs and
8787         save_local_in_regs_p fields.
8788         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
8789         sparc_frame_base_offset, sparc_n_global_fp_regs,
8790         sparc_save_local_in_regs_p): New macros.
8791         (sparc_option_override): Error out if -fcall-saved-REG is specified
8792         for Out registers.
8793         (eligible_for_restore_insn): Fix formatting.
8794         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
8795         (eligible_for_sibcall_delay): Likewise.
8796         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
8797         (sparc_legitimate_address_p): Adjust to above change.
8798         (save_global_or_fp_reg_p): New predicate.
8799         (return_addr_reg_needed_p): Likewise.
8800         (save_local_or_in_reg_p): Likewise.
8801         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
8802         (SORR_SAVE, SORR_RESTORE): Delete.
8803         (sorr_pred_t): New typedef.
8804         (sorr_act_t): New enum.
8805         (save_or_restore_regs): Rename to...
8806         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
8807         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
8808         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
8809         mechanism.  Add CFI information for double-word saves in 32-bit mode.
8810         (emit_adjust_base_to_offset): New function extracted from...
8811         (emit_save_or_restore_regs): ...this.  Rename the rest to...
8812         (emit_save_or_restore_regs_global_fp_regs): ...this.
8813         (emit_save_or_restore_regs_local_in_regs): New function.
8814         (gen_create_flat_frame_[123]): New functions.
8815         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
8816         (sparc_flat_expand_prologue): New function.
8817         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
8818         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
8819         (sparc_flat_expand_epilogue): New function.
8820         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
8821         (output_return): Likewise.
8822         (output_sibcall): Likewise.
8823         (sparc_output_mi_thunk): Likewise.
8824         (sparc_frame_pointer_required): Likewise.
8825         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
8826         function optimization.
8827         * config/sparc/sparc.md (flat): New attribute.
8828         (prologue): Add TARGET_FLAT handling.
8829         (save_register_window): Disable if TARGET_FLAT.
8830         (create_flat_frame_[123]): New patterns.
8831         (epilogue): Add TARGET_FLAT handling.
8832         (sibcall_epilogue): Likewise.
8833         (eh_return): New expander.
8834         (eh_return_internal): New insn and splitter.
8835         (return_internal): Add TARGET_FLAT handling.
8836         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
8837         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
8838         (nonlocal_goto): Add TARGET_FLAT handling.
8839         * config/sparc/t-elf: Add -mflat multilib.
8840         * config/sparc/t-leon: Likewise.
8841
8842 2011-06-10  Jan Hubicka  <jh@suse.cz>
8843
8844         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
8845         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
8846         (self_recursive_p): Use cgraph_function_node.
8847         (propagate_pure_const): Likewise.
8848         (propagate_nothrow): Likewise.
8849         * ipa-reference.c (ipa_reference_get_not_read_global): Use
8850         cgraph_function_node.
8851         (propagate_bits): Likewise.
8852         (propagate): Likewise.
8853
8854 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8855             Richard Earnshaw  <rearnsha@arm.com>
8856
8857         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
8858         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
8859         (*thumb2_movdi_vfp): Delete.
8860         (*arm_movdi_vfp_cortexa8): Delete.
8861         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
8862         (*movdi_vfp_cortexa8): Likewise.
8863
8864 2011-06-10  Richard Guenther  <rguenther@suse.de>
8865
8866         * stor-layout.c (initialize_sizetypes): Give names to all
8867         sizetype kinds.
8868
8869 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
8870
8871         PR tree-optimization/49318
8872         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
8873         irrelevant pattern statements.
8874
8875 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8876
8877         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
8878
8879         PR bootstrap/49354
8880         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
8881         to last assignment.
8882
8883 2011-06-09  Jan Hubicka  <jh@suse.cz>
8884
8885         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
8886         do not recompute reachable flag.
8887         (cgraph_finalize_function, cgraph_analyze_functions): Set
8888         redefined_extern_inline here.
8889
8890 2011-06-09  Jan Hubicka  <jh@suse.cz>
8891
8892         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
8893         (cgraph_only_called_directly_p): ... this one; bring offline.
8894         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8895         varpool_used_from_object_file_p): Drop names from the declaratoin.
8896         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
8897         collect_callers_of_node): New.
8898         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
8899         (cgraph_edge_recursive_p): Use cgraph_function_node.
8900         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
8901         (cgraph_node_cannot_be_local_p_1): Break out from ...
8902         (cgraph_node_can_be_local_p): ... here; walk aliases.
8903         (cgraph_for_node_thunks_and_aliases): New function.
8904         (cgraph_for_node_and_aliases): New function.
8905         (cgraph_make_node_local_1): Break out from ...
8906         (cgraph_make_node_local) ... here; use
8907         cgraph_for_node_thunks_and_aliases.
8908         (cgraph_set_nothrow_flag_1): Break out from ...
8909         (cgraph_set_nothrow_flag) ... here;
8910         use cgraph_for_node_thunks_and_aliases.
8911         (cgraph_set_const_flag_1): Break out from ...
8912         (cgraph_set_const_flag) ... here;
8913         use cgraph_for_node_thunks_and_aliases.
8914         (cgraph_set_pure_flag_1): Break out from ...
8915         (cgraph_set_pure_flag) ... here;
8916         use cgraph_for_node_thunks_and_aliases.
8917         (cgraph_propagate_frequency_1): Break out from ...
8918         (cgraph_propagate_frequency) ... here; use
8919         cgraph_for_node_thunks_and_aliases.
8920         (cgraph_used_from_object_file_p): Do not care about aliases.
8921         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
8922         New functions.
8923         (collect_callers_of_node_1, collect_callers_of_node): New functions.
8924
8925 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8926
8927         PR rtl-optimization/49154
8928         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
8929         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
8930         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
8931         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
8932         * config/cris/cris.h (cris_register_move_cost): Remove
8933         !TARGET_V32 code.  Tweak comments.
8934
8935 2011-06-09  Jan Hubicka  <jh@suse.cz>
8936
8937         * cgraphbuild.c (record_eh_tables): Mark personality function as having
8938         address taken.
8939
8940 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8941
8942         PR rtl-optimization/49154
8943         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
8944         is a matching slot in the hashtable, assign it to classes_ptr.
8945
8946         PR rtl-optimization/49154
8947         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
8948         register classes.
8949         * doc/tm.texi: Regenerate.
8950
8951 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
8952
8953         PR target/49307
8954         * config/sh/sh.md (UNSPEC_CHKADD): New.
8955         (chk_guard_add): New define_insn_and_split.
8956         (symGOT_load): Use chk_guard_add instead of blockage.
8957
8958 2011-06-09  Kai Tietz  <ktietz@redhat.com>
8959
8960         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
8961
8962 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
8963
8964         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
8965
8966 2011-06-09  Wei Guozhi  <carrot@google.com>
8967
8968         PR target/46975
8969         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
8970         (peephole2 for conditional move): Generate 16 bit instructions.
8971
8972 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
8973
8974         * config/i386/i386.md (*movdi_internal_rex64): Merge
8975         alternatives 6 and 8.
8976
8977 2011-06-09  David Li  <davidxl@google.com>
8978
8979         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8980         * passes.c (passr_eq): New function.
8981         (create_pass_tab): New function.
8982         (pass_traverse): New function.
8983         (dump_one_pass): New function.
8984         (dump_pass_list): New function.
8985         (dump_passes): New function.
8986
8987 2011-06-09  David Li  <davidxl@google.com>
8988
8989         * tree-complex.c (tree_lower_complex): Gate cleanup.
8990         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
8991         (execute_optimize_stdarg): Ditto.
8992         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
8993         (execute_cleanup_eh_1): Ditto.
8994         (execute_cleanup_eh): Ditto.
8995         * gcse.c (gate_rtl_pre): Ditto.
8996         (execute_rtl_pre): Ditto.
8997         * except.c (finish_eh_generation): Ditto.
8998         (convert_to_eh_region_ranges): Ditto.
8999         * cprop.c (one_cprop_pass): Ditto.
9000
9001 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
9002
9003         PR target/48673
9004         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
9005         in all basic blocks.
9006
9007 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9008
9009         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
9010         (HAVE_ENABLE_EXECUTE_STACK): Define.
9011         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
9012         (HAVE_ENABLE_EXECUTE_STACK): Define.
9013         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
9014         (HAVE_ENABLE_EXECUTE_STACK): Define.
9015         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
9016         (ENABLE_EXECUTE_STACK): Remove.
9017         (HAVE_ENABLE_EXECUTE_STACK): Define.
9018         [IN_LIBGCC2]: Don't include <windows.h>.
9019         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9020         (HAVE_ENABLE_EXECUTE_STACK): Define.
9021         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
9022         (HAVE_ENABLE_EXECUTE_STACK): Define.
9023         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
9024         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
9025         (HAVE_ENABLE_EXECUTE_STACK): Define.
9026         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
9027         (HAVE_ENABLE_EXECUTE_STACK): Define.
9028         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
9029         (HAVE_ENABLE_EXECUTE_STACK): Define.
9030         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9031         (HAVE_ENABLE_EXECUTE_STACK): Define.
9032         * config/alpha/alpha.c (alpha_trampoline_init): Test
9033         HAVE_ENABLE_EXECUTE_STACK.
9034         * config/i386/i386.c (ix86_trampoline_init): Likewise.
9035         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9036         (sparc64_initialize_trampoline): Likewise.
9037         * libgcc2.c [L_enable_execute_stack]: Remove.
9038         * system.h (ENABLE_EXECUTE_STACK): Poison.
9039         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
9040         * doc/tm.texi: Regenerate.
9041         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
9042
9043 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
9044
9045         PR middle-end/49308
9046         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
9047         variable.  After resetting and rescanning insn continue with previous
9048         statement.
9049
9050 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9051
9052         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
9053         (gcc_cv_ld_hidden): Likewise.
9054         * configure: Regenerate.
9055         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
9056         (ix86_stack_protect_fail): Mark unused.
9057         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
9058         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
9059         [TARGET_MACHO]: Don't define.
9060         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
9061         (TARGET_STACK_PROTECT_FAIL): Likewise.
9062         (rs6000_stack_protect_fail): Mark unused.
9063         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
9064         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
9065
9066 2011-06-08  Andi Kleen  <ak@linux.intel.com>
9067
9068         * varasm.c (get_section): Print location of other conflict
9069         for section conflicts.
9070
9071 2011-06-08  Andi Kleen  <ak@linux.intel.com>
9072
9073         * config/i386/driver-i386.c (host_detect_local_cpu):
9074         Add model 0x2d Intel CPU.
9075
9076 2011-06-08  Andi Kleen  <ak@linux.intel.com>
9077
9078         * reginfo.c (global_regs_decl): Add.
9079         (globalize_reg): Add decl parameter. Compute location.  Pass location
9080         to warnings and add inform. Store decl in global_regs_decl.
9081         * rtl.h (globalize_reg): Update prototype.
9082         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
9083
9084 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
9085
9086         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
9087
9088 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9089
9090         PR target/49305
9091         * config/sh/predicates.md (general_movsrc_operand): Check
9092         mode for memory with indexed address for QI and HImode.
9093         (general_movdst_operand): Likewise.
9094
9095 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
9096
9097         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
9098
9099 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
9100
9101         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
9102         (num_ssa_operands): Likewise.
9103         (op_iter_init_phiuse): Forward-declare.
9104         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
9105
9106 2011-06-08  Nick Clifton  <nickc@redhat.com>
9107
9108         * doc/invoke.texi (ARM Options): Update description of
9109         -mthumb-interwork.
9110
9111 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
9112
9113         * config/i386/driver-i386.c (host_detect_local_cpu): Support
9114         unknown Intel family 0x6 CPUs.
9115
9116 2011-06-08  Martin Jambor  <mjambor@suse.cz>
9117
9118         * tree-sra.c (mark_rw_status): Removed.
9119         (analyze_access_subtree): New parameter parent instead of
9120         mark_read and mark_write, propagate from that.
9121
9122 2011-06-08  Julian Brown  <julian@codesourcery.com>
9123
9124         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9125         for double-precision helper functions in hard-float mode if only
9126         single-precision arithmetic is supported in hardware.
9127
9128 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
9129
9130         PR rtl-optimization/49303
9131         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
9132         code_motion_path_driver returned 0 or 1.
9133         (sel_region_finish): Clear h_d_i_d.
9134
9135 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9136
9137         * config/sh/sh.c (prepare_move_operands): Set pic register
9138         appropriately for global and local dynamic tls models even
9139         if flag_pic is unset.
9140
9141 2011-06-07  Jason Merrill  <jason@redhat.com>
9142
9143         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
9144
9145 2011-06-07  Xinliang David Li  <davidxl@google.com>
9146         * passes.c (enable_disable_pass): Handle assembler name.
9147         (is_pass_explicitly_enabled_or_disabled): Ditto.
9148
9149 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9150
9151         PR tree-optimization/48497
9152         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
9153
9154 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9155
9156         PR tree-optimization/46728
9157         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
9158         to use gimple_val_nonnegative_real_p.
9159         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
9160         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
9161
9162 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
9163
9164         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
9165
9166 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
9167
9168         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
9169         constant vectors.
9170
9171 2011-06-07  Richard Guenther  <rguenther@suse.de>
9172
9173         * stor-layout.c (initialize_sizetypes): Initialize all
9174         sizetypes based on target definitions.
9175         (set_sizetype): Remove.
9176         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
9177         * tree.h (set_sizetype): Remove.
9178
9179 2011-06-07  Nick Clifton  <nickc@redhat.com>
9180
9181         * config.gcc: Unify V850 architecture options and add support for
9182         newer V850 architectures.
9183         * config/v850/t-v850e: Delete.
9184
9185 2011-06-07  Richard Guenther  <rguenther@suse.de>
9186
9187         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
9188         Call set_sizetype from here.
9189
9190 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
9191
9192         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9193         (*maddhisi4tb, *maddhisi4tt): New define_insns.
9194
9195 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
9196             Andrew Stubbs  <ams@codesourcery.com>
9197
9198         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
9199         multiplies.
9200         * doc/md.texi (Canonicalization of Instructions): Document widening
9201         multiply canonicalization.
9202
9203 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
9204
9205         PR gcov-profile/49299
9206         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
9207
9208 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
9209
9210         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
9211         a pointer.
9212         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
9213         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
9214         vect_recog_pow_pattern): Likewise.
9215         (vect_pattern_recog_1): Remove declaration.
9216         (widened_name_p): Remove declaration.  Add new argument to specify
9217         whether to check that both types are either signed or unsigned.
9218         (vect_recog_widen_mult_pattern): Update documentation.  Handle
9219         unsigned patterns and multiplication by constants.
9220         (vect_pattern_recog_1): Update vect_recog_func references.  Use
9221         statement information from the statement returned from pattern
9222         detection functions.
9223         (vect_pattern_recog): Update vect_recog_func reference.
9224         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
9225         multiplication by a constant use the type of the other operand.
9226
9227 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
9228
9229         PR rtl-optimization/49145
9230         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
9231
9232 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
9233
9234         PR debug/49262
9235         * dwarf2out.c (native_encode_initializer): Decrement count in each
9236         iteration.
9237
9238         PR debug/49294
9239         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
9240         non-MODE_INT modes.
9241
9242         PR c++/49264
9243         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
9244         if stmt folded into nothing.
9245         * tree-inline.c (fold_marked_statements): If a builtin at the end of
9246         a bb folded into nothing, just update cgraph edges and move to next bb.
9247         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
9248         to be NULL.  Don't compute count and frequency if new_call is NULL.
9249
9250 2011-06-04  Diego Novillo  <dnovillo@google.com>
9251
9252         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
9253         (cgraph.o): Likewise.
9254         (cgraphunit.o): Likewise.
9255         * cgraphunit.c: Include lto-streamer.h
9256         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
9257         if LTO is enabled.
9258         * lto-streamer-in.c (unpack_value_fields): Call
9259         streamer_hooks.unpack_value_fields if set.
9260         (lto_materialize_tree): For unhandled nodes, first try to
9261         call lto_streamer_hooks.alloc_tree, if it exists.
9262         (lto_input_ts_decl_common_tree_pointers): Move reading of
9263         DECL_INITIAL to lto_streamer_read_tree.
9264         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
9265         (lto_streamer_read_tree): New.
9266         (lto_reader_init): Rename from lto_init_reader.
9267         Move initialization code to lto/lto.c.
9268         * lto-streamer-out.c (pack_value_fields): Call
9269         streamer_hooks.pack_value_fields if set.
9270         (lto_output_tree_ref): For tree nodes that are not normally indexable,
9271         call streamer_hooks.indexable_with_decls_p before giving up.
9272         (lto_output_ts_decl_common_tree_pointers): Move handling
9273         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
9274         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
9275         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
9276         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
9277         (lto_streamer_write_tree): New.
9278         (lto_output): Call lto_streamer_init directly.
9279         (lto_writer_init): Remove.
9280         * lto-streamer.c (streamer_hooks): New.
9281         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
9282         instead of lto_preload_common_nodes.
9283         (lto_is_streamable): Move from lto-streamer.h
9284         (lto_streamer_hooks_init): New.
9285         (streamer_hooks): New.
9286         (streamer_hooks_init): New.
9287         * lto-streamer.h (struct output_block): Forward declare.
9288         (struct lto_input_block): Likewise.
9289         (struct data_in): Likewise.
9290         (struct bitpack_d): Likewise.
9291         (struct streamer_hooks): Declare.
9292         (streamer_hooks): Declare.
9293         (lto_streamer_hooks_init): Declare.
9294         (lto_streamer_write_tree): Declare.
9295         (lto_streamer_read_tree): Declare.
9296         (streamer_hooks_init): Declare.
9297         (lto_is_streamable): Move to lto-streamer.c
9298
9299 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9300
9301         * longlong.h (smul_ppmm): The resulting register pair contains the
9302         higher order word first.
9303
9304 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9305
9306         PR tree-optimization/46728
9307         * builtins.c (powi_table): Remove.
9308         (powi_lookup_cost): Remove.
9309         (powi_cost): Remove.
9310         (expand_powi_1): Remove.
9311         (expand_powi): Remove.
9312         (expand_builtin_pow_root): Remove.
9313         (expand_builtin_pow): Remove.
9314         (expand_builtin_powi): Eliminate handling of constant exponent.
9315         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
9316
9317 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
9318
9319         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
9320
9321 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
9322
9323         * dce.c (reset_unmarked_insns_debug_uses): New.
9324         (delete_unmarked_insns): Skip debug insns.
9325         (prescan_insns_for_dce): Likewise.
9326         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
9327         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
9328         active reg can be found.
9329         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
9330         (convert_regs_1): Use it.
9331
9332 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
9333
9334         * tree-pretty-print.c (dump_function_header): Add flags.
9335         Don't dump decl_uid with nouid.
9336         * tree-pretty-print.h (dump_function_header): Adjust.
9337         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
9338         * passes.c (pass_init_dump_file): Pass dump_flags on.
9339         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
9340
9341 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
9342
9343         PR bootstrap/49270
9344         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
9345
9346 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
9347
9348         PR tree-optimization/49243
9349         * calls.c (setjmp_call_p): Also check if fndecl has the
9350         returns_twice attribute.
9351
9352 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9353
9354         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
9355         -ffast-math etc.
9356
9357 2011-06-06  Richard Henderson  <rth@redhat.com>
9358             Georg-Johann Lay  <avr@gjlay.de>
9359
9360         PR target/42210
9361         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
9362         New predicates.
9363         * config/avr/avr.md ("insv"): New insn expander.
9364         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9365         "*insv.not.io", "*insv.reg"): New insns.
9366
9367 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
9368
9369         PR target/49285
9370         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
9371         to nonimmediate_operand from memory_operand for the operand that is to
9372         be forced to memory by the expander.  Lose the constraints.
9373
9374 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
9375
9376         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
9377         EH return when delayed branches are disabled.
9378
9379 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
9380
9381         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
9382         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
9383         calculation.
9384         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
9385         Simplify MODE_V1DF and MODE_V2SF handling.
9386         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
9387         Simplify MODE_SF handling.
9388
9389 2011-06-04  Jan Hubicka  <jh@suse.cz>
9390
9391         PR tree-optimization/48893
9392         PR tree-optimization/49091
9393         PR tree-optimization/49179
9394         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
9395         Bounds check.
9396
9397 2011-06-04  Jan Hubicka  <jh@suse.cz>
9398
9399         PR lto/48954
9400         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
9401         bitmaps.
9402
9403 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
9404
9405         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9406
9407 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
9408
9409         PR target/49281
9410         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9411         to be strictly smaller than 1 << shiftcount.
9412
9413 2011-06-04  Jan Hubicka  <jh@suse.cz>
9414
9415         PR tree-optimize/48929
9416         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
9417         of empty predicate.
9418
9419 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
9420
9421         PR debug/48333
9422         * calls.c (emit_call_1): Prefer the __builtin declaration of
9423         builtin functions.
9424
9425 2011-06-03   Diego Novillo  <dnovillo@google.com>
9426
9427         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
9428         (lto_input_tree_pointers): Likewise.
9429         * lto-streamer-out.c (pack_value_fields): Likewise.
9430         (lto_output_tree_pointers): Likewise.
9431         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
9432         and OPTIMIZATION_NODE.
9433
9434 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9435
9436         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
9437         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
9438         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
9439         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
9440         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
9441         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
9442         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
9443         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
9444         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
9445         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
9446         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
9447         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
9448         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
9449         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
9450         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
9451         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
9452         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
9453         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
9454         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
9455         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
9456         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
9457         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
9458         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
9459         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
9460         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
9461         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
9462         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
9463         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
9464         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
9465         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
9466         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
9467         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
9468         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
9469         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
9470         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
9471         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
9472         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
9473         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
9474         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
9475         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
9476         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
9477         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
9478         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
9479         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
9480         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
9481         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
9482         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
9483         * system.h (MD_UNWIND_SUPPORT): Poison.
9484         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
9485         * doc/tm.texi: Regenerate.
9486         * unwind-dw2.c: Include md-unwind-support.h instead of
9487         MD_UNWIND_SUPPORT.
9488         * config/ia64/unwind-ia64.c: Likewise.
9489         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
9490
9491 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
9492
9493         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
9494
9495 2011-06-03  Richard Henderson  <rth@redhat.com>
9496             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9497
9498         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
9499         (sigill_hdlr): Correct insn, insn size.
9500         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
9501
9502 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9503
9504         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
9505         t-slibgcc-dummy.
9506         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
9507         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
9508         * config/mips/t-iris: Remove.
9509         * config/mips/t-irix6: New file.
9510         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
9511
9512 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9513
9514         * Makefile.in (LIB2ADDEHDEP): Remove.
9515         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
9516         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
9517         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
9518         * config/t-darwin (LIB2ADDEHDEP): Remove.
9519         * config/t-freebsd (LIB2ADDEHDEP): Remove.
9520         * config/t-linux (LIB2ADDEHDEP): Remove.
9521
9522 2011-06-03  Diego Novillo  <dnovillo@google.com>
9523
9524         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
9525         (lto_register_var_decl_in_symtab): Likewise.
9526         (lto_register_function_decl_in_symtab): Likewise.
9527         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
9528         logic to uniquify_nodes.
9529
9530 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9531
9532         * config/alpha/t-osf5: Remove.
9533         * config/alpha/t-osf-pthread: Remove.
9534         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
9535         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
9536
9537 2011-06-03  Julian Brown  <julian@codesourcery.com>
9538
9539         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
9540         (strongarm1110): Use strongarm tuning.
9541         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
9542         * config/arm/arm.c (arm_strongarm_tune): New.
9543         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9544         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
9545         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
9546         setting, using previous defaults or 1 for Cortex-A5.
9547         (arm_option_override): Set max_insns_skipped from current tuning.
9548
9549 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
9550
9551         * doc/install.texi (Options specification): Document --with-specs.
9552
9553 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9554
9555         * config/arm/neon.md (orndi3_neon): Actually split it.
9556
9557 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
9558
9559         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
9560         * var-tracking.c (reverse_op): Limite recurse depth to 5.
9561
9562 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
9563
9564         PR debug/47590
9565         * target.def (delay_sched2, delay_vartrack): New.
9566         * doc/tm.texi.in: Update.
9567         * doc/tm.texi: Rebuild.
9568         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
9569         * var-tracking.c (gate_handle_var_tracking): Likewise.
9570         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
9571         (bfin_flag_var_tracking): Drop.
9572         (output_file_start): Don't save and override flag_var_tracking.
9573         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
9574         (bfin_reorg): Test original variables.
9575         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9576         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
9577         (ia64_flag_var_tracking): Drop.
9578         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9579         (ia64_file_start): Don't save and override flag_var_tracking.
9580         (ia64_override_options_after_change): Ditto
9581         flag_schedule_insns_after_reload.
9582         (ia64_reorg): Test original variables.
9583         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
9584         (picochip_flag_var_tracking): Drop.
9585         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9586         (picochip_option_override): Don't save and override
9587         flag_schedule_insns_after_reload.
9588         (picochip_asm_file_start): Ditto flag_var_tracking.
9589         (picochip_reorg): Test original variables.
9590         * config/spu/spu.c (spu_flag_var_tracking): Drop.
9591         (TARGET_DELAY_VARTRACK): Define.
9592         (spu_var_tracking): New.
9593         (spu_machine_dependent_reorg): Call it.
9594         (asm_file_start): Don't save and override flag_var_tracking.
9595
9596 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
9597
9598         PR target/49163
9599         * config/sh/predicates.md (general_movsrc_operand): Return 0
9600         for memory and memory subreg of which address is an invalid
9601         indexed address for QI and HImode.
9602         (general_movdst_operand): Likewise.
9603
9604 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
9605
9606         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
9607         edges only, when there is a non-local label in the function.
9608         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
9609
9610 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
9611
9612         * config/i386/constraints.md (Y3): New register constraint.
9613         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
9614         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
9615         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
9616         *sse2_interleave_lowv2df.
9617
9618 2011-06-02  Julian Brown  <julian@codesourcery.com>
9619
9620         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
9621         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
9622         (arm_cortex_a5_tune): New.
9623
9624 2011-06-02  Julian Brown  <julian@codesourcery.com>
9625
9626         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
9627         * config/arm/arm.c (arm_default_branch_cost): New.
9628         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9629         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
9630         (arm_fa726_tune): Set branch_cost field using
9631         arm_default_branch_cost.
9632         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
9633         current_tune structure.
9634         * dojump.c (tm_p.h): Include file.
9635
9636 2011-06-02  Julian Brown  <julian@codesourcery.com>
9637
9638         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
9639         tuning.
9640         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
9641         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
9642         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
9643         field.
9644         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
9645         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
9646         (arm_fa726te_tune): Add prefer_constant_pool setting.
9647         (arm_v6t2_tune, arm_cortex_tune): New.
9648         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
9649         prefer_constant_pool setting.
9650
9651 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
9652
9653         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
9654         switch statement.
9655         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
9656         (*movdf_internal) <case 6,7,8>: Ditto.
9657
9658         * config/i386/constraints.md (Y4): New register constraint.
9659         * config/i386/sse.md (vec_set<mode>_0): Merge with
9660         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
9661         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
9662         *vec_extractv2di_1_sse.
9663         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
9664         and *vec_concatv2di_rex64_sse.
9665
9666 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
9667
9668         PR target/48807
9669         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
9670         of cgraph_local_info for null before attempting to use it.
9671
9672 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
9673
9674         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
9675         (current_function_dynamic_alloc_count): Delete.
9676         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
9677         (expand_builtin_nonlocal_goto): Remove obsolete comment.
9678         (expand_builtin_update_setjmp_buf): Remove dead code.
9679         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
9680         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
9681         support.
9682         * function.c (instantiate_virtual_regs): Likewise.
9683         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
9684         for a block with a single abnormal incoming edge.
9685         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
9686         (SETJMP_VIA_SAVE_AREA): Delete.
9687         * config/sparc/sparc-protos.h (load_got_register): Declare.
9688         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
9689         (load_got_register): Make global.
9690         (sparc_frame_pointer_required): Add 'static'.
9691         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
9692         (sparc_builtin_setjmp_frame_value): New function.
9693         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
9694         (save_stack_nonlocal): New expander.
9695         (restore_stack_nonlocal): Likewise.
9696         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
9697         (nonlocal_goto_internal): New insn.
9698         (goto_handler_and_restore): Delete.
9699         (builtin_setjmp_setup): Likewise.
9700         (do_builtin_setjmp_setup): Likewise.
9701         (setjmp): Likewise.
9702         (builtin_setjmp_receiver): New expander.
9703
9704 2011-06-01  David Li  <davidxl@google.com>
9705
9706         PR middle-end/49261
9707         * tree-pretty-print.c (dump_function_header): Format cleanup.
9708
9709 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
9710
9711         PR target/49238
9712         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
9713         needed when original operands are used for msw_skip comparison.
9714
9715 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
9716
9717         PR debug/49250
9718         * var-tracking.c (add_uses, add_stores): Don't call
9719         cselib_subst_to_values on ENTRY_VALUE.
9720
9721 2011-06-01  Diego Novillo  <dnovillo@google.com>
9722
9723         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
9724         output_record_start with LTO_null instead of output_zero.
9725         (lto_output_ts_binfo_tree_pointers): Likewise.
9726         (lto_output_tree): Likewise.
9727         (output_eh_try_list): Likewise.
9728         (output_eh_region): Likewise.
9729         (output_eh_lp): Likewise.
9730         (output_eh_regions): Likewise.
9731         (output_bb): Likewise.
9732         (output_function): Likewise.
9733         (output_unreferenced_globals): Likewise.
9734         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
9735         instead of NUM_TREE_CODES.
9736         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
9737         (lto_output_int_in_range): Change << to >> when shifting VAL.
9738
9739 2011-06-01  Diego Novillo  <dnovillo@google.com>
9740
9741         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
9742         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
9743
9744 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
9745
9746         PR target/45074
9747         * optabs.h (valid_multiword_target_p): Declare.
9748         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
9749         doing multi-word operations.
9750         * optabs.c (expand_binop): Likewise.
9751         (expand_doubleword_bswap): Likewise.
9752         (expand_absneg_bit): Likewise.
9753         (expand_unop): Likewise.
9754         (expand_copysign_bit): Likewise.
9755         (multiword_target_p): New function.
9756
9757 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
9758
9759         PR rtl-optimization/48830
9760         PR rtl-optimization/48808
9761         PR rtl-optimization/48792
9762         * reload.c (push_reload): Check contains_reg_of_mode.
9763         * reload1.c (strip_paradoxical_subreg): New function.
9764         (gen_reload_chain_without_interm_reg_p): Use it to handle
9765         paradoxical subregs.
9766         (emit_output_reload_insns, gen_reload): Likewise.
9767
9768 2011-06-01  David Li  <davidxl@google.com>
9769
9770         * predict.c : Change pass name
9771         * ipa.c: Ditto.
9772         * dce.c: Ditto.
9773         * tree-profile.c: Ditto.
9774         * except.c: Ditto.
9775
9776 2011-06-01  David Li  <davidxl@google.com>
9777
9778         * tree-pretty-print.c (dump_function_header): New function.
9779         * final.c (rest_of_clean_state): Use header dumper.
9780         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
9781         * passes.c (pass_init_dump_file): Use header dumper.
9782
9783 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
9784
9785         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
9786         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
9787         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
9788         New functions.
9789         (mem_loc_descriptor): Use them.
9790
9791         * var-tracking.c (create_entry_value): New function.
9792         (vt_add_function_parameter): Use it.
9793
9794 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9795
9796         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
9797         Include <signal.h>, <ucontext.h>.
9798         (sigill_caught): Define.
9799         (sigill_hdlr): New function.
9800         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
9801         insns can be executed.
9802         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
9803         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
9804
9805 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9806
9807         * config/t-slibgcc-darwin: Move to ...
9808         * config/t-slibgcc-dummy: ... this.  Clarify comments.
9809         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
9810         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
9811         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
9812         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
9813         Remove i386/t-crtstuff from tmake_file.
9814         (i[34567]86-*-solaris2*): Remove t-svr4,
9815         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
9816         t-slibgcc-dummy.
9817         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
9818         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
9819         sparc/t-crtfm from tmake_file.
9820         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
9821         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
9822         Remove extra_parts.
9823         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
9824         * config/i386/t-nwld (SHLIB_LINK): Remove.
9825         * config/i386/t-rtems-i386: Rename to ...
9826         * config/i386/t-rtems: ... this.
9827         ($(T)crti.o, $(T)crtn.o): Remove.
9828         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
9829         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
9830         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
9831         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
9832         EXTRA_MULTILIB_PARTS): Remove.
9833         * config/sparc/t-sol2-64: Likewise.
9834         * config/sparc/t-sol2: Remove.
9835         * config/sparc/t-crtin: Remove.
9836         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
9837         * config/i386/gmon-sol2.c: Remove.
9838         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
9839         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
9840         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
9841         * config/i386/sol2-gc1.asm: Remove.
9842         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
9843         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
9844         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
9845         * config/t-slibgcc-sld: Remove.
9846
9847 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
9848
9849         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
9850         base_type_for_mode with op_mode instead of mode.
9851
9852 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
9853
9854         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
9855         Cortex-A15.
9856         * config/arm/arm-tune.md: Regenerate.
9857         * config/arm/arm-tables.opt: Regenerate.
9858         * config/arm/arm.c (FL_DIV): Rename...
9859         (FL_THUMB_DIV): ... to this.
9860         (FL_ARM_DIV): Define.
9861         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
9862         (arm_arch_hwdiv): Remove.
9863         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
9864         (arm_issue_rate): Add cortexr5.
9865         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
9866         __ARM_ARCH_EXT_IDIV__.
9867         (TARGET_IDIV): Define.
9868         (arm_arch_hwdiv): Remove.
9869         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
9870         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
9871         (divsi3, udivsi3): New patterns.
9872         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
9873         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
9874
9875 2011-06-01  Martin Jambor  <mjambor@suse.cz>
9876
9877         * ipa-utils.c (ipa_dfs_info): New field scc_no.
9878         * ipa-utils.c (searchc): Set scc_no.
9879
9880 2011-06-01  Martin Jambor  <mjambor@suse.cz>
9881
9882         * ipa-utils.c (searchc_env): New field allow_overwritable.
9883         (searchc): do not ignore edges to overwritable nodes if indicated
9884         by env->allow_overwritable.
9885         (ipa_reduced_postorder): Set env.allow_overwritable.
9886
9887 2011-06-01  Richard Guenther  <rguenther@suse.de>
9888
9889         * tree.c (free_lang_data): Do not reset boolean_type_node nor
9890         char_type_node.
9891         * lto-streamer.c (lto_record_common_node): Take node pointer,
9892         do not register types.
9893         (lto_preload_common_nodes): Explicitly skip preloading nodes
9894         that differ between frontends.
9895
9896 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
9897
9898         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
9899         NON_FLOAT_REGS.
9900
9901 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
9902
9903         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
9904         parameter value for dump. Dump cost on outermost call only.
9905         (rs6000_memory_move_cost): Dump cost on outermost call only.
9906
9907 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
9908
9909         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
9910         DW_OP_GNU_convert ops.
9911
9912         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
9913         cselib_preserve_constants.
9914         (cselib_lookup_1): If cselib_preserve_constants,
9915         a new VALUE is being created for REG and there is a VALUE for the
9916         same register in wider mode, add another loc with lowpart SUBREG of
9917         the wider VALUE.
9918         (cselib_subst_to_values): Handle ENTRY_VALUE.
9919         * var-tracking.c  (replace_expr_with_values): Return NULL for
9920         ENTRY_VALUE too.
9921         * dwarf2out.c (convert_descriptor_to_signed): New function.
9922         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
9923         instead of two shifts.
9924         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
9925         the right mode if needed.
9926         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
9927         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
9928         convert_descriptor_to_signed.
9929         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
9930         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
9931
9932         PR target/48688
9933         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
9934
9935 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
9936
9937         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
9938         of X87MODEI12 and SWI48x instead of SSEMODEI24.
9939         (SWI248x): New mode iterator, rename from X87MODEI.
9940         (X87MODEI): Remove mode iterator.
9941         (X87MODEI12): Ditto.
9942         (SSEMODEI24): Ditto.
9943
9944 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9945
9946         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
9947         * doc/invoke.texi: Document max-vartrack-expr-depth.
9948         * var-tracking.c (EXPR_DEPTH): New.
9949         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
9950
9951 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9952
9953         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
9954         * config/i386/sse.md: Add n to negated FMA pattern names.
9955
9956 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9957
9958         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
9959
9960 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9961
9962         * gengtype-state.c (read_state_params_structs): Initialize previous.
9963
9964 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
9965
9966         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
9967         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
9968
9969 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
9970
9971         * config/i386/i386.md (*movtf_internal): Avoid allocating general
9972         registers.  Penalize F*r->o alternative to prevent partial memory
9973         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
9974         CONST_DOUBLE immediates when optimizing function for size.  Do not move
9975         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
9976         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
9977         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
9978         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
9979         alternatives.
9980         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
9981
9982         (fp_register_operand splitters): Use fp_register_operand
9983         constraint.  Do not use FP_REG_P in insn condition.
9984         (any_fp_register_operand splitters): Use any_fp_register_operand
9985         constraint.  Do not use ANY_FP_REG_P in insn condition.
9986
9987 2011-05-31  Jan Hubicka  <jh@suse.cz>
9988
9989         * cgraph.h (cgraph_inline_failed_t): Give enum a name
9990         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
9991         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
9992         (lto_output_edge): Use output_enum and var_len_unsigned.
9993         (lto_output_varpool_node): Likewise.
9994         (input_overwrite_node): Do not take resolution parameter;
9995         extract it from a bitpack.
9996         (input_node): Do not read resolution; use input_enum and
9997         var_len_unsigned.
9998         (input_varpool_node): Likewise.
9999         (input_edge): Likewise.
10000         (input_cgraph_1): Likewise.
10001
10002 2011-05-31  Richard Guenther  <rguenther@suse.de>
10003
10004         * gimple.c (gimple_register_canonical_type): Do not register
10005         any types via gimple_register_type.
10006
10007 2011-05-31  Jan Hubicka  <jh@suse.cz>
10008
10009         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
10010         of thunks.
10011
10012 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
10013
10014         PR rtl-optimization/49235
10015         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
10016         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
10017
10018 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
10019
10020         PR tree-optimization/49093
10021         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
10022         data references.
10023
10024 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
10025
10026         PR debug/49047
10027         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
10028         for concrete functions containing the code of cloned functions.
10029
10030 2011-05-31  Richard Guenther  <rguenther@suse.de>
10031
10032         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
10033         to ...
10034         (forward_propagate_into_comparison_1): ... this.
10035         (forward_propagate_comparison): Rename to ...
10036         (forward_propagate_into_comparison): ... this.  Split out
10037         real forward propagation code to ...
10038         (forward_propagate_comparison): ... this.
10039         (forward_propagate_into_gimple_cond): Remove looping.
10040         (forward_propagate_into_cond): Likewise.
10041         (simplify_not_neg_expr): Return whether we have done something.
10042         (simplify_gimple_switch): Likewise.
10043         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
10044         (ssa_forward_propagate_and_combine): ... this.  Re-structure
10045         to do a forward forward-propagation walk on BBs and a backward
10046         stmt combining walk on BBs.  Consistently re-scan changed statements.
10047         (pass_forwprop): Adjust.
10048
10049 2011-05-30  Ian Lance Taylor  <iant@google.com>
10050
10051         * godump.c (go_format_type): Correct length of name added to
10052         obstack for anonymous field.
10053
10054 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
10055
10056         PR target/49186
10057         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
10058         part of the second operand is 0.
10059
10060 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
10061
10062         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
10063         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
10064         to memory for !TARGET_MEMORY_MISMATCH_STALL.
10065         (*movdf_internal_rex64): Do not penalize F->r alternative.
10066         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
10067         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
10068         when optimizing function for size.  Do not move CONST_DOUBLEs
10069         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10070         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
10071         SUBREGs.  Do not check for MEM_P operands in the insn condition,
10072         check for ANY_FP_REGNO_P instead.
10073         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
10074         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
10075         function for speed.
10076         * config/i386/i386.c (ix86_option_override_internal): Do not
10077         set TARGET_INTEGER_DFMODE_MOVES here.
10078
10079 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10080
10081         PR target/49168
10082         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
10083
10084 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
10085
10086         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
10087         DW_TAG_rvalue_reference_type even for
10088         -gdwarf-4 -fno-debug-types-section.
10089
10090 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10091
10092         PR tree-optimization/46728
10093         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
10094         (build_and_insert_binop): New.
10095         (gimple_expand_builtin_pow): Reorder args for
10096         build_and_insert_call; use build_and_insert_binop; add more
10097         optimizations for fractional exponents.
10098
10099 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
10100
10101         PR bootstrap/49190
10102
10103         Revert:
10104         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
10105
10106         * tree.h (struct tree_identifier): Inherit from tree_typed, not
10107         tree_common.
10108         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10109         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10110         TS_BASE instead of TS_COMMON.
10111         * varasm.c (assemble_name): Remove assert.
10112
10113 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
10114
10115         * config.gcc: Keep obselete list sorted.
10116
10117 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
10118             Eric Botcazou  <ebotcazou@adacore.com>
10119
10120         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
10121         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10122         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
10123         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
10124         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
10125
10126 2011-05-30  Richard Guenther  <rguenther@suse.de>
10127
10128         * gimple.c (gimple_types_compatible_p_1): Compare record
10129         and union type members properly.
10130
10131 2011-05-30  Richard Guenther  <rguenther@suse.de>
10132
10133         PR tree-optimization/49210
10134         * ipa-split.c (split_function): Care for the case where the call
10135         result is not trivially convertible to the result holding variable.
10136
10137 2011-05-30  Richard Guenther  <rguenther@suse.de>
10138
10139         PR tree-optimization/49218
10140         * tree-vrp.c (adjust_range_with_scev): Properly check whether
10141         overflow occured.
10142
10143 2011-05-30  Richard Guenther  <rguenther@suse.de>
10144
10145         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10146         New function split out from ...
10147         (forward_propagate_into_gimple_cond): ... here.  Adjust.
10148         (forward_propagate_into_cond): Likewise.
10149         (forward_propagate_comparison): Also propagate into
10150         comparisons on assignment RHS.  Change return value to
10151         behave similar to forward_propagate_into_cond.
10152         (tree_ssa_forward_propagate_single_use_vars): Handle
10153         strict-overflow warnings properly for forward_propagate_comparison.
10154
10155 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10156
10157         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
10158         from plugin linker.
10159         * configure: Regenerate.
10160
10161 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
10162
10163         PR tree-optimization/49199
10164         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
10165         non-reduction operands are either defined in the loop or by induction.
10166
10167 2011-05-29  Xinliang David Li  <davidxl@google.com>
10168
10169         * opts-global.c (handle_common_deferred_options): Handle new options.
10170         * passes.c (register_one_dump_file): Call register_pass_name.
10171         (execute_one_pass): Check explicit enable/disable flag.
10172         (passr_hash): New function.
10173         (passr_eq): Ditto.
10174         (register_pass_name): Ditto.
10175         (get_pass_by_name): Ditto.
10176         (pass_hash): Ditto.
10177         (pass_eq): Ditto.
10178         (enable_pass): Ditto.
10179         (disable_pass): Ditto.
10180         (is_pass_explicitly_enabled_or_disabled): Ditto.
10181
10182 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
10183
10184         * config/i386/i386.md (*movoi_internal_avx): Use
10185         standard_sse_constant_opcode for alternative 0.
10186         (*movti_internal_sse): Ditto.
10187         (*movti_internal_rex64): Use standard_sse_constant_opcode for
10188         alternative 2.
10189         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
10190         sselog1 type moves.
10191         (*movsi_internal): Ditto.
10192         (*movdi_internal): Ditto.  Add ssecvt type moves.
10193
10194 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
10195
10196         PR target/48830
10197         * rtlanal.c (simplify_subreg_regno): Adjust comment.
10198
10199 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
10200
10201         PR rtl-optimization/49095
10202         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
10203         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
10204
10205 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
10206
10207         PR target/43995
10208         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
10209         recurse_p argument.  Only follow register copies if it is set,
10210         and prevent mips_find_pic_call_symbol from recursing.
10211         (mips_find_pic_call_symbol): Add a recurse_p argument.
10212         Pass it to mips_pic_call_symbol_from_set.
10213         (mips_annotate_pic_calls): Update accordingly.
10214
10215 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
10216
10217         * emit-rtl.c (try_split): Use a loop to search for
10218         NOTE_INSN_CALL_ARG_LOCATIONs.
10219
10220 2011-05-29  Richard Guenther  <rguenther@suse.de>
10221
10222         PR tree-optimization/49217
10223         * ipa-pure-const.c (propagate_pure_const): Fix typos.
10224
10225 2011-05-28  Jan Hubicka  <jh@suse.cz>
10226
10227         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
10228         length.
10229         (string_slot_free): Remove
10230         (create_output_block): Initialize obstack.
10231         (destroy_output_block): Free obstack.
10232         (lto_string_index): Add PERSISTENT parameter; do not duplicate
10233         the string unless it needs to be added into the hash.
10234         (lto_output_string_with_length): Add persistent attribute;
10235         handle NULL strings.
10236         (lto_output_string): Add PERSISTENT parameter.
10237         (output_string_cst, output_identifier): Simplify.
10238         (lto_output_location_bitpack): Update.
10239         (lto_output_builtin_tree): Update.
10240         * lto-streamer.h (struct output_block): Add obstack.
10241         (lto_output_string, lto_output_string_with_length): Remove
10242         declarations; functions are static now.
10243
10244 2011-05-28  Jan Hubicka  <jh@suse.cz>
10245
10246         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
10247         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
10248         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
10249         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
10250         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
10251         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
10252         unpack_ts_decl_with_vis_value_fields,
10253         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
10254         lto_get_builtin_tree): Use enum and variable length i/o.
10255         * basic-block.h (profile_status_d): Add PROFILE_LAST.
10256         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
10257         New functions.
10258         (bp_pack_enum, bp_unpack_enum): New macros.
10259
10260 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
10261
10262         * genrecog.c: Remove redundant forward declarations.
10263
10264 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
10265
10266         * config.gcc: Deprecate mips*-*-openbsd*.
10267
10268 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
10269
10270         PR bootstrap/49195
10271         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
10272         for match_op_dup.
10273
10274 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
10275
10276         PR middle-end/48981
10277         * gengtype.c (vec_prefix_type): New function.
10278         (note_def_vec): Use vec_prefix_type and change the length
10279         attribute to be based on the prefix.
10280         * vec.c: Include coretypes.h before vec.h.
10281         (struct vec_prefix): Remove.
10282         (vec_gc_p_reserve): Change the offsetof to sizeof.
10283         (vec_gc_p_reserve_exact): Likewise.
10284         (vec_heap_p_reserve): Likewise.
10285         (vec_heap_p_reserve_exact): Likewise.
10286         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
10287         (vec_stack_p_reserve): Change the offsetof to sizeof.
10288         (vec_stack_p_reserve_exact): Likewise.
10289         * vec.h (struct vec_prefix): New struct definition.
10290         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
10291         (VEC_T_GTY(T,B)): Likewise.
10292         (DEF_VEC_FUNC_P(T)): Use prefix field.
10293         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
10294         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
10295
10296 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10297
10298         PR tree-optimization/46728
10299         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
10300         (powi_as_mults): Add gimple_set_location.
10301         (build_and_insert_call): New.
10302         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
10303         0.5, 0.25, 0.75, 1./3., or 1./6.
10304
10305 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
10306
10307         * doc/contrib.texi: Update copyright years.
10308         (Contributors): Add Zdenek Sojka.
10309
10310 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
10311
10312         * c-decl.c (c_push_function_context): Copy the current statement
10313         list stack.
10314         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
10315         (finish_struct): Call building_stmt_list_p instead of checking
10316         cur_stmt_list.
10317         * c-parser.c (c_parser_postfix_expression): Likewise.
10318         * c-typeck.c (c_end_compound_stmt): Likewise.
10319         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
10320         * tree-iterator.c (stmt_list_cache): Change to a VEC.
10321         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
10322         (free_stmt_list): Likewise.
10323         * tree.h (struct tree_statement_list): Include typed_tree instead
10324         of tree_common.
10325         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
10326         as TS_TYPED instead of TS_COMMON.
10327
10328 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10329             Uros Bizjak  <ubizjak@gmail.com>
10330
10331         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
10332         (HAVE_AS_IX86_TLSGDPTL): Define.
10333         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
10334         (HAVE_AS_IX86_TLSLDMPLT): Define.
10335         * configure: Regenerate.
10336         * config.in: Regenerate.
10337         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
10338         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
10339         TARGET_SUN_TLS, use @tlsgdplt or @plt.
10340         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
10341         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
10342         @tlsldmplt or @plt.
10343         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
10344
10345 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
10346
10347         * sched-int.h (struct _haifa_deps_insn_data): New members cond
10348         and reverse_cond.
10349         (INSN_COND, INSN_REVERSE_COND): New macros.
10350         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
10351         once.
10352         (sched_get_condition_with_rev): Cache the results, and look them up
10353         if possible.
10354         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
10355         are clobbered by the current insn.
10356         * target.def (exposed_pipline): New sched data hook.
10357         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
10358         * doc/tm.texi: Regenerate.
10359
10360 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10361
10362         PR tree-optimization/49170
10363         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
10364         sincos or cexp.
10365
10366 2011-05-27  Richard Guenther  <rguenther@suse.de>
10367
10368         PR middle-end/49189
10369         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
10370         of comparisons.
10371
10372 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
10373
10374         * haifa-sched.c (sched_scan_info): Remove.
10375         (schedule_block): Call sched_extend_luids rather than sched_init_luids
10376         with NULL args.
10377         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
10378         Remove functions.
10379         (sched_scan): Remove.
10380         (sched_extend_luids): Renamed from luids_extend_insn and no longer
10381         static.  All callers changed.
10382         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
10383         static.  All callers changed.
10384         (sched_init_luids): Remove all arguments except the first.  All
10385         callers changed.  Don't use sched_scan.
10386         (haifa_init_h_i_d): Likewise.
10387         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
10388         manually rather than using sched_init_luids.  Likewise with
10389         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
10390         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
10391         rather than sched_init_luids with NULL args.
10392         * sel-sched-ir.c (new_insns): Remove variable.
10393         (sched_scan): New static function, previously in haifa-sched.c.  Remove
10394         all arguments but the first two; all callers changed.
10395         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
10396         rather than sched_init_luids.
10397         (sel_init_bbs): Remove second argument.  All callers changed.
10398         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
10399         with NULL arguments.
10400         (create_insn_rtx_from_pattern): Likewise.
10401         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
10402         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
10403         (sched_init_insn_luid, sched_extend_luids): Declare.
10404         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
10405         declarations.
10406
10407 2011-05-27  Richard Guenther  <rguenther@suse.de>
10408
10409         PR middle-end/49177
10410         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
10411         A CMP B ? (T) true : (T) false for non-integral types T again.
10412
10413 2011-05-27  Jan Hubicka  <jh@suse.cz>
10414
10415         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
10416         so 0 means NULL string.
10417         (lto_output_string_with_length): ... here.
10418         (lto_output_string, output_string_cst, output_identifier): Update
10419         handling of NULL strings.
10420         (lto_output_location_bitpack): New function.
10421         (lto_output_location): Use it.
10422         (lto_output_tree_ref): Use output_record_start.
10423         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
10424         len values.
10425         * lto-streamer-in.c (string_for_index): Break out from ...; offset
10426         values by 1.
10427         (input_string_internal): ... here;
10428         (input_string_cst, input_identifier, lto_input_string): Update handling
10429         of NULL strings.
10430         (lto_input_location_bitpack): New function
10431         (lto_input_location): Use it.
10432         (unpack_ts_type_common_value_fields): Pack align & alias in var len
10433         values.
10434         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
10435         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
10436         (bp_pack_value): Sanity check the value range.
10437         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
10438         New functions.
10439         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
10440         New functions.
10441
10442 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
10443
10444         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
10445         call_arg_location instructions down the floor.
10446
10447 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
10448
10449         PR rtl-optimization/49154
10450         * ira.c (setup_pressure_classes): Process class without sublcasses
10451         as a candidate for pressure classes.
10452
10453 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
10454
10455         PR rtl-optimization/48575
10456         * genrecog.c (position_type): New enum.
10457         (position): New structure.
10458         (decision): Use position structure instead of a string.
10459         (root_pos, peep2_insn_pos_list): New variables.
10460         (next_position, compare_positions): New functions.
10461         (new_decision): Use position structures instead of strings.
10462         (maybe_both_true): Likewise.
10463         (change_state): Likewise.
10464         (write_tree): Likewise.
10465         (make_insn_sequence): Likewise.
10466
10467 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
10468
10469         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
10470         TS_BASE instead of TS_COMMON.
10471         (find_decls_types_r): Check for TS_TYPED structure before looking at
10472         TREE_TYPE.
10473         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
10474         Add chain field.
10475         (BLOCK_CHAIN): Use new chain field.
10476
10477 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
10478
10479         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
10480         moves expensive on Power7 also.
10481
10482 2011-05-26  Richard Guenther  <rguenther@suse.de>
10483
10484         * fold-const.c (fold_unary_loc): Remove bogus code.
10485
10486 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
10487
10488         * tree.h (struct tree_identifier): Inherit from tree_typed, not
10489         tree_common.
10490         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10491         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10492         TS_BASE instead of TS_COMMON.
10493         * varasm.c (assemble_name): Remove assert.
10494
10495 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
10496
10497         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
10498         substituted first.
10499         * libgcc-std.ver: Delete file.
10500
10501 2011-05-26  Richard Guenther  <rguenther@suse.de>
10502
10503         PR tree-optimization/48702
10504         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
10505         only when we know the base address is within bounds.
10506         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
10507         assume the base address of TARGET_MEM_REFs is in bounds.
10508
10509 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10510
10511         PR target/49099
10512         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
10513         declaration in TARGET_SOLARIS.
10514
10515 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
10516
10517         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
10518         The instruction is then expanded explicitly.
10519         (supported_compare): Callable instruction.
10520         (compare): Likewise.
10521
10522 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
10523
10524         PR c++/49165
10525         * gimplify.c (shortcut_cond_r): Don't special case
10526         COND_EXPRs if they have void type on one of their arms.
10527
10528 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
10529
10530         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
10531         to reduce duplication, and to achieve a slightly more logical order
10532         of operations.
10533
10534 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
10535
10536         PR tree-optimization/49161
10537         * tree-vrp.c (struct case_info): New type.
10538         (compare_case_labels): Sort case_info structs instead of
10539         trees, and not primarily by CASE_LABEL uids but by
10540         label_for_block indexes.
10541         (find_switch_asserts): Put case labels into struct case_info
10542         array instead of TREE_VEC, adjust sorting, compare label_for_block
10543         values instead of CASE_LABELs.
10544
10545 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10546
10547         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
10548         ("orndi3_neon"): Likewise.
10549         ("bic<mode>3_neon"): Likewise.
10550
10551 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
10552
10553         PR tree-optimization/49038
10554         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
10555         Ensure at least one epilogue iteration if required by data
10556         accesses with gaps.
10557         * tree-vectorizer.h (struct _loop_vec_info): Add new field
10558         to mark loops that require peeling for gaps.
10559         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
10560         (vect_get_known_peeling_cost): Take peeling for gaps into
10561         account.
10562         (vect_transform_loop): Generate epilogue if required by data
10563         access with gaps.
10564         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
10565         loop as requiring an epilogue if there are gaps in the end of
10566         the strided group.
10567
10568 2011-05-25  Ian Lance Taylor  <iant@google.com>
10569
10570         * godump.c (go_format_type): Output the first field with a usable
10571         Go type, if any.
10572
10573 2011-05-25  Ian Lance Taylor  <iant@google.com>
10574
10575         * godump.c (go_format_type): Check for invalid type names, pointer
10576         target types, and struct field types.
10577
10578 2011-05-25  Jason Merrill  <jason@redhat.com>
10579
10580         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
10581
10582 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
10583
10584         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
10585
10586 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10587
10588         * config/i386/i386.md (*movqi_extv_1)): Put back
10589         "register_operand" check in "type" calculation.
10590         (*movqi_extzv_2): Likewise.
10591
10592 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10593
10594         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
10595
10596 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
10597
10598         PR bootstrap/49160
10599         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
10600         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
10601         __divxc3, __divtc3): Wrap definitions in #ifndef.
10602
10603 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10604
10605         PR target/49142
10606         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
10607         "register_operand" check and replace q_regs_operand with
10608         QIreg_operand in "type" calculation.
10609         (*movqi_extv_1): Likewise.
10610         (*movqi_extzv_2_rex64): Likewise.
10611         (*movqi_extzv_2): Likewise.
10612
10613         * config/i386/predicates.md (QIreg_operand): New.
10614
10615 2011-05-25  Richard Guenther  <rguenther@suse.de>
10616
10617         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10618         type-based offset disambiguation, streamline MEM_REF and
10619         TARGET_MEM_REF handling.
10620
10621 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10622
10623         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
10624         (bdesc_special_args): Add pause intrinsic.
10625
10626         * config/i386/i386.md (UNSPEC_PAUSE): New.
10627         (pause): Likewise.
10628         (*pause): Likewise.
10629         * config/i386/ia32intrin.h (__pause): Likewise.
10630
10631         * doc/extend.texi (X86 Built-in Functions): Add documentation for
10632         pause intrinsic.
10633
10634 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10635
10636         PR tree-optimization/46728
10637         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
10638         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
10639
10640 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
10641
10642         * tree.h (struct tree_exp): Inherit from struct tree_typed.
10643         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
10644         instead of TS_COMMON.
10645
10646 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
10647
10648         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
10649         LIBGCC2_GNU_PREFIX is defined.
10650         (__N): New macro.
10651         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
10652         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
10653         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
10654         __clz_tab): Define using __N.
10655         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
10656         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
10657         * target.def (libfunc_gnu_prefix): New hook.
10658         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
10659         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
10660         * doc/tm.texi: Regenerate.
10661         * system.h (LIBGCC2_GNU_PREFIX): Poison.
10662         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
10663         account.
10664         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
10665         (init_optabs): Likewise for the bswap libfuncs.
10666         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
10667         and divide.
10668         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
10669         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
10670         * libgcc-std.ver: Remove.
10671         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
10672         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
10673         libgcc-std.ver.
10674         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10675         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
10676         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
10677         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
10678         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
10679         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10680         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10681         * config/fixed-bit.h (FIXED_OP): Define differently depending on
10682         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
10683         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
10684
10685 2011-05-25  Jan Hubicka  <jh@suse.cz>
10686
10687         * lto-streamer-out.c (output_record_start): Use lto_output_enum
10688         (lto_output_tree): Use output_record_start.
10689         * lto-streamer-in.c (input_record_start): Use lto_input_enum
10690         (lto_get_pickled_tree): Use input_record_start.
10691         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
10692         (lto_value_range_error): New function.
10693         * lto-streamer.h (lto_value_range_error): Declare.
10694         (lto_output_int_in_range, lto_input_int_in_range): New functions.
10695         (lto_output_enum, lto_input_enum): New macros.
10696
10697 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
10698
10699         * common.opt (flag_stack_usage_info): New variable.
10700         (-Wstack-usage): New option.
10701         * doc/invoke.texi (Warning options): Document -Wstack-usage.
10702         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
10703         <OPT_fstack_usage>: Likewise.
10704         * toplev.c (output_stack_usage): Handle -Wstack-usage.
10705         * calls.c (expand_call): Test flag_stack_usage_info variable instead
10706         of flag_stack_usage.
10707         (emit_library_call_value_1): Likewise.
10708         * explow.c (allocate_dynamic_stack_space): Likewise.
10709         * function.c (instantiate_virtual_regs ): Likewise.
10710         (prepare_function_start): Likewise.
10711         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
10712         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
10713         * config/arm/arm.c (arm_expand_prologue): Likewise.
10714         (thumb1_expand_prologue): Likewise.
10715         * config/avr/avr.c (expand_prologue): Likewise.
10716         * config/i386/i386.c (ix86_expand_prologue): Likewise.
10717         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10718         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
10719         * config/mips/mips.c (mips_expand_prologue): Likewise.
10720         * config/pa/pa.c (hppa_expand_prologue): Likewise.
10721         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10722         * config/s390/s390.c (s390_emit_prologue): Likewise.
10723         * config/sh/sh.c (sh_expand_prologue): Likewise.
10724         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10725         * config/spu/spu.c (spu_expand_prologue): Likewise.
10726
10727 2011-05-25  Richard Guenther  <rguenther@suse.de>
10728
10729         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
10730         (gimple_canonical_types_compatible_p): Likewise.
10731
10732 2011-05-25  Jan Hubicka  <jh@suse.cz>
10733
10734         PR middle-end/49062
10735         * ipa.c (function_and_variable_visibility): Only add to same
10736         comdat group list if DECL_ONE_ONLY.
10737
10738 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
10739
10740         PR rtl-optimization/49014
10741         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
10742
10743 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
10744
10745         PR target/49128
10746         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
10747
10748 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
10749
10750         PR rtl-optimization/48757
10751         * ira-build.c (loop_with_eh_edge_p): Rename to
10752         loop_with_complex_edge_p, check edges on complexity, make function
10753         conditional.
10754         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
10755         conditional.
10756
10757 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
10758
10759         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
10760         force flag_ira_share_save_slots to 0.
10761
10762 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
10763
10764         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
10765         (vt_initialize): Set PROLOGUE_BB unconditionally.
10766         Add block comment about CFA_BASE_RTX machinery.
10767         Reset FP_CFA_OFFSET to -1 on all invalid paths.
10768         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
10769
10770 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10771
10772         PR objc/48187
10773         * c-parser.c (c_parser_objc_class_instance_variables): More robust
10774         parsing of syntax error in ObjC instance variable lists.  In
10775         particular, avoid an infinite loop if there is a stray ']'.
10776         Updated error message.
10777
10778 2011-05-24  Ian Lance Taylor  <iant@google.com>
10779
10780         * godump.c (go_define): Don't accept a string immediately after
10781         another operand.
10782
10783 2011-05-24  Ian Lance Taylor  <iant@google.com>
10784
10785         * godump.c (struct godump_container): Add invalid_hash field.
10786         (go_format_type): Return false if type is found in invalid_hash.
10787         (go_output_typedef): Add invalid type to invalid_hash.
10788         (go_finish): Create and delete invalid_hash.
10789
10790 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10791
10792         PR tree-optimization/46728
10793         * tree-ssa-math-opts.c (powi_table): New.
10794         (powi_lookup_cost): New.
10795         (powi_cost): New.
10796         (powi_as_mults_1): New.
10797         (powi_as_mults): New.
10798         (gimple_expand_builtin_powi): New.
10799         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
10800         (gate_cse_sincos): Remove sincos/cexp restriction.
10801
10802 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10803
10804         PR target/3746
10805         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
10806         mips-tdump native.
10807         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
10808         * mips-tdump.c: Likewise.
10809
10810 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10811
10812         PR target/49128
10813         * config/i386/driver-i386.c (host_detect_local_cpu): Always
10814         add -mno-XXX.  Handle FMA.
10815
10816 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
10817
10818         PR rtl-optimization/48633
10819         * ira-build.c (loop_with_eh_edge_p): New function.
10820         (mark_loops_for_removal): Use it.
10821
10822 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
10823
10824         PR rtl-optimization/48971
10825         * ira.c (setup_pressure_classes): Don't check register move cost
10826         for classes with one registers.  Don't add pressure class if there
10827         is a pressure class with the same available hard registers.
10828         Check contains_reg_of_mode.  Fix a typo in collecting
10829         temp_hard_regset.  Ignore hard registers not belonging to a class.
10830
10831 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
10832
10833         PR target/49133
10834         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
10835
10836 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
10837             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10838
10839         PR gcov-profile/48845
10840         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
10841
10842 2011-05-24  Richard Guenther  <rguenther@suse.de>
10843
10844         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
10845         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
10846         (gimple_types_compatible_p_1): Adjust.
10847         (iterative_hash_canonical_type): Do not bother about complete vs.
10848         incomplete types.
10849         (gimple_canonical_types_compatible_p): Likewise.
10850
10851 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10852
10853         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
10854
10855 2011-05-24  Richard Guenther  <rguenther@suse.de>
10856
10857         PR bootstrap/49078
10858         * gimple.c (gimple_register_canonical_type): Revert
10859         previous change.
10860         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
10861         does not for a tree for the case where it matters.  Cache
10862         pointer-type alias-sets.
10863
10864 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
10865
10866         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
10867         (OBJS): Remove options.o, opts-common.o and prefix.o.
10868         (OBJS-libcommon-target): New.
10869         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
10870         (BACKEND): Include libcommon-target.a.
10871         (MOSTLYCLEANFILES): Include libcommon-target.a.
10872         (libcommon-target.a): New.
10873         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
10874         prefix.o.
10875
10876 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
10877
10878         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
10879         parts of output shared with the driver.
10880         * optc-gen.awk: Don't generate parts of output not shared with the
10881         driver.
10882         * opth-gen.awk: Remove GCC_DRIVER conditionals.
10883         * doc/options.texi (SourcerInclude): Mention options-save.c.
10884         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
10885         (OBJS): Add options-save.o.
10886         (options-save.c, options-save.o): New.
10887         (options.o): Update dependencies.
10888         (gcc-options.o): Remove.
10889         (mostlyclean): Remove options-save.c.
10890
10891 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
10892
10893         PR debug/49032
10894         * dbxout.c: Include cgraph.h.
10895         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
10896         and without value expr, return NULL if no varpool node exists for
10897         it or if it is not needed.
10898         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
10899
10900         PR c/49120
10901         * c-decl.c (start_decl): Convert expr to void_type_node.
10902
10903 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
10904
10905         PR rtl-optimization/48826
10906         * emit-rtl.c (try_split): When splitting a call that is followed
10907         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
10908
10909 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
10910
10911         * cfgexpand.c (expand_debug_expr): For unused non-addressable
10912         parameters passed in memory prefer using DECL_INCOMING_RTL over
10913         the pseudos it will be copied into.
10914
10915 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10916
10917         PR target/47315
10918         * config/i386/i386.c (ix86_option_override_internal): Save the
10919         initial options after checking vzeroupper.
10920
10921 2011-05-23  David Li  <davidxl@google.com>
10922
10923         PR tree-optimization/48988
10924         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
10925         Initialize has_valid_pred for each pred chain.
10926
10927 2011-05-23  Richard Guenther  <rguenther@suse.de>
10928
10929         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
10930         (iterative_hash_gimple_type): Always hash type names.
10931
10932 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
10933
10934         * c-typeck.c (build_function_call_vec): Tweak call to
10935         check_function_arguments.
10936
10937 2011-05-23  Richard Guenther  <rguenther@suse.de>
10938
10939         PR tree-optimization/49115
10940         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
10941         is not necessarily carried out, do not claim it kills the ref.
10942         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
10943
10944 2011-05-23  Richard Guenther  <rguenther@suse.de>
10945
10946         PR middle-end/15419
10947         * builtins.c (fold_builtin_memory_op): Be less restrictive about
10948         what pointer types we accept for folding.
10949
10950 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10951
10952         * gthr-gnat.c: Remove.
10953         * gthr-gnat.h: Remove.
10954         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
10955         * config/t-freebsd (LIB2ADDEH): Likewise.
10956         * config/t-linux (LIB2ADDEH): Likewise.
10957         * config/t-sol2 (LIB2ADDEH): Likewise.
10958         * config/ia64/t-vms (LIB2ADDEH): Likewise.
10959         * configure.ac (target_thread_file): Remove gnat handling.
10960         * configure: Regenerate.
10961         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
10962
10963 2011-05-23  Tristan Gingold  <gingold@adacore.com>
10964             Eric Botcazou  <ebotcazou@adacore.com>
10965
10966         * gcov.c (create_file_names): If no object directory is specified,
10967         keep the directory of the file.
10968
10969 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10970
10971         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
10972         * configure: Regenerate.
10973
10974 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
10975
10976         PR middle-end/48973
10977         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
10978         failed and the comparison has a single bit signed type, use
10979         constm1_rtx instead of const1_rtx for true value.
10980         (do_store_flag): If ops->type is single bit signed type, disable
10981         signel bit test optimization and pass -1 instead of 1 as last
10982         parameter to emit_store_flag_force.
10983
10984 2011-05-23  Tom de Vries  <tom@codesourcery.com>
10985
10986         PR target/45098
10987         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
10988         function.
10989         (infer_loop_bounds_from_undefined): Use new function.
10990
10991 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
10992
10993         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
10994         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
10995         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
10996         and -O0 otherwise.
10997         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
10998
10999 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
11000
11001         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
11002         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
11003         returns true.
11004
11005 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
11006
11007         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11008
11009 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
11010
11011         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
11012         UNSPEC_MOVE_PIC pattern.
11013
11014 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
11015
11016         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
11017         (sparc-*-rtems*): Likewise.
11018         (sparc64-*-elf*): Likewise.
11019         (sparc64-*-rtems*): Likewise.
11020         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
11021         * config/sparc/t-crtin: New file.
11022         * config/sparc/t-sol2 (crti.o): Delete rule.
11023         (crtn.o): Likewise.
11024         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
11025         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
11026         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
11027         (ENDFILE_SPEC): Add crtn.o.
11028
11029 2011-05-22  Tom de Vries  <tom@codesourcery.com>
11030
11031         PR middle-end/48689
11032         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
11033         CODE_CONTAINS_STRUCT (TS_COMMON).
11034
11035 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
11036
11037         PR middle-end/49029
11038         * expmed.c (extract_fixed_bit_field): Test whether target can be used
11039         only after deciding which mode to use.
11040
11041 2011-05-22  Tom de Vries  <tom@codesourcery.com>
11042
11043         PR target/45098
11044         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
11045         for call to get_shiftadd_cost.
11046
11047 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
11048
11049         PR target/49104
11050         * config/i386/cpuid.h (bit_MMXEXT): New define.
11051
11052 2011-05-22  Nick Clifton  <nickc@redhat.com>
11053
11054         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
11055         initialisation of non-existant args[2] element.  Use args[] array
11056         not arg[] array to pass arguments to build_function_type_list.
11057
11058 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
11059
11060         PR tree-optimization/49087
11061         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
11062
11063 2011-05-21  Jason Merrill  <jason@redhat.com>
11064
11065         PR c++/49092
11066         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
11067         static storage duration.
11068
11069 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
11070
11071         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
11072         frame pointer.
11073
11074 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
11075
11076         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
11077         false if there are call-saved registers here...
11078         (sparc_can_use_return_insn_p): ...but here instead.
11079         (save_or_restore_regs): Fix thinko.
11080         (sparc_expand_prologue): Use current_function_is_leaf.
11081         (sparc_frame_pointer_required): Likewise.
11082
11083 2011-05-21  Nick Clifton  <nickc@redhat.com>
11084
11085         PR target/49098
11086         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
11087
11088 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11089
11090         * gengtype.c (walk_type): Implemented "atomic" GTY option.
11091         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
11092
11093 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
11094
11095         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
11096         * optc-gen.awk: Move common code to opt-read.awk.
11097         * opth-gen.awk: Likewise.
11098         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
11099
11100 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
11101
11102         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
11103
11104 2011-05-20  Tom de Vries  <tom@codesourcery.com>
11105
11106         PR target/45098
11107         * tree-ssa-loop-ivopts.c: Include expmed.h.
11108         (get_shiftadd_cost): New function.
11109         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
11110
11111 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
11112
11113         PR bootstrap/49086
11114         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
11115         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
11116
11117 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
11118
11119         * Makefile.in: Update comment referring to $(OBJS-common).
11120
11121 2011-05-20  Ian Lance Taylor  <iant@google.com>
11122
11123         * godump.c (go_output_typedef): Put enum constants in the macro
11124         hash table to avoid duplicate Go const definitions.
11125
11126 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
11127
11128         * Makefile.in (LIBDEPS): Add libcommon.a.
11129         (LIBS): Likewise.
11130         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
11131         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
11132         pretty-print.o and version.o.
11133         (OBJS-libcommon): New.
11134         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
11135         (BACKEND): Add libcommon.a.
11136         (MOSTLYCLEANFILES): Likewise.
11137         (libcommon.a): New.
11138         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
11139         (cpp$(exeext)): Likewise.
11140         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
11141         pretty-print.o and input.o.
11142         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
11143         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
11144         (errors.o): Remove.
11145         (mips-tfile): Don't explicitly use version.o.
11146         (mips-tdump): Likewise.
11147         (gcov.o): Depend on $(DIAGNOSTIC_H).
11148         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
11149         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
11150         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
11151         * gcov-dump.c: Include intl.h and diagnostic.h.
11152         (main): Initialize diagnostics.
11153         * gcov.c: Include diagnostic.h.
11154         (fnotice): Remove.
11155         (main): Initialize diagnostics.
11156         * lto-wrapper.c: Include diagnostic.h.
11157         (main): Initialize diagnostics.
11158
11159 2011-05-20  Michael Matz  <matz@suse.de>
11160
11161         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
11162
11163 2011-05-20  Michael Matz  <matz@suse.de>
11164             Richard Guenther  <rguenther@suse.de>
11165
11166         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
11167         use lto_streamer_cache_append directly instead of returning a VEC.
11168         (preload_common_node): Remove.
11169         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
11170         track seen nodes.
11171         (lto_streamer_cache_create): Call lto_preload_common_nodes.
11172
11173 2011-05-20  Richard Guenther  <rguenther@suse.de>
11174
11175         PR tree-optimization/49079
11176         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
11177         MEM_REFs correctly for the trailing array access detection.
11178         Special case constants the same way as decls for overall size
11179         constraining.
11180
11181 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
11182
11183         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
11184         argument expansion.
11185
11186 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
11187
11188         PR tree-optimization/49073
11189         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
11190         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
11191         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
11192
11193 2011-05-20  Richard Guenther  <rguenther@suse.de>
11194
11195         PR middle-end/48849
11196         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
11197         of pointer types the same way the middle-end does.
11198
11199 2011-05-20  Richard Guenther  <rguenther@suse.de>
11200
11201         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
11202         or pointer-to chains.  Delay all fixup to uniquify_nodes.
11203
11204 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
11205
11206         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
11207         (fma4_fmaddsub): Likewise
11208
11209 2011-05-19  Jan Hubicka  <jh@suse.cz>
11210
11211         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
11212         (GIMPLE_TYPE_PAIR_SIZE): New macro.
11213         (type_pair_cache): New static var.
11214         (lookup_type_pair): Use fixed sized custom hash; make inline.
11215         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
11216         calls of lookup_type_pair.
11217         (print_gimple_types_stats): Remove cache stats.
11218         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
11219         and gtc_ob.
11220
11221 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
11222
11223         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
11224         when TARGET_RDRND is active.
11225         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
11226         Generate dummy SImode target register when target is NULL.
11227
11228 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
11229
11230         * config/arm/arm-fpus.def: New.
11231         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
11232         arm-fpus.def.
11233         * config/arm/arm-tables.opt: Regenerate.
11234         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
11235         (arm_option_override): Don't decode FPU name to string here.
11236         * config/arm/arm.opt (mfpu=): Use Enum.
11237         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
11238         Update dependencies.
11239
11240 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
11241
11242         * collect2.c: Include diagnostic.h.
11243         (fatal_perror, fatal, error, fancy_abort): Remove.
11244         (main): Set progname.  Call xmalloc_set_program_name and
11245         diagnostic_initialize.
11246         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
11247         scan_libraries, resolve_lib_name): Call fatal_error instead of
11248         fatal and fatal_perror.
11249         * collect2.h (error, fatal, fatal_perror): Don't declare.
11250         * tlink.c: Include diagnostic-core.h.
11251         (recompile_files): Call fatal_error instead of fatal_perror.
11252         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
11253         pretty-print.o and input.o.
11254         (collect2.o, tlink.o): Update dependencies.
11255
11256 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11257
11258         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
11259
11260 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11261
11262         PR target/40483
11263         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
11264         COMDAT group syntax, both SPARC and x86 variants.
11265         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11266         * configure: Regenerate.
11267         * config/sol2.h (TARGET_SOLARIS): Define.
11268         (PUSHSECTION_FORMAT): Remove.
11269         (SECTION_NAME_FORMAT): Define.
11270         * config/sol2.c: Include hashtab.h.
11271         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
11272         expansion, using SECTION_NAME_FORMAT.
11273         (solaris_comdat_htab): New variable.
11274         (struct comdat_entry): Define.
11275         (comdat_hash): New function.
11276         (comdat_eq): New function.
11277         (solaris_elf_asm_comdat_section): New function.
11278         (solaris_define_comdat_signature): New function.
11279         (solaris_code_end): New function.
11280         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
11281         (solaris_code_end): Declare.
11282         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
11283         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
11284         solaris_code_end.
11285         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
11286         Remove ATTRIBUTE_UNUSED.
11287         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
11288         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
11289         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
11290         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
11291         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
11292         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
11293         (PUSHSECTION_FORMAT): Remove.
11294         (SECTION_NAME_FORMAT): Redefine.
11295
11296 2011-05-19  Kai Tietz  <ktietz@redhat.com>
11297
11298         * tree-cfg.c (verify_gimple_assign_binary): Barf on
11299         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
11300         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
11301
11302 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
11303             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11304
11305         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
11306
11307 2011-05-19  Richard Guenther  <rguenther@suse.de>
11308
11309         PR middle-end/48985
11310         * tree-object-size.c (addr_object_size): If the pointed-to
11311         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11312
11313 2011-05-19  Richard Guenther  <rguenther@suse.de>
11314
11315         * gimple.c (gimple_types_compatible_p_1): Compare names of
11316         the types themselves.
11317         (iterative_hash_gimple_type): And hash them that way.
11318         (gimple_register_type_1): If we register a main variant properly
11319         initialize the leader to ourselves.
11320
11321 2011-05-19  Tom de Vries  <tom@codesourcery.com>
11322
11323         PR target/45098
11324         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
11325         get_loop_invariant_expr_id.
11326         (get_loop_invariant_expr_id): Use get_expr_id.
11327         (parm_decl_cost): New function.
11328         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
11329         Improve bound cost estimation.  Use different inv_expr_id for elim and
11330         express cases.
11331
11332 2011-05-19  Tom de Vries  <tom@codesourcery.com>
11333
11334         PR target/45098
11335         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
11336         cost_base.cost == 0.
11337
11338 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11339
11340         PR target/49002
11341         * config/i386/sse.md
11342         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
11343         load cast.
11344
11345 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
11346
11347         PR tree-optimization/49039
11348         * tree-vrp.c (extract_range_from_binary_expr): For
11349         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
11350         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
11351
11352 2011-05-18  Tom de Vries  <tom@codesourcery.com>
11353
11354         PR target/45098
11355         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
11356
11357 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
11358
11359         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
11360         (*tls_global_dynamic_64): Ditto.
11361         (*tls_local_dynamic_base_32_gnu): Ditto.
11362         (*tls_local_dynamic_base_64): Ditto.
11363         (tls_initial_exec_64_sun): Ditto.
11364
11365 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
11366
11367         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
11368         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
11369         bf592-none.
11370         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
11371         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
11372         * config/bfin/bfin.c (bfin_cpus): Add bf592.
11373         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11374         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
11375         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
11376         * config/bfin/elf.h (LIB_SPEC): Add bf592.
11377
11378 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
11379
11380         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
11381         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
11382         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
11383         target_thread_pointer, arm_structure_size_boundary, struct
11384         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
11385         struct abi_name, arm_all_abis): Remove.
11386         (arm_option_override) Don't process most enumerated option values here.
11387         Don't process target_fpe_name here.  Work with integer not string for
11388         structure size boundary; use separate diagnostics for each case.
11389         * config/arm/arm.h (enum float_abi_type, enum
11390         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
11391         to arm-opts.h.
11392         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
11393         arm_structure_size_boundary): Remove.
11394         * config/arm/arm.opt (mabi=): Use Enum and Init.
11395         (arm_abi_type): New Enum and EnumValue entries.
11396         (mfloat-abi=): Use Enum and Init.
11397         (float_abi_type): New Enum and EnumValue entries.
11398         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
11399         (mfp16-format=): Use Enum and Init.
11400         (arm_fp16_format_type): New Enum and EnumValue entries.
11401         (mstructure-size-boundary=): Use UInteger and Init.
11402         (mtp=): Use Enum and Init.
11403         (arm_tp_type): New Enum and EnumValue entries.
11404
11405 2011-05-18  Richard Guenther  <rguenther@suse.de>
11406
11407         PR tree-optimization/49018
11408         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
11409         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
11410         gimple_has_side_effects.
11411
11412 2011-05-18  Richard Guenther  <rguenther@suse.de>
11413
11414         * gimple.c (gimple_register_type_1): New function, split out from ...
11415         (gimple_register_type): ... here.  Avoid infinite recursion.
11416
11417 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
11418
11419         PR tree-optimization/41881
11420         * tree-vectorizer.h (struct _loop_vec_info): Add new field
11421         reduction_chains along with a macro for its access.
11422         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
11423         (destroy_loop_vec_info): Free reduction chains.
11424         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
11425         (vect_is_slp_reduction): New function.
11426         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11427         (vect_create_epilog_for_reduction): Support SLP reduction chains.
11428         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
11429         definition types for reduction chains.
11430         (vect_supported_load_permutation_p): Don't allow permutations for
11431         reduction chains.
11432         (vect_analyze_slp_instance): Support reduction chains.
11433         (vect_analyze_slp): Try to build SLP instance from reduction chains.
11434         (vect_get_constant_vectors):  Handle reduction chains.
11435         (vect_schedule_slp_instance): Mark the first statement of the
11436         reduction chain as reduction.
11437
11438 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
11439
11440         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
11441         names for group elements access.
11442         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
11443         reduction chains as well.  Remove data reference and interleaving
11444         related words from the fields names.
11445         * tree-vect-loop.c (vect_transform_loop): Use new names for group
11446         elements access.
11447         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
11448         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
11449         vect_update_interleaving_chain, vect_same_range_drs,
11450         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
11451         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
11452         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
11453         vect_analyze_group_access, vect_analyze_data_ref_access,
11454         vect_create_data_ref_ptr, vect_transform_strided_load,
11455         vect_record_strided_load_vectors): Likewise.
11456         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
11457         vect_model_load_cost, vectorizable_store, vectorizable_load,
11458         vect_remove_stores, new_stmt_vec_info): Likewise.
11459         * tree-vect-slp.c (vect_build_slp_tree,
11460         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
11461
11462 2011-05-18  Richard Guenther  <rguenther@suse.de>
11463
11464         PR middle-end/48989
11465         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
11466         operand verification.
11467         (verify_gimple_assign_binary): Likewise.
11468         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
11469         to non-1-precision BOOLEAN_TYPEs.
11470
11471 2011-05-18  Tom de Vries  <tom@codesourcery.com>
11472
11473         PR target/45098
11474         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
11475
11476 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
11477
11478         PR tree-optimization/49000
11479         * tree-ssa.c (execute_update_addresses_taken): Call
11480         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
11481         be rewritten and decl has been marked for renaming, reset
11482         the debug stmt.
11483
11484 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
11485
11486         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
11487         enum_opts_set when testing if attributes have set -mfpmath=.
11488
11489 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
11490
11491         * config/mips/mips.c (mips_handle_option): Remove unused variable.
11492
11493 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
11494
11495         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
11496         info->entry with 0
11497         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
11498         id.transform_lang_insert_block with NULL.
11499
11500 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
11501
11502         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
11503         (output_fp_compare): Change args 3 and 4 to bool.
11504         (ix86_expand_call): Change arg 6 to bool.
11505         (ix86_attr_length_immediate_default): Change arg 2 to bool.
11506         (ix86_attr_length_vex_default): Change arg 3 to bool.
11507         * config/i386/i386.md: Update all uses.
11508         * config/i386/i386.c: Ditto.
11509         (ix86_flags_dependent): Change return type to bool.
11510
11511 2011-05-17  Richard Guenther  <rguenther@suse.de>
11512
11513         * gimple.c (type_hash_pair_compare): Fix comparison.
11514
11515 2011-05-17  Richard Guenther  <rguenther@suse.de>
11516
11517         * gimple.c (iterative_hash_gimple_type): Simplify singleton
11518         case some more, fix final hash value of the non-singleton case.
11519
11520 2011-05-17  Richard Guenther  <rguenther@suse.de>
11521
11522         PR bootstrap/49013
11523         Revert
11524         2011-05-16  Richard Guenther  <rguenther@suse.de>
11525
11526         * gimple.c (gimple_types_compatible_p_1): Use names of the
11527         type itself, not its main variant.
11528         (iterative_hash_gimple_type): Likewise.
11529
11530 2011-05-17  Richard Guenther  <rguenther@suse.de>
11531
11532         * gimple.c (gimple_register_canonical_type): Use the main-variant
11533         leader for computing the canonical type.
11534
11535 2011-05-17  Nick Clifton  <nickc@redhat.com>
11536
11537         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
11538         moves.
11539
11540         * config/rx/rx.md: Add peephole to remove redundant extensions
11541         after loads.
11542         (bitset_in_memory): Use rx_restricted_mem_operand.
11543         (bitinvert_in_memory): Likewise.
11544         (bitclr_in_memory): Likewise.
11545
11546 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
11547             Nick Clifton  <nickc@redhat.com>
11548
11549         * config/rx/rx.md: Add peepholes to match a register move followed
11550         by a comparison of the moved register.  Replace these with an
11551         addition of zero that does both actions in one instruction.
11552
11553 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
11554
11555         PR target/48986
11556         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
11557         predicate to allow CONST_INT.
11558         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
11559
11560 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
11561
11562         * opts-common.c (opt_enum_arg_to_value): New.
11563         * opts.h (opt_enum_arg_to_value): Declare.
11564         * config/i386/i386.opt (fpmath): Remove.
11565         (mfpmath=): Use Enum, Init and Save.
11566         (fpmath_unit): New Enum and EnumValue entries.
11567         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
11568         name for function fpmath state.
11569         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
11570         * config/i386/i386.c: Include diagnostic.h.
11571         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
11572         (ix86_target_string): Take enum fpmath_unit value instead of string.
11573         (ix86_debug_options): Update call to ix86_target_string.
11574         (ix86_option_override_internal): Don't process fpmath strings here.
11575         (x86_function_specific_save, ix86_function_specific_restore):
11576         Don't handle fpmath state specially.
11577         (ix86_function_specific_print): Pass fpmath state to
11578         ix86_target_string instead of printing in this function.
11579         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
11580         Handle enum attributes.
11581         (IX86_ATTR_ENUM, ix86_opt_enum): New.
11582         (ix86_valid_target_attribute_tree): Update option_strings
11583         handling.  Handle fpmath as enum option.
11584         (ix86_can_inline_p): Update field names for function fpmath state.
11585         (ix86_expand_builtin): Update call to ix86_target_string.
11586         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
11587         (ix86_fpmath): Remove.
11588         * config/i386/t-i386 (i386.o): Update dependencies.
11589
11590 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
11591
11592         PR preprocessor/48677
11593         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
11594         from decoded_options[0], not from itself.
11595
11596 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
11597
11598         * config/i386/constraints.md (z): New constraint.
11599         * config/i386/i386.c (c): New mode attribute.
11600         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
11601         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
11602         constraint for operand 0.
11603         (*call_vzeroupper): Ditto.
11604         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
11605         (*call_rex64_ms_sysv_vzeroupper): Ditto.
11606         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
11607         Use "lzm" constraint for operand 0.
11608         (*call_pop_vzeroupper): Ditto.
11609         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
11610         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
11611         constraint for operand 0.
11612         (*sibcall_vzeroupper): Ditto.
11613         (*sibcall_rex64_ms_sysv): Ditto.
11614         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
11615         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
11616         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
11617         (*sibcall_pop_vzeroupper): Ditto.
11618         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
11619         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
11620         mode iterator.  Use "<c>zm" constraint for operand 1.
11621         (*call_value_vzeroupper): Ditto.
11622         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
11623         for operand 1.
11624         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
11625         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
11626         *call_value_pop_1.  Use "lzm" constraint for operand 1.
11627         (*call_value_pop_vzeroupper): Ditto.
11628         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
11629         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
11630         mode iterator.  Use "Uz" constraint for operand 1.
11631         (*sibcall_value_vzeroupper): Ditto.
11632         (*sibcall_value_rex64_ms_sysv): Ditto.
11633         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
11634         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
11635         constraint for operand 1.
11636         (*sibcall_value_pop_vzeroupper): Ditto.
11637         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
11638         and "z" constraint for operand 2.
11639         (*tls_global_dynamic_32_gnu): Ditto.
11640         (*tls_local_dynamic_base_32_gnu): Ditto.
11641         (*tls_local_dynamic_base_64): Ditto.
11642         (*tls_local_dynamic_32_once): Ditto.
11643         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
11644         Update all callers.
11645         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
11646
11647 2011-05-16  Richard Guenther  <rguenther@suse.de>
11648
11649         * gimple.c (gimple_types_compatible_p_1): Use names of the
11650         type itself, not its main variant.
11651         (iterative_hash_gimple_type): Likewise.
11652
11653 2011-05-16  Richard Guenther  <rguenther@suse.de>
11654
11655         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
11656         always visit pointer target and function result and argument types.
11657
11658 2011-05-16  Jason Merrill  <jason@redhat.com>
11659
11660         PR c++/48999
11661         * tree-inline.c (copy_statement_list): Put back recursion.
11662
11663 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
11664
11665         PR target/27663
11666         PR target/41076
11667         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
11668         * config/avr/avr.md ("*ior<mode>qi.byte0",
11669         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
11670
11671 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
11672
11673         PR target/45099
11674         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
11675         register is needed for a function argument.
11676
11677 2011-05-16  Richard Guenther  <rguenther@suse.de>
11678
11679         * gimple.c (struct type_hash_pair): New type.
11680         (type_hash_pair_compare): New function.
11681         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
11682
11683 2011-05-16  Revital Eres  <revital.eres@linaro.org>
11684
11685         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
11686
11687 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
11688
11689         * config/i386/i386.md (floating point move splitters): Fix
11690         usage of standard_80387_constant_p.
11691         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
11692
11693 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
11694
11695         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
11696
11697 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
11698
11699         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
11700         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
11701         (tree_ssa_lim_finalize): Likewise.
11702
11703 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
11704
11705         * config/i386/constraint.md (Yd, Yx): New register constraints.
11706         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
11707         Yd conditional register constraint.
11708         (*movtf_internal): Use standard_sse_constant_opcode.
11709         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
11710         Yx conditional register constraint.
11711         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
11712         Yd conditional register constraint.  Use standard_sse_constant_p to
11713         check for valid SSE constants and call standard_sse_constant_opcode to
11714         output SSE insn.
11715         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
11716         constants and call standard_sse_constant_opcode to output SSE insn.
11717         * config/i386/i386.c (ix86_option_ovverride_internal): Set
11718         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
11719         optimize_size is set.
11720         (standard_sse_constant_opcode): Output conditional AVX insn templates.
11721
11722 2011-05-14  Tobias Burnus  <burnus@net-b.de>
11723
11724         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
11725
11726 2011-05-13  Martin Jambor  <mjambor@suse.cz>
11727
11728         * ipa-prop.c (ipa_cst_from_jfunc): New function.
11729         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
11730         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
11731         (evaluate_conditions_for_ipcp_clone): Removed.
11732         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
11733         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
11734         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
11735
11736 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
11737
11738         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
11739         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
11740         lieu of MAY_HAVE_DEBUG_STMTS.
11741         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
11742         debug statements if !MAY_HAVE_DEBUG_STMTS.
11743
11744 2011-05-13  Martin Thuresson  <martint@google.com>
11745
11746         PR gcov-profile/47793
11747         * libgcov.c (gcov_exit): Support relative profile paths.
11748         * doc/invoke.texi (-fprofile-dir): Update for above change.
11749
11750 2011-05-13  Richard Guenther  <rguenther@suse.de>
11751
11752         * gimple.c (gimple_canonical_types_compatible_p): Do not use
11753         type-pair caching, do not compare hashes.
11754
11755 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
11756
11757         PR middle-end/48965
11758         * tree-cfg.c (edge_to_cases_cleanup): Return true.
11759         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
11760
11761 2011-05-13  Kai Tietz  <ktietz@redhat.com>
11762
11763         * gimplify.c (gimplify_expr): Make sure operand is boolified.
11764         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
11765         compatible type for TRUTH_NOT_EXPR.
11766
11767 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
11768
11769         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
11770         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
11771         can_create_pseudo_p ().
11772
11773 2011-05-13  Richard Guenther  <rguenther@suse.de>
11774
11775         PR lto/48978
11776         * gimple.c (iterative_hash_gimple_type): Revert change in
11777         pointer target and function result and argument hashing.
11778
11779 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
11780
11781         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
11782         (*movxf_internal_nointeger): Ditto.
11783         (*movdf_internal_rex64): Ditto.
11784         (*movdf_internal): Ditto.
11785         (*movdf_internal_nointeger): Ditto.
11786         (*movsf_internal): Ditto.
11787         (sincos splitters): Use can_create_pseudo ().
11788
11789 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
11790
11791         * config/i386/i386-opts.h: New.
11792         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
11793         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
11794         ix86_section_threshold): Remove.
11795         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
11796         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
11797         OPT_mbranch_cost_.
11798         (ix86_option_override_internal): Don't decode strings for options
11799         other than -march=, -mtune= and -mfpmath=.  Don't allow for
11800         __attribute__ uses in remaining diagnostics for options with
11801         string arguments.  Don't check for integer arguments being negative.
11802         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
11803         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
11804         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
11805         ix86_branch_cost, ix86_section_threshold): Remove.
11806         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
11807         HeaderInclude.
11808         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
11809         but not Var.
11810         (masm=): Use Enum and Init.
11811         (asm_dialect): New Enum and EnumValue entries.
11812         (mbranch-cost=): Use UInteger.
11813         (mlarge-data-threshold=): Use UInteger and Init.
11814         (mcmodel=): Use Enum and Init.
11815         (cmodel): New Enum and EnumValue entries.
11816         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
11817         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
11818         mregparm=): Use UInteger.
11819         (mstringop-strategy=): Use Enum and Init.
11820         (stringop_alg): New Enum and EnumValue entries.
11821         (mtls-dialect=): Use Enum and Init.
11822         (tls_dialect): New Enum and EnumValue entries.
11823         (mabi=): Use Enum and Init.
11824         (calling_abi): New Enum and EnumValue entries.
11825         (mveclibabi=): Use Enum and Init.
11826         (ix86_veclibabi): New Enum and EnumValue entries.
11827
11828 2011-05-13  Nick Clifton  <nickc@redhat.com>
11829
11830         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
11831         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
11832
11833 2011-05-13  Kai Tietz  <ktietz@redhat.com>
11834
11835         PR middle-end/48984
11836         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
11837         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
11838         (gimple_boolify): Check for cast for boolean_type_node instead for
11839         BOOLEAN_TYPE.
11840
11841 2011-05-13  Richard Guenther  <rguenther@suse.de>
11842
11843         PR tree-optimization/48172
11844         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
11845         multiplying by number of iterations for equal step.
11846         (vect_create_cond_for_alias_checks): Likewise.
11847
11848 2011-05-13  Andreas Schwab  <schwab@redhat.com>
11849
11850         * configure.ac: Use AS_HELP_STRING throughout.
11851         * configure: Regenerate.
11852
11853 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
11854
11855         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
11856         (ix86_emit_restore_regs_using_mov): Likewise.
11857         (ix86_emit_restore_sse_regs_using_mov): Likewise.
11858
11859 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
11860
11861         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
11862         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
11863         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
11864         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
11865         RTX_OK_FOR_OLO10_P): ...here.
11866         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
11867         SYMBOLIC_CONST.
11868
11869 2011-05-12  Kai Tietz  <ktietz@redhat.com>
11870
11871         * gimplify.c (gimple_boolify): Re-boolify expression
11872         arguments even if expression type is of kind BOOLEAN_TYPE.
11873         (gimplify_boolean_expr): Removed.
11874         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
11875         and XOR. Additional take care that we keep expression's type.
11876         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
11877         of TRUTH_AND|OR|XOR_EXPR.
11878
11879 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
11880
11881         PR tree-optimization/48975
11882         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
11883         on all bbs here and free and clear ifc_bbs at the end.
11884
11885 2011-05-12  Richard Guenther  <rguenther@suse.de>
11886
11887         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
11888         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
11889         until after simple checks.
11890         (gimple_types_compatible_p): Likewise.
11891         (iterative_hash_gimple_type): Always hash pointer targets
11892         and function return and argument types.
11893         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
11894         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
11895         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
11896         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
11897         completely in the simple compare section.
11898         (gimple_register_canonical_type): Query the cache again after
11899         registering.
11900
11901 2011-05-12  Richard Guenther  <rguenther@suse.de>
11902
11903         PR tree-optimization/48172
11904         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
11905         the number of iterations from the segment size calculation.
11906         (vect_create_cond_for_alias_checks): Adjust.
11907
11908 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
11909
11910         PR debug/48967
11911         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
11912         if validate_subreg fails.
11913
11914 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
11915
11916         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
11917         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
11918         early.
11919
11920 2011-05-12  DJ Delorie  <dj@redhat.com>
11921
11922         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
11923         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
11924         created builtin into rx_builtins array.
11925         (rx_builtin_decl): New function.
11926         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
11927
11928 2011-05-12  DJ Delorie  <dj@redhat.com>
11929             Nick Clifton  <nickc@redhat.com>
11930
11931         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
11932         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
11933         (rx_is_legitimate_address): Add pre-decrement and post-increment
11934         addressing in HImode and QImode.  Fix test for out of range
11935         REG+INT addressing.
11936         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
11937         (rx_align_for_label): Test label before extracting its usage count.
11938         (rx_adjust_insn_lengths): Fix selection of insn codes.
11939         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
11940
11941 2011-05-11  Jason Merrill  <jason@redhat.com>
11942
11943         * tree.c (type_hash_canon): Use struct tree_type_non_common.
11944
11945 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
11946
11947         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
11948         reindent the subsequent block.
11949
11950 2011-05-11  Satoru Takabayashi  <satorux@google.com>
11951             Paul Pluzhnikov  <ppluzhnikov@google.com>
11952
11953         * doc/install.texi (Configuration): Document --with-linker-hash-style.
11954         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
11955         * config.in: Add LINKER_HASH_STYLE.
11956         * configure.ac: Add --with-linker-hash-style.
11957         * configure: Regenerate.
11958
11959 2011-05-11  Richard Guenther  <rguenther@suse.de>
11960
11961         PR middle-end/48964
11962         * gimple.c (iterative_hash_canonical_type): Fix typo.
11963
11964 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
11965
11966         * config/i386/i386.c (legitimize_tls_address)
11967         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
11968         expanders directly for TARGET_GNU2_TLS.  Determine pic and
11969         __tls_get_addr symbol reference here.  Update call to
11970         gen_tls_global_dynamic_{32,64} for added arguments.
11971         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
11972         expanders directly for TARGET_GNU2_TLS.  Determine
11973         __tls_get_addr symbol reference here.  Update call to
11974         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
11975         unique UNSPEC REG_EQUIV to libcall block.
11976         (ix86_tls_get_addr): Declare static.
11977         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
11978         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
11979         Do not determine pic and __tls_get_addr symbol reference here. Do not
11980         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
11981         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
11982         (tls_global_dynamic_64): Add operand 2.  Do not determine
11983         __tls_get_addr symbol reference here.  Do not call
11984         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
11985         (tls_local_dynamic_base64): Ditto for operand 1.
11986
11987 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
11988
11989         * function.c (expand_function_start): Initialize stack_check_probe_note
11990         only if the generic stack checking mechanism is used.
11991
11992 2011-05-11  Richard Guenther  <rguenther@suse.de>
11993
11994         PR tree-optimization/15256
11995         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
11996         (A & B) | C, combine (A op CST1) op CST2.
11997         (tree_ssa_forward_propagate_single_use_vars): Only bother to
11998         visit assigns that have uses.
11999
12000 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
12001
12002         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
12003         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
12004         (unpack_ts_type_common_value_fields): ...this.  Update comment.
12005         (unpack_value_fields): Adjust for renaming.
12006         (lto_input_ts_type_tree_pointers): Split into...
12007         (lto_input_ts_type_common_tree_pointer): ...this and...
12008         (lto_input_ts_type_non_common_tree_pointers): ...this.
12009         (lto_input_tree_pointers): Adjust for above split.
12010         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
12011         (pack_ts_type_common_value_fields): ...this.  Update comment.
12012         (lto_output_ts_type_tree_pointers): Split into...
12013         (lto_output_ts_type_common_tree_pointers): ...this and...
12014         (lto_output_ts_type_non_common_tree_pointers): ...this.
12015         (lto_output_tree_pointers): Adjust for above split.
12016         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
12017         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
12018         * stor-layout.c (vector_type_mode): Adjust location of mode field.
12019         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
12020         Define.
12021         (struct tree_type): Split into...
12022         (struct tree_type_common: ...this and...
12023         (struct tree_type_with_lang_specific): ...this and...
12024         (struct tree_type_non_common): ...this.  Adjust accessor macros
12025         accordingly.
12026         (TYPE_VALUES_RAW): Define.
12027         (union tree_node): Update for above changes.
12028         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
12029         TS_TYPE_NON_COMMON.
12030         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
12031         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
12032         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
12033         * treestructu.def (TS_TYPE): Remove.
12034         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
12035         Define.
12036
12037 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
12038
12039         PR debug/48159
12040         * tree-ssa.c (reset_debug_uses): New function.
12041         * tree-flow.h (reset_debug_uses): New prototype.
12042         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
12043         * tree-loop-distribution.c (generate_loops_for_partition): Call
12044         reset_debug_uses on the stmts that will be removed.  Keep around
12045         all debug stmts, don't count them as bits in partition bitmap.
12046         (generate_builtin): Don't count debug stmts or labels as bits in
12047         partition bitmap.
12048
12049 2011-05-11  Richard Guenther  <rguenther@suse.de>
12050
12051         * gimple.c (gimple_type_hash_1): Merge with ...
12052         (gimple_type_hash): ... this.
12053         (gtc_visit): Remove mode parameter and simplify accordingly.
12054         (gimple_types_compatible_p_1): Likewise.
12055         (gimple_types_compatible_p): Likewise.
12056         (iterative_hash_gimple_type): Likewise.
12057         (visit): Likewise.
12058         (gimple_type_eq): Adjust.
12059
12060 2011-05-11  Revital Eres  <revital.eres@linaro.org>
12061
12062         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
12063         enters the branch create an anti edge in the opposite direction
12064         to prevent the creation of reg-moves.
12065         * modulo-sched.c: Adjust comment to reflect the fact we are
12066         scheduling closing branch.
12067         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
12068         (stage_count): New field in struct partial_schedule.
12069         (calculate_stage_count): New function.
12070         (normalize_sched_times): Rename to reset_sched_times and handle
12071         incrementing the sched time of the nodes by a constant value
12072         passed as parameter.
12073         (duplicate_insns_of_cycles): Skip closing branch.
12074         (sms_schedule_by_order): Schedule closing branch.
12075         (ps_insn_find_column): Handle closing branch.
12076         (sms_schedule): Call reset_sched_times and adjust the code to
12077         support scheduling of the closing branch.
12078         (ps_insert_empty_row): Update calls to normalize_sched_times
12079         and rotate_partial_schedule functions.
12080
12081 2011-05-11  Richard Guenther  <rguenther@suse.de>
12082
12083         PR middle-end/48953
12084         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
12085
12086 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
12087
12088         * opts.c (finish_options): Move warning settings from process_options.
12089         * toplev.c (process_options): Move warning settings to finish_options.
12090
12091 2011-05-11  Richard Guenther  <rguenther@suse.de>
12092
12093         PR tree-optimization/18041
12094         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
12095         (simplify_bitwise_binary): ... this.  Handle operand conversions
12096         by applying them to the result instead.
12097         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
12098
12099 2011-05-11  Richard Guenther  <rguenther@suse.de>
12100
12101         * gimple.c (gimple_canonical_types_compatible_p): Split out
12102         from gimple_types_compatible_p and friends.  Do not recurse
12103         to pointed-to types.
12104         (gimple_canonical_type_eq): Use it.
12105         (iterative_hash_canonical_type): Split out from
12106         iterative_hash_gimple_type and friends.  Do not recurse
12107         to pointed-to types.
12108         (gimple_canonical_type_hash): Use it, allocate the hash here.
12109
12110 2011-05-11  Revital Eres  <revital.eres@linaro.org>
12111
12112         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
12113         recognizing doloop.
12114
12115 2011-05-11  Revital Eres  <revital.eres@linaro.org>
12116
12117         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
12118         instead of PREV_INSN.
12119
12120 2011-05-11  Revital Eres  <revital.eres@linaro.org>
12121
12122         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
12123         * loop-doloop.c (doloop_condition_get): Likewise.
12124         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12125         (doloop_end): New.
12126         * config/arm/arm.md (*addsi3_compare0): Remove "*".
12127
12128 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
12129
12130         * tree.def (CASE_LABEL_EXPR): Add an operand.
12131         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
12132
12133 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
12134
12135         * c-decl.c (c_override_global_bindings_to_false): Remove.
12136         (global_bindings_p): Don't check
12137         c_override_global_bindings_to_false.
12138         * c-tree.h (c_override_global_bindings_to_false): Remove.
12139         * c-typeck.c (composite_type): Don't set
12140         c_override_global_bindings_to_false.
12141
12142 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
12143
12144         PR target/48857, 48495
12145         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
12146         (VSX_MODE): Ditto.
12147         (VSX_MOVE_MODE): Ditto.
12148         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
12149         VSX vector types.  Add V2DImode.
12150         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
12151         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
12152         (MODES_TIEABLE_P): Ditto.
12153
12154         * config/rs6000/rs6000.c (rs6000_emit_move): Use
12155         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
12156         VSX_VECTOR_MODE.
12157         (init_cumulative_args): Ditto.
12158         (rs6000_function_arg_boundary): Ditto.
12159         (rs6000_function_arg_advance_1): Ditto.
12160         (rs6000_function_arg): Ditto.
12161         (rs6000_function_ok_for_sibcall): Ditto.
12162         (emit_frame_save): Ditto.
12163         (rs6000_function_value): Ditto.
12164         (rs6000_libcall_value): Ditto.
12165
12166 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
12167
12168         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12169         i386/darwin-lib.h to $libgcc_tm_file.
12170         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
12171
12172 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
12173
12174         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
12175
12176 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
12177
12178         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
12179         * config/rs6000/rs6000-tables.opt: New file (generated).
12180         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
12181         rs6000/rs6000-tables.opt to extra_options.
12182         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
12183         * config/rs6000/rs6000.c (rs6000_select): Remove.
12184         (processor_target_table): Move contents to rs6000-cpus.def.
12185         (darwin_rs6000_override_options): Check
12186         global_options_set.x_rs6000_cpu_index instead of
12187         rs6000_select[1].string.
12188         (rs6000_option_override_internal): Likewise.
12189         (rs6000_handle_option): Don't assert that global structures are in
12190         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
12191         (rs6000_default_cpu): New variable.
12192         (rs6000_file_start): Set it instead of local default_cpu.  Check
12193         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
12194         global_options_set.x_rs6000_tune_index instead of rs6000_select.
12195         (rs6000_darwin_file_start): Check rs6000_default_cpu and
12196         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
12197         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
12198         rs6000_select): Remove.
12199         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
12200         Remove.
12201         (mcpu=, mtune=): Use Var, Init, Enum and Save.
12202         * config/rs6000/t-rs6000
12203         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
12204         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12205         global_options_set.x_rs6000_cpu_index instead of
12206         rs6000_select[1].string.
12207         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12208         global_options_set.x_rs6000_cpu_index instead of
12209         rs6000_select[1].string.
12210
12211 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
12212
12213         * config.gcc (libgcc_tm_file): Define instead of including files
12214         from ../../libgcc/config/ in tm_file.
12215         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
12216         * configure: Regenerate.
12217         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
12218         libgcc_tm.h, cs-libgcc_tm.h): New.
12219         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
12220         (clean): Remove libgcc_tm.h.
12221         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
12222         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
12223         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
12224
12225 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
12226
12227         PR target/48896
12228         * config/avr/avr.c (avr_ret_register): Return unsigned int
12229         instead of int.
12230         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
12231         it to avr_libcall_value.
12232         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
12233         expand_expr.
12234         (avr_expand_binop_builtin): Ditto.
12235         (avr_expand_unop_builtin): Ditto.
12236
12237 2011-05-10  DJ Delorie  <dj@redhat.com>
12238
12239         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
12240         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
12241         * config/rx/rx.c (rx_align_for_label): Add label and
12242         uses_threshold parameters.  Do not align when the label is not
12243         used enough.
12244         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
12245
12246 2011-05-10  Richard Guenther  <rguenther@suse.de>
12247
12248         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
12249         a series of conversions and apply foldings similar to what
12250         fold-const does.
12251         (tree_ssa_forward_propagate_single_use_vars): Call it.
12252
12253 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
12254
12255         PR tree-optimization/48611
12256         PR tree-optimization/48794
12257         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
12258         referenced from RESX or EH_DISPATCH arguments.
12259
12260         PR debug/48928
12261         * dfp.c (decimal_to_decnumber): Handle conversion from
12262         dconst{1,2,m1,half}.
12263
12264 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12265
12266         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
12267         for !flag_prefer_avx128.
12268         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
12269
12270 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
12271
12272         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
12273         (fold_ternary_loc): Use expr_location_or.
12274
12275 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12276
12277         PR debug/48853
12278         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
12279         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
12280         Pmode and mem_mode is not VOIDmode.
12281
12282 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
12283
12284         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
12285         TYPE_QUAL_RESTRICT): Convert to enum.
12286
12287 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12288
12289         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
12290         (const_pow2_1_to_8_operand): Ditto.
12291         (const_pow2_1_to_128_operand): Ditto.
12292         (const_pow2_1_to_32768_operand): Ditto.
12293         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
12294         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
12295         in insn constraint to check integer value of operand 3.
12296         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12297
12298         (PINSR_MODE): New mode iterator.
12299         (sse2p4_1): New mode attribute.
12300         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
12301         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
12302         iterator.  Use const_int_operand instead of
12303         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
12304         exact_log2 in insn constraint to check integer value of operand 3.
12305
12306 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12307
12308         * config/i386/sse.md (blendbits): Remove mode attribute.
12309         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12310         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12311         Check integer value of operand 3 in insn constraint.
12312
12313 2011-05-09  Richard Guenther  <rguenther@suse.de>
12314
12315         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
12316         for diagnostics.
12317         (lto_symtab_merge): Likewise.  Do not register types here.
12318         (lto_symtab_merge_decls_2): Likewise.
12319         (lto_symtab_merge_decls_1): Likewise.
12320         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
12321         * gimple.c (enum gtc_mode): Declare.
12322         (gimple_types_compatible_p): Make static.
12323
12324 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12325
12326         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
12327         temporary register to match Pmode.
12328
12329 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12330
12331         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
12332         and *vec_concatv4si_1_avx.
12333
12334 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
12335
12336         PR rtl-optimization/48927
12337         * ira-conflicts.c (commutative_constraint_p): Use
12338         recog_data.alternative_enabled_p to disable alternatives where
12339         "enabled" attribute is false.
12340         (get_dup_num): Ditto.
12341         * ira-lives.c (single_reg_class): Ditto.
12342         (ira_implicitly_set_insn_hard_regs): Ditto.
12343
12344 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
12345
12346         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
12347         (dataflow_set_preserve_mem_locs): Likewise.
12348
12349 2011-05-09  Philipp Thomas  <pth@suse.de>
12350
12351         * config/mep/mep.c (mep_validate_vliw): Syntax description
12352         should not be translated.
12353
12354 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
12355
12356         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
12357         * config/mips/mips-tables.opt: New file (generated).
12358         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
12359         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12360         MIPS_ARCH_OPTION_NATIVE): Define.
12361         * config/mips/mips.c (mips_cpu_info_table): Move contents to
12362         mips-cpus.def.
12363         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12364         mips_parse_cpu): Remove.
12365         (mips_cpu_info_from_opt, mips_default_arch): New.
12366         (mips_handle_option): Don't assert that global structures are in
12367         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
12368         (mips_option_override): Use new variables and functions to set
12369         state of these options.  Use strcmp to check for individual CPU names.
12370         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
12371         definition.
12372         * config/mips/mips.opt (march=): Use ToLower and Enum.
12373         (mips): Use ToLower, Enum and Var.
12374         (mtune=): Use ToLower and Enum.
12375         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
12376
12377 2011-05-08  Jan Hubicka  <jh@suse.cz>
12378
12379         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
12380         Arrange type pairs to be UID ordered.
12381         (gimple_lookup_type_leader): Make inline.
12382
12383 2011-05-09  Nick Clifton  <nickc@redhat.com>
12384
12385         PR target/48899
12386         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
12387         PROCESSOR_DEFAULT.
12388
12389         PR target/48897
12390         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
12391         variable 's'.
12392
12393 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
12394
12395         * combine.c (simplify_comparison): Abstract out parts into...
12396         (simplify_compare_const): ... new function.
12397         (try_combine): Generalize parallel arithmetic/compare combining
12398         to call simplify_compare_const() and CANONICALIZE_COMPARE().
12399
12400 2011-05-08  Jan Hubicka  <jh@suse.cz>
12401
12402         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
12403         (cgraph_create_virtual_clone): Call hooks once virtual clone
12404         is finished.
12405         * cgraph.h (cgraph_clone_node): Update prototype.
12406         * ipa-cp.c (ipcp_estimate_growth): Use
12407         estimate_ipcp_clone_size_and_time.
12408         * ipa-inline-transform.c (clone_inlined_nodes): Update.
12409         * lto-cgraph.c (input_node): Update.
12410         * ipa-inline.c (recursive_inlining): Update.
12411         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
12412         (evaluate_conditions_for_known_args): Break out from ...
12413         (evaluate_conditions_for_edge): ... here.
12414         (evaluate_conditions_for_ipcp_clone): New function.
12415         (inline_node_duplication_hook): Update clone summary based
12416         on parameter map.
12417         (estimate_callee_size_and_time): Rename to ...
12418         (estimate_node_size_and_time): take NODE instead of EDGE;
12419         take POSSIBLE_TRUTHS as argument.
12420         (estimate_callee_size_and_time): Update.
12421         (estimate_ipcp_clone_size_and_time): New function.
12422         (do_estimate_edge_time): Update.
12423
12424 2011-05-08  Richard Guenther  <rguenther@suse.de>
12425
12426         PR middle-end/48908
12427         PR middle-end/48905
12428         * expmed.c (expand_shift_1): Compute adjusted constant shift
12429         amount manually.
12430
12431 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
12432
12433         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
12434
12435 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
12436
12437         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
12438
12439 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
12440
12441         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
12442
12443 2011-05-07  Jan Hubicka  <jh@suse.cz>
12444
12445         * ipa-inline-transform.c (inline_call): Account when program size
12446         decreases.
12447         * ipa-inline.c (relative_time_benefit): New function.
12448         (edge_badness): Reorganize to be power 2 based; fix thinko when
12449         computing badness for negative growth; update comments to match
12450         reality; better dumps.
12451
12452 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
12453
12454         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
12455         type to bool and adjust comment.
12456         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
12457         (fold_mathfn_compare): Remove calls to global_bindings_p.
12458         (fold_inf_compare): Likewise.
12459         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
12460         * c-tree.h (global_bindings_p): Adjust prototype.
12461         * c-decl.c (global_bindings_p): Return bool and simplify.
12462
12463 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
12464
12465         PR tree-optimization/48837
12466         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
12467         when accumulator transformation is performed.
12468
12469 2011-05-06  Jan Hubicka  <jh@suse.cz>
12470
12471         * i386.h (ix86_tune_indices): Add
12472         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
12473         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
12474         * i386.c (initial_ix86_tune_features): Add
12475         X86_SOFTARE_PREFETCHING_BENEFICIAL.
12476         (software_prefetching_beneficial_p): Remove predicate.
12477         (ix86_option_override_internal): Use new macro.
12478
12479 2011-05-06  Jan Hubicka  <jh@suse.cz>
12480
12481         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
12482
12483 2011-05-06  Jan Hubicka  <jh@suse.cz>
12484
12485         * cgraph.c (cgraph_add_thunk): Create real function node instead
12486         of alias node; finalize it and mark needed/reachale; arrange visibility
12487         to be right and add it into the corresponding same comdat group list.
12488         (dump_cgraph_node): Dump thunks.
12489         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
12490         cgraph_function_with_gimple_body_p,
12491         cgraph_first_function_with_gimple_body,
12492         cgraph_next_function_with_gimple_body): New functions.
12493         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
12494         New macros.
12495         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
12496         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12497         * cgraphunit.c (cgraph_finalize_function): Only look into possible
12498         devirtualization when optimizing.
12499         (verify_cgraph_node): Verify thunks.
12500         (cgraph_analyze_function): Analyze thunks.
12501         (cgraph_mark_functions_to_output): Output thunks only in combination
12502         with function they are assigned to.
12503         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
12504         alias into normal node.
12505         (assemble_thunks): New functoin.
12506         (cgraph_expand_function): Use it.
12507         * lto-cgraph.c (lto_output_node): Stream thunks.
12508         (input_overwrite_node): Stream in thunks.
12509         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
12510         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
12511         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
12512         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
12513         (inline_analyze_function): Do not care about thunk jump functions.
12514         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
12515         * ipa-prop.c (ipa_prop_write_jump_functions): Use
12516         cgraph_function_with_gimple_body_p.
12517         * passes.c (do_per_function_toporder): Use
12518         cgraph_function_with_gimple_body_p.
12519         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12520         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
12521         (function_called_by_processed_nodes_p): Likewise.
12522
12523 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
12524
12525         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
12526         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
12527         entries.
12528         (mabi=): Replace with separate entries for mabi=altivec,
12529         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
12530         mabi=ieeelongdouble and mabi=ibmlongdouble.
12531         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
12532         check for -mabi=spe without SPE ABI support here.
12533         (rs6000_handle_option): Replace OPT_mabi_ handling with
12534         OPT_mabi_altivec and OPT_mabi_spe handling.
12535
12536 2011-05-06  Cary Coutant  <ccoutant@google.com>
12537
12538         * dwarf2out.c (contains_subprogram_definition): New function.
12539         (should_move_die_to_comdat): Call it.
12540
12541 2011-05-06  Jeff Law  <law@redhat.com>
12542
12543         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
12544         remove_ctrl_stmt_and_useless_edges.
12545         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
12546         (fixup_template_block, thread_single_edge): Likewise.
12547         (mark_threaded_blocks): Use THREAD_TARGET.
12548
12549 2011-05-06  Alan Modra  <amodra@gmail.com>
12550
12551         PR target/48900
12552         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12553         const0_rtx as the arg to the dummy __tls_get_addr libcall.
12554
12555 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
12556
12557         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
12558         constraint modifier to "r".
12559
12560 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
12561
12562         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
12563         fall through for OPT_mcmodel_.
12564
12565 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12566
12567         * config/s390/s390.c (s390_asm_trampoline_template): Comment
12568         instruction sizes.
12569         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
12570
12571 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12572
12573         PR target/47930
12574         * config/arm/arm.opt (marm): Document it.
12575         (mthumb): Reject negative variant.
12576
12577 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
12578
12579         PR target/48898
12580         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12581         Fix typo in "ccvt" variable name.
12582
12583 2011-05-06  Tristan Gingold  <gingold@adacore.com>
12584
12585         PR target/48895
12586         * config/vms/vms-ar.c (main): Remove cwd variable.
12587
12588 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
12589
12590         PR debug/48902
12591         * var-tracking.c (prepare_call_arguments): Move else before #endif.
12592
12593 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
12594
12595         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
12596         * gimplify.c (gimplify_switch_expr): Likewise.
12597         * omp-low.c (expand_omp_sections): Likewise.
12598         * tree-eh.c (lower_try_finally_switch): Likewise.
12599         (lower_eh_dispatch): Likewise.
12600         * tree.h (build_case_label): Declare.
12601         * tree.c (build_case_label): Define.
12602
12603 2011-05-05  Jason Merrill  <jason@redhat.com>
12604
12605         PR c++/40975
12606         * tree-inline.c (copy_tree_r): Use copy_statement_list.
12607         (copy_statement_list): Don't recurse.
12608         * stor-layout.c (copy_self_referential_tree_r): Don't allow
12609         STATEMENT_LIST.
12610
12611 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
12612
12613         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
12614         through from -mfpu= handling.
12615         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
12616
12617 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
12618
12619         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
12620         POST_MODIFY.
12621
12622 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
12623
12624         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
12625         for 11.31.
12626         (hppa[12]*-*-hpux11*): Ditto.
12627         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
12628         * config/ia64/hpux-unix2003.h: New.
12629         * config/pa/pa-hpux1131.opt: New.
12630         * config/pa/pa-hpux1131.h: New.
12631         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
12632         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
12633         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
12634
12635 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
12636
12637         PR debug/48853
12638         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
12639         instead of mode as 3rd argument to recursive call.
12640         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
12641         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
12642         VOIDmode.
12643         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
12644         don't give up if mode is Pmode and mem_mode is not VOIDmode.
12645         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
12646         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
12647
12648 2011-05-05  Julian Brown  <julian@codesourcery.com>
12649
12650         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
12651         parenthesis in D-register case.
12652
12653 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
12654
12655         * opt-functions.awk (var_type_struct): Handle Enum options.
12656         * optc-gen.awk: Don't check range of variables of character type.
12657         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
12658         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12659         rs6000_sdata_name, rs6000_explicit_options): Remove.
12660         (rs6000_option_override_internal): Check for -malign-power here.
12661         Use global_options_set instead of rs6000_explicit_options.
12662         (rs6000_parse_fpu_option): Remove.
12663         (rs6000_handle_option): Access variables via opts and opts_set
12664         pointers.  Use error_at and warning_at.  Add fall-through
12665         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
12666         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
12667         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
12668         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
12669         here.  Don't use rs6000_parse_fpu_option.
12670         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
12671         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
12672         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
12673         (mrecip=): Use Var.
12674         (mspe): Use Var and Save.
12675         (mtraceback=): Use Enum and Var.
12676         (rs6000_traceback_type): New Enum and EnumValue entries.
12677         (mfloat-gprs=): Use Enum, Var and Save.
12678         (rs6000_float_gprs): New Enum and EnumValue entries.
12679         (mlong-double-): use Var and Save.
12680         (msched-costly-dep=, minsert-sched-nops=): Use Var.
12681         (malign-): Use Enum and Var.
12682         (rs6000_alignment_flags): New Enum and EnumValue entries.
12683         (mfpu=): Use Enum.
12684         (fpu_type_t): New Enum and EnumValue entries.
12685         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12686         global_options_set instead of rs6000_explicit_options.
12687         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12688         global_options_set instead of rs6000_explicit_options.
12689         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12690         global_options_set instead of rs6000_explicit_options.
12691         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12692         global_options_set instead of rs6000_explicit_options.
12693         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
12694         global_options_set instead of rs6000_explicit_options.
12695         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12696         global_options_set instead of rs6000_explicit_options.
12697         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
12698         definition.
12699         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12700         global_options_set instead of rs6000_explicit_options.
12701         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
12702         (rs6000_cmodel): New Enum and EnumValue entries.
12703         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12704         global_options_set instead of rs6000_explicit_options.
12705         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
12706         (mtls-size=): Use Enum and Var.
12707         (rs6000_tls_size): New Enum and EnumValue entries.
12708
12709 2011-05-05  Michael Matz  <matz@suse.de>
12710
12711         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
12712         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
12713         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
12714         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
12715         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
12716         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
12717         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
12718         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
12719         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
12720         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
12721         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
12722         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
12723         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
12724         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
12725         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
12726         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
12727
12728 2011-05-05  Richard Guenther  <rguenther@suse.de>
12729
12730         * expmed.c (expand_variable_shift): Rename to ...
12731         (expand_shift_1): ... this.  Take an expanded shift amount.
12732         For rotates recurse directly not building trees for the shift amount.
12733         (expand_variable_shift): Wrap around expand_shift_1.
12734         (expand_shift): Adjust.
12735
12736 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
12737
12738         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
12739
12740 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
12741
12742         * tree.h (get_pending_sizes): Remove prototype.
12743         (put_pending_size): Likewise.
12744         (put_pending_sizes): Likewise.
12745         * stor-layout.c (pending_sizes): Delete.
12746         (get_pending_sizes): Likewise.
12747         (put_pending_size): Likewise.
12748         (put_pending_sizes): Likewise.
12749         (variable_size): Do not call put_pending_size and tidy up.
12750         * function.h (struct function): Remove dont_save_pending_sizes_p.
12751         * lto-streamer-in.c (input_function): Do not stream it.
12752         * lto-streamer-out.c (output_function): Likewise.
12753         * tree-inline.c (initialize_cfun): Do not copy it.
12754         * c-decl.c (store_parm_decls): Do not set it.
12755         * omp-low.c (create_task_copyfn): Likewise.
12756         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12757
12758 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
12759
12760         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
12761         conditions.
12762         (*movdf_internal): Ditto.
12763         (*movdf_internal_nointeger): Ditto.
12764         (*movsf_internal): Ditto.
12765
12766 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
12767
12768         * c-decl.c (finish_decl): Don't call get_pending_sizes.
12769         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
12770         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
12771         (c_variable_size): Remove.
12772         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
12773         call put_pending_sizes.
12774         (get_parm_info): Add parameter expr.  Use it to set
12775         arg_info->pending_sizes.
12776         (store_parm_decls): Use arg_info->pending_sizes instead or calling
12777         get_pending_sizes.
12778         * c-parser.c (c_parser_parms_declarator): Update call to
12779         c_parser_parms_list_declarator.
12780         (c_parser_parms_list_declarator): Take parameter expr.  Update
12781         call to push_parm_decl.  Update recursive call.  Don't call
12782         get_pending_sizes.  Update calls to get_parm_info.
12783         (c_parser_objc_method_definition): Update calls to
12784         c_parser_objc_method_decl and objc_start_method_definition.
12785         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
12786         (c_parser_objc_method_decl): Add parameter expr.  Update call to
12787         grokparm.
12788         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
12789         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
12790         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
12791
12792 2011-05-05  Michael Hope  <michael.hope@linaro.org>
12793
12794         PR pch/45979
12795         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
12796         __ARM_EABI__ hosts.
12797
12798 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12799
12800         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12801         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
12802         (spu_output_mi_thunk): New function.
12803
12804 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12805
12806         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
12807         targetm.asm_out.print_operand.
12808         * config/sol2.c: Include target.h.
12809
12810 2011-05-04  Jan Hubicka  <jh@suse.cz>
12811
12812         * ipa-inline.c (reset_edge_caches): New function.
12813         (update_caller_keys): Add check_inlinablity_for; do not
12814         reset edge caches; remove now unnecesary loop.
12815         (update_callee_keys): Add comments; reset node_growth_cache of callee.
12816         (update_all_callee_keys): Likewise.
12817         (inline_small_functions): Sanity check cache; update code
12818         recomputing it.
12819
12820 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
12821
12822         PR rtl-optimization/47612
12823         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
12824         as the last insn of the sequence to be moved.
12825
12826 2011-05-04  Tobias Burnus  <burnus@net-b.de>
12827
12828         PR fortran/48864
12829         * doc/invoke.texi (Ofast): Document that it
12830         enables Fortran's -fno-protect-parens.
12831
12832 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
12833
12834         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
12835
12836 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
12837
12838         * stor-layout.c (variable_size): Do not issue errors.
12839
12840 2011-05-04  Richard Guenther  <rguenther@suse.de>
12841
12842         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
12843         for array-ref indices.
12844         (tree_coverage_counter_addr): Likewise.
12845         (build_fn_info_type): Use size_int for index types.
12846         (build_gcov_info): Likewise.
12847
12848 2011-05-04  Richard Guenther  <rguenther@suse.de>
12849
12850         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
12851         to build_int_cst.
12852         * c-typeck.c (really_start_incremental_init): Use bitsize_int
12853         for constructor indices.
12854         (push_init_level): Likewise.
12855
12856 2011-05-04  Richard Guenther  <rguenther@suse.de>
12857
12858         * explow.c (promote_mode): Move variable declarations before code.
12859
12860 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
12861
12862         * tree.h (build_function_type_array): Declare.
12863         (build_varargs_function_type_array): Declare.
12864         (build_function_type_vec, build_varargs_function_type_vec): Define.
12865         * tree.c (build_function_type_array_1): New function.
12866         (build_function_type_array): New function.
12867         (build_varargs_function_type_array): New function.
12868
12869 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
12870
12871         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
12872         before setting STMT_VINFO_TYPE.
12873
12874 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12875
12876         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
12877         instead of spu_pass_by_reference.
12878
12879 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12880
12881         * calls.c (emit_library_call_value_1): Invoke
12882         promote_function_mode hook on libcall arguments.
12883         * explow.c (promote_function_mode, promote_mode): Handle TYPE
12884         argument being NULL.
12885         * targhooks.c (default_promote_function_mode): Lisewise.
12886         * config/s390/s390.c (s390_promote_function_mode): Likewise.
12887         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
12888
12889         * doc/tm.texi: Document that TYPE argument might be NULL.
12890
12891 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12892
12893         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
12894
12895 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12896
12897         From Bernd Schmidt
12898         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
12899
12900 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12901
12902         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
12903         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
12904         Move ...
12905         * mips-tfile.c: ... here.
12906         Don't include coretypes.h, tm.h, filenames.h.
12907         (saber_stop): Remove definition and all calls.
12908         [__SABER__]: Remove.
12909         (__LINE__): Remove default.
12910         (Size_t, Ptrdiff_t): Remove definitions.
12911         Replace by size_t, ptrdiff_t.
12912         [!MIPS_DEBUGGING_INFO]: Remove.
12913         (SHASH_SIZE, THASH_SIZE): Remove defaults.
12914         (progname): Add const.
12915         (STATIC): Remove.
12916         Replace all uses by static.
12917         (ALIGN_SYMTABLE_OFFSET): Remove default.
12918         * mips-tdump.c: Don't include coretypes.h, tm.h.
12919         Remove !MIPS_IS_STAB guard.
12920         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
12921         $(TM_H), filenames.h dependencies.
12922         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
12923
12924 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12925
12926         From Jie Zhang
12927         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
12928         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
12929
12930 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12931
12932         From Bernd Schmidt
12933         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
12934         account and save/restore RETS.
12935         (PROFILE_BEFORE_PROLOGUE): Define.
12936         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
12937         the push insn to use predecrement.
12938
12939 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12940
12941         From Jie Zhang
12942         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
12943
12944 2011-05-04  Nick Clifton  <nickc@redhat.com>
12945
12946         * config/mn10300/mn10300.c: Include cfgloop.h.
12947         (DUMP): New macro.
12948         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
12949         Lcc or a FLcc insn into the instruction stream.
12950         (mn10300_block_contains_call): New function.  Returns true if the
12951         given basic block contains a CALL insn.
12952         (mn10300_loop_contains_call_insn): New function.  Returns true if
12953         the given loop contains a CALL insn.
12954         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
12955         to use the SETLB and Lcc or FLcc insns.
12956         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
12957         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
12958         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
12959         disable the SETLB optimization.
12960         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
12961         __SETLB__ or __NO_SETLB__.
12962         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
12963         (movsf_internal): Handle MDR register.
12964         (cmpsi): Make visible.
12965         (setlb): New pattern.
12966         (Lcc): New pattern.
12967         (FLcc): New pattern.
12968
12969 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
12970
12971         PR target/48860
12972         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
12973         for reg<->xmm moves.
12974         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
12975         (vec_concatv2di_rex64_sse): Ditto.
12976         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
12977         (*vec_extractv2di_1_rex64): Ditto.
12978
12979         Revert:
12980         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
12981
12982         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
12983         reg<->xmm moves.
12984         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
12985
12986 2011-05-04  Richard Guenther  <rguenther@suse.de>
12987
12988         * tree.h (int_const_binop): Remove notrunc argument.
12989         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
12990         create integer constants that are properly truncated.
12991         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
12992         (const_binop): Remove zero notrunc argument to int_const_binop.
12993         (size_binop_loc): Likewise.
12994         (fold_div_compare): Likewise.
12995         (maybe_canonicalize_comparison_1): Likewise.
12996         (fold_comparison): Likewise.
12997         (fold_binary_loc): Likewise.
12998         (multiple_of_p): Likewise.
12999         * expr.c (store_constructor): Likewise.
13000         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13001         (maybe_fold_stmt_addition): Likewise.
13002         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
13003         * stor-layout.c (layout_type): Likewise.
13004         * tree-data-ref.c (tree_fold_divides_p): Likewise.
13005         * tree-sra.c (build_ref_for_offset): Likewise.
13006         (build_user_friendly_ref_for_offset): Likewise.
13007         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
13008         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13009         * tree-ssa-loop-niter.c (inverse): Likewise.
13010         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13011         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
13012         * tree-switch-conversion.c (check_range): Likewise.
13013         (build_constructors): Likewise.
13014         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13015         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
13016         (extract_range_from_assert): Likewise.
13017         (vrp_int_const_binop): Likewise.
13018         (extract_range_from_binary_expr): Likewise.
13019         (extract_range_from_unary_expr): Likewise.
13020         (check_array_ref): Likewise.
13021         (find_case_label_range): Likewise.
13022         (simplify_div_or_mod_using_ranges): Likewise.
13023         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
13024         comparing case labels for merging.
13025
13026 2011-05-03  Mark Wielaard  <mjw@redhat.com>
13027
13028         * dwarf2out.c (debug_str_hash_forced): Removed.
13029         (gen_label_for_indirect_string): Removed.
13030         (get_debug_string_label): Removed.
13031         (AT_string_form): Generate label directly.
13032         (output_indirect_string): Test indirect_string_node for
13033         DW_FORM_strp instead of checking label and refcount.
13034         (prune_indirect_string): Removed.
13035         (prune_unused_types): Don't check debug_str_hash_forced or
13036         call prune_indirect_string.
13037
13038 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
13039
13040         PR other/48093
13041         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
13042
13043 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
13044
13045         PR debug/47994
13046         PR debug/47919
13047         * combine.c (try_combine): Skip debug insns at m_split tests.
13048
13049 2011-04-26  Mark Wielaard  <mjw@redhat.com>
13050
13051         PR42288
13052         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
13053         when info_section_emitted.
13054
13055 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
13056
13057         * config/mips/mips-opts.h: New.
13058         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
13059         to mips-opts.h.
13060         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
13061         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
13062         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
13063         via opts pointer.
13064         * config/mips/mips.h (enum mips_code_readable_setting): Move to
13065         mips-opts.h.
13066         (mips_abi, mips_code_readable): Don't declare.
13067         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
13068         (mabi=): Use Enum and Var.
13069         (mips_abi): New Enum and EnumValue entries.
13070         (mcode-readable=): Use Enum and Var.
13071         (mips_code_readable_setting): New Enum and EnumValue entries.
13072         (mr10k-cache-barrier=): Use Enum and Var.
13073         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
13074
13075 2011-05-03  Jan Hubicka  <jh@suse.cz>
13076
13077         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
13078         replace hash by pointer map.
13079         (cgraph_node_set_element_def, cgraph_node_set_element,
13080         const_cgraph_node_set_element, varpool_node_set_element_def,
13081         varpool_node_set_element, const_varpool_node_set_element): Remove.
13082         (free_cgraph_node_set, free_varpool_node_set): New function.
13083         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
13084         * tree-emutls.c: Free varpool node set.
13085         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
13086         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13087         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
13088         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13089         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
13090         Move here from ipa.c; implement using pointer_map
13091         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
13092         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13093         debug_cgraph_node_set, varpool_node_set_new,
13094         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13095         dump_varpool_node_set, debug_varpool_node_set):
13096         Move to ipa-uitls.c.
13097         * passes.c (ipa_write_summaries): Update.
13098
13099 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
13100
13101         From Mike Frysinger:
13102         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
13103         bf542/bf544/bf547/bf548/bf549.
13104
13105 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
13106
13107         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
13108
13109 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
13110
13111         From Bernd Schmidt:
13112         * config/bfin/bfin.md (MOVCC): New mode_macro.
13113         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
13114         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
13115         comments from generated assembly.
13116
13117 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
13118
13119         From Bernd Schmidt
13120         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
13121         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
13122         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
13123         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
13124         * config/bfin/lib1funcs.asm (___muldi3): New function.
13125
13126 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13127
13128         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
13129         build_function_type_list instead of build_function_type.
13130         Rearrange initialization of `args' to do so.
13131
13132 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13133
13134         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
13135         instead of build_function_type.
13136
13137 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13138
13139         * config/rs6000/rs6000.c (spe_init_builtins): Call
13140         build_function_type_list instead of build_function_type.
13141         (paired_init_builtins, altivec_init_builtins): Likewise.
13142         (builtin_function_type): Likewise.
13143
13144 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13145
13146         * config/sh/sh.c (sh_media_init_builtins): Call
13147         build_function_type_list instead of build_function_type.
13148
13149 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13150
13151         * config/sparc/sparc.c (sparc_file_end): Call
13152         build_function_type_list instead of build_function_type.
13153
13154 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13155
13156         * config/alpha/alpha.c (alpha_init_builtins): Call
13157         build_function_type_list instead of build_function_type.
13158
13159 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13160
13161         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
13162         build_function_type_list instead of build_function_type.
13163
13164 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13165
13166         * config/iq2000/i2000.c (iq2000_init_builtins): Call
13167         build_function_type_list instead of build_function_type.
13168         Delete `endlink' variable.
13169
13170 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13171
13172         * config/avr/avr.c (avr_init_builtins): Call
13173         build_function_type_list instead of build_function_type.
13174
13175 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13176
13177         * config/picochip/picochip.c (picochip_init_builtins): Call
13178         build_function_type_list instead of build_function_type.
13179         Delete `endlink' variable.
13180
13181 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
13182
13183         * config/bfin/bfin.c (bfin_init_builtins): Call
13184         build_function_type_list instead of build_function_type.
13185
13186 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
13187
13188         From Bernd Schmidt
13189         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
13190         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
13191
13192 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
13193
13194         From Jie Zhang:
13195         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
13196         libbffastfp overrides libgcc when -mfast-fp.
13197
13198 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
13199
13200         Originally from Bernd Schmidt
13201         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
13202         * config/bfin/bfin.c (override_options): Test it and error if
13203         TARGET_FDPIC.
13204
13205 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
13206
13207         Originally From Bernd Schmidt
13208         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
13209         FD-PIC.
13210
13211 2011-05-03  Jeff Law  <law@redhat.com>
13212
13213         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
13214         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
13215         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
13216         than accessing AUX field directly.  Free the AUX field before
13217         clearing it.
13218         (thread_block, thread_through_loop_header): Likewise.
13219         (thread_single_edge, mark_threaded_blocks): Likewise.
13220         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
13221         (register_jump_thread): Do not attempt to thread to a NULL edge.
13222
13223 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
13224
13225         * function.c (init_function_start): Call decide_function_section.
13226         * varasm.c (decide_function_section): New function.
13227         (assemble_start_function): When not using
13228         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
13229         or first_function_block_is_cold.
13230         * rtl.h (decide_function_section): Declare.
13231
13232 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
13233             Jakub Jelinek  <jakub@redhat.com>
13234
13235         PR target/48774
13236         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
13237         only succeed if req_mode is the same as set_mode.
13238
13239 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
13240
13241         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
13242         * genemit.c (gen_exp): Handle RETURN.
13243         * emit-rtl.c (verify_rtx_sharing): Likewise.
13244         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
13245         * rtl.c (copy_rtx): RETURN is shared.
13246         * rtl.h (enum global_rtl_index): Add GR_RETURN.
13247         (ret_rtx): New.
13248         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
13249         * config/s390/s390.c (s390_emit_epilogue): Likewise.
13250         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
13251         * config/cris/cris.c (cris_expand_return): Likewise.
13252         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
13253         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
13254         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
13255         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
13256         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
13257         Likewise.
13258         * config/v850/v850.c (expand_epilogue): Likewise.
13259         * config/bfin/bfin.c (bfin_expand_call): Likewise.
13260         * config/arm/arm.md (epilogue): Likewise.
13261         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
13262         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
13263         variable to ret_reg.
13264
13265 2011-05-03  Richard Guenther  <rguenther@suse.de>
13266
13267         PR lto/48846
13268         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
13269         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
13270         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13271
13272 2011-05-03  Richard Guenther  <rguenther@suse.de>
13273
13274         * c-decl.c (grokdeclarator): Instead of looking at
13275         TREE_OVERFLOW check if the constant fits in the index type.
13276
13277 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
13278
13279         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
13280         (vec_store_lanes<mode><mode>): Likewise.
13281
13282 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
13283
13284         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
13285         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
13286         convert_optab_index values.
13287         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
13288         * genopinit.c (optabs): Initialize the new optabs.
13289         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
13290         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
13291         (expand_STORE_LANES): New functions.
13292         * tree.h (build_array_type_nelts): Declare.
13293         * tree.c (build_array_type_nelts): New function.
13294         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
13295         (vect_model_load_cost): Likewise.
13296         (vect_store_lanes_supported, vect_load_lanes_supported)
13297         (vect_record_strided_load_vectors): Declare.
13298         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
13299         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
13300         (vect_transform_strided_load): Split out statement recording into...
13301         (vect_record_strided_load_vectors): ...this new function.
13302         * tree-vect-stmts.c (create_vector_array, read_vector_array)
13303         (write_vector_array, create_array_ref): New functions.
13304         (vect_model_store_cost): Add store_lanes_p argument.
13305         (vect_model_load_cost): Add load_lanes_p argument.
13306         (vectorizable_store): Try to use store-lanes functions for
13307         interleaved stores.
13308         (vectorizable_load): Likewise load-lanes and loads.
13309         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
13310         to vect_model_store_cost.
13311         (vect_build_slp_tree): Likewise vect_model_load_cost.
13312
13313 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
13314
13315         * hooks.h (hook_bool_mode_uhwi_false): Declare.
13316         * hooks.c (hook_bool_mode_uhwi_false): New function.
13317         * target.def (array_mode_supported_p): New hook.
13318         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
13319         * doc/tm.texi: Regenerate.
13320         * stor-layout.c (mode_for_array): New function.
13321         (layout_type): Use it.
13322         * config/arm/arm.c (arm_array_mode_supported_p): New function.
13323         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
13324
13325 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
13326
13327         PR target/48723
13328         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
13329         for -fstack-check if the size to allocate is negative.
13330
13331 2011-05-02  Lawrence Crowl  <crowl@google.com>
13332
13333         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
13334         (timevar_cond_start): New for starting a timer only when it is not
13335         already running.
13336         (timevar_cond_stop): New for stopping a timer when it was not already
13337         running.
13338
13339         * timevar.c (timevar_stop): Enable start/stop timers to start again.
13340         (timevar_cond_start): New as above.
13341         (timevar_cond_stop): New as above.
13342
13343         * timevar.def: Add start/stop timers for compiler phases,
13344         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
13345         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
13346         and TV_PHASE_FINALIZE.
13347         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
13348         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
13349         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
13350         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
13351         Make unused TV_OVERLOAD into a start/stop timer.
13352
13353         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
13354         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
13355         to indicate that they are start/stop timers.
13356
13357         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
13358         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
13359         Move initialization to do_compile.
13360         (do_compile): Add initialization from above.
13361         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
13362
13363         * c-decl.c (c_write_global_declarations): Add start/stop of
13364         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
13365
13366         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
13367         or TV_PARSE_INLINE, as appropriate.
13368         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
13369         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
13370
13371 2011-05-02  Jason Merrill  <jason@redhat.com>
13372
13373         PR c++/40975
13374         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
13375
13376 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
13377
13378         PR c/35445
13379         * c-decl.c (finish_decl): Only create a composite if the types are
13380         compatible.
13381
13382 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
13383
13384         * config/fr30/fr30-protos.h (Mmode): Don't define.
13385         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
13386         definition where used.
13387         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
13388         define.  Expand definitions where used.
13389         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
13390         Expand definitions where used.
13391         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
13392         rx_function_arg, rx_function_arg_advance,
13393         rx_function_arg_boundary): Expand definitions of those macros.
13394         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
13395         definition where used.
13396
13397 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
13398
13399         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13400         reg<->xmm moves.
13401         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
13402         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
13403         with *movv2sf_internal_rex64_avx.
13404         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
13405         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
13406         Use %v prefix in insn mnemonic to handle TARGET_AVX.
13407         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
13408         "vex" in "prefix" attribute calculation.
13409         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
13410
13411 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
13412
13413         PR target/47951
13414         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
13415         inputs match the output.
13416
13417 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
13418
13419         PR target/47955
13420         * config/m68k/m68k.c (m68k_expand_prologue): Set
13421         current_function_static_stack_size.
13422
13423 2011-05-02   Jan Hubicka  <jh@suse.cz>
13424
13425         * lto-streamer.c (lto_streamer_cache_insert_1,
13426         lto_streamer_cache_lookup, lto_streamer_cache_create,
13427         lto_streamer_cache_delete): Use pointer map instead of hashtable.
13428         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
13429
13430 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
13431
13432         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
13433         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
13434         config/m68k/t-opts: New files.
13435         * config/m68k/m68k-tables.opt: New file (generated).
13436         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
13437         extra_options and m68k/t-opts to tmake_file.
13438         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
13439         (all_isas): Initialize using m68k-isas.def.
13440         (all_microarchs): Initialize using m68k-microarchs.def.
13441         (m68k_find_selection): Remove.
13442         (m68k_handle_option): Don't assert that global structures are in
13443         use.  Use error_at.  Access variables via opts pointer.  Don't
13444         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
13445         directly for -m68020-40 and -m68020-60.
13446         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
13447         m68k_tune_entry here.
13448         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
13449         to m68k-opts.h.
13450         (m68k_library_id_string): Remove declaration.
13451         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
13452         (m68k_library_id_string): New Variable.
13453         (march=, mcpu=, mtune=): Use Enum and Var.
13454
13455 2011-05-02  Richard Guenther  <rguenther@suse.de>
13456
13457         * varasm.c (output_constructor_regular_field): Compute zero-based
13458         index with double-ints.  Make sure to ICE instead of producing
13459         wrong code.
13460         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
13461         in asserts.  Properly use a signed type.
13462
13463 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
13464
13465         * config/i386/sse.md (V): New mode iterator.
13466         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
13467         TARGET_SSE2.
13468         (V_256): Rename from AVX256MODE.
13469         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
13470         condition to all users.
13471         (VF1): Ditto.
13472         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
13473         condition to all users.
13474         (VF_128): Make V4SF mode unconditional.
13475         (VF_256): Rename from AVX256MODEF2P.
13476         (VI4F_128): Rename from SSEMODE4S.
13477         (VI8F_128): Rename from SSEMODE2D.
13478         (VI4F_256): Rename from AVX256MODE8P.
13479         (VI8F_256): Rename from AVX256MODE4P.
13480         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
13481         (ssescalarmodesuffix): Remove SF and DF modes.
13482         (SSEMODE124): Remove.
13483         (SSEMODE1248): Ditto.
13484         (SSEMODEF2P): Ditto.
13485         (AVXMODEF2P): Ditto.
13486         (AVXMODEFDP): Ditto.
13487         (AVXMODEFSP): Ditto.
13488         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
13489         unconditional.
13490         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
13491         unconditional.
13492         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
13493         xop_pcmov_<mode>256.  Use V mode iterator.
13494
13495         Adjust RTX patterns globally for renamed mode attributes.
13496
13497 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13498
13499         * haifa-sched.c (sched_emit_insn): Emit insn before first
13500         non-scheduled insn.  Inform back-end about new insn.  Add
13501         new insn to scheduled_insns list.
13502
13503 2011-05-02  Richard Guenther  <rguenther@suse.de>
13504
13505         PR tree-optimization/48822
13506         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
13507         (process_scc): Indicate which iteration we start.
13508
13509 2011-05-02  Jan Hubicka  <jh@suse.cz>
13510
13511         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
13512         (lto_section_overrun): New.
13513         * lto-section-out.c (append_block): Rename to ...
13514         (lto_append_block): ... this one; export.
13515         (lto_output_1_stream): Move lto lto-streamer.h
13516         (lto_output_data_stream): Update.
13517         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
13518         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
13519         functions.
13520
13521 2011-05-02  Richard Guenther  <rguenther@suse.de>
13522
13523         * tree.c (tree_code_counts): New global array.
13524         (record_node_allocation_statistics): Count individual tree codes.
13525         (dump_tree_statistics): Dump individual code stats.
13526
13527 2011-05-01  Jan Hubicka  <jh@suse.cz>
13528
13529         * ipa-inline.c (caller_growth_limits): Fix thinko when
13530         looking for largest stack frame.
13531         * ipa-inline.h (dump_inline_summary): Declare.
13532         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
13533         on stack usage.
13534         (dump_inline_summary): Export.
13535         (debug_inline_summary): Declare as DEBUG_FUNCTION.
13536
13537 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
13538
13539         * reginfo.c (memory_move_cost): Change rclass argument type form
13540         'enum reg_class' to reg_class_t.
13541         * reload.h (memory_move_cost): Update prototype.
13542         * postreload.c reload_cse_simplify_set): Change type dclass var to
13543         reg_class_t.
13544         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
13545         Update prototype.
13546         (ira_allocate_and_set_costs): Change aclass argument type form
13547         'enum reg_class' to reg_class_t.
13548         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
13549         Change aclass argument type to reg_class_t.
13550         (update_conflict_hard_reg_costs): Change type aclass and pref vars
13551         to reg_class_t.
13552         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
13553         memory_move_cost call.
13554
13555         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
13556         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
13557         Change type tmp var to reg_class_t.
13558
13559 2011-04-30  Jan Hubicka  <jh@suse.cz>
13560
13561         * ipa-inline.c (can_inline_edge_p): Disregard limits when
13562         inlining into function with flatten attribute.
13563         (want_inline_small_function_p): Be more realistic about inlining
13564         cold calls where callee size grows.
13565
13566 2011-04-30  Jan Hubicka  <jh@suse.cz>
13567
13568         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
13569         flags.
13570
13571 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
13572
13573         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13574         PRINT_OPERAND_PUNCT_VALID_P): Remove.
13575         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
13576         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
13577         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13578         (print_operand): Rename to...
13579         (sparc_print_operand): ...this. Make static. Adjust
13580         sparc_print_operand function call.
13581         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
13582         functions.
13583
13584 2011-04-30  Jan Hubicka  <jh@suse.cz>
13585
13586         PR middle-end/48752
13587         * ipa-inline.c (early_inliner): Disable when doing late
13588         addition of function.
13589
13590 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
13591
13592         * dwarf2out.c (get_address_mode): New inline.
13593         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
13594         if not dwarf_strict emit
13595         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
13596         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
13597         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
13598         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
13599         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
13600         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
13601         mem_loc_descriptor callers.
13602         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13603         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
13604         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
13605         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
13606         (base_types): New variable.
13607         (get_base_type_offset, calc_base_type_die_sizes,
13608         base_type_for_mode, mark_base_types, base_type_cmp,
13609         move_marked_base_types): New functions.
13610         (calc_die_sizes): Assert that die_offset is 0 or equal to
13611         next_die_offset.
13612         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
13613         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
13614         callers.  If not dwarf_strict, call mem_loc_descriptor even for
13615         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
13616         (gen_subprogram_die): Don't give up on call site parameters
13617         with non-integral or large integral modes.  Adjust
13618         mem_loc_descriptor callers.
13619         (prune_unused_types): Call prune_unused_types_mark on base_types
13620         vector entries.
13621         (resolve_addr): Call mark_base_types.
13622         (dwarf2out_finish): Call move_marked_base_types.
13623
13624         PR tree-optimization/48809
13625         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
13626         type.
13627         (gen_inbound_check): Don't compute index_expr - range_min in utype
13628         again, instead reuse SSA_NAME initialized in build_arrays.
13629         Remove two useless gsi_for_stmt calls.
13630
13631 2011-04-29  Jeff Law  <law@redhat.com>
13632
13633         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
13634
13635 2011-04-29  Martin Jambor  <mjambor@suse.cz>
13636
13637         * cgraph.h (cgraph_postorder): Remove declaration.
13638         * ipa-utils.h (ipa_free_postorder_info): Declare.
13639         (ipa_reverse_postorder): Likewise.
13640         * cgraphunit.c: Include ipa-utils.h.
13641         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
13642         * ipa-inline.c: Include ipa-utils.h.
13643         (ipa_inline): Update call to ipa_reverse_postorder.
13644         * ipa-pure-const.c (propagate_pure_const): Update call to
13645         ipa_reduced_postorder and ipa_print_order.  Call
13646         ipa_free_postorder_info to clean up.
13647         (propagate_nothrow): Likewise.
13648         * ipa-reference.c (propagate): Removed a useless call to
13649         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
13650         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
13651         * ipa.c: Include ipa-utils.h.
13652         (ipa_profile): Update call to ipa_reverse_postorder.
13653         (cgraph_postorder): Moved to...
13654         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
13655         (ipa_utils_print_order): Renamed to ipa_print_order.
13656         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
13657         comments.
13658         (ipa_free_postorder_info): New function.
13659         * passes.c: Include ipa-utils.h.
13660         (do_per_function_toporder): Update call to ipa_reverse_postorder.
13661         (ipa_write_summaries): Likewise.
13662         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
13663         (cgraphunit.o): Likewise.
13664         (ipa.o): Likewise.
13665         (ipa-inline.o): Likewise.
13666
13667 2011-04-29  Jan Hubicka  <jh@suse.cz>
13668
13669         * gcc.dg/tree-ssa/inline-10.c: New testcase.
13670         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
13671         * ipa-inline.h (clause_t): Turn into unsigned int.
13672         * ipa-inline-analysis.c (add_clause): Do more simplification.
13673         (and_predicates): Shortcut more cases.
13674         (predicates_equal_p): Move forward; check that clauses are properly
13675         ordered.
13676         (or_predicates): Shortcut more cases.
13677         (edge_execution_predicate): Rewrite as...
13678         (set_cond_stmt_execution_predicate): ... this function; handle
13679         __builtin_constant_p.
13680         (set_switch_stmt_execution_predicate): New .
13681         (compute_bb_predicates): New.
13682         (will_be_nonconstant_predicate): Update TODO.
13683         (estimate_function_body_sizes): Use compute_bb_predicates
13684         and free them later, always try to estimate if stmt is constant.
13685         (estimate_time_after_inlining, estimate_size_after_inlining):
13686         Gracefully handle optimized out edges.
13687         (read_predicate): Fix off by one error.
13688
13689 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
13690
13691         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
13692
13693 2011-04-27  Xinliang David Li  <davidxl@google.com>
13694
13695         * tree-profile.c (init_ic_make_global_vars): Set
13696         tls attribute on ic vars.
13697         * coverage.c (coverage_end_function): Initialize
13698         function_list with zero.
13699
13700 2011-04-29  Richard Guenther  <rguenther@suse.de>
13701
13702         * builtins.c (fold_builtin_classify_type): Use integer_type_node
13703         for the type of the result.
13704         (fold_builtin_isascii): Likewise.
13705         (fold_builtin_toascii): Use integer_type_node where appropriate.
13706         (fold_builtin_logb): Likewise.
13707         (fold_builtin_frexp): Likewise.
13708         (fold_builtin_strstr): Likewise.
13709         (fold_builtin_strpbrk): Likewise.
13710         (fold_builtin_fputs): Likewise.
13711         (fold_builtin_sprintf): Likewise.
13712         (fold_builtin_snprintf): Likewise.
13713         (fold_builtin_printf): Likewise.
13714         (do_mpfr_remquo): Use a proper type for the assigned constant.
13715         (do_mpfr_lgamma_r): Likewise.
13716         * dwarf2out.c (resolve_one_addr): Use size_int.
13717         * except.c (init_eh): Likewise.
13718         (assign_filter_values): Use integer_type_node for filter values.
13719         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
13720         indices.
13721         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
13722         for EH region numbers.
13723         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
13724         for the shift amount.
13725
13726 2011-04-29  Richard Guenther  <rguenther@suse.de>
13727
13728         * expr.h (expand_shift): Rename to ...
13729         (expand_variable_shift): ... this.
13730         (expand_shift): Take a constant shift amount.
13731         * expmed.c (expand_shift): Rename to ...
13732         (expand_variable_shift): ... this.
13733         (expand_shift): New wrapper around expand_variable_shift.
13734         * expr.c (convert_move, emit_group_load_1, emit_group_store,
13735         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
13736         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
13737         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
13738         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
13739         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
13740         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
13741         emit_store_flag_1, emit_store_flag): Likewise.
13742         * builtins.c (expand_builtin_signbit): Likewise.
13743         * calls.c (load_register_parameters): Likewise.
13744         * function.c (assign_parm_setup_block): Likewise.
13745         * lower-subreg.c (resolve_shift_zext): Likewise.
13746         * optabs.c (widen_bswap, expand_abs_nojump,
13747         expand_one_cmpl_abs_nojump, expand_float): Likewise.
13748         * spu/spu.c (spu_expand_extv): Likewise.
13749         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13750
13751 2011-04-29  Richard Guenther  <rguenther@suse.de>
13752
13753         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
13754         for the remapped region number.
13755         * predict.c (build_predict_expr): Use integer_type_node for the
13756         predict kind.
13757         * fold-const.c (fold_binary_loc): Use integer_type_node for
13758         the shift amount.  Use a proper type for the PLUS_EXPR operand.
13759
13760 2011-04-29  Michael Matz  <matz@suse.de>
13761
13762         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
13763         other trees that just builtins.
13764         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
13765
13766 2011-04-29  Richard Guenther  <rguenther@suse.de>
13767
13768         * tree-nested.c (get_trampoline_type): Use size_int.
13769         (get_nl_goto_field): Likewise.
13770         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
13771         for all indexes.
13772         (lower_eh_constructs_2): Likewise.
13773         (lower_resx): Likewise.
13774         (lower_eh_dispatch): Likewise.
13775         * tree-mudflap.c (mf_build_string): Use size_int.
13776         (mudflap_register_call): Use integer_type_node for the flag.
13777         (mudflap_enqueue_constant): Use size_int.
13778         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
13779         instead of rebuilding it.
13780
13781 2011-04-29  Richard Guenther  <rguenther@suse.de>
13782
13783         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
13784         Handle OBJ_TYPE_REF.
13785         (find_func_aliases_for_call): Use it more consistently.
13786
13787 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
13788
13789         * haifa-sched.c (last_nondebug_scheduled_insn): New.
13790         (rank_for_schedule): Use it.
13791         (schedule_block): Set it.
13792
13793 2011-04-28  David Li  <davidxl@google.com>
13794
13795         * tree.c (crc32_string): Use crc32_byte.
13796         (crc32_byte): New function.
13797         * tree.h (crc32_byte): New function.
13798         * gcov.c (read_graph_file): Handle new cfg_cksum.
13799         (read_count_file): Ditto.
13800         * profile.c (instrument_values): Ditto.
13801         (get_exec_counts): Ditto.
13802         (read_profile_edge_counts): Ditto.
13803         (compute_branch_probabilities): Ditto.
13804         (compute_value_histograms): Ditto.
13805         (branch_prob): Ditto.
13806         (end_branch_prob): Ditto.
13807         * coverage.c (read_counts_file): Ditto.
13808         (get_coverage_counts): Ditto.
13809         (tree_coverage_counter_addr): Ditto.
13810         (coverage_checksum_string): Ditto.
13811         (coverage_begin_output): Ditto.
13812         (coverage_end_function): Ditto.
13813         (build_fn_info_type): Ditto.
13814         (build_fn_info_value): Ditto.
13815         * libgcov.c (gcov_exit): Ditto.
13816         * gcov-dump.c (tag_function): Ditto.
13817         (compute_checksum): Remove.
13818
13819 2011-04-29  Alan Modra  <amodra@gmail.com>
13820
13821         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13822         unspec plus offset.  Tidy macho code.
13823
13824 2011-04-29  Martin Jambor  <mjambor@suse.cz>
13825
13826         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
13827         node instead of a decl.  Update all callers.
13828         * cgraph.h: Update declaration.
13829
13830 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
13831
13832         PR tree-optimization/48765
13833         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
13834         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
13835         to indicate if loop aware SLP is being used.  Scan the statements
13836         and update the vectorization factor according to the type of
13837         vectorization before statement analysis.
13838         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
13839         pass it to vect_analyze_loop_operations.
13840         (vectorizable_reduction): Set number of copies to 1 in case of pure
13841         SLP statement.
13842         * tree-vect-stmts.c (vectorizable_conversion,
13843         vectorizable_assignment, vectorizable_shift,
13844         vectorizable_operation, vectorizable_type_demotion,
13845         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
13846         Likewise.
13847         (vectorizable_condition): Move the check that it is not SLP
13848         vectorization before the number of copies check.
13849         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
13850         to vectorize the loop using SLP.
13851
13852 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
13853
13854         PR middle-end/48597
13855         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
13856         inline asm.
13857
13858 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
13859
13860         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
13861         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
13862         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13863         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13864         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
13865         linux*.h headers.
13866         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
13867         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13868         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13869         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13870         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13871         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
13872         REG_NAME.
13873         * config/i386/linux.h (REG_NAME): Don't define.
13874         * config/i386/linux64.h (REG_NAME): Don't define.
13875         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
13876         Undefine before defining.
13877
13878 2011-04-28  Jan Hubicka  <jh@suse.cz>
13879
13880         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
13881         nonconstant_names array.
13882         (estimate_function_body_sizes): Build nonconstant_names array; handle
13883         BUILT_IN_CONSTANT_P.
13884
13885 2011-04-28  Richard Guenther  <rguenther@suse.de>
13886
13887         PR bootstrap/48804
13888         Revert
13889         2011-04-28  Richard Guenther  <rguenther@suse.de>
13890
13891         * tree-ssa-structalias.c (solve_constraints): Build succ graph
13892         as late as possible.
13893
13894 2011-04-28  Richard Guenther  <rguenther@suse.de>
13895
13896         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
13897         (debug_constraint): Do it here.
13898         (dump_constraints): And here.
13899         (rewrite_constraints): And here.
13900         (dump_constraint_edge): Remove.
13901         (dump_constraint_graph): Rewrite to produce DOT output.
13902         (solve_constraints): Build succ graph as late as possible.
13903         Dump constraint graphs before and after solving.
13904
13905 2011-04-28  Richard Guenther  <rguenther@suse.de>
13906
13907         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13908         New function split out from ...
13909         (find_func_aliases): ... here.  Call it.
13910         (find_func_aliases_for_call): Likewise.
13911
13912 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13913
13914         * internal-fn.h (internal_fn_name_array): Declare.
13915         (internal_fn_flags_array): Likewise.
13916
13917 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
13918
13919         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
13920         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
13921         Move from sse.md.
13922         (ssemodefsuffix): Remove.
13923         (ssevecmodesuffix): New mode attribute.
13924         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
13925         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
13926         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
13927         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
13928         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
13929         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
13930         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
13931         ssemodesuffix mode attribute.
13932         (float splitters): Use ssevecmodesuffix mode attribute.
13933         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
13934         (sseinsmode): Rename from avxvecmode.
13935         (avxsizesuffix): Rename from avxmodesuffix.
13936         (sseintvecmode): Rename from avxpermvecmode.
13937         (ssedoublevecmode): Rename from ssedoublesizemode.
13938         (ssehalfvecmode): Rename from avxhalfvecmode.
13939         (ssescalarmode): Rename from avxscalarmode.
13940         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
13941         templates for ssemodesuffix mode attribute.
13942         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
13943         mode attribute.
13944
13945         Adjust RTX patterns globally for renamed mode attributes.
13946
13947 2011-04-27  Jan Hubcika  <jh@suse.cz>
13948
13949         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
13950         * ipa-inline-analysis.c: Include alloc-pool.h.
13951         (edge_predicate_pool): New.
13952         (trye_predicate_p): New function
13953         (false_predicate_p): New function.
13954         (add_clause): Sanity check that false clauses are "optimized";
13955         never add clauses to predicate that is already known to be false.
13956         (and_predicate): Use flase_predicate_p.
13957         (evaulate_predicate): Rename to ...
13958         (evaluate_predicate): ... this one; update all callers; assert
13959         that false is not listed among possible truths.
13960         (dump_predicate): Use true_predicate_p.
13961         (account_size_time): Use false_predicate_p.
13962         (evaulate_conditions_for_edge): Rename to ...
13963         (evaluate_conditions_for_edge) ... this one.
13964         (edge_set_predicate): New function.
13965         (inline_edge_duplication_hook): Duplicate edge predicates.
13966         (inline_edge_removal_hook): Free edge predicates.
13967         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
13968         (dump_inline_summary): Update.
13969         (estimate_function_body_sizes): Set edge predicates.
13970         (estimate_calls_size_and_time): Handle predicates.
13971         (estimate_callee_size_and_time): Update.
13972         (remap_predicate): Add toplev_predicate; update comment.
13973         (remap_edge_predicates): New function.
13974         (inline_merge_summary): Compute toplev predicate; update.
13975         (read_predicate): New function.
13976         (read_inline_edge_summary): Use it.
13977         (inline_read_section): Likewise.
13978         (write_predicate): New function.
13979         (write_inline_edge_summary): Use it.
13980         (inline_write_summary): Likewise.
13981         (inline_free_summary): Free alloc pool and edge summary vec.
13982
13983 2011-04-27  Richard Guenther  <rguenther@suse.de>
13984
13985         * tree-ssa-structalias.c (changed_count): Remove.
13986         (changed): Use a bitmap.
13987         (unify_nodes): Adjust.
13988         (do_sd_constraint): Likewise.
13989         (do_ds_constraint): Likewise.
13990         (do_complex_constraint): Likewise.
13991         (solve_graph): Likewise.
13992
13993 2011-04-27  Jan Hubicka  <jh@suse.cz>
13994
13995         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
13996
13997 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
13998
13999         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
14000         (avx_vperm2f128_*_operand): Ditto.
14001         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
14002         Use avx_vpermilp_parallel in insn condition.
14003         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
14004         Use avx_vperm2f128_parallel in insn condition.
14005
14006 2011-04-27  Richard Guenther  <rguenther@suse.de>
14007
14008         * Makefile.in (tree-ssa-structalias.o): Remove
14009         gt-tree-ssa-structalias.h dependency.
14010         (GTFILES): Remove tree-ssa-structalias.c.
14011         * tree.c (allocate_decl_uid): New function.
14012         (make_node_stat): Use it.
14013         (copy_node_stat): Likewise.
14014         * tree.h (allocate_decl_uid): Declare.
14015         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
14016         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
14017         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
14018         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
14019         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
14020         (struct heapvar_map): Likewise.
14021         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
14022         heapvar_insert): Likewise.
14023         (make_heapvar_for): Rename to ...
14024         (make_heapvar): ... this.  Simplify.
14025         (fake_var_decl_obstack): New global var.
14026         (build_fake_var_decl): New function.
14027         (make_constraint_from_heapvar): Adjust.
14028         (handle_lhs_call): Likewise.
14029         (create_function_info_for): Likewise.
14030         (intra_create_variable_infos): Likewise.
14031         (init_alias_vars): Allocate fake_var_decl_obstack.
14032         (init_alias_heapvars, delete_alias_heapvars): Remove.
14033         (compute_points_to_sets): Do not call init_alias_heapvars.
14034         (ipa_pta_execute): Likewise.
14035         (delete_points_to_sets): Free fake_var_decl_obstack.
14036
14037 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14038
14039         * config/spu/divmovti4.c (union qword_UTItype): New data type.
14040         (si_from_UTItype, si_to_UTItype): New functions.
14041         (__udivmodti4): Use them to implement type-punning.
14042         * config/spu/multi3.c (union qword_TItype): New data type.
14043         (si_from_TItype, si_to_TItype): New functions.
14044         (__multi3): Use them to implement type-punning.
14045
14046 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14047
14048         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
14049
14050 2011-04-27  Jan Hubicka  <jh@suse.cz>
14051
14052         * ipa-prop.c (function_insertion_hook_holder): New holder.
14053         (ipa_add_new_function): New function.
14054         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
14055         Register/deregister holder.
14056
14057 2011-04-27  Richard Guenther  <rguenther@suse.de>
14058
14059         PR tree-optimization/48772
14060         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
14061
14062 2011-04-27  Richard Guenther  <rguenther@suse.de>
14063
14064         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
14065         TARGET_MEM_REF handling.
14066
14067 2011-04-27  Nick Clifton  <nickc@redhat.com>
14068
14069         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
14070         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
14071         (REG_CLASS_NAMES): Likewise.
14072         (REG_CLASS_CONTENTS): Likewise.
14073         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
14074         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
14075         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
14076         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
14077         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
14078         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
14079         duplicate register classes.
14080         (frv_class_likely_spilled_p): Likewise.
14081         (frv_register_move_cost): Likewise.
14082
14083         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
14084         end of the regno_reg_class array.
14085
14086 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
14087
14088         PR c/48742
14089         * c-typeck.c (build_binary_op): Don't wrap arguments if
14090         int_operands is true.
14091
14092 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
14093
14094         PR target/48767
14095         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
14096         targetm.calls.must_pass_in_stack for void type.
14097
14098 2011-04-26  Jan Hubicka  <jh@suse.cz>
14099
14100         * cgraphbuild.c (build_cgraph_edges): Update call
14101         of cgraph_create_edge and cgraph_create_indirect_edge.
14102         * cgraph.c (cgraph_create_edge_including_clones,
14103         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
14104         cgraph_update_edges_for_call_stmt_node): Do not take nest
14105         argument; do not initialize call_stmt_size/time.
14106         (dump_cgraph_node): Do not dump nest.
14107         (cgraph_clone_edge): Do not take loop_nest argument;
14108         do not propagate it; do not clone call_stmt_size/time.
14109         (cgraph_clone_node): Likewise.
14110         (cgraph_create_virtual_clone): Update.
14111         * cgraph.h (struct cgraph_edge): Remove
14112         call_stmt_size/call_stmt_time/loop_nest.
14113         (cgraph_create_edge, cgraph_create_indirect_edge,
14114         cgraph_create_edge_including_clones, cgraph_clone_node): Update
14115         prototype.
14116         * tree-emutls.c (gen_emutls_addr): Update.
14117         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
14118         loop_nest; handle indirect calls, too.
14119         (clone_inlined_nodes): Do not care about updating inline summaries.
14120         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
14121         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
14122         stream call_stmt_size/call_stmt_time/loop_nest.
14123         * ipa-inline.c (edge_badness): Update.
14124         (ipa_inline): dump summaries after inlining.
14125         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
14126         New.
14127         (inline_edge_summary): New function.
14128         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
14129         (inline_edge_removal_hook): Handle edge summaries.
14130         (inline_edge_duplication_hook): New hook.
14131         (inline_summary_alloc): Alloc hooks.
14132         (initialize_growth_caches): Do not register removal hooks.
14133         (free_growth_caches); Do not free removal hook.
14134         (dump_inline_edge_summary): New function.
14135         (dump_inline_summary): Use it.
14136         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
14137         (inline_update_callee_summaries): New function.
14138         (inline_merge_summary): Use it.
14139         (do_estimate_edge_time, do_estimate_edge_growth): Update.
14140         (read_inline_edge_summary): New function.
14141         (inline_read_section): Use it.
14142         (write_inline_edge_summary): New function.
14143         (inline_write_summary): Use it.
14144         (inline_free_summary): Free edge new holders.
14145         * tree-inline.c (copy_bb): Update.
14146
14147 2011-04-26  Jason Merrill  <jason@redhat.com>
14148
14149         * tree-eh.c (lower_try_finally_switch): Create the label along with
14150         the CASE_LABEL_EXPR.
14151
14152 2011-04-26  David S. Miller  <davem@davemloft.net>
14153             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14154
14155         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
14156         * configure: Regenerate.
14157
14158 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14159
14160         PR target/48258
14161         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
14162         reduction.
14163         (VEC_reduc): New code iterator and splitters for vector reduction.
14164         (VEC_reduc_name): Ditto.
14165         (VEC_reduc_rtx): Ditto.
14166         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
14167         (reduc_<VEC_reduc_name>_v4sf): Ditto.
14168
14169         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14170         support for extracting SF on VSX.
14171
14172         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
14173         generating xscvspdp.
14174         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
14175         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
14176         double add, minimum, maximum vector reduction.
14177         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
14178         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
14179         optimize double vector reduction.
14180         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
14181
14182 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
14183
14184         * config/fr30/fr30.h (inhibit_libc): Don't define.
14185         * config/m32r/m32r-protos.h: Correct comment.
14186         * config/v850/v850.h (GHS_default_section_names,
14187         GHS_current_section_names): Use tree, not union tree_node *.
14188
14189 2011-04-26  Xinliang David Li  <davidxl@google.com>
14190
14191         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
14192         * c-family/c-opts.c (c_common_handle_option): Set
14193         warn_maybe_uninitialized.
14194         * opts.c (common_handle_option): Ditto.
14195         * common.opt:  New option.
14196         * tree-ssa.c (warn_uninit): Add one more parameter.
14197         (warn_uninitialized_var): Pass warning code.
14198         * tree-flow.h: Interface change.
14199
14200 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14201
14202         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
14203         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
14204         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
14205
14206 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14207
14208         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
14209         * config/mips/mips.opt (mmips-tfile): Remove.
14210
14211         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
14212         mips-tdump reference to ...
14213         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
14214         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
14215         reference by Tru64 UNIX.
14216
14217 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
14218
14219         PR debug/48768
14220         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
14221         is error_mark_node, set value to NULL.
14222
14223         PR tree-optimization/48734
14224         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
14225         if return value from maybe_fold_*_comparsions isn't something
14226         the code is prepared to handle.
14227
14228 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
14229
14230         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
14231         mode check.
14232         (ext_QIreg_nomode_operands): Remove.
14233         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
14234         (*andsi_1): Ditto.
14235         (*andhi_1): Ditto.
14236
14237 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
14238
14239         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
14240
14241 2011-04-26  Richard Guenther  <rguenther@suse.de>
14242
14243         * c-typeck.c (build_unary_op): Do not expand array-refs via
14244         pointer arithmetic.  Only adjust qualifiers for function types.
14245
14246 2011-04-26  Richard Guenther  <rguenther@suse.de>
14247
14248         PR middle-end/48694
14249         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14250         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
14251         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
14252         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
14253
14254 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
14255
14256         * doc/extend.texi: Document __underlying_type.
14257
14258 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
14259
14260         * config/rs6000/titan.md (automata_option "progress"): Remove.
14261
14262 2011-04-25  Jeff Law  <law@redhat.com>
14263
14264         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
14265
14266 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
14267
14268         * system.h (ENUM_BITFIELD): Remove.
14269
14270 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
14271             Eric Botcazou  <ebotcazou@adacore.com>
14272
14273         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
14274         for STORE_FLAG_VALUE==-1 case.
14275
14276 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
14277
14278         PR target/43804
14279         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
14280         LEGITIMATE_PIC_OPERAND_P.
14281
14282 2011-04-24  Jan Hubicka  <jh@suse.cz>
14283
14284         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
14285         WPA hack.
14286         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
14287         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
14288         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
14289         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
14290         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
14291         Sanity check predicate length.
14292         (remap_predicate): Likewise; sanity check jump functions.
14293         (inline_read_section, inline_write_summary): Sanity check
14294         predicate length.
14295
14296 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
14297
14298         PR other/48748
14299         * doc/extend.texi (Type Traits): Document __is_standard_layout,
14300         __is_literal_type, and __is_trivial; update throughout about
14301         possibly cv-qualified void types.
14302
14303 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
14304
14305         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
14306         testsuite and make it version agnostic.
14307
14308 2011-04-22  Jan Hubicka  <jh@suse.cz>
14309
14310         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
14311
14312 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
14313
14314         PR c/48685
14315         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
14316         to VOID_TYPE even around MODIFY_EXPR.
14317
14318 2011-04-22  Mike Stump  <mikestump@comcast.net>
14319
14320         * gensupport.c (read_md_rtx): Fix typo in comment.
14321         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
14322         comment.
14323
14324 2011-04-22  Jan Hubicka  <jh@suse.cz>
14325
14326         * gengtype.c (open_base_files): Add ipa-inline.h include.
14327         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
14328         ipa-prop.c; update all uses.
14329         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
14330         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
14331         merge summary of inlined function into former caller.
14332         * ipa-inline.c (max_benefit): Remove.
14333         (edge_badness): Compensate for removal of benefits.
14334         (update_caller_keys): Use
14335         reset_node_growth_cache/reset_edge_growth_cache.
14336         (update_callee_keys): Likewise.
14337         (update_all_callee_keys): Likewise.
14338         (inline_small_functions): Do not collect max_benefit; do not reset
14339         estimated_growth; call free_growth_caches and initialize_growth_caches.
14340         * ipa-inline.h (struct condition, type clause_t, struct predicate,
14341         struct size_time_entry): New structures.
14342         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
14343         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
14344         and estimated_growth.
14345         (edge_growth_cache_entry): New structure.
14346         (node_growth_cache, edge_growth_cache): New global vars.
14347         (estimate_growth): Turn into inline.
14348         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
14349         initialize_growth_caches, free_growth_caches): Declare.
14350         (estimate_edge_growth): Rewrite.
14351         (estimate_edge_time): Implement as inline cache lookup.
14352         (reset_node_growth_cache, reset_edge_growth_cache): New inline
14353         functions.
14354         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
14355         (NUM_CONDITIONS): New constant.
14356         (predicate_conditions): New enum.
14357         (IS_NOT_CONSTANT): New constant.
14358         (edge_removal_hook_holder): New var.
14359         (node_growth_cache, edge_growth_cache): New global vars.
14360         (true_predicate, single_cond_predicate, false_predicate,
14361         not_inlined_predicate, add_condition, add_clause, and_predicates,
14362         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
14363         dump_clause, dump_predicate, account_size_time,
14364         evaulate_conditions_for_edge): New functions.
14365         (inline_summary_alloc): Move to heap.
14366         (inline_node_removal_hook): Clear condition and entry vectors.
14367         (inline_edge_removal_hook): New function.
14368         (initialize_growth_caches, free_growth_caches): New function.
14369         (dump_inline_summary): Update.
14370         (edge_execution_predicate): New function.
14371         (will_be_nonconstant_predicate): New function.
14372         (estimate_function_body_sizes): Compute BB and constantness predicates.
14373         (compute_inline_parameters): Do not clear estimated_growth.
14374         (estimate_edge_size_and_time): New function.
14375         (estimate_calls_size_and_time): New function.
14376         (estimate_callee_size_and_time): New function.
14377         (remap_predicate): New function.
14378         (inline_merge_summary): New function.
14379         (do_estimate_edge_time): New function based on...
14380         (estimate_edge_time): ... this one.
14381         (do_estimate_edge_growth): New function.
14382         (do_estimate_growth): New function based on....
14383         (estimate_growth): ... this one.
14384         (inline_analyze_function): Analyze after deciding on jump functions.
14385         (inline_read_section): New function.
14386         (inline_read_summary): Use it.
14387         (inline_write_summary): Write all the new data.
14388         * ipa-prop.c (ipa_get_param_decl_index): Export.
14389         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
14390         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
14391         Declare.
14392         (ipa_get_lattice): Move here from ipa-cp.c
14393         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
14394         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
14395         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
14396         cgraph_edge_inlinable_p): Remove.
14397         * cgraphunit.c: Include ipainline.h
14398         (cgraph_process_new_functions): Update call of
14399         compute_inline_parameters.
14400
14401 2011-04-22  Richard Guenther  <rguenther@suse.de>
14402
14403         * tree.c (build_int_cst): Properly create canonicalized integer
14404         constants.
14405         (build_int_cst_type): Remove scary comments.
14406
14407 2011-04-22  Xinliang David Li  <davidxl@google.com>
14408
14409         * toplev.c (process_options): Enable -Werror=coverage-mismatch
14410         by default when -Wno-error is not specified.
14411         * opts-global.c (decode_options): Remove call to
14412         control_warning_options.
14413
14414 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
14415
14416         PR tree-optimization/48717
14417         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
14418         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14419
14420 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
14421
14422         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
14423         definition where used.
14424
14425 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
14426
14427         PR c/48716
14428         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
14429         TREE_STATIC variables declared inside of some OpenMP construct.
14430
14431 2011-04-22  Martin Jambor  <mjambor@suse.cz>
14432
14433         PR middle-end/48585
14434         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
14435
14436 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
14437
14438         PR c/36750
14439         * c-typeck.c (pop_init_level): Do not warn about initializing
14440         with ` = {0}'.
14441
14442 2011-04-22  Alan Modra  <amodra@gmail.com>
14443
14444         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
14445         when returning call_cookie.
14446         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
14447         pointers, to functions with no more vector args than the current
14448         function, and some non-local calls for ABI_V4.
14449         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
14450         sibcall_nonlocal_aix64): Combine to ..
14451         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
14452         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
14453         (sibcall_value_nonlocal_aix<mode>): ..likewise.
14454         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
14455         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
14456         operand.
14457         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
14458         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
14459         sibcall_value_symbolic_64): Delete.
14460
14461 2011-04-21  Xinliang David Li  <davidxl@google.com>
14462
14463         * cgraph.h: Remove pid.
14464         * cgraph.c: Remove pid.
14465         * value-prof.c (init_node_map): New function.
14466         (del_node_map): New function.
14467         (find_func_by_funcdef_no): New function.
14468         (gimple_ic_transform): Call new function.
14469         * cgraphunit.c (cgraph_finalize_function): Remove pid.
14470         * function.c (get_last_funcdef_no): New function.
14471         * function.h (get_last_funcdef_no): New function.
14472         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
14473         to libgcov function.
14474         (tree-profiling): Call node map init and delete function.
14475
14476 2011-04-21  Ian Lance Taylor  <iant@google.com>
14477
14478         * godump.c (go_format_type): Use exported Go name for anonymous
14479         field name.
14480
14481 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
14482
14483         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
14484         Call builtin_function_type_list instead of builtin_function_type.
14485         (UNARY, BINARY, TRINARY, QUAD): Likewise.
14486
14487 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
14488
14489         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
14490         build_function_type_list instead of build_function_type.
14491         Delete variable `endlink'.
14492
14493 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
14494
14495         * config/s390/s390.c (s390_init_builtins): Call
14496         build_function_type_list instead of build_function_type.
14497
14498 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
14499
14500         * config/ia64/ia64.c (ia64_init_builtins): Call
14501         build_function_type_list instead of builtin_function_type.
14502
14503 2011-04-21  Easwaran Raman  <eraman@google.com>
14504
14505         * cfgexpand.c (stack_var): Remove OFFSET...
14506         (add_stack_var): ...and its reference here...
14507         (expand_stack_vars): ...and here.
14508         (stack_var_cmp): Sort by descending order of size.
14509         (partition_stack_vars): Change heuristic.
14510         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
14511         (dump_stack_var_partition): Add newline after each partition.
14512
14513 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
14514             Jeff Law  <law@redhat.com>
14515
14516         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
14517         * gengtype.c (matching_file_name_substitute): Likewise.
14518
14519 2011-04-21  Richard Guenther  <rguenther@suse.de>
14520
14521         PR lto/48703
14522         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
14523
14524 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
14525
14526         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
14527
14528 2011-04-21  Richard Guenther  <rguenther@suse.de>
14529
14530         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
14531         file name.
14532
14533 2011-04-21  Richard Guenther  <rguenther@suse.de>
14534
14535         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14536         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
14537         Use DECL_P, not SSA_VAR_P.
14538         (ptr_derefs_may_alias_p): Likewise.
14539         (ptr_deref_may_alias_ref_p_1): Likewise.
14540         (decl_refs_may_alias_p): Likewise.
14541         (refs_may_alias_p_1): Likewise.
14542         (ref_maybe_used_by_call_p_1): Likewise.
14543         (call_may_clobber_ref_p_1): Likewise.
14544         (indirect_ref_may_alias_decl_p): Assume indirect refrences
14545         are either MEM_REF or TARGET_MEM_REF.
14546         (indirect_refs_may_alias_p): Likewise.
14547         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
14548         for MEM_EXPR of indirect calls.
14549
14550 2011-04-21  Tristan Gingold  <gingold@adacore.com>
14551
14552         * vmsdbgout.c (write_srccorr): Compute file length from the string.
14553         (dst_file_info_struct): Remove flen field.
14554         (lookup_filename): Remove code that set flen field.
14555
14556 2011-04-21  Tristan Gingold  <gingold@adacore.com>
14557
14558         * config/ia64/ia64.c (ia64_start_function): Add a guard.
14559
14560 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
14561
14562         PR target/48708
14563         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
14564         vec_extract and vec_concat for non-SSE4_1 targets.
14565
14566 2011-04-21  Richard Guenther  <rguenther@suse.de>
14567
14568         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
14569         return statements.
14570
14571 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
14572
14573         * config/i386/cygming.h (union tree_node, TREE): Don't define or
14574         undefine.
14575         (FILE): Don't undefine.
14576
14577 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
14578
14579         * config/alpha/alpha.c (struct machine_function): Use rtx, not
14580         struct rtx_def *.
14581         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
14582         struct rtx_def *.
14583         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
14584         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
14585         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
14586         rtx_def *.
14587         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
14588         definitions where used.
14589         * config/microblaze/microblaze.h (struct microblaze_args): Use
14590         rtx, not struct rtx_def *.
14591         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
14592         rtx_def *.
14593         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
14594         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
14595         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
14596         not struct rtx_def *.
14597         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
14598         struct rtx_def *.
14599         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
14600         rtx_def *.
14601         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
14602
14603 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14604
14605         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
14606         operand_equal_p to compare DR_BASE_ADDRESSes.
14607         (vect_check_interleaving): Likewise.
14608
14609 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14610
14611         PR target/46329
14612         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
14613         for all Neon struct constants.
14614
14615 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14616
14617         * target.def (legitimate_constant_p): New hook.
14618         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
14619         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
14620         * doc/tm.texi: Regenerate.
14621         * hooks.h (hook_bool_mode_rtx_true): Declare.
14622         * hooks.c (hook_bool_mode_rtx_true): Define.
14623         * system.h (LEGITIMATE_CONSTANT_P): Poison.
14624         * calls.c (precompute_register_parameters): Replace uses of
14625         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
14626         (emit_library_call_value_1): Likewise.
14627         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
14628         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
14629         * ira-costs.c (scan_one_insn): Likewise.
14630         * recog.c (general_operand, immediate_operand): Likewise.
14631         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
14632         * reload1.c (init_eliminable_invariants): Likewise.
14633
14634         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
14635         mode argument.
14636         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
14637         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
14638         argument.
14639         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14640         * config/alpha/predicates.md (input_operand): Update call to
14641         alpha_legitimate_constant_p.
14642
14643         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
14644         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
14645         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
14646         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14647         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
14648         (arm_legitimate_constant_p): New functions.
14649         (arm_cannot_force_const_mem): Make static.
14650
14651         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
14652
14653         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
14654         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
14655         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
14656         instead of bfin_legitimate_constant_p.
14657         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
14658         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14659
14660         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
14661
14662         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
14663
14664         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
14665         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
14666         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14667         (frv_legitimate_constant_p): Make static.  Add a mode argument.
14668
14669         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
14670         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
14671         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
14672
14673         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
14674         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
14675         * config/i386/i386.c (legitimate_constant_p): Rename to...
14676         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
14677         argument.
14678         (ix86_cannot_force_const_mem): Update accordingly.
14679         (ix86_legitimate_address_p): Likewise.
14680         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14681         * config/i386/i386.md: Update commentary.
14682
14683         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
14684         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
14685         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14686         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
14687
14688         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
14689
14690         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
14691         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
14692         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14693         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
14694
14695         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
14696         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
14697         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
14698
14699         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
14700         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14701         (m32r_legitimate_constant_p): New function.
14702
14703         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
14704         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
14705         LEGITIMATE_CONSTANT_P.
14706         (LEGITIMATE_CONSTANT_P): Delete.
14707         * config/m68k/m68k.c (m68k_expand_prologue): Call
14708         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
14709         (m68k_legitimate_constant_p): New function.
14710         * config/m68k/m68k.md: Update comments.
14711
14712         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
14713         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14714         (mcore_legitimate_constant_p): New function.
14715
14716         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
14717         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
14718         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
14719         Add a mode argument.
14720         (mep_legitimate_address): Update accordingly.
14721         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14722
14723         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
14724         Delete.
14725         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
14726         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
14727         static.  Check OP's mode for VOIDmode.
14728         (microblaze_legitimate_constant_p): New function.
14729         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14730
14731         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
14732         * config/mips/mips.c (mips_legitimate_constant_p): New function.
14733         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
14734         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14735         * config/mips/predicates.md: Update comments.
14736
14737         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
14738         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
14739         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14740         (mmix_legitimate_constant_p): Make static, return a bool, and take
14741         a mode argument.
14742         (mmix_print_operand_address): Update accordingly.
14743
14744         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
14745         Delete.
14746         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
14747         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
14748         static.  Add a mode argument.
14749         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14750
14751         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
14752
14753         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
14754         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14755         (pa_legitimate_constant_p): New function.
14756
14757         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
14758
14759         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
14760         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14761         (pdp11_legitimate_constant_p): New function.
14762
14763         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
14764         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14765         (rs6000_legitimate_constant_p): New function.
14766
14767         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
14768         (rx_legitimate_constant_p): ...this.
14769         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
14770         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
14771         (rx_legitimate_constant_p): ...this.
14772         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14773         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
14774
14775         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
14776         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
14777         * config/s390/s390.c (legitimate_constant_p): Rename to...
14778         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
14779         and add a mode argument.
14780         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14781
14782         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
14783
14784         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
14785         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14786         (sh_legitimate_constant_p): New function.
14787
14788         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
14789         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
14790         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14791         (legitimate_constant_p): Rename to...
14792         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
14793         argument.
14794         (constant_address_p): Update accordingly.
14795
14796         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
14797         argument and return a bool.
14798         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
14799         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14800         (spu_legitimate_constant_p): Add a mode argument and return a bool.
14801         (spu_rtx_costs): Update accordingly.
14802         * config/spu/predicates.md (vec_imm_operand): Likewise.
14803
14804         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
14805
14806         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
14807         * config/v850/v850.c (v850_legitimate_constant_p): New function.
14808         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14809
14810         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
14811         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
14812         * config/vax/vax.c (legitimate_constant_p): Likewise.
14813
14814         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
14815         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14816         (xtensa_legitimate_constant_p): New function.
14817
14818 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14819
14820         * target.def (cannot_force_const_mem): Add a mode argument.
14821         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
14822         * doc/tm.texi: Regenerate.
14823         * hooks.h (hook_bool_mode_rtx_false): Declare.
14824         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
14825         (hook_bool_mode_const_rtx_true): Likewise.
14826         (hook_bool_mode_rtx_false): New function.
14827         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
14828         to be non-VOID.  Update call to cannot_force_const_mem.
14829         (find_reloads): Update accordingly.
14830         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14831         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
14832         argument.
14833         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
14834         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
14835         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
14836         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
14837         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
14838         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
14839         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
14840         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14841         (m68k_cannot_force_const_mem): ...this new function.
14842         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
14843         argument.
14844         (mips_const_insns, mips_legitimize_const_move): Update calls.
14845         (mips_secondary_reload_class): Likewise.
14846         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14847         (pa_cannot_force_const_mem): ...this new function.
14848         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
14849         (rs6000_cannot_force_const_mem): ...this new function.
14850         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
14851         argument.
14852         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
14853         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
14854         to...
14855         (xtensa_cannot_force_const_mem): ...this new function.
14856
14857 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
14858
14859         * config/mips/mips.c (mips16_build_function_stub): Call
14860         build_function_type_list instead of build_function_type.
14861         (mips16_build_call_stub): Likewise.
14862
14863 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
14864
14865         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
14866         instead of build_function_type.
14867
14868 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
14869
14870         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
14871         instead of build_function_type.
14872
14873 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
14874
14875         PR target/48678
14876         * config/i386/i386.md (insv): Change operand 0 constraint to
14877         "register_operand".  Change operand 1 and 2 constraint to
14878         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
14879         * config/i386/sse.md (sse4_1_pinsrb): Export.
14880         (sse2_pinsrw): Ditto.
14881         (sse4_1_pinsrd): Ditto.
14882         (sse4_1_pinsrq): Ditto.
14883         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
14884         * config/i386/i386.c (ix86_expand_pinsr): New.
14885
14886 2011-04-20  Easwaran Raman  <eraman@google.com>
14887
14888         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
14889         containing union type only with -fstrict-aliasing.
14890
14891 2011-04-20  Jim Meyering  <meyering@redhat.com>
14892
14893         Remove useless if-before-free tests.
14894         * calls.c (expand_call, save_area): Likewise.
14895         * cfgcleanup.c (try_forward_edges): Likewise.
14896         * collect2.c (collect_execute): Likewise.
14897         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
14898         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
14899         * coverage.c (coverage_checksum_string): Likewise.
14900         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
14901         * cselib.c (cselib_init): Likewise.
14902         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
14903         (df_set_clean_cfg): Likewise.
14904         * function.c (free_after_compilation): Likewise.
14905         * gcc.c (do_spec_1, main): Likewise.
14906         * gcov.c (create_file_names): Likewise.
14907         * gensupport.c (identify_predicable_attribute): Likewise.
14908         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
14909         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
14910         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
14911         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
14912         * ipa-pure-const.c (local_pure_const): Likewise.
14913         * ipa-reference.c (propagate): Likewise.
14914         * ira-costs.c (free_ira_costs): Likewise.
14915         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
14916         * matrix-reorg.c (mat_free): Likewise.
14917         * prefix.c (get_key_value): Likewise.
14918         * profile.c (compute_value_histograms): Likewise.
14919         * reload1.c (free_reg_equiv): Likewise.
14920         * sched-deps.c (free_deps): Likewise.
14921         * sel-sched-ir.c (fence_clear): Likewise.
14922         * sese.c (set_rename, if_region_set_false_region): Likewise.
14923         * tree-data-ref.c (free_rdg): Likewise.
14924         * tree-eh.c (lower_try_finally): Likewise.
14925         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
14926         * tree-ssa-live.c (delete_var_map): Likewise.
14927         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
14928         * tree-ssa-pre.c (phi_trans_add): Likewise.
14929
14930 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
14931
14932         PR tree-optimization/48611
14933         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
14934         beyond ERT_MUST_NOT_THROW region.
14935
14936 2011-04-20  Catherine Moore  <clm@codesourcery.com>
14937
14938         * config/mips/mips.opt (mfix-24k): New.
14939         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
14940         * config/mips/mips.md (length): Increase by 4 for stores if
14941         fixing 24K errata.
14942         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
14943         all noreorder if fixing 24K errata.
14944         * doc/invoke.texi: Document mfix-24k.
14945
14946 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
14947
14948         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
14949         quad-word modes, reduce to 9-bit index range when above 1016 limit.
14950
14951 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
14952
14953         * config/arm/arm.c (arm_gen_constant): Move movw support ....
14954         (const_ok_for_op): ... to here.
14955
14956 2011-04-20  Kai Tietz  <ktietz@redhat.com>
14957
14958         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
14959         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
14960
14961 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
14962
14963         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
14964
14965 2011-04-20  Richard Guenther  <rguenther@suse.de>
14966
14967         PR tree-optimization/47892
14968         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
14969         are if-convertible.
14970
14971 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
14972
14973         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
14974
14975 2011-04-20  Tristan Gingold  <gingold@adacore.com>
14976
14977         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
14978
14979 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
14980
14981         PR target/18145
14982
14983         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
14984         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
14985         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14986         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
14987         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
14988
14989         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
14990         New prototype.
14991
14992         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
14993         (avr_asm_named_section, avr_asm_output_aligned_common,
14994         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
14995         New functions to update...
14996         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
14997         (avr_asm_init_sections): Overwrite section callbacks for
14998         data_section, bss_section.
14999         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
15000         from here to...
15001         (avr_file_end): ...here.
15002
15003 2011-04-20  Richard Guenther  <rguenther@suse.de>
15004
15005         PR middle-end/48695
15006         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
15007         objects and types here.  Adjust for their offset before comparing.
15008
15009 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
15010
15011         * tree-vect-stmts.c (vectorizable_store): Only chain one related
15012         statement per copy.
15013
15014 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
15015
15016         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
15017         (GIMPLE_H): Include $(INTERNAL_FN_H).
15018         (OBJS-common): Add internal-fn.o.
15019         (internal-fn.o): New rule.
15020         * internal-fn.def: New file.
15021         * internal-fn.h: Likewise.
15022         * internal-fn.c: Likewise.
15023         * gimple.h: Include internal-fn.h.
15024         (GF_CALL_INTERNAL): New gf_mask.
15025         (gimple_statement_call): Put fntype into a union with a new
15026         internal_fn field.
15027         (gimple_build_call_internal): Declare.
15028         (gimple_build_call_internal_vec): Likewise.
15029         (gimple_call_same_target_p): Likewise.
15030         (gimple_call_internal_p): New function.
15031         (gimple_call_internal_fn): Likewise.
15032         (gimple_call_fntype): Return null for internal calls.
15033         (gimple_call_set_fntype): Assert that the function is not internal.
15034         (gimple_call_set_fn): Likewise.
15035         (gimple_call_set_fndecl): Likewise.
15036         (gimple_call_set_internal_fn): New function.
15037         (gimple_call_addr_fndecl): Handle null functions.
15038         (gimple_call_return_type): Likewise null types.
15039         * gimple.c (gimple_build_call_internal_1): New function.
15040         (gimple_build_call_internal): Likewise.
15041         (gimple_build_call_internal_vec): Likewise.
15042         (gimple_call_same_target_p): Likewise.
15043         (gimple_call_flags): Handle calls to internal functions.
15044         (gimple_call_fnspec): New function.
15045         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
15046         (gimple_has_side_effects): Handle null functions.
15047         (gimple_rhs_has_side_effects): Likewise.
15048         (gimple_call_copy_skip_args): Handle calls to internal functions.
15049         * cfgexpand.c (expand_call_stmt): Likewise.
15050         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
15051         * gimple-fold.c (gimple_fold_call): Handle null functions.
15052         (gimple_fold_stmt_to_constant_1): Don't fold
15053         calls to internal functions.
15054         * gimple-low.c (gimple_check_call_args): Handle calls to internal
15055         functions.
15056         * gimple-pretty-print.c (dump_gimple_call): Likewise.
15057         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
15058         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
15059         (do_warn_unused_result): Likewise.
15060         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
15061         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
15062         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
15063         the target of a call.
15064         (initialize_hash_element): Update accordingly.
15065         (hashable_expr_equal_p): Use gimple_call_same_target_p.
15066         (iterative_hash_hashable_expr): Handle calls to internal functions.
15067         (print_expr_hash_elt): Likewise.
15068         * tree-ssa-pre.c (can_value_number_call): Likewise.
15069         (eliminate): Handle null functions.
15070         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
15071         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15072         (find_func_aliases): Likewise.
15073         * value-prof.c (gimple_ic_transform): Likewise.
15074         (gimple_indirect_call_to_profile): Likewise.
15075         * lto-streamer-in.c (input_gimple_stmt): Likewise.
15076         * lto-streamer-out.c (output_gimple_stmt): Likewise.
15077
15078 2011-04-19  Jan Hubicka  <jh@suse.cz>
15079
15080         * ipa-inline-transform.c (save_inline_function_body): Add comments.
15081         * ipa-inline.c (inline_small_functions): Compute summaries first,
15082         populate heap later.
15083
15084 2011-04-19  Jan Hubicka  <jh@suse.cz>
15085
15086         * cgraph.h (save_inline_function_body): Remove.
15087         * ipa-inline-transform.c: New file, broke out of...
15088         * ipa-inline.c: ... this one; Update toplevel comment.
15089         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
15090         make global.
15091         (update_noncloned_frequencies): Move to ipa-inline-transform.c
15092         (cgraph_mark_inline_edge): Rename to inline_call; move to
15093         ipa-inline-transform.c.
15094         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
15095         move to ipa-inline-transform.c
15096         (recursive_inlining, inline_small_functions, flatten_function,
15097         ipa_inline, inline_always_inline_functions,
15098         early_inline_small_functions): Update.
15099         (inline_transform): Move to ipa-inline-transform.c.
15100         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
15101         Declare.
15102         * Makefile.in (ipa-inline-transform.o): New file.
15103         * cgraphunit.c (save_inline_function_body): Move to
15104         ipa-inline-transform.c
15105
15106 2011-04-19  DJ Delorie  <dj@redhat.com>
15107
15108         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
15109         registers if we already know there aren't any.
15110         (m32c_emit_epilogue): Don't emit a barrier here.
15111         (m32c_emit_eh_epilogue): Likewise.
15112         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
15113         operands at expand time.
15114         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
15115         int" wchar type.
15116         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
15117         duplicates.  Provide aliases instead.
15118         * config/m32c/prologue.md (eh_return): Emit a barrier here.
15119         (eh_epilogue): Add a "(return)" here as a hint to other parts of
15120         the compiler.
15121
15122 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
15123
15124         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
15125         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
15126         (general_or_i64_p, sparc_register_move_cost): New function.
15127
15128 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15129
15130         * doc/install.texi (Configuration, --enable-threads): Remove mach.
15131         Add lynx, mipssde.  Sort table.
15132
15133 2011-04-19  Xinliang David Li  <davidxl@google.com>
15134
15135         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
15136         not negative.
15137
15138 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
15139
15140         PR target/48678
15141         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
15142         is a SUBREG with non-MODE_INT mode inside of it.
15143
15144 2011-04-19  Martin Jambor  <mjambor@suse.cz>
15145
15146         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
15147         also according to actual contants.
15148         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
15149         (gimple_fold_call): Use it.
15150         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15151
15152 2011-04-19  Martin Jambor  <mjambor@suse.cz>
15153
15154         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
15155         non-pointer assignments.
15156
15157 2011-04-19  Martin Jambor  <mjambor@suse.cz>
15158
15159         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
15160         account anc_offset and otr_type from the indirect edge info.
15161         * ipa-prop.c (get_ancestor_addr_info): New function.
15162         (compute_complex_ancestor_jump_func): Assignment analysis moved to
15163         get_ancestor_addr_info, call it.
15164         (ipa_note_param_call): Do not initialize information about polymorphic
15165         calls, return the indirect call graph edge.  Remove the last
15166         parameter, adjust all callers.
15167         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
15168         parameters.  Initialize polymorphic information in the indirect edge.
15169
15170 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15171
15172         PR lto/48148
15173         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
15174         the types if they have different enumeration identifiers.
15175
15176 2011-04-19  Jan Hubicka  <jh@suse.cz>
15177
15178         * cgraph.h (cgraph_optimize_for_size_p): Declare.
15179         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
15180         * predict.c (cgraph_optimize_for_size_p): Break out from ...
15181         (optimize_function_for_size_p) ... here.
15182
15183 2011-04-19  Richard Guenther  <rguenther@suse.de>
15184
15185         PR lto/48207
15186         * tree.c (free_lang_data): Do not reset the decl-assembler-name
15187         langhook.
15188
15189 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15190
15191         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
15192         if DECL_NO_INLINE_WARNING_P is set on the function.
15193
15194 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
15195
15196         PR fortran/47976
15197         * reload1.c (inc_for_reload): Return void. All callers changed.
15198         (emit_input_reload_insns): Don't try to delete previous output
15199         reloads to a register, or record spill_reg_store for autoincs.
15200
15201 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
15202
15203         * gengtype.h: Updated copyright year.
15204         (struct input_file_st): Add inpisplugin field.
15205         (type_fileloc): New function.
15206         * gengtype.c
15207         (write_typed_struct_alloc_def): Add gcc_assert.
15208         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
15209         (write_typed_alloc_defns): Don't output for plugin files.
15210         (input_file_by_name): Clear inpisplugin field.
15211         (main): Set inpisplugin field for plugin files.
15212
15213 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
15214
15215         * gengtype-state.c (string_eq): New.
15216         (read_state): Use string_eq instead of strcmp when creating the
15217         state_ident_tab.
15218
15219 2011-04-19  Wei Guozhi  <carrot@google.com>
15220
15221         PR target/47855
15222         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
15223         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
15224         linkage.
15225         * config/arm/constraints.md (Uu): New constraint.
15226         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
15227
15228 2011-04-19  Tristan Gingold  <gingold@adacore.com>
15229
15230         * config.gcc (-*-*-*vms): Added.
15231         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
15232         definitions moved.
15233         * config/vms/vms-ld.c: New file.
15234         * config/vms/vms-ar.c: New file.
15235         * config/vms/t-vmsnative: New file.
15236
15237 2011-04-18  Xinliang David Li  <davidxl@google.com>
15238
15239         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
15240
15241 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
15242
15243         PR middle-end/48661
15244         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
15245         if TREE_TYPE (v) is non-NULL.
15246
15247         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
15248         gimple_get_virt_mehtod_for_binfo.
15249         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
15250         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15251         callers.
15252         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15253
15254 2011-04-18  Michael Matz  <matz@suse.de>
15255             Steve Ellcey  <sje@cup.hp.com>
15256
15257         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
15258         use its mode as source mode if it isn't VOIDmode.
15259
15260 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
15261
15262         * doc/passes.texi: Fill crossref nodes.
15263
15264 2011-04-18  Jim Meyering  <meyering@redhat.com>
15265
15266         Fix doubled-word typos in comments and strings
15267         * config/alpha/vms-unwind.h: s/for for/for/
15268         * config/arm/unwind-arm.h: Likewise.
15269         * config/microblaze/microblaze.c: Likewise.
15270         * config/sh/constraints.md: s/in in/in/
15271         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
15272
15273 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
15274
15275         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
15276         (AVX_FLOAT_MODE_P): Ditto.
15277         (AVX128_VEC_FLOAT_MODE_P): Ditto.
15278         (AVX256_VEC_FLOAT_MODE_P): Ditto.
15279         (AVX_VEC_FLOAT_MODE_P): Ditto.
15280         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
15281         (UNSPEC_MASKSTORE): Ditto.
15282         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
15283         Merge from <sse>_movmsk<ssemodesuffix> and
15284         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
15285         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
15286         iterator.
15287         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
15288         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
15289         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
15290
15291 2011-04-18  Jan Hubicka  <jh@suse.cz>
15292
15293         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
15294
15295         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
15296         (want_inline_function_called_once_p): Break out the logic from
15297         ipa_inline.
15298         (edge_badness): Ensure that profile is not misupdated.
15299         (lookup_recursive_calls): Prioritize by call frequencies.
15300         (inline_small_functions): Move program size estimates here;
15301         actually process whole queue even when unit growth has been
15302         met. (to properly compute inline_failed reasons and for the
15303         case unit size decrease.) Revisit comments on recursive inlining.
15304         (ipa_inline): Remove unit summary code; first inline hot calls
15305         of functions called once, cold calls next.
15306         (order, nnodes): Remove unused variables.
15307         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
15308         (GTFILES): Remove ipa-inline.c
15309         * sel-sched.c (fill_insns): Silence uninitialized var warning.
15310
15311 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15312
15313         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
15314
15315 2011-04-18  Jie Zhang  <jie@codesourcery.com>
15316             Richard Earnshaw  <rearnsha@arm.com>
15317
15318         * arm.c (neon_builtin_type_bits): Remove.
15319         (typedef enum neon_builtin_mode): New.
15320         (T_MAX): Don't define.
15321         (typedef enum neon_builtin_datum): Remove bits, codes[],
15322         num_vars and base_fcode.  Add mode, code and fcode.
15323         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
15324         VAR10): Change accordingly.
15325         (neon_builtin_data[]): Change accordingly
15326         (arm_init_neon_builtins): Change accordingly.
15327         (neon_builtin_compare): Remove.
15328         (locate_neon_builtin_icode): Remove.
15329         (arm_expand_neon_builtin): Change accordingly.
15330
15331         * arm.h (enum arm_builtins): Move to ...
15332         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
15333
15334         * arm.c (arm_builtin_decl): Declare.
15335         (TARGET_BUILTIN_DECL): Define.
15336         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
15337         (arm_builtin_decls[]): New.
15338         (arm_init_neon_builtins): Store builtin declarations in
15339         arm_builtin_decls[].
15340         (arm_init_tls_builtins): Likewise.
15341         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
15342         (arm_builtin_decl): New.
15343
15344 2011-04-18  Richard Guenther  <rguenther@suse.de>
15345
15346         * tree.c (upper_bound_in_type): Build properly canonicalized
15347         INTEGER_CSTs.
15348         (lower_bound_in_type): Likewise.
15349
15350 2011-04-18  Richard Guenther  <rguenther@suse.de>
15351
15352         * gimple.h (gimple_call_addr_fndecl): New function.
15353         (gimple_call_fndecl): Use it.
15354         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
15355         for direct calls.
15356         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
15357         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15358
15359 2011-04-18  Richard Guenther  <rguenther@suse.de>
15360
15361         PR middle-end/48650
15362         * tree.c (build_string): STRING_CST is now derived from tree_typed.
15363
15364 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15365
15366         PR lto/48492
15367         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
15368         DECL_IN_CONSTANT_POOL without RTL.
15369
15370 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
15371             Ira Rosen  <ira.rosen@linaro.org>
15372
15373         PR target/48252
15374         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
15375         to match neon_vzip/vuzp/vtrn_internal.
15376         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
15377         outputs explicitly dependent on both inputs.
15378         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
15379
15380 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
15381
15382         PR tree-optimization/48616
15383         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
15384         whether the shift is by scalar or vector based on whether all SLP
15385         scalar stmts have the same rhs.
15386
15387 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
15388
15389         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
15390         memory operands.
15391
15392 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
15393
15394         PR target/43700
15395         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
15396         registers.
15397
15398 2011-04-17  Jan Hubicka  <jh@suse.cz>
15399
15400         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
15401         * cgrpahunit.c (cgraph_finalize_function): Do not set
15402         finalized_by_frontend.
15403         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15404         finalized_by_frontend.
15405
15406 2011-04-17  Jan Hubicka  <jh@suse.cz>
15407
15408         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
15409         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
15410         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
15411         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
15412         method.
15413         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
15414         gimple-fold.c
15415         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
15416
15417 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
15418
15419         PR lto/48538
15420         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
15421         is non-null before accessing it.
15422         (input_cgraph): Remove trailing spaces.
15423
15424 2011-04-17  Revital Eres  <revital.eres@linaro.org>
15425
15426         * params.def (sms-min-sc): New param flag.
15427         * modulo-sched.c (sms_schedule): Use it.
15428         * doc/invoke.texi (sms-min-sc): Document it.
15429
15430 2011-04-17  Jan Hubicka  <jh@suse.cz>
15431
15432         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
15433         present, also set gimple_call_set_cannot_inline.
15434         * ipa-inline.c: Update toplevel comment.
15435         (MAX_TIME): Remove.
15436         (cgraph_clone_inlined_nodes): Fix linebreaks.
15437         (cgraph_check_inline_limits): Restructure to ...
15438         (caller_growth_limits): ... this one; be more tolerant
15439         on growth in nested inline chains; add explanatory comment;
15440         fix stack accounting thinko introduced by previous patch.
15441         (cgraph_default_inline_p): Remove.
15442         (report_inline_failed_reason): New function.
15443         (can_inline_edge_p): New function.
15444         (can_early_inline_edge_p): New function.
15445         (leaf_node_p): Move upwards in file.
15446         (want_early_inline_function_p): New function.
15447         (want_inline_small_function_p): New function.
15448         (want_inline_self_recursive_call_p): New function.
15449         (cgraph_edge_badness): Rename to ...
15450         (edge_badness) ... this one; fix linebreaks.
15451         (update_edge_key): Update call of edge_baddness; add
15452         detailed dump about queue updates.
15453         (update_caller_keys): Use can_inline_edge_p and
15454         want_inline_small_function_p.
15455         (cgraph_decide_recursive_inlining): Rename to...
15456         (recursive_inlining): Use can_inline_edge_p and
15457         want_inline_self_recursive_call_p; simplify and remove no longer
15458         valid FIXME.
15459         (cgraph_set_inline_failed): Remove.
15460         (add_new_edges_to_heap): Use can_inline_edge_p and
15461         want_inline_small_function_p.
15462         (cgraph_decide_inlining_of_small_functions): Rename to ...
15463         (inline_small_functions): ... this one; cleanup; use
15464         can/want predicates; cleanup debug ouput; work edges till fibheap
15465         is exhausted and do not stop once unit growth is reached; remove
15466         later loop processing remaining edges.
15467         (cgraph_flatten): Rename to ...
15468         (flatten_function): ... this one; use can_inline_edge_p
15469         and can_early_inline_edge_p predicates.
15470         (cgraph_decide_inlining): Rename to ...
15471         (ipa_inline): ... this one; remove unreachable nodes before
15472         inlining functions called once; simplify the pass.
15473         (cgraph_perform_always_inlining): Rename to ...
15474         (inline_always_inline_functions): ... this one; use
15475         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
15476         (cgraph_decide_inlining_incrementally): Rename to ...
15477         (early_inline_small_functions): ... this one; simplify
15478         using new predicates; cleanup; make dumps prettier.
15479         (cgraph_early_inlining): Rename to ...
15480         (early_inliner): newer inline regular functions into always-inlines;
15481         fix updating of call stmt summaries.
15482         (pass_early_inline): Update for new names.
15483         (inline_transform): Fix formating.
15484         (gate_cgraph_decide_inlining): Rename to ...
15485         (pass_ipa_inline): ... this one.
15486         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
15487         * ipa-inline-analysis.c (dump_inline_summary): Update.
15488         (compute_inline_parameters): Do not compute disregard_inline_limits;
15489         look for mismatching arguments.
15490         (estimate_growth): Fix handlig of non-trivial self recursion.
15491         (inline_read_summary): Do not read info->disregard_inline_limits.
15492         (inline_write_summary): Do not write info->disregard_inline_limits.
15493         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
15494         and move all checks into can_inline_edge_p predicate; re-enable code
15495         comparing optimization levels.
15496         (expand_call_inline): Do not test inline_forbidden_into_p.
15497         * Makefile.in (ipa-inline.o): Update arguments.
15498
15499 2011-04-17  Revital Eres  <revital.eres@linaro.org>
15500
15501         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
15502
15503 2011-04-17  Revital Eres  <revital.eres@linaro.org>
15504
15505         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
15506
15507 2011-04-17  Michael Matz  <matz@suse.de>
15508
15509         PR tree-optimization/48622
15510         PR lto/48645
15511         * ipa-inline-analysis.c (inline_read_summary): Read size/time
15512         in same order as they're written.
15513
15514 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15515
15516         * config/pa/predicates.md: Reorganize and simplify predicates.
15517         Eliminate duplicate code checks.
15518         (arith_operand): Rename to arith14_operand
15519         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
15520         * config/pa/pa.md: Use renamed operands.
15521         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
15522         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
15523         arith11_operand, adddi3_operand, indexed_memory_operand,
15524         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
15525         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
15526         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
15527         move_dest_operand, move_src_operand, prefetch_cc_operand,
15528         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
15529         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
15530         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
15531         div_operand, int5_operand, movb_comparison_operator,
15532         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
15533         arith_double_operand, ireg_operand, lhs_lshift_operand,
15534         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
15535         integer_store_memory_operand): Likewise.
15536         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
15537         (integer_store_memory_operand, read_only_operand,
15538         function_label_operand, borx_reg_operand,
15539         non_hard_reg_operand): Likewise.
15540         (eq_neq_comparison_operator): Delete unused operator.
15541         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
15542         function_label_operand.
15543         (emit_move_sequence): Likewise.
15544
15545 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
15546
15547         * config/i386/sse.md (sseunpackmode): New mode attribute.
15548         (ssepackmode): Ditto.
15549         (vec_pack_trunc_<mode>): Macroize expander from
15550         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
15551         (vec_unpacks_lo_<mode>): Macroize expander from
15552         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15553         (vec_unpacks_hi_<mode>): Macroize expander from
15554         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15555         (vec_unpacku_lo_<mode>): Macroize expander from
15556         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15557         (vec_unpacku_hi_<mode>): Macroize expander from
15558         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15559         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
15560         ix86_expand_sse4_unpack.
15561         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
15562
15563 2011-04-16  Jan Hubicka  <jh@suse.cz>
15564
15565         * cgraphbuild.c: Include ipa-inline.h.
15566         (reset_inline_failed): Use initialize_inline_failed.
15567         * cgraph.c: Include ipa-inline.h.
15568         (cgraph_create_node_1): Do not initialize estimated_growth.
15569         (initialize_inline_failed): More to ipa-inline-analysis.c
15570         (dump_cgraph_node): Do not dump inline flags.
15571         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
15572         and disregard_inline_limits flags.
15573         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
15574         time, size, estimated_growth.
15575         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
15576         Update.
15577         * cgraphunit.c (cgraph_decide_is_function_needed): Use
15578         DECL_DISREGARD_INLINE_LIMITS.
15579         (cgraph_analyze_function): Do not initialize
15580         node->local.disregard_inline_limits.
15581         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15582         inlinable, versionable and disregard_inline_limits.
15583         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
15584         cgraph_check_inline_limits, cgraph_default_inline_p,
15585         cgraph_edge_badness, update_caller_keys, update_callee_keys,
15586         add_new_edges_to_heap): Update.
15587         (cgraph_decide_inlining_of_small_function): Update; set
15588         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
15589         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
15590         cgraph_decide_inlining_incrementally): Update.
15591         * ipa-inline.h (inline_summary): Add inlinable, versionable,
15592         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
15593         time, size and estimated_growth parameters.
15594         (estimate_edge_growth): Update.
15595         (initialize_inline_failed): Declare.
15596         * ipa-split.c: Include ipa-inline.h
15597         (execute_split_functions): Update.
15598         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
15599         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
15600         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
15601         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
15602         estimated_growth to INT_MIN.
15603         (inline_node_duplication_hook): Likewise.
15604         (dump_inline_summary): Dump new fields.
15605         (compute_inline_parameters): Update.
15606         (estimate_edge_time, estimate_time_after_inlining,
15607         estimate_size_after_inlining, estimate_growth, inline_read_summary,
15608         inline_write_summary):
15609         (initialize_inline_failed): Move here from cgraph.c.
15610         * tree-sra.c: Include ipa-inline.h.
15611         (ipa_sra_preliminary_function_checks): Update.
15612         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
15613         ipa-inline.h.
15614
15615 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
15616
15617         * config/i386/sse.md (V16): New mode iterator.
15618         (VI1, VI8): Ditto.
15619         (AVXMODEQI, AVXMODEDI): Remove.
15620         (sse2, sse3): New mode attribute.
15621         (mov<mode>): Use V16 mode iterator.
15622         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
15623         (push<mode>1): Use V16 mode iterator.
15624         (movmisalign<mode>): Ditto.
15625         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15626         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
15627         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15628         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
15629         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
15630         avx_movdqu<avxmodesuffix>.
15631         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
15632         *avx_movdqu<avxmodesuffix>.
15633         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
15634         avx_lddqu<avxmodesuffix>.
15635         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
15636         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
15637         avx_movnt<AVXMODEDI:mode>.
15638         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
15639         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
15640
15641 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
15642
15643         PR target/48629
15644         * haifa-sched.c (prune_ready_list, schedule_block): Use
15645         sched_pressure_p rather than flag_sched_pressure.
15646
15647 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
15648
15649         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15650         cgraph_get_node instead of cgraph_get_create_node.
15651
15652 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
15653
15654         * cfgexpand.c (expand_debug_expr): Use
15655         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
15656
15657 2011-04-15  Michael Matz  <matz@suse.de>
15658
15659         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
15660         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
15661         * function.c (gimplify_parameters): Ditto.
15662         * gimplify.c (gimplify_vla_decl): Ditto.
15663
15664         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
15665         (gimple_call_set_alloca_for_var): New inline function.
15666         (gimple_call_alloca_for_var_p): Ditto.
15667         * gimple.c (gimple_build_call_from_tree): Remember
15668         CALL_ALLOCA_FOR_VAR_P state.
15669         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
15670
15671         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
15672         calls if they were for VLA objects.
15673
15674 2011-04-15  Martin Jambor  <mjambor@suse.cz>
15675
15676         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
15677         of ADR_EXPRs.
15678
15679 2011-04-15  Martin Jambor  <mjambor@suse.cz>
15680
15681         PR middle-end/48601
15682         * tree-emutls.c (lower_emutls_function_body): Call
15683         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
15684         result is non-NULL.
15685
15686 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
15687
15688         * c-decl.c (detect_field_duplicates): Call
15689         objc_detect_field_duplicates instead of objc_get_interface_ivars.
15690
15691 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
15692
15693         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
15694         * gimple.c (gimple_asm_clobbers_memory_p): Define.
15695         * ipa-pure-const.c (check_stmt): Call it.
15696         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
15697
15698 2011-04-15  Richard Guenther  <rguenther@suse.de>
15699
15700         PR tree-optimization/48290
15701         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
15702         Properly decide inhibiting propagation based on the valueized
15703         operand.  Do loop-closed SSA form preserving here ...
15704         (init_copy_prop): ... not here.
15705
15706 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
15707
15708         PR target/48612
15709         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
15710         (*ieee_smax<mode>3): Likewise.
15711
15712 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15713
15714         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
15715         Replace match_operand with match_dup for the third operand in
15716         these expanders.
15717
15718 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15719
15720         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
15721         to track processing of conditionals.  Update all callers.
15722         (try_combine, simplify_if_then_else): Update.
15723
15724 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15725
15726         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
15727         -fsched-pressure.
15728
15729 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
15730
15731         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
15732         instead of match_operand for operand 3.
15733
15734 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
15735
15736         * recog.h (insn_operand_data): Add an "allows_mem" field.
15737         * genoutput.c (output_operand_data): Initialize it.
15738         * optabs.c (maybe_legitimize_operand_same_code): New function.
15739         (maybe_legitimize_operand): Use it when matching the original
15740         op->value.
15741
15742 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15743
15744         * gimplify.c: Fix issues in comments throughout.
15745         (voidify_wrapper_expr): Fix long line.
15746         (build_stack_save_restore): Likewise.
15747         (gimplify_loop_expr): Likewise.
15748         (gimplify_compound_lval): Likewise.
15749         (gimplify_init_ctor_eval): Likewise.
15750         (gimplify_modify_expr_rhs): Likewise.
15751         (omp_notice_threadprivate_variable): Likewise.
15752
15753 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15754
15755         * cfgexpand.c (expand_call_stmt): Convert the function type to the
15756         original one if this is not a builtin function.
15757
15758 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
15759
15760         PR target/48605
15761         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
15762         offset it as needed based on top 2 bits in operands[3], change
15763         MEM mode to SFmode and mask those 2 bits away from operands[3].
15764
15765 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
15766
15767         * c-parser.c (c_parser_objc_protocol_definition): Updated for
15768         change from objc_declare_protocols() to objc_declare_protocol().
15769
15770 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
15771
15772         * config/i386/sse.md (sse4_1): New mode attribute.
15773         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
15774         avx_blend<ssemodesuffix><avxmodesuffix> and
15775         sse4_1_blend<ssemodesuffix> using VF mode iterator.
15776         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
15777         avx_blendv<ssemodesuffix><avxmodesuffix> and
15778         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
15779         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
15780         avx_dp<ssemodesuffix><avxmodesuffix> and
15781         sse4_1_dp<ssemodesuffix> using VF mode iterator.
15782         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
15783         (sse4_1_packusdw): Merge with *avx_packusdw.
15784         (sse4_1_pblendvb): Merge with *avx_pblendvb.
15785         (sse4_1_pblendw): Merge with *avx_pblendw.
15786         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
15787         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
15788         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
15789         VF mode iterator.
15790         (sse4_1_round<ssescalarmodesuffix>): Merge with
15791         *avx_round<ssescalarmodesuffix>.
15792         (aesenc): Merge with *avx_aesenc.
15793         (aesenclast): Merge with *avx_aesenclast.
15794         (aesdec): Merge with *avx_aesdec.
15795         (aesdeclast): Merge with *avx_aesdeclast.
15796         (pclmulqdq): Merge with *pclmulqdq.
15797         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
15798         New predicate.
15799         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
15800
15801 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
15802
15803         PR middle-end/48608
15804         * cfgexpand.c (get_decl_align_unit): Renamed to ...
15805         (align_local_variable): This.  Update DECL_ALIGN.
15806         (add_stack_var): Updated.
15807         (expand_one_stack_var): Likewise.
15808
15809 2011-04-14  Richard Guenther  <rguenther@suse.de>
15810
15811         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
15812         Remove.
15813         (dse_initialize_block_local_data, dse_leave_block,
15814         record_voperand_set, get_stmt_uid): Likewise.
15815         (dse_possible_dead_store_p): Allow any kind of killing stmt.
15816         (dse_optimize_stmt): Remove voperand set handling code.
15817         Simplify and improve to handle any kind of killing stmt.
15818         (dse_record_phi): Remove.
15819         (dse_enter_block): Simplify.
15820         (tree_ssa_dse): Likewise.
15821         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
15822
15823 2011-04-14  Jan Hubicka  <jh@suse.cz>
15824
15825         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
15826         * cgraph.h (struct inline_summary): Move to ipa-inline.h
15827         (cgraph_local_info): Remove inline_summary.
15828         * ipa-cp.c: Include ipa-inline.h.
15829         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
15830         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
15831         accesor.
15832         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
15833         (input_overwrite_node): Do not set inline summary.
15834         (input_node): Do not stream inline summary.
15835         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
15836         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
15837         growth; we do not have inline parameters computed for that anyway.
15838         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
15839         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
15840         (inline_summary_t): New type and VECtor.
15841         (debug_inline_summary, dump_inline_summaries): Declare.
15842         (inline_summary): Use VOCtor.
15843         (estimate_edge_growth): Kill hack computing call stmt size directly.
15844         * lto-section-in.c (lto_section_name): Add inline section.
15845         * ipa-inline-analysis.c: Include lto-streamer.h
15846         (node_removal_hook_holder, node_duplication_hook_holder): New holders
15847         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
15848         (inline_summary_vec): Define.
15849         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
15850         dump_inline_summaries): New functions.
15851         (estimate_function_body_sizes): Properly compute size/time of outgoing
15852         calls.
15853         (compute_inline_parameters): Alloc inline_summary; do not compute
15854         size/time of incomming calls.
15855         (estimate_edge_time): Avoid missing time summary hack.
15856         (inline_read_summary): Read inline summary info.
15857         (inline_write_summary): Write inline summary info.
15858         (inline_free_summary): Free all hooks and inline summary vector.
15859         * lto-streamer.h: Add LTO_section_inline_summary section.
15860         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
15861         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
15862
15863 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15864
15865         * tree-vectorizer.h (vect_strided_store_supported): Add a
15866         HOST_WIDE_INT argument.
15867         (vect_strided_load_supported): Likewise.
15868         (vect_permute_store_chain): Return void.
15869         (vect_transform_strided_load): Likewise.
15870         (vect_permute_load_chain): Delete.
15871         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
15872         count argument.  Check that the count is a power of two.
15873         (vect_strided_load_supported): Likewise.
15874         (vect_permute_store_chain): Return void.  Update after above changes.
15875         Assert that the access is supported.
15876         (vect_permute_load_chain): Likewise.
15877         (vect_transform_strided_load): Return void.
15878         * tree-vect-stmts.c (vectorizable_store): Update calls after
15879         above interface changes.
15880         (vectorizable_load): Likewise.
15881         (vect_analyze_stmt): Don't check for strided powers of two here.
15882
15883 2011-04-14  Richard Guenther  <rguenther@suse.de>
15884
15885         PR tree-optimization/48590
15886         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15887         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15888         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
15889         BUILT_IN_STACK_SAVE.
15890         * tree-ssa-dce.c (propagate_necessity): Handle
15891         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15892
15893 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
15894
15895         * c-parser.c (c_parser_objc_class_declaration): Updated call to
15896         objc_declare_class.
15897
15898 2011-04-14  Richard Guenther  <rguenther@suse.de>
15899
15900         * tree.h (get_object_alignment_1): Declare.
15901         * builtins.c (get_object_alignment_1): Split out worker from ...
15902         (get_object_alignment): ... here.
15903         * fold-const.c (get_pointer_modulus_and_residue): Use
15904         get_object_alignment_1.
15905
15906 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15907
15908         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
15909         type parameter.
15910         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
15911         parameter.  Generalise code to handle arrays as well as vectors.
15912         (vect_setup_realignment): Update accordingly.
15913         * tree-vect-stmts.c (vectorizable_store): Likewise.
15914         (vectorizable_load): Likewise.
15915
15916 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15917
15918         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
15919         within the per-copy loop.
15920
15921 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15922
15923         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
15924         in the dump file.
15925
15926 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15927
15928         * doc/options.texi (Negative): Explicitly mention that the
15929         Negative chain must be circular.
15930
15931 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
15932
15933         * function.h (block_chainon): Declare.
15934         * function.c (block_chainon): Define.
15935
15936 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
15937             Eric Weddington  <eric.weddington@atmel.com>
15938             Georg-Johann Lay  <avr@gjlay.de>
15939
15940         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
15941         New Includes
15942         (avr_init_builtins, avr_expand_builtin,
15943         avr_expand_delay_cycles, avr_expand_unop_builtin,
15944         avr_expand_binop_builtin ): New functions.
15945         (avr_builtin_id): New enum
15946         (struct avr_builtin_description): New struct
15947         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
15948         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15949
15950         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
15951         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
15952         UNSPECV_DELAY_CYCLES): new enumeration values
15953         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
15954         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
15955         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
15956         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
15957         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
15958         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
15959         "fmulsu"): New insns
15960
15961         * config/avr/avr-c.c: fix line endings
15962         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
15963         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
15964         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
15965         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
15966         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
15967
15968         * doc/extend.texi (AVR Built-in Functions): New node
15969         (Target Builtins): Add documentation of AVR
15970         built-in functions.
15971
15972 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
15973
15974         PR target/44643
15975         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
15976         alone. Error if non-const data has attribute progmem.
15977
15978 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
15979
15980         * tree.h (struct tree_constructor): Include tree_typed instead of
15981         tree_common.
15982         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
15983         TS_TYPED instead of TS_COMMON.
15984
15985 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
15986
15987         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
15988         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
15989         (sse2_psadbw): Merge with *avx_psadbw.
15990         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
15991         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
15992         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
15993         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
15994         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
15995         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
15996         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
15997         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
15998         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
15999         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
16000         (ssse3_palignrti): Merge with *avx_palignrti.
16001
16002 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
16003
16004         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
16005         * tree-ssanames.c (fini_ssanames): VEC_free it.
16006         (make_ssa_name_fn): Update for VECness of free_ssanames.
16007         (release_ssa_name, release_dead_ssa_names): Likewise.
16008         * tree.h (struct tree_ssa_name): Include tree_typed instead of
16009         tree_common.
16010         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
16011         TS_TYPED instead of TS_COMMON.
16012
16013 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
16014
16015         * postreload-gcse.c (gcse_after_reload_main): Add calls to
16016         statistics_counter_event.
16017         * tree-ssa-copyrename.c (stats): Define.
16018         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
16019         statistics_counter_event.
16020         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
16021         (bswap_stats, widen_mul_stats): Define.
16022         (insert_reciprocals): Increment rdivs_inserted.
16023         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
16024         rfuncs_inserted.  Add calls to statistics_counter_event.
16025         (execute_cse_sincos_1): Increment inserted.
16026         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
16027         statistics_counter_event.
16028         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
16029         of bswap_stats.  Add calls to statistics_counter_event.
16030         (convert_mult_to_widen): Increment widen_mults_inserted.
16031         (convert_plusminus_to_widen): Increment maccs_inserted.
16032         (convert_mult_to_fma): Increment fmas_inserted.
16033         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
16034         calls to statistics_counter_event.
16035
16036 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
16037
16038         PR rtl-optimization/48455
16039         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
16040         `temp_costs->mem_cost'.
16041
16042 2011-04-13  Jan Hubicka  <jh@suse.cz>
16043
16044         * ipa-inline.h: New file.
16045         * ipa-inline-analysis.c: New file. Broken out of ...
16046         * ipa-inline.c: ... this file; update toplevel comment;
16047         include ipa-inline.h
16048         (inline_summary): Move to ipa-inline.h
16049         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
16050         ipa-inline-analysis.c.
16051         (cgraph_estimate_time_after_inlining): Rename to
16052         estiamte_time_after_inlining; move to ipa-inline-analysis.c
16053         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
16054         to estimate_edge_growth.
16055         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
16056         rename to estimate_size_after_inlining.
16057         (cgraph_mark_inline_edge): Update for new naming convention.
16058         (cgraph_check_inline_limits): Likewise.
16059         (cgraph_edge_badness): Likewise.
16060         (cgraph_decide_recursive_inlining): Likewise.
16061         (cgraph_decide_inlining_of_small_functions): Likewise.
16062         (cgraph_decide_inlining_incrementally): Likewise.
16063         (cgraph_estimate_growth): Rename to estimate_growth; move to
16064         ipa-inline-analysis.c.
16065         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
16066         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
16067         (compute_inline_parameters): Likewise.
16068         (compute_inline_parameters_for_current): Likewise.
16069         (pass_inline_parameters): Likewise.
16070         (inline_indirect_intraprocedural_analysis): Likewise.
16071         (analyze_function): Rename to inline_analyze_function; likewise.
16072         (add_new_function): Move to ipa-inline-analysis.c.
16073         (inline_generate_summary): Likewise.
16074         (inline_read_summary): Likewise.
16075         (inline_write_summary): Likewise.
16076         * Makefile.in (ipa-inline-analysis.c): New file.
16077
16078 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16079
16080         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
16081         * configure: Regenerate.
16082
16083 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
16084
16085         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
16086         instead of tree_common.
16087         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
16088         Likewise.
16089         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
16090         TS_TYPED rather than TS_COMMON.
16091         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
16092
16093 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
16094
16095         PR target/45263
16096         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
16097         r20 around calls of __tablejump_elpm__
16098
16099 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
16100
16101         PR middle-end/48591
16102         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
16103         NULL.
16104         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
16105
16106 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
16107
16108         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
16109         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
16110         (cfi_vec): New typedef.
16111         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
16112         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
16113         (cie_cfi_vec): New static variable.
16114         (cie_cfi_head): Delete.
16115         (add_cfi): Accept a cfi_vec * as first argument. All callers and
16116         declaration changed. Use vector rather than list operations.
16117         (new_cfi): Don't initialize the dw_cfi_next field.
16118         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
16119         rather than list operations.
16120         (lookup_cfa): Use vector rather than list operations.
16121         (output_cfis): New argument upto. Accept a cfi_vec rather than
16122         a dw_cfi_ref list head as argument. All callers changed.
16123         Iterate over the vector using upto as a maximum index.
16124         (output_all_cfis): New static function.
16125         (output_fde): Use vector rather than list operations. Use the
16126         new upto argument for output_cfis rather than manipulating a
16127         list.
16128         (dwarf2out_begin_prologue): Change initializations to match
16129         new struct members.
16130         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
16131         from the vector length rather than searching for the end of a list.
16132         Use output_all_cfis.
16133         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
16134
16135 2011-04-13  Nick Clifton  <nickc@redhat.com>
16136
16137         * config/rx/rx.md (movmemsi): Do not use this pattern when
16138         volatile pointers are involved.
16139
16140 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
16141
16142         * config/i386/sse.md (pinsrbits): Remove.
16143         (sse2_packsswb): Merge with *avx_packsswb.
16144         (sse2_packssdw): Merge with *avx_packssdw.
16145         (sse2_packuswb): Merge with *avx_packuswb.
16146         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
16147         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
16148         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
16149         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
16150         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
16151         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
16152         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
16153         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
16154         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
16155         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
16156         (sse2_loadld): Merge with *avx_loadld.
16157         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
16158         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
16159         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
16160         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
16161         (vec_concatv2di): Merge with *vec_concatv2di_avx.
16162
16163 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
16164
16165         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
16166         calling TREE_CHAIN.
16167         * print-tree.c (print_node): Likewise.
16168         * tree-inline.c (copy_tree_r): Likewise.
16169         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
16170         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
16171         instead of TS_COMMON.
16172         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
16173         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
16174         (copy_node_stat): Zero TREE_CHAIN only if necessary.
16175         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
16176         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
16177         ...and these...
16178         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
16179         * tree.h: ...here.
16180         (TREE_CHAIN): Check for a TS_COMMON structure.
16181         (TREE_TYPE): Check for a TS_TYPED structure.
16182
16183 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
16184
16185         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16186         cgraph_get_create_node instead of cgraph_node.
16187
16188 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16189
16190         * c-parser.c (c_parser_initelt): Updated call to
16191         objc_build_message_expr.
16192         (c_parser_postfix_expression): Likewise.
16193
16194 2011-04-12  Kai Tietz  <ktietz@redhat.com>
16195
16196         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
16197         MASK_MS_BITFIELD_LAYOUT bit.
16198
16199 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
16200
16201         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
16202         assert it is always true.
16203         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
16204         moves.
16205
16206 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16207
16208         * c-parser.c (c_lex_one_token): Rewritten conditional used when
16209         compiling Objective-C to be more efficient.
16210
16211 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
16212
16213         * opts-common.c (decode_cmdline_options_to_array): Remove variable
16214         argv_copied.
16215
16216 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
16217
16218         * recog.h, genoutput.c, optabs.c: Revert last patch.
16219
16220 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16221
16222         PR target/48090
16223         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
16224
16225 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
16226
16227         * recog.h (insn_operand_data): Add an "allows_mem" field.
16228         * genoutput.c (output_operand_data): Initialize it.
16229         * optabs.c (maybe_legitimize_operand_same_code): New function.
16230         (maybe_legitimize_operand): Use it when matching the original
16231         op->value.
16232
16233 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
16234
16235         * genpreds.c (process_define_predicate): Move most processing
16236         to gensupport.c.  Continue to validate the expression.
16237         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
16238         (process_define_predicate): Move processing to gensupport.c.
16239         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
16240         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
16241         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
16242         argument.
16243         (valid_predicate_name_p): New function, split out from old
16244         genpreds.c:process_define_predicate.
16245         (process_define_predicate): New function, combining code from
16246         old genpreds.c and genrecog.c functions.
16247         (process_rtx): Call it for DEFINE_PREDICATE and
16248         DEFINE_SPECIAL_PREDICATE.
16249
16250 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
16251
16252         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
16253         size of a '%A' memory reference.
16254         (T_DREG, T_QREG): New neon_builtin_type_bits.
16255         (arm_init_neon_builtins): Assert that the load and store operands
16256         are neon_struct_operands.
16257         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
16258         (NEON_ARG_MEMORY): New builtin_arg.
16259         (neon_dereference_pointer): New function.
16260         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
16261         Handle NEON_ARG_MEMORY.
16262         (arm_expand_neon_builtin): Update after above interface changes.
16263         Use NEON_ARG_MEMORY for loads and stores.
16264         * config/arm/predicates.md (neon_struct_operand): New predicate.
16265         * config/arm/iterators.md (V_two_elem): Tweak formatting.
16266         (V_three_elem): Use BLKmode for accesses that have no associated mode.
16267         (V_four_elem): Tweak formatting.
16268         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
16269         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
16270         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
16271         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
16272         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
16273         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
16274         (neon_vst4<mode>): Replace pointer operand with a memory operand.
16275         Use %A in the output template.
16276         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
16277         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
16278         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
16279         the width of the memory access.  Remove post-increment.
16280         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
16281
16282 2011-04-12  Nick Clifton  <nickc@redhat.com>
16283
16284         * config/v850/v850.c (expand_prologue): Do not use the CALLT
16285         instruction for interrupt handlers if the target is the basic V850
16286         architecture.
16287         (expand_epilogue): Likewise.
16288
16289 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
16290
16291         PR rtl-optimization/48549
16292         * combine.c (propagate_for_debug): Also stop after BB_END of
16293         this_basic_block.  Process LAST and just stop processing after it.
16294         (combine_instructions): If last_combined_insn has been deleted,
16295         set last_combined_insn to its PREV_INSN.
16296
16297 2011-04-12  Richard Guenther  <rguenther@suse.de>
16298
16299         PR tree-optimization/46076
16300         * gimple.h (struct gimple_statement_call): Add fntype field.
16301         (gimple_call_fntype): Adjust.
16302         (gimple_call_set_fntype): New function.
16303         * gimple.c (gimple_build_call_1): Set the call function type.
16304         * gimplify.c (gimplify_call_expr): Preserve the function
16305         type the frontend used for the call.
16306         (gimplify_modify_expr): Likewise.
16307         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
16308         function type.
16309         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
16310         function type.
16311         * tree-ssa.c (useless_type_conversion_p): Function pointer
16312         conversions are useless.
16313
16314 2011-04-12  Martin Jambor  <mjambor@suse.cz>
16315
16316         * cgraph.h (cgraph_node): Remove function declaration.
16317         (cgraph_create_node): Declare.
16318         (cgraph_get_create_node): Likewise.
16319         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
16320         Updated all callers.
16321         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
16322         the decl does not already exist.  Call cgraph_get_create_node instead
16323         of cgraph_node.
16324         (cgraph_get_create_node): New function.
16325         (cgraph_same_body_alias): Update comment.
16326         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
16327         assert it does not return NULL.
16328         (cgraph_update_edges_for_call_stmt): Likewise.
16329         (cgraph_clone_edge): Likewise.
16330         (cgraph_create_virtual_clone): Likewise.
16331         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
16332         instead of cgraph_node.
16333         (cgraph_add_new_function): Call cgraph_create_node or
16334         cgraph_get_create_node instead of cgraph_node.
16335         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
16336         instead of cgraph_node.
16337         (record_eh_tables): Likewise.
16338         (mark_address): Likewise.
16339         (mark_load): Likewise.
16340         (build_cgraph_edges): Call cgraph_get_create_node instead
16341         of cgraph_node.
16342         (rebuild_cgraph_edges): Likewise.
16343         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
16344         instead of cgraph_node.
16345         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
16346         cgraph_node.
16347         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
16348         cgraph_create_node instead of cgraph_node.
16349         * c-decl.c (finish_function): Call cgraph_get_create_node instead
16350         of cgraph_node.
16351         * lto-cgraph.c (input_node): Likewise.
16352         * lto-streamer-in.c (input_function): Likewise.
16353         * varasm.c (mark_decl_referenced): Likewise.
16354         (assemble_alias): Likewise.
16355
16356 2011-04-12  Martin Jambor  <mjambor@suse.cz>
16357
16358         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
16359         instead of cgraph_node and assert it does not return NULL.
16360         * lto-streamer-in.c (lto_read_body): Likewise.
16361         * omp-low.c (new_omp_context): Likewise.
16362         (create_task_copyfn): Likewise.
16363         * tree-emutls.c (lower_emutls_function_body): Likewise.
16364         * matrix-reorg.c (transform_allocation_sites): Likewise.
16365
16366 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
16367
16368         PR c/48552
16369         * c-typeck.c (build_asm_expr): Error out on attempts to use
16370         void type outputs or inputs for constraints that allow reg or
16371         don't allow memory.
16372
16373 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
16374             Richard Earnshaw  <rearnsha@arm.com>
16375
16376         PR target/48250
16377         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
16378         to use sign-magnitude offsets. Reject unsupported unaligned
16379         cases. Add detailed description in comments.
16380         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
16381         condition from TARGET_32BIT to TARGET_ARM.
16382
16383 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
16384
16385         * tree.h (struct typed_tree): New.
16386         (struct tree_common): Include it instead of tree_base.
16387         (TREE_TYPE): Update for new location of type field.
16388         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
16389         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
16390         (union tree_node): Add typed field.
16391         * treestruct.def (TS_TYPED): New.
16392         * lto-streamer.c (check_handled_ts_structures): Handle it.
16393         * tree.c (MARK_TS_TYPED): New macro.
16394         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
16395
16396 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
16397
16398         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
16399         (force_nonfallthru): Do not alter the loop nest if no basic block
16400         was created.
16401
16402 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
16403
16404         * config/i386/sse.md (VI): New mode iterator.
16405         (SSEMODEI): Remove.
16406         (AVX256MODEI): Ditto.
16407         (AVXMODEF4P): Ditto.
16408         (avxvecpsmode): Ditto.
16409         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
16410         (sse2_andnot<mode>3): New expander.
16411         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
16412         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
16413         (<any_logic:code><mode>3): Use VI mode iterator.
16414         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
16415         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
16416         (*andnottf3): Handle AVX three-operand constraints.
16417         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
16418
16419 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
16420             Robert Millan  <rmh@gnu.org>
16421
16422         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
16423         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
16424         GNU_USER_DYNAMIC_LINKER64): Define.
16425         (REG_NAME): Don't undefine.
16426         (MD_UNWIND_SUPPORT): Undefine.
16427         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
16428         (REG_NAME): Don't undefine.
16429         (MD_UNWIND_SUPPORT): Undefine.
16430         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
16431
16432 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
16433
16434         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
16435         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
16436
16437 2011-04-11  Xinliang David Li  <davidxl@google.com>
16438
16439         * value-profile.c (check_ic_target): New function.
16440         (gimple_ic_transform): Sanity check indirect call target.
16441         * gimple-low.c (gimple_check_call_args): Interface change.
16442         (gimple_check_call_matching_types): New function.
16443         * tree-inline.c (tree_can_inline_p): Call new function.
16444
16445 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
16446
16447         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
16448         tree-pretty-print.h & realmpfr.h.
16449
16450 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
16451
16452         PR middle-end/48464
16453         * ira.c (setup_pressure_classes): Fix typo in loop condition.
16454         (setup_allocno_and_important_classes): Ditto.
16455
16456 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
16457
16458         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
16459         GNU_USER_DYNAMIC_LINKER.
16460         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
16461         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16462         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
16463         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16464         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16465         GNU_USER_TARGET_OS_CPP_BUILTINS.
16466         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
16467         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16468         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16469         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16470         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
16471         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16472         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16473         GNU_USER_TARGET_OS_CPP_BUILTINS.
16474         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16475         GNU_USER_DYNAMIC_LINKER.
16476         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16477         GNU_USER_TARGET_OS_CPP_BUILTINS.
16478         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
16479         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16480         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
16481         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16482         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
16483         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
16484         GNU_USER_DYNAMIC_LINKER64): Remove.
16485         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
16486         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16487         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16488         GNU_USER_DYNAMIC_LINKER.
16489         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16490         GNU_USER_TARGET_OS_CPP_BUILTINS.
16491         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16492         GNU_USER_TARGET_OS_CPP_BUILTINS.
16493         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
16494         to GNU_USER_TARGET_OS_CPP_BUILTINS.
16495         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16496         GNU_USER_TARGET_OS_CPP_BUILTINS.
16497         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
16498         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
16499         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16500         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
16501         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16502         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16503         GNU_USER_DYNAMIC_LINKER.
16504         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16505         GNU_USER_TARGET_OS_CPP_BUILTINS.
16506         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
16507         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16508         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16509         GNU_USER_DYNAMIC_LINKER.
16510         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16511         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16512         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
16513         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16514         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16515         GNU_USER_DYNAMIC_LINKER.
16516         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
16517         GNU_USER_DYNAMIC_LINKERN32.
16518         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
16519         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
16520         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
16521         GNU_USER_DYNAMIC_LINKER32.
16522         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
16523         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16524         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16525         GNU_USER_DYNAMIC_LINKER.
16526         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16527         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16528         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
16529         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16530         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16531         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
16532         GNU_USER_DYNAMIC_LINKER32.
16533         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16534         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
16535         GNU_USER_DYNAMIC_LINKER.
16536         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
16537         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16538         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16539         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
16540         GNU_USER_DYNAMIC_LINKER64.
16541         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
16542         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16543         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16544         GNU_USER_DYNAMIC_LINKER.
16545         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
16546         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16547         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16548         GNU_USER_DYNAMIC_LINKER.
16549         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
16550         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16551         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16552         GNU_USER_DYNAMIC_LINKER32.
16553         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16554         GNU_USER_DYNAMIC_LINKER64.
16555         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16556         GNU_USER_DYNAMIC_LINKER64.
16557         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
16558         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16559         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
16560         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16561         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16562
16563 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
16564
16565         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
16566         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
16567         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
16568         GNU_USER_DYNAMIC_LINKER.
16569         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16570         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
16571         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
16572         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
16573         GNU_USER_DYNAMIC_LINKER64.
16574         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16575         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
16576         GNU_USER_LINK_EMULATION.
16577         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
16578         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
16579         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
16580         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
16581         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
16582         CPP_SPEC, CC1_SPEC): Remove.
16583         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
16584         (GNU_USER_DYNAMIC_LINKER): Define.
16585         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
16586         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
16587         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
16588         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
16589         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
16590         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
16591         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16592         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
16593         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
16594         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
16595         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
16596         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
16597         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
16598         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
16599         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
16600         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16601         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16602         GNU_USER_DYNAMIC_LINKER.
16603         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16604         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
16605         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16606         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
16607         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16608         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
16609         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
16610         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
16611         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
16612         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
16613
16614 2011-04-11  Kai Tietz  <ktietz@redhat.com>
16615
16616         PR target/9601
16617         PR target/11772
16618         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
16619         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
16620         comment.
16621         (ix86_is_msabi_thiscall): Removed.
16622         (ix86_is_type_thiscall): Likewise.
16623         (ix86_get_callcvt): New function.
16624         (ix86_comp_type_attributes): Simplify check.
16625         (ix86_function_regparm): Use ix86_get_callcvt for calling
16626         convention attribute checks.
16627         (ix86_return_pops_args): Likewise.
16628         (ix86_static_chain): Likewise.
16629         (x86_this_parameter): Likewise.
16630         (x86_output_mi_thunk): Likewise.
16631         (ix86_function_type_abi): Optimize check for types without attributes.
16632         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
16633         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
16634         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
16635         by flag-values.
16636         (IX86_BASE_CALLCVT): Helper macro.
16637         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16638         Use ix86_get_callcvt for calling convention attribute checks and avoid
16639         symbol-decoration for stdcall in TARGET_RTD case.
16640         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16641         Likewise.
16642         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
16643         for declaration.
16644
16645 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
16646
16647         * config/i386/sse.md (VI_128): New mode iterator.
16648         (VI12_128): Rename from SSEMODE12.
16649         (VI14_128): Rename from SSEMODE14.
16650         (VI124_128): New mode iterator.
16651         (VI24_128): Rename from SSEMODE248.
16652         (VI248_128): Rename from SSEMODE248.
16653         (SSEMODE124C8): Remove.
16654         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16655         (*sse2_<plusminus_insn><mode>3): Merge with
16656         *avx_<plusminus_insn><mode>3.
16657         (*mulv8hi3): Merge with *avx_mulv8hi3.
16658         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
16659         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
16660         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
16661         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
16662         (ashr<mode>3): Merge with *avx_ashr<mode>3.
16663         (lshr<mode>3): Merge with *avx_lshr<mode>3.
16664         (ashl<mode>3): Merge with *avx_ashl<mode>3.
16665         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
16666         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
16667         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16668         (*<smaxmin:code>v8hi3): Ditto.
16669         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
16670         (*<smaxmin:code>v16qi3): Ditto.
16671         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
16672         (*sse2_eq<mode>3): Ditto.
16673         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
16674         (*sse2_gt<mode>3): Ditto.
16675         (vcondv2di): Split out of vcond<mode>.
16676         (vconduv2di): Split out of vcondu<mode>.
16677
16678 2011-04-11  Richard Guenther  <rguenther@suse.de>
16679
16680         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
16681         before calling tree_low_cst.
16682
16683 2011-04-11  Richard Guenther  <rguenther@suse.de>
16684
16685         * stor-layout.c (layout_type): Compute all array index size operations
16686         in the original type.
16687         (initialize_sizetypes): Add comment.
16688         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
16689
16690 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
16691
16692         * common.opt (Tbss=, Tdata=, Ttext=): New options.
16693
16694 2011-04-11  Martin Jambor  <mjambor@suse.cz>
16695
16696         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
16697         of cgraph_node, handle NULL return value.
16698         (cgraph_global_info): Likewise.
16699         (cgraph_rtl_info): Likewise.
16700         * tree-inline.c (estimate_num_insns): Likewise.
16701         * gimplify.c (unshare_body): Likewise.
16702         (unvisit_body): Likewise.
16703         (gimplify_body): Likewise.
16704         * predict.c (optimize_function_for_size_p): Likewise.
16705         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
16706         (call_may_clobber_ref_p_1): Likewise.
16707         * varasm.c (function_section_1): Likewise.
16708         (assemble_start_function): Likewise.
16709
16710 2011-04-11  Martin Jambor  <mjambor@suse.cz>
16711
16712         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
16713         of cgraph_node.
16714         * final.c (rest_of_clean_state): Likewise.
16715         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
16716         * passes.c (pass_init_dump_file): Likewise.
16717         (execute_all_ipa_transforms): Likewise.
16718         (function_called_by_processed_nodes_p): Likewise.
16719         * predict.c (maybe_hot_frequency_p): Likewise.
16720         (probably_never_executed_bb_p): Likewise.
16721         (compute_function_frequency): Likewise.
16722         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
16723         (unnest_nesting_tree_1): Likewise.
16724         (lower_nested_functions): Likewise.
16725         * tree-optimize.c (execute_fixup_cfg): Likewise.
16726         (tree_rest_of_compilation): Likewise.
16727         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
16728         * tree-sra.c (ipa_early_sra): Likewise.
16729         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16730         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
16731         * ipa.c (record_cdtor_fn): Likewise.
16732         * ipa-inline.c (cgraph_early_inlining): Likewise.
16733         (compute_inline_parameters_for_current): Likewise.
16734         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16735         * ipa-pure-const.c (local_pure_const): Likewise.
16736         * ipa-split.c (split_function): Likewise.
16737         (execute_split_functions): Likewise.
16738         * cgraphbuild.c (build_cgraph_edges): Likewise.
16739         (rebuild_cgraph_edges): Likewise.
16740         (cgraph_rebuild_references): Likewise.
16741         (remove_cgraph_callee_edges): Likewise.
16742         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
16743         (verify_cgraph_node): Likewise.
16744         (cgraph_analyze_functions): Likewise.
16745         (cgraph_preserve_function_body_p): Likewise.
16746         (save_inline_function_body): Likewise.
16747         (save_inline_function_body): Likewise.
16748         * tree-inline.c (copy_bb): Likewise.
16749         (optimize_inline_calls): Likewise.
16750
16751 2011-04-11  Martin Jambor  <mjambor@suse.cz>
16752
16753         PR tree-optimization/48195
16754         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
16755         ipa_check_create_edge_args.
16756         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
16757         ipa_check_create_edge_args.
16758         * ipa-inline.c (inline_generate_summary): Do not call
16759         ipa_check_create_node_params and ipa_check_create_edge_args.
16760         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
16761         ipa_check_create_edge_args.
16762
16763 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
16764
16765         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
16766         instead of loop.
16767         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16768         * function.c (record_hard_reg_sets): Likewise.
16769         * ira.c (compute_regs_asm_clobbered): Likewise.
16770         * sched-deps.c (sched_analyze_1): Likewise.
16771         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
16772
16773 2011-04-09  Xinliang David Li  <davidxl@google.com>
16774
16775         PR tree-optimization/PR48484
16776         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
16777         has_valid_pred lazily
16778
16779 2011-04-09  Duncan Sands  <baldrick@free.fr>
16780
16781         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
16782
16783 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
16784
16785         * combine.c (combine_validate_cost): Adjust comments.  Set registered
16786         cost of I0 to zero at the end, if any.
16787
16788 2011-04-08  Xinliang David Li  <davidxl@google.com>
16789
16790         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
16791         to insane profile data.
16792
16793 2011-04-08  Xinliang David Li  <davidxl@google.com>
16794
16795         * ipa-cp.c (ipcp_update_profiling): Correct
16796          negative scale factor due to insane profile data.
16797
16798 2011-04-08  Xinliang David Li  <davidxl@google.com>
16799
16800         * final.c (dump_basic_block_info): New function.
16801         (final): Dump basic block.
16802         (final_scan_insn): Remove old dump.
16803
16804 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
16805
16806         PR target/47829
16807         * config.gcc (i386-*-freebsd): Disable unwind table generation for
16808         crtbegin/crtend.
16809
16810 2011-04-08  Michael Matz  <matz@suse.de>
16811
16812         PR middle-end/48389
16813         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
16814         functions.
16815         (rebuild_jump_labels): Call rebuild_jump_labels_1.
16816         * rtl.h (rebuild_jump_labels_chain): Declare.
16817         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
16818         insns inserted on edges.
16819
16820 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
16821
16822         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
16823         * config/arm/arm-arches.def: New.
16824         * config/arm/arm-opts.h: New.
16825         * config/arm/genopt.sh: New.
16826         * config/arm/arm-tables.opt: New (generated).
16827         * config/arm/arm.c (arm_handle_option, arm_target_help,
16828         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
16829         (all_architectures): Get most table contents from arm-arches.def.
16830         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
16831         arm_selected_tune here.
16832         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
16833         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
16834         (march=, mcpu=, mtune=): Use Enum and Var.
16835         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
16836         (arm.o): Update dependencies.
16837
16838 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
16839
16840         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
16841         of header_file.
16842         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
16843         (write_typed_alloc_defns): Likewise.
16844         (main): Calls write_typed_alloc_defns with output_header.
16845
16846 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
16847
16848         PR inline-asm/48435
16849         * ira-color.c (setup_profitable_hard_regs): Add comments.
16850         Don't take prohibited hard regs into account.
16851         (setup_conflict_profitable_regs): Rename to
16852         get_conflict_profitable_regs.
16853         (check_hard_reg_p): Check prohibited hard regs.
16854
16855 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
16856
16857         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
16858         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
16859         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
16860
16861 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16862
16863         PR target/48366
16864         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
16865         move from floating point to shift amount register.
16866         (emit_move_sequence): Remove secondary reload support for floating
16867         point to shift amount amount register copies.
16868         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
16869         amount register copies.
16870         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
16871         register, return false if mode isn't a scalar integer mode.
16872         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
16873
16874 2011-04-08  Richard Guenther  <rguenther@suse.de>
16875
16876         * gimple.c (gimple_call_flags): Remove kludge.
16877
16878 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16879
16880         * sel-sched.c (sel_region_init): Move call to
16881         sel_setup_region_sched_flags after setup_current_loop_nest.
16882
16883 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
16884
16885         PR rtl-optimization/48272
16886         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
16887         init_insn_reg_pressure_info.  Adjust a caller.
16888         * sched-int.h (init_insn_reg_pressure_info): Declare.
16889         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
16890         when sched-pressure is enabled.
16891
16892 2011-04-08  Richard Guenther  <rguenther@suse.de>
16893
16894         * gimple.c (gimple_set_modified): Do not queue calls to
16895         MODIFIED_NORETURN_CALLS here ...
16896         * tree-ssa-operands.c (update_stmt_operands): ... but here.
16897
16898 2011-04-08  Richard Guenther  <rguenther@suse.de>
16899
16900         PR lto/48467
16901         * toplev.c (lang_dependent_init): Do not open asm_out_file
16902         in WPA mode, nor perform debug machinery initialization.
16903         (finalize): Do not unlink asm_out_file in WPA mode.
16904
16905 2011-04-08  Richard Guenther  <rguenther@suse.de>
16906
16907         * gimple.h (gimple_call_fntype): New function.
16908         (gimple_call_return_type): Use it.
16909         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
16910         * gimple-low.c (gimple_check_call_args): Likewise.
16911         * gimple.c (gimple_call_flags): Likewise.
16912         (gimple_call_arg_flags): Likewise.
16913         (gimple_call_return_flags): Likewise.
16914         * tree-cfg.c (verify_gimple_call): Likewise.
16915         (do_warn_unused_result): Likewise.
16916         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
16917         * value-prof.c (gimple_ic_transform): Fix fndecl check.
16918
16919 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
16920
16921         PR rtl-optimization/48235
16922         * sel-sched.c (code_motion_process_successors): Recompute the last
16923         insn in basic block if control flow changed.
16924         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
16925         Update condition for ilist_remove.
16926
16927 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16928
16929         PR rtl-optimization/48302
16930         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
16931         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
16932         it to record added preheader blocks.
16933         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
16934         on to sel_add_loop_preheaders.
16935         (sel_region_init): Move call to setup_current_loop_nest after
16936         sel_init_bbs.
16937
16938 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16939
16940         PR target/48273
16941         * cfgloop.h (loop_has_exit_edges): New helper.
16942         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
16943         non-clonable.
16944         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
16945         that have no exit edges.
16946
16947 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16948
16949         PR rtl-optimization/48442
16950         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
16951         all callers.  Adjust assert.
16952
16953 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
16954
16955         PR tree-optimization/48377
16956         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
16957         is_packed to true even for types with smaller TYPE_ALIGN than
16958         TYPE_SIZE.
16959
16960 2011-04-08  Richard Guenther  <rguenther@suse.de>
16961
16962         PR bootstrap/48513
16963         * doc/tm.texi: Re-generate.
16964
16965 2011-04-08  Wei Guozhi  <carrot@google.com>
16966
16967         PR target/47855
16968         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
16969         * config/arm/arm.c (arm_attr_length_push_multi): New function.
16970         * config/arm/arm.md (*push_multi): Change the length computation to
16971         call a C function.
16972
16973 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
16974
16975         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
16976         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
16977         * doc/tm.texi: Regenerate.
16978         * system.h (ASM_OUTPUT_BSS): Poison.
16979         * varasm.c (asm_output_bss): Remove function.
16980         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
16981
16982         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
16983         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
16984         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
16985         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
16986         Likewise.
16987         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
16988         Likewise.
16989         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
16990         Likewise.
16991         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
16992
16993 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
16994
16995         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
16996         EnumValue lines.
16997
16998 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
16999
17000         * config/m68k/m68k.c (m68k_handle_option): Don't handle
17001         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
17002         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
17003         OPT_mcpu32.
17004         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17005         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
17006         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
17007         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
17008         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
17009         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
17010         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17011         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
17012         options.  Don't map other m68k options manually.  Don't handle
17013         old-style options as canonical.
17014         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17015         * doc/install.texi (m68k-*-*): Document binutils version requirement.
17016
17017 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
17018
17019         * basic-block.h (force_nonfallthru): Move to...
17020         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
17021         (force_nonfallthru): ...here.
17022         * cfghooks.c (force_nonfallthru): New function.
17023         * cfgrtl.c (force_nonfallthru): Rename into...
17024         (rtl_force_nonfallthru): ...this.
17025         (commit_one_edge_insertion): Do not set AUX field.
17026         (commit_edge_insertions): Do not discover new basic blocks.
17027         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
17028         (cfg_layout_rtl_cfg_hooks): Likewise.
17029         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
17030         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
17031         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
17032
17033 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
17034
17035         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17036         Remove macros.
17037
17038 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
17039
17040         * config/i386/sse.md: Update copyright year.
17041         (avxcvtvecmode): Remove.
17042         (sse_movhlps): Merge with *avx_movhlps.
17043         (sse_movlhps): Merge with *avx_movlhps.
17044         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
17045         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
17046         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
17047         (sse_loadhps): Merge with *avx_loadhps.
17048         (sse_storelps): Merge with *avx_storelps.
17049         (sse_loadlps): Merge with *avx_loadlps.
17050         (sse_movss): Merge with *avx_movss.
17051         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
17052         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
17053         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
17054         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
17055         (vec_set<mode>_0): Ditto.
17056         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
17057         (sse4_1_insertps): Merge with *avx_insertps.
17058         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
17059         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
17060         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
17061         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
17062         (sse2_storehpd): Merge with *avx_storehpd.
17063         (sse2_loadhpd): Merge with *avx_loadhpd.
17064         (sse2_loadlpd): Merge with *avx_loadlpd.
17065         (sse2_movsd): Merge with *avx_movsd.
17066         (*vec_concatv2df): Merge with *vec_concatv2df.
17067
17068 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
17069
17070         PR debug/48343
17071         * combine.c (combine_instructions): Add last_combined_insn,
17072         update it if insn is after it, pass it to all try_combine calls.
17073         (try_combine): Add last_combined_insn parameter, pass it instead of
17074         i3 to propagate_for_debug.
17075
17076 2011-04-07  Nick Clifton  <nickc@redhat.com>
17077
17078         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
17079         to handle MDR <-> data register transfers.
17080         (movhi_internal): Likewise.
17081
17082 2011-04-07  Alan Modra  <amodra@gmail.com>
17083
17084         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
17085         previous stack info.
17086
17087 2011-04-07  Tom de Vries  <tom@codesourcery.com>
17088
17089         PR target/43920
17090         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
17091         flow_find_cross_jump.  Swap variables to implement backward replacement.
17092         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
17093
17094 2011-04-07  Tom de Vries  <tom@codesourcery.com>
17095
17096         PR target/43920
17097         * cfgcleanup.c (walk_to_nondebug_insn): New function.
17098         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
17099         and bb2.
17100         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
17101         src1 or src2.  Redirect edges to the last basic block.  Update
17102         frequency and count on multiple basic blocks in case of fallthru.
17103
17104 2011-04-07  Tom de Vries  <tom@codesourcery.com>
17105
17106         PR target/43920
17107         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
17108         function.
17109         (old_insns_match_p): Change return type.  Replace return false/true
17110         with return dir_none/dir_both.  Use can_replace_by.
17111         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
17112         direction from dir_p.  Register replacement direction in dir, last_dir
17113         and afterlast_dir.  Handle new return type of old_insns_match_p using
17114         merge_dir.  Return replacement direction in dir_p.
17115         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
17116         return type of old_insns_match_p.
17117         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
17118         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
17119         flow_find_cross_jump.
17120         * basic-block.h (enum replace_direction): New type.
17121         (flow_find_cross_jump): Add parameter to declaration.
17122
17123 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
17124
17125         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
17126         (AVXMODEDCVTPS2DQ): Ditto.
17127         (VEC_FLOAT_MODE): Ditto.
17128         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
17129         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17130         (<any_logic:code><mode>3): Use VF mode iterator.
17131         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
17132         Use VF mode iterator.
17133         (copysign<mode>3): Use VF mode iterator.
17134         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
17135         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17136         (*<any_logic:code><MODEF:mode>3): Merge with
17137         *avx_<any_logic:code><MODEF:mode>3.
17138         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
17139         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
17140         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
17141         (avx_cvtdq2ps<avxmodesuffix>): Remove.
17142         (sse2_cvtdq2ps): Use %v modifier.
17143         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
17144         (avx_cvtps2dq<avxmodesuffix>): Remove.
17145         (sse2_cvtps2dq): Use %v modifier.
17146         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
17147         (avx_cvttps2dq<avxmodesuffix>): Remove.
17148         (sse2_cvttps2dq): Use %v modifier.
17149         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
17150         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
17151         (sse2_cvtsd2siq): Fix insn template.
17152         (sse2_cvtsd2siq_2): Ditto.
17153         (sse2_cvttsd2siq): Ditto.
17154         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
17155         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
17156
17157 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
17158
17159         * gcov-io.c: Use GCC Runtime Library Exception.
17160
17161 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
17162
17163         PR debug/48466
17164         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
17165         as base_reg whatever register reg has been eliminated to, instead
17166         of hardcoding STACK_POINTER_REGNUM.
17167
17168 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
17169
17170         * doc/tm.texi.in: Document C target hooks as separate from general
17171         target hooks.
17172         * doc/tm.texi: Regenerate.
17173         * genhooks.c (struct hook_desc): Add docname field.
17174         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
17175         docname field.
17176         (hook_array): Include c-target.def.
17177         (emit_documentation): Use docname field in output.
17178         (emit_init_macros): Take docname argument.  Only emit definitions
17179         for hooks matching docname.
17180         (main): Expect additional arguments in all cases.  Pass argument
17181         to emit_init_macros.
17182         * target.def: Move initial macro definitions and comments to
17183         target-hooks-macros.h.
17184         (gcc_targetcm): Move to c-family/c-target.def.
17185         * target.h (targetcm): Move declaration to c-family/c-target.h.
17186         * targhooks.c (default_handle_c_option): Move to
17187         c-family/c-opts.c.
17188         * targhooks.h (default_handle_c_option): Move declaration to
17189         c-family/c-common.h.
17190         * target-hooks-macros.h: New file.
17191         * config.gcc (target_has_targetcm): Define and use to add to
17192         c_target_objs and cxx_target_objs.
17193         * config/default-c.c: New file.
17194         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
17195         of target.h and target-def.h.
17196         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
17197         (darwin_objc_construct_string, darwin_cfstring_ref_p,
17198         darwin_check_cfstring_format_arg): Make static.
17199         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17200         TARGET_STRING_OBJECT_REF_TYPE_P,
17201         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
17202         * config/darwin-protos.h (darwin_objc_construct_string,
17203         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
17204         declare.
17205         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17206         TARGET_STRING_OBJECT_REF_TYPE_P,
17207         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
17208         * config/t-darwin (darwin-c.o): Update dependencies.
17209         * system.h (TARGET_HAS_TARGETCM): Poison.
17210         * Makefile.in (TARGET_H): Update.
17211         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
17212         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
17213         (default-c.o): New target.
17214         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
17215         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
17216         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
17217         c-target.def.
17218         (build/genhooks.o): Update dependencies.
17219
17220 2011-04-06  Richard Guenther  <rguenther@suse.de>
17221
17222         * ipa-inline.c (enum inlining_mode): Remove.
17223         (cgraph_flatten): Use some other token.
17224         (cgraph_edge_early_inlinable_p): New function, split out from ...
17225         (cgraph_perform_always_inlining): New function, split out from ...
17226         (cgraph_decide_inlining_incrementally): ... here.
17227         (cgraph_mark_inline_edge): Adjust.
17228         (cgraph_early_inlining): Re-structure.
17229         (pass_early_inline): Require SSA form.
17230
17231 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
17232             Julian Brown  <julian@codesourcery.com>
17233             Mark Shinwell  <shinwell@codesourcery.com>
17234
17235         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
17236         LO_REGS only for Thumb-1.
17237         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
17238         be used in short instructions when optimising for size on Thumb-2.
17239
17240 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
17241
17242         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
17243         associated with user returns to be preserved.
17244
17245 2011-04-06  Tristan Gingold  <gingold@adacore.com>
17246
17247         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
17248         symbol_queue_size, DBXOUT_DECR_NESTING,
17249         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
17250         if XCOFF_DEBUGGING_INFO.
17251
17252 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
17253
17254         * config/i386/i386.md (attribute isa): New.
17255         (attribute enabled): New.
17256         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
17257         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
17258         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
17259         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
17260         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
17261         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17262         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
17263         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
17264
17265         * config/i386/sse.md (VF): New mode iterator.
17266         (VF1): Ditto.
17267         (VF2): Ditto.
17268         (VF_128): Ditto.
17269         (SSEMODEF4): Remove.
17270         (attribute sse): Handle V8SF and V4DF modes.
17271         (<absneg:code><mode>2): Use VF mode iterator.
17272         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
17273         mode iterator.
17274         (<plusminus_insn><mode>3): Use VF mode iterator.
17275         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17276         Use VF mode iterator.
17277         (<sse>_vm<plusminus_insn><mode>3): Merge with
17278         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
17279         (mul<mode>3): Use VF mode iterator.
17280         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
17281         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
17282         mode iterator.
17283         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
17284         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
17285         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
17286         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
17287         mode iterator.
17288         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
17289         Use VF1 mode iterator.
17290         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
17291         (sqrt<VF2:mode>2): New expander.
17292         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
17293         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
17294         and sqrtv2df2.  Use VF mode iterator.
17295         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
17296         mode iterator.
17297         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
17298         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
17299         Use VF1 mode iterator.
17300         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
17301         (<smaxmin:code><mode>3): Use VF mode iterator.
17302         (*<smaxmin:code><mode>3_finite): Merge with
17303         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
17304         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17305         (<sse>_vm<smaxmin:code><mode>2): Merge with
17306         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
17307         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
17308         mode iterator.
17309         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
17310         mode iterator.
17311         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
17312         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
17313         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
17314         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
17315         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
17316         VF mode iterator.
17317         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
17318         Use VF_128 mode iterator.
17319         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
17320         mode iterator.
17321         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
17322         VF_128 mode iterator.
17323         (vcond<mode>): Use VF mode iterator.
17324         * config/i386/predicates.md (sse_comparison_operator): Merge with
17325         avx_comparison_float_operator.  Do not declare as special_predicate.
17326         * config/i386/i386.c (struct builtin_description): Update for renamed
17327         compare patterns.
17328         (ix86_expand_args_builtin): Ditto.
17329         (ix86_expand_sse_compare_mask): Ditto.
17330
17331 2011-04-06  Richard Guenther  <rguenther@suse.de>
17332
17333         * tree-inline.c (estimate_num_insns): For calls simply account
17334         for all passed arguments and a used return value.
17335
17336 2011-04-06  Richard Guenther  <rguenther@suse.de>
17337
17338         PR tree-optimization/47663
17339         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
17340         call_stmt_time fields.
17341         (cgraph_edge_inlinable_p): Declare.
17342         (cgraph_edge_recursive_p): New inline function.
17343         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
17344         (cgraph_clone_edge): Copy it.
17345         * ipa-inline.c (cgraph_estimate_edge_time): New function.
17346         Account for call stmt time.
17347         (cgraph_estimate_time_after_inlining): Take edge argument.
17348         (cgraph_estimate_edge_growth): Account call stmt size.
17349         (cgraph_estimate_size_after_inlining): Take edge argument.
17350         (cgraph_mark_inline_edge): Adjust.
17351         (cgraph_check_inline_limits): Likewise.
17352         (cgraph_recursive_inlining_p): Remove.
17353         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
17354         (cgraph_decide_recursive_inlining): Take edge argument and
17355         adjust.
17356         (cgraph_decide_inlining_of_small_functions): Do not avoid
17357         diags for recursive inlining here.
17358         (cgraph_flatten): Adjust.
17359         (cgraph_decide_inlining_incrementally): Likewise.
17360         (estimate_function_body_sizes): Remove call cost handling.
17361         (compute_inline_parameters): Initialize caller edge call costs.
17362         (cgraph_estimate_edge_growth): New function.
17363         (cgraph_estimate_growth): Use it.
17364         (cgraph_edge_badness): Likewise.
17365         (cgraph_check_inline_limits): Take an edge argument.
17366         (cgraph_decide_inlining_of_small_functions): Adjust.
17367         (cgraph_decide_inlining): Likewise.
17368         * tree-inline.c (estimate_num_insns): Only account for call
17369         return value if it is used.
17370         (expand_call_inline): Avoid diagnostics on recursive inline
17371         functions here.
17372         * lto-cgraph.c (lto_output_edge): Output edge call costs.
17373         (input_edge): Input edge call costs.
17374
17375 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17376
17377         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
17378
17379 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
17380
17381         * doc/invoke.texi (Spec Files): Fix typo.
17382
17383 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
17384
17385         * profile.c (branch_prob): Move declaration of local variable.  Remove
17386         obsolete ??? comment.  Expand the location explicitly instead of using
17387         the LOCATION_FILE and LOCATION_LINE macros.
17388
17389 2011-04-06  Wei Guozhi  <carrot@google.com>
17390
17391         PR target/47855
17392         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
17393         (arm_cond_branch): Likewise.
17394         (arm_cond_branch_reversed): Likewise.
17395         (arm_jump): Likewise.
17396         (push_multi): Likewise.
17397         * config/arm/constraints.md (Py): New constraint.
17398
17399 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
17400
17401         PR bootstrap/48471
17402         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
17403         Move these...
17404         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
17405         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
17406         #ifdef DBX_DEBUGGING_INFO.
17407
17408 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
17409
17410         PR bootstrap/48403
17411         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
17412         if old and new states differ.
17413
17414 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
17415
17416         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
17417         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
17418         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17419         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
17420         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
17421         mcfv4e): Use Alias.
17422         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
17423         ColdFire options to -mcpu= options.
17424
17425 2011-04-05  Jeff Law  <law@redhat.com>
17426
17427         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
17428         check if BB is a successor of LOOP->header and return
17429         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17430
17431 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
17432
17433         * cprop.c (struct reg_use): Remove.
17434         (reg_use_table): Make an array of RTX.
17435         (find_used_regs, constprop_register, local_cprop_pass,
17436         bypass_block): Simplify users of reg_use_table.
17437         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
17438         on one of the uses found by find_used_regs.
17439
17440 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
17441
17442         PR bootstrap/48469
17443         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
17444         declaration.
17445
17446 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
17447
17448         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
17449         as an rtx.
17450         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
17451
17452 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
17453
17454         PR middle-end/48441
17455         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
17456
17457 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
17458
17459         * combine.c: Include obstack.h.
17460         (struct insn_link): Define.
17461         (uid_log_links): Adjust type.
17462         (FOR_EACH_LOG_LINK): New macro.
17463         (insn_link_obstack): Declare.
17464         (alloc_insn_link): Define.
17465         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
17466         type of link variables.
17467         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
17468         (try_combine, record_promoted_values, distribute_notes): Likewise.
17469         (distribute_links): Likewise.  Tweak prototype.
17470         (clear_log_links): Delete.
17471         (adjust_for_new_dest): Call alloc_insn_link.
17472         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
17473
17474 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
17475
17476         * gcse.c (modify_mem_list): Convert to an array of VECs.
17477         (canon_modify_mem_list, compute_transp): Tweak formatting.
17478         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
17479         (load_killed_in_block_p): Likewise.
17480         (record_last_mem_set_info): Likewise.
17481         (clear_modify_mem_tables): Likewise.
17482
17483 2011-04-05  Tom de Vries  <tom@codesourcery.com>
17484
17485         PR middle-end/48461
17486         * function.c (emit_use_return_register_into_block): Only define if
17487         HAVE_return.
17488
17489 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
17490
17491         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
17492
17493 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
17494
17495         * config/rx/rx-opts.h: New.
17496         * config/rx/rx.c (rx_cpu_type): Remove.
17497         (rx_handle_option): Don't assert that global structures are in
17498         use.  Access variables via opts pointer.  Defer most handling of
17499         OPT_mint_register_.  Use error_at.
17500         (rx_option_override): Handle deferred OPT_mint_register_ here.
17501         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
17502         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
17503         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
17504         (rx_cpu_types): New Enum and EnumValue entries.
17505         (mint-register=): Use Defer and use Var accordingly.
17506
17507 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
17508
17509         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
17510         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
17511         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
17512         Move these...
17513         (debug_free_queue, debug_nesting, symbol_queue_index):
17514         ...and these...
17515         * dbxout.c: ...to here.  Make static.
17516
17517 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
17518
17519         * gcse.c (modify_pair): Define.  Define a VEC of it.
17520         (canon_modify_mem_list): Convert to an array of VECs.
17521         (free_insn_expr_list_list): Delete.
17522         (clear_modify_mem_tables): Call VEC_free instead.
17523         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
17524         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
17525         (canon_list_insert, compute_transp): Likewise.
17526
17527 2011-04-05  Tom de Vries  <tom@codesourcery.com>
17528
17529         PR target/43920
17530         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
17531         for size.
17532
17533 2011-04-05  Tom de Vries  <tom@codesourcery.com>
17534
17535         PR target/43920
17536         * function.c (emit_use_return_register_into_block): New function.
17537         (thread_prologue_and_epilogue_insns): Use
17538         emit_use_return_register_into_block.
17539
17540 2011-04-05  Tom de Vries  <tom@codesourcery.com>
17541
17542         PR target/43920
17543         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
17544         insn.
17545
17546 2011-04-05  Tom de Vries  <tom@codesourcery.com>
17547
17548         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
17549
17550 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
17551
17552         * config/arm/arm.md (define_constants for unspec): Replace with
17553         define_c_enum.
17554         (define_constants for unspecv): Replace with define_c_enum.
17555         * config/arm/neon.md (define_constants for unspec): Replace with
17556         define_c_enum.
17557
17558 2011-04-04  Richard Henderson  <rth@redhat.com>
17559
17560         PR bootstrap/48400
17561         * dwarf2out.c (output_line_info): Always emit line info from
17562         at least one section.
17563         (dwarf2out_init): Create text_section_line_info here ...
17564         (set_cur_line_info_table): ... not here.
17565
17566 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
17567
17568         PR target/48380
17569         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
17570         not called.
17571
17572         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
17573
17574 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
17575
17576         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
17577         (expr_equiv_p): Remove.
17578         (insert_set_in_table): Look at <dest, src> pair instead of expr.
17579         (hash_scan_set): Update call to insert_set_in_table.
17580         (dump_hash_table): Dump <dest, src> pair.
17581         (lookup_set): Simplify.  Lookup <dest, src> pair.
17582         (compute_transp): Remove, fold heavily simplified code into...
17583         (compute_local_properties): ...here.  Expect COMP and TRANSP
17584         unconditionally.
17585         (find_avail_set): Take set directly from struct expr.
17586         (find_bypass-set): Likewise.
17587         (bypass_block): Likewise.
17588         (cprop_insn): Likewise.  Remove redundant INSN_P test.
17589
17590         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
17591         checks on form of COND from find_implicit_sets to here.
17592         (find_implicit_sets): Cleanup control flow. Split critical edges
17593         if it exposes implicit sets.  Allocate/resize implicit_sets as
17594         necessary.
17595         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
17596         changed something.  Run df_analyze after find_implicit_sets if any
17597         edges were split.  Do not allocate implicit_sets here.
17598
17599         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
17600         (gcse_obstack): Renamed to cprop_obstack.
17601         (GNEW, GNEWVEC, GNEWVAR): Remove.
17602         (gmalloc): Remove.
17603         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
17604         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
17605         (gcse_alloc): Likewise, and rename to cprop_alloc.
17606         (alloc_gcse_men, free_gcse_mem): Remove.
17607         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
17608         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
17609         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
17610
17611         * cprop.c (oprs_not_set_p): Remove.
17612         (mark_set, mark_clobber): Remove.
17613         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
17614         (reg_not_set_p): New function.
17615         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
17616         (cprop_insn): Likewise.
17617         (cprop_jump): Use FOR_EACH_EDGE.
17618
17619 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
17620
17621         PR bootstrap/48403
17622         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
17623         (rank_for_schedule): Use scheduled_insns vector instead of
17624         last_scheduled_insn.
17625         (ok_for_early_queue_removal): Likewise.
17626         (queue_to_ready): Search forward in nonscheduled_insns_begin if
17627         we have a dbg_cnt.
17628         (choose_ready): Likewise.
17629         (commit_schedule): Use VEC_iterate.
17630         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
17631         a dbg_cnt, use it and ensure the first insn is in the ready list.
17632         (haifa_sched_init): Allocate scheduled_insns.
17633         (sched_extend_ready_list): Don't allocate it; reserve space.
17634         (haifa_sched_finish): Free it.
17635
17636 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
17637
17638         * optc-gen.awk: Always remove type from Variable entry before
17639         recording in var_seen.
17640
17641 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
17642
17643         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
17644         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
17645         call to tidy_fallthru_edges.
17646
17647 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
17648
17649         * doc/options.texi (ToLower): Document.
17650         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
17651         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
17652         * opts.h (cl_option): Add cl_tolower field.
17653         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
17654         arguments with lowercase strings.
17655         * config/rx/rx.opt (mcpu=): Add ToLower.
17656         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
17657         argument.
17658
17659 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
17660
17661         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
17662
17663 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
17664
17665         * config/vax/vax.c: Include reload.h.
17666
17667 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
17668
17669         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
17670         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17671         (sparc_preferred_reload_class): New function.
17672
17673 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
17674
17675         PR debug/48401
17676         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17677         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
17678
17679 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
17680
17681         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
17682         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
17683
17684 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
17685
17686         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
17687         (ASM_OUTPUT_ALIGNED_BSS): Define.
17688
17689 2011-04-03  Michael Matz  <matz@suse.de>
17690
17691         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
17692         and next_slot members.
17693         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
17694         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
17695         (lto_streamer_cache_append): Declare.
17696         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
17697         unsigned index, remove offset parameter, ensure that we append
17698         or update existing entries.
17699         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
17700         parameter, update next_slot for append.
17701         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
17702         parameter.
17703         (lto_streamer_cache_insert_at): Likewise.
17704         (lto_streamer_cache_append): New function.
17705         (lto_streamer_cache_lookup): Use unsigned index.
17706         (lto_streamer_cache_get): Likewise.
17707         (lto_record_common_node): Don't test tree_node_can_be_shared.
17708         (preload_common_node): Adjust call to lto_streamer_cache_insert.
17709         (lto_streamer_cache_delete): Don't free offsets member.
17710         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
17711         (lto_output_string_with_length): Use lto_output_data_stream.
17712         (lto_output_tree_header): Remove ix parameter, don't write it.
17713         (lto_output_builtin_tree): Likewise.
17714         (lto_write_tree): Adjust callers to above, don't track and write
17715         offset, write unsigned index.
17716         (output_unreferenced_globals): Don't emit all global vars.
17717         (write_global_references): Use unsigned indices.
17718         (lto_output_decl_state_refs): Likewise.
17719         (write_symbol): Likewise.
17720         * lto-streamer-in.c (lto_input_chain): Move earlier.
17721         (input_function): Use unsigned index.
17722         (input_alias_pairs): Don't read and then ignore all global vars.
17723         (lto_materialize_tree): Remove ix_p parameter, don't read index,
17724         don't pass it back, use lto_streamer_cache_append.
17725         (lto_register_var_decl_in_symtab): Use unsigned index.
17726         (lto_register_function_decl_in_symtab): Likewise.
17727         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
17728         index.
17729         (lto_get_builtin_tree): Don't read index, use
17730         lto_streamer_cache_append.
17731         (lto_read_tree): Adjust call to lto_materialize_tree.
17732
17733         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
17734         don't use function calls in arguments to MIN.
17735
17736         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
17737         twice.
17738
17739         * gimple.c (gimple_type_leader_entry): Mark deletable.
17740
17741 2011-04-03  Alan Modra  <amodra@gmail.com>
17742
17743         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
17744
17745 2011-04-03  Michael Matz  <matz@suse.de>
17746
17747         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
17748         an integer.
17749         * tree.h (tree_decl_non_common.vindex): Adjust comment.
17750
17751 2011-04-03  Michael Matz  <matz@suse.de>
17752
17753         * cgraphbuild.c (record_reference): Canonicalize constructor values.
17754         * gimple-fold.c (canonicalize_constructor_val): Accept being called
17755         without function context.
17756         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
17757         current_function_decl and cfun.
17758
17759 2011-04-03  Michael Matz  <matz@suse.de>
17760
17761         * tree.c (decl_init_priority_insert): Don't create entry for
17762         default priority.
17763         (decl_fini_priority_insert): Ditto.
17764         (fields_compatible_p, find_compatible_field): Remove.
17765         * tree.h (fields_compatible_p, find_compatible_field): Remove.
17766         * gimple.c (gimple_compare_field_offset): Adjust block comment.
17767
17768 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
17769
17770         * combine.c (try_combine): Remove useless local variable.
17771
17772 2011-04-03  Richard Guenther  <rguenther@suse.de>
17773             Ira Rosen  <ira.rosen@linaro.org>
17774
17775         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
17776         non-variable offsets and compare the remaining bases of the two
17777         accesses instead of looking for exact same data-ref.
17778
17779 2011-04-02  Kai Tietz  <ktietz@redhat.com>
17780
17781         PR target/48416
17782         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
17783
17784         * i386.c (ix86_is_msabi_thiscall): New helper function.
17785         (ix86_is_type_thiscall): New helper function.
17786         (ix86_comp_type_attributes): Handle thiscall for method-functions
17787         special.
17788         (init_cumulative_args): Likewise.
17789         (find_drap_reg): Likewise.
17790         (ix86_static_chain): Likewise.
17791         (x86_this_parameter): Likewise.
17792         (x86_output_mi_thunk): Likewise.
17793
17794 2011-04-01  Olivier Hainque  <hainque@adacore.com>
17795             Nicolas Setton  <setton@adacore.com>
17796             Eric Botcazou  <ebotcazou@adacore.com>
17797
17798         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
17799         (add_gnat_descriptive_type_attribute): New function.
17800         (gen_array_type_die): Call it.
17801         (gen_enumeration_type_die): Likewise.
17802         (gen_struct_or_union_type_die): Likewise.
17803         (modified_type_die): Likewise.
17804         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
17805         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
17806         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
17807
17808 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
17809
17810         PR bootstrap/48148
17811         * dwarf2out.c (resolve_addr): Don't call force_decl_die
17812         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
17813
17814         Revert:
17815         2011-03-17  Richard Guenther  <rguenther@suse.de>
17816
17817         PR bootstrap/48148
17818         * lto-cgraph.c (input_overwrite_node): Clear the abstract
17819         origin for decls in other ltrans units.
17820         (input_varpool_node): Likewise.
17821
17822 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
17823
17824         PR middle-end/48335
17825         * expr.c (expand_assignment): Handle all possibilities
17826         if TO_RTX is CONCAT.
17827         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
17828         (store_split_bit_field): If SUBREG_REG (op0) or
17829         op0 itself has smaller mode than word, return it
17830         for offset 0 and const0_rtx for out-of-bounds stores.
17831         If word is const0_rtx, skip it.
17832
17833 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
17834
17835         * config/h8300/h8300.c (print_operand_address): Rename to...
17836         (h8300_print_operand_address): ...this. Make static. Adjust comments.
17837         Call h8300_print_operand and h8300_print_operand_address instead of
17838         print_operand and print_operand_address. Declare.
17839         (print_operand): Renake to...
17840         (h8300_print_operand): ...this. Make static. Adjust comments.
17841         Call h8300_print_operand instead of print_operand. Declare.
17842         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
17843         (h8300_register_move_cost): Likewise.
17844         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
17845         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
17846         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
17847         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
17848         * config/h8300/h8300-protos.h (print_operand): Delete.
17849         (print_operand_address): Delete.
17850
17851 2011-04-01  Richard Henderson  <rth@redhat.com>
17852
17853         PR 48400
17854         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
17855         in strict mode before dwarf4.  Re-order tests to early out
17856         before switching sections.
17857
17858 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
17859
17860         * config/h8300/constraints.md: New file.
17861         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
17862         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
17863         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
17864         * config/h8300/predicates.md (bit_operand): Likewise.
17865         (incdec_operand): Use satisfies_constraint_M and
17866         satisfies_constraint_O.  Don't use C code block.
17867         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
17868         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
17869         (compute_mov_length): Use satisfies_constraint_G.
17870         (fix_bit_operand): Use satisfies_constraint_U.
17871         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
17872         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
17873         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
17874         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
17875         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
17876         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
17877         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17878         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
17879         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
17880         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
17881         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
17882         (EXTRA_MEMORY_CONSTRAINT): Delete.
17883
17884 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
17885             Michael Meissner  <meissner@linux.vnet.ibm.com>
17886
17887         PR target/48262
17888         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
17889         operands, as per the specifications.
17890
17891         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
17892         (vec_extract_evenv4sf): Ditto.
17893         (vec_extract_evenv8hi): Ditto.
17894         (vec_extract_evenv16qi): Ditto.
17895         (vec_extract_oddv4si): Ditto.
17896
17897 2011-03-31  Mark Wielaard  <mjw@redhat.com>
17898
17899         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
17900         high_pc attribute if the CU has no associated code. Only output
17901         DW_AT_entry_pc for CU if not generating strict dwarf and
17902         dwarf_version < 4.
17903
17904 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
17905
17906         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
17907         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
17908         out of ...
17909         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
17910         * final.c (final_start_function): Call the new function rather
17911         than using a NULL argument for dwarf2out_frame_debug.
17912
17913         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
17914         that contains the prologue.
17915
17916         * haifa-sched.c (queue_insn): New arg REASON.  All callers
17917         changed.  Print it in debugging output.
17918
17919         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
17920
17921         * sched-ebb.c (begin_schedule_ready): Remove second argument.
17922         Split most of the code into...
17923         (begin_move_insn): ... here.  New function.
17924         (ebb_sched_info): Add a pointer to it.
17925         * haifa-sched.c (scheduled_insns): New static variable.
17926         (sched_extend_ready_list): Allocate it.
17927         (schedule_block): Use it to record the order of scheduled insns.
17928         Perform RTL changes to move insns only after all scheduling
17929         decisions have been made.
17930         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
17931         begin_move_insn field.
17932         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
17933         * sched-int.h (struct haifa_sched_info): Remove second argument
17934         from begin_schedule_ready hook.  Add new member begin_move_insn.
17935         * sched-rgn.c (begin_schedule_ready): Remove second argument.
17936         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
17937
17938         * haifa-sched.c (prune_ready_list): New function, broken out of
17939         schedule_block.
17940         (schedule_block): Use it.
17941
17942 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17943
17944         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
17945
17946 2011-04-01  Kai Tietz  <ktietz@redhat.com>
17947
17948         * config.gcc (*-*-mingw*): Allow as option the
17949         posix threading model.
17950         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
17951         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
17952         definition.
17953         (CPP_SPEC): Add pthread/no-pthread handling.
17954         (LIB_SPEC): Likewise.
17955         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
17956         (LIB_SPEC): Likewise.
17957         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
17958         flag to pass -pthread option for shared libgcc build.
17959         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
17960         for shared libgcc build.
17961         * config/i386/t-mingw-pthread: New file.
17962         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
17963         New define to enable use of library pthread by default.
17964         * config/i386/mingw.opt (pthread): New driver option.
17965         (no-pthread): New driver option.
17966         * config/i386/cygming.opt: Make sure trailing empty line is retained.
17967         * config/i386/mingw-w64.opt: Likewise.
17968
17969 2011-04-01  Gary Funck  <gary@intrepid.com>
17970
17971         * c-decl.c (grokdeclarator): Fix formatting.
17972
17973 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
17974
17975         * expr.c (emit_block_move_via_movmem): Use n_generator_args
17976         instead of n_operands.
17977         (set_storage_via_setmem): Likewise.
17978         * optabs.c (maybe_gen_insn): Likewise.
17979         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
17980         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
17981         (mips_expand_builtin_direct): Likewise.
17982         * config/spu/spu.c (expand_builtin_args): Likewise.
17983
17984 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
17985
17986         * recog.h (insn_data_d): Add n_generator_args.
17987         * genoutput.c (data): Likewise.
17988         (output_insn_data): Print it.
17989         (max_opno, num_dups): Delete.
17990         (scan_operands): Just fill in "d->operand[...]".
17991         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
17992
17993 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
17994
17995         * gensupport.h (pattern_stats): New structure.
17996         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
17997         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
17998         (max_operand_1, max_operand_vec): Delete.
17999         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
18000
18001 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
18002
18003         * emit-rtl.c (emit_pattern_after_setloc): New function.
18004         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
18005         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
18006         (emit_pattern_after): New function.
18007         (emit_insn_after, emit_jump_insn_after): Call it.
18008         (emit_call_insn_after, emit_debug_insn_after): Likewise.
18009         (emit_pattern_before_setloc): New function.
18010         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
18011         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
18012         Likewise.
18013         (emit_pattern_before): New function.
18014         (emit_insn_before, emit_jump_insn_before): Call it.
18015         (emit_call_insn_before, emit_debug_insn_before): Likewise.
18016
18017 2011-03-31  Richard Henderson  <rth@redhat.com>
18018
18019         * dwarf2out.c (dw_separate_line_info_ref): Remove.
18020         (dw_separate_line_info_entry): Remove.
18021         (enum dw_line_info_opcode): New.
18022         (dw_line_info_entry): Use it.
18023         (dw_line_info_table, dw_line_info_table_p): New.
18024         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
18025         (line_info_table, line_info_label_num): Remove.
18026         (line_info_table_in_use): Remove.
18027         (separate_line_info_table): Remove.
18028         (separate_line_info_table_allocated): Remove.
18029         (separate_line_info_table_in_use): Remove.
18030         (LINE_INFO_TABLE_INCREMENT): Remove.
18031         (line_info_label_num): New.
18032         (cur_line_info_table): New.
18033         (text_section_line_info, cold_text_section_line_info): New.
18034         (separate_line_info): New.
18035         (SEPARATE_LINE_CODE_LABEL): Remove.
18036         (print_dwarf_line_table): Remove.
18037         (debug_dwarf): Don't dump it.
18038         (output_one_line_info_table): New.
18039         (output_line_info): Use it.
18040         (new_line_info_table): New.
18041         (set_cur_line_info_table): New.
18042         (dwarf2out_switch_text_section): Use it.
18043         (dwarf2out_begin_function): Likewise.
18044         (push_dw_line_info_entry): New.
18045         (dwarf2out_source_line): Rewrite for new line info tables.
18046         (dwarf2out_init): Remove dead initailizations.
18047
18048 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
18049
18050         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
18051         various flags.
18052         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
18053         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
18054         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
18055         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
18056         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
18057         * opt-functions.awk (flag_init, switch_bit_fields): New.
18058         (switch_flags): Don't handle flags moved to bit-fields.  Don't
18059         generate CL_MISSING_OK or CL_SAVE.
18060         * optc-gen.awk: Update to generate bit-field output as well as
18061         flags field.
18062         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
18063         bit-field instead of CL_REJECT_DRIVER flag.
18064         * opts-common.c (generate_canonical_option,
18065         decode_cmdline_option): Use bit-fields instead of CL_* flags.
18066         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
18067         instead of CL_REJECT_NEGATIVE flag.
18068         * toplev.c (print_switch_values): Use cl_report bit-field instead
18069         of CL_REPORT flag.
18070
18071 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
18072
18073         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
18074         a zero minimum index only if it is redundant.
18075
18076 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
18077
18078         PR rtl-optimization/48381
18079         * ira-color.c (assign_hard_reg): Use hard reg set intersection
18080         instead of ira_class_hard_reg_index for calculating conflicting
18081         hard registers.
18082
18083 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
18084
18085         * cprop.c: Clean up hash table building.
18086         (reg_avail_info): Remove.
18087         (oprs_available_p): Remove.
18088         (record_last_reg_set_info): Remove.
18089         (record_last_set_info): Remove.
18090         (reg_available_p): New function.
18091         (gcse_constant_p): Do not treat unfolded conditions as constants.
18092         (make_set_regs_unavailable): New function.
18093         (hash_scan_set): Simplify with new reg_available_p.
18094         (compute_hash_table_work): Traverse insns stream only once.
18095         Do not compute reg_avail_info. Traverse insns in reverse order.
18096         Record implicit sets after recording explicit sets from the block.
18097
18098 2011-03-31  Michael Matz  <matz@suse.de>
18099
18100         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
18101
18102 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
18103
18104         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
18105         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
18106         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18107         (h8300_mode_dependent_address_p): New function.
18108         (h8300_get_index): Make static.
18109
18110 2011-03-31  Jeff Law  <law@redhat.com>
18111
18112         * reload1.c (elimination_effects): Fix typo in recent change.
18113
18114         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
18115         typo potentially leading to null pointer dereference.
18116
18117         * caller-save.c (new_saved_hard_reg): Eliminate return value.
18118         (setup_save_areas): Corresponding changes to avoid useless
18119         assignments.
18120
18121         * jump.c (reversed_comparison_code_parts): Avoid successive return
18122         statements when REVERSE_CONDITION is defined.
18123
18124         * expr.c (expand_assignment): Avoid useless assignments.
18125         (expand_expr_real_1): Likewise.
18126         (expand_expr_real_2): Avoid useless statements.
18127
18128         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
18129
18130         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18131
18132         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
18133         statements.
18134
18135         * stmt.c (expand_expr_stmt): Avoid useless assignment.
18136
18137 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
18138
18139         PR target/47109
18140         * doc/tm.texi.in (TARGET_VERSION): Remove.
18141         * doc/tm.texi: Regenerate.
18142         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
18143         * collect2.c (main): Don't use TARGET_VERSION.
18144         * mips-tdump.c (main): Don't use TARGET_VERSION.
18145         * mips-tfile.c (main): Don't use TARGET_VERSION.
18146         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
18147         * config/rs6000/vxworksae.h: Remove.
18148         * config/alpha/alpha.h (TARGET_VERSION): Remove.
18149         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
18150         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
18151         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
18152         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18153         * config/arm/arm.h (TARGET_VERSION): Remove.
18154         * config/arm/coff.h (TARGET_VERSION): Remove.
18155         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
18156         * config/arm/elf.h (TARGET_VERSION): Remove.
18157         * config/arm/freebsd.h (TARGET_VERSION): Remove.
18158         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
18159         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
18160         * config/arm/pe.h (TARGET_VERSION): Remove.
18161         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
18162         * config/arm/semi.h (TARGET_VERSION): Remove.
18163         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
18164         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
18165         * config/arm/vxworks.h (TARGET_VERSION): Remove.
18166         * config/avr/avr.h (TARGET_VERSION): Remove.
18167         * config/bfin/bfin.h (TARGET_VERSION): Remove.
18168         * config/fr30/fr30.h (TARGET_VERSION): Remove.
18169         * config/frv/frv.h (TARGET_VERSION): Remove.
18170         * config/h8300/h8300.h (TARGET_VERSION): Remove.
18171         * config/i386/cygwin.h (TARGET_VERSION): Remove.
18172         * config/i386/darwin.h (TARGET_VERSION): Remove.
18173         * config/i386/darwin64.h (TARGET_VERSION): Remove.
18174         * config/i386/djgpp.h (TARGET_VERSION): Remove.
18175         * config/i386/freebsd.h (TARGET_VERSION): Remove.
18176         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
18177         * config/i386/gnu.h (TARGET_VERSION): Remove.
18178         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
18179         * config/i386/i386elf.h (TARGET_VERSION): Remove.
18180         * config/i386/linux.h (TARGET_VERSION): Remove.
18181         * config/i386/linux64.h (TARGET_VERSION): Remove.
18182         * config/i386/lynx.h (TARGET_VERSION): Remove.
18183         * config/i386/mingw32.h (TARGET_VERSION): Remove.
18184         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
18185         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
18186         * config/i386/netware.h (TARGET_VERSION): Remove.
18187         * config/i386/nto.h (TARGET_VERSION): Remove.
18188         * config/i386/openbsd.h (TARGET_VERSION): Remove.
18189         * config/i386/vxworks.h (TARGET_VERSION): Remove.
18190         * config/ia64/elf.h (TARGET_VERSION): Remove.
18191         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
18192         * config/ia64/hpux.h (TARGET_VERSION): Remove.
18193         * config/ia64/linux.h (TARGET_VERSION): Remove.
18194         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18195         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
18196         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18197         * config/lm32/lm32.h (TARGET_VERSION): Remove.
18198         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
18199         * config/m32c/m32c.h (TARGET_VERSION): Remove.
18200         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
18201         * config/m32r/m32r.h (TARGET_VERSION): Remove.
18202         * config/m68k/linux.h (TARGET_VERSION): Remove.
18203         * config/m68k/m68k.h (TARGET_VERSION): Remove.
18204         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
18205         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
18206         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
18207         * config/mep/mep.h (TARGET_VERSION): Remove.
18208         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
18209         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18210         * config/mips/iris6.h (MACHINE_TYPE): Remove.
18211         * config/mips/linux.h (TARGET_VERSION): Remove.
18212         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
18213         * config/mips/vxworks.h (TARGET_VERSION): Remove.
18214         * config/mmix/mmix.h (TARGET_VERSION): Remove.
18215         * config/mn10300/linux.h (TARGET_VERSION): Remove.
18216         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
18217         * config/pa/pa.h (TARGET_VERSION): Remove.
18218         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
18219         * config/picochip/picochip.h (TARGET_VERSION): Remove.
18220         * config/rs6000/aix.h (TARGET_VERSION): Remove.
18221         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
18222         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
18223         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
18224         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
18225         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
18226         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
18227         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
18228         * config/rs6000/linux.h (TARGET_VERSION): Remove.
18229         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
18230         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
18231         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
18232         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
18233         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
18234         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
18235         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
18236         * config/s390/linux.h (TARGET_VERSION): Remove.
18237         * config/s390/s390.h (TARGET_VERSION): Remove.
18238         * config/s390/tpf.h (TARGET_VERSION): Remove.
18239         * config/score/score.h (TARGET_VERSION): Remove.
18240         * config/sh/linux.h (TARGET_VERSION): Remove.
18241         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
18242         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
18243         * config/sh/sh.h (TARGET_VERSION): Remove.
18244         * config/sh/sh64.h (TARGET_VERSION): Remove.
18245         * config/sh/superh.h (TARGET_VERSION): Remove.
18246         * config/sh/vxworks.h (TARGET_VERSION): Remove.
18247         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
18248         * config/sparc/linux.h (TARGET_VERSION): Remove.
18249         * config/sparc/linux64.h (TARGET_VERSION): Remove.
18250         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
18251         TARGET_NAME32, TARGET_NAME): Remove.
18252         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
18253         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
18254         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
18255         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
18256         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
18257         * config/spu/spu.h (TARGET_VERSION): Remove.
18258         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
18259         * config/v850/v850.h (TARGET_VERSION): Remove.
18260         * config/vax/linux.h (TARGET_VERSION): Remove.
18261         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
18262         * config/xtensa/elf.h (TARGET_VERSION): Remove.
18263         * config/xtensa/linux.h (TARGET_VERSION): Remove.
18264
18265 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
18266
18267         PR target/48142
18268         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
18269         frame-related from frame-unrelated adjustments to the stack pointer.
18270
18271 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
18272
18273         * common.opt (fdebug-types-section): Move earlier.
18274         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
18275
18276 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
18277
18278         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
18279         var.
18280
18281 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
18282
18283         * tree.h (CASE_CHAIN): Define.
18284         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
18285         (gimple_redirect_edge_and_branch): Likewise.
18286
18287 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
18288
18289         PR middle-end/48367
18290         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
18291         calculation.
18292
18293 2011-03-30  Jeff Law  <law@redhat.com>
18294
18295         * PR bootstrap/48371
18296         * reload1.c (reload): Fix botch in last change.
18297
18298         * reload.h (struct reload): Fix typo introduced in last change.
18299
18300 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
18301
18302         * config/arm/arm.opt (mhard-float, msoft-float): Mark
18303         Undocumented.  Remove help text.
18304         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
18305         -mhard-float.
18306
18307 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
18308
18309         * doc/options.texi (NegativeAlias): Document.
18310         (Alias): Mention NegativeAlias.
18311         * opt-functions.awk: Handle NegativeAlias.
18312         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
18313         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
18314         * opts.h (CL_NEGATIVE_ALIAS): Define.
18315         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
18316         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
18317         OPT_mspe_.
18318         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
18319         Alias entries.
18320         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18321         mno-spe and mno-isel instead of mspe=no and -misel=no.
18322
18323 2011-03-29  Mark Wielaard  <mjw@redhat.com>
18324
18325         * common.opt (fdebug-types-section): New flag.
18326         * doc/invoke.texi: Document new -fno-debug-types-section flag.
18327         * dwarf2out.c (use_debug_types): New define.
18328         (struct die_struct): Mark die_id with GTY desc use_debug_types.
18329         (print_die): Guard output of type unit signatures using
18330         use_debug_types.
18331         (build_abbrev_table): Replace assert of dwarf_version >= 4
18332         with assert on use_debug_types.
18333         (size_of_die): Likewise.
18334         (unmark_dies): Likewise.
18335         (value_format): Decide AT_ref_external form on use_debug_types.
18336         (output_die): Replace dwarf_version version check guard with
18337         use_debug_types where appropriate.
18338         (modified_type_die): Likewise.
18339         (gen_reference_type_die): Likewise.
18340         (dwarf2out_start_source_file): Likewise.
18341         (dwarf2out_end_source_file): Likewise.
18342         (prune_unused_types_walk_attribs): Likewise.
18343         (dwarf2out_finish): Likewise.
18344
18345 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
18346
18347         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
18348
18349 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
18350
18351         PR rtl-optimization/48332
18352         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
18353         mode of input operand N and modeN to its actual mode.
18354
18355 2011-03-30  Jeff Law  <law@redhat.com>
18356
18357         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
18358         define accessor macro.
18359         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
18360         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
18361         (reg_equiv_init): Likewise.
18362         (reg_equivs_size): New variable.
18363         (reg_equiv_init_size): Remove.
18364         (allocate_initial_values): Move prototype to here from....
18365         * integrate.h (allocate_initial_values): Remove prototype.
18366         * integrate.c: Include reload.h.
18367         (allocate_initial_values): Corresponding changes.
18368         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
18369         (fix_reg_equiv_init, no_equiv): Corresponding changes.
18370         (update_equiv_regs): Corresponding changes.
18371         (ira): Corresponding changes.
18372         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
18373         (push_secondary_reload): Corresponding changes.
18374         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
18375         (make_memloc, find_reloads_address): Corresponding changes.
18376         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
18377         (find_reloads_address_1): Corresponding changes.
18378         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
18379         (refers_to_regno_for_reload_p): Corresponding changes.
18380         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
18381         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
18382         * reload1.c: Include ggc.h.
18383         (grow_reg_equivs): New function.
18384         (replace_pseudos_in, reload): Corresponding changes.
18385         (calculate_needs_all_insns, alter_regs): Corresponding changes.
18386         (eliminate_regs_1, elimination_effects): Corresponding changes.
18387         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
18388         (delete_output_reload): Likewise.
18389         * caller-save.c (mark_referenced_regs): Corresponding changes.
18390         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
18391         * frv/predicates.md (frv_load_operand): Corresponding changes.
18392         * microblaze/microblaze.c (double_memory_operand): Corresponding
18393         changes.
18394         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
18395         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
18396         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
18397         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
18398         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
18399         changes.
18400         * pa/pa.c (emit_move_sequence): Corresponding changes.
18401         * vax/vax.c (nonindexed_address_p): Corresponding changes.
18402
18403 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
18404
18405         PR target/47551
18406         * config/arm/arm.c (coproc_secondary_reload_class): Handle
18407         structure modes.  Don't check neon_vector_mem_operand for
18408         vector or structure modes.
18409
18410 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
18411             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18412
18413         PR target/43590
18414         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
18415         operand 1 and reshuffle the operands to match.
18416         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
18417
18418 2011-03-30  Christian Schüler  <cschueler@gmx.de>
18419
18420         PR driver/48208
18421         * config/c.opt (F): Added 'Driver' to -F option.
18422
18423         PR driver/48260
18424         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
18425           handler function.
18426         * config/darwin.opt: Added '-arch' option.
18427
18428 2011-03-30  Nick Clifton  <nickc@redhat.com>
18429
18430         * config/rx/rx.md: Add peepholes and patterns to combine
18431         extending loads and simple arithmetic instructions.
18432         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
18433         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
18434         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
18435         modes to use pre-decrement and post-increment addressing.
18436         (rx_is_restricted_memory_address): Add range checking of REG+INT
18437         addresses.
18438         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
18439         (rx_memory_move_cost): Adjust cost of stores.
18440         (rx_adjust_insn_length): New function.
18441
18442 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
18443
18444         PR c/48305
18445         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18446         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
18447         matching arg00/arg01 types.
18448
18449 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
18450
18451         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
18452         last_location to UNKNOWN_LOCATION.
18453
18454 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
18455
18456         PR target/48349
18457         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
18458         FLOAT_SSE_REGS.
18459
18460 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
18461             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18462
18463         PR bootstrap/48337
18464         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
18465         Init(PROCESSOR_V7).
18466         (sparc_cpu): Likewise.
18467         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
18468         PROCESSOR_V7.
18469
18470 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18471
18472         PR target/48336
18473         PR middle-end/48342
18474         PR rtl-optimization/48345
18475         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
18476         hard regs for given mode from profitable regs when doing secondary
18477         allocation.
18478
18479 2011-03-29  Jeff Law  <law@redhat.com>
18480
18481         PR bootstrap/48327
18482         * tree-ssa-threadupdate.c (struct redirection_data): Remove
18483         do_not_duplicate field.
18484         (lookup_redirection_data): Corresponding changes.
18485         (create_duplicates): Always create a template block.
18486         (redirect_edges): Remove code which reused the original block
18487         when it was going to become unreachable code.
18488         (thread_block): Don't set do_not_duplicate field.
18489
18490 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
18491
18492         * lto-opts.c (register_user_option_p, lto_register_user_option):
18493         Make type argument unsigned.
18494         * lto-streamer.h (lto_register_user_option): Make type argument
18495         unsigned.
18496         * opth-gen.awk: Make CL_* macros unsigned.
18497         * opts-common.c (find_opt): Make lang_mask argument unsigned.
18498         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
18499         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
18500         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
18501         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
18502         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
18503         (find_opt): Make lang_mask argument unsigned.
18504
18505 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18506
18507         PR rtl-optimization/48331
18508         PR rtl-optimization/48334
18509         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
18510         for any used algorithm.
18511
18512 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18513
18514         * ira-conflicts.c (build_object_conflicts): Add unused attribute
18515         to parent_max.
18516
18517 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
18518
18519         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
18520         (alpha_option_override): Don't set alpha_sr_alias_set.
18521         (emit_frame_store_1): Use gen_frame_mem rather than calling
18522         set_mem_alias_set.
18523         (alpha_expand_epilogue): Ditto.
18524
18525 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
18526
18527         PR tree-optimization/48290
18528         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
18529         vectorization, check that relevant phis in the basic block after
18530         the inner loop are really inner loop's exit phis.
18531
18532 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
18533
18534         PR debug/48190
18535         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
18536         (cached_dw_loc_list_def): New structure.
18537         (cached_dw_loc_list): New typedef.
18538         (cached_dw_loc_list_table): New variable.
18539         (cached_dw_loc_list_table_hash): New function.
18540         (cached_dw_loc_list_table_eq): Likewise.
18541         (add_location_or_const_value_attribute): Take a bool cache_p.
18542         Cache the list when the parameter is true.
18543         (gen_formal_parameter_die): Update caller.
18544         (gen_variable_die): Likewise.
18545         (dwarf2out_finish): Likewise.
18546         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
18547         while generating debug info for the decl.
18548         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
18549         (dwarf2out_init): Initialize cached_dw_loc_list_table.
18550         (resolve_addr): Cache the result of resolving a chain of
18551         location lists.
18552
18553 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
18554
18555         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
18556         conflict object hard regset nodes have intersecting hard reg sets.
18557
18558         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
18559         after regstat_init_n_sets_and_refs.
18560
18561         * ira.c: Add more comments at the top.
18562         (setup_stack_reg_pressure_class, setup_pressure_classes):
18563         Add comments how we compute the register pressure classes.
18564         (setup_allocno_and_important_classes): Add more comments.
18565         (setup_class_translate_array, reorder_important_classes)
18566         (setup_reg_class_relations): Add comments.
18567
18568         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
18569         start of the file.
18570
18571         * ira-color.c: Add 2011 to the Copyright line.
18572         (assign_hard_reg):  Add more comments.
18573         (improve_allocation): Ditto.
18574
18575         * ira-costs.c: Add 2011 to the Copyright line.
18576         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
18577         comments.
18578         (setup_regno_cost_classes_by_mode): Ditto.
18579
18580         Initial patches from ira-improv branch:
18581
18582         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18583
18584         * ira-build.c (ira_create_object): Remove initialization of
18585         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
18586         (ira_create_allocno): Remove initialization of
18587         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
18588         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
18589         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18590         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
18591         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
18592         Initialize ALLOCNO_ADD_DATA.
18593         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
18594         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
18595         ALLOCNO_REG.
18596         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
18597         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
18598
18599         * ira.c (ira_reallocate): Remove.
18600         (setup_pressure_classes): Call
18601         ira_init_register_move_cost_if_necessary.  Use
18602         ira_register_move_cost instead of ira_get_register_move_cost.
18603         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
18604         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
18605
18606         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
18607         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18608         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
18609         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
18610         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
18611         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
18612         Fix formatting.
18613         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
18614         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18615         (struct allocno_color_data): New.
18616         (allocno_color_data_t): New typedef.
18617         (allocno_color_data): New definition.
18618         (ALLOCNO_COLOR_DATA): New macro.
18619         (struct object_color_data): New.
18620         (object_color_data_t): New typedef.
18621         (object_color_data): New definition.
18622         (OBJECT_COLOR_DATA): New macro.
18623         (update_copy_costs, calculate_allocno_spill_cost): Call
18624         ira_init_register_move_cost_if_necessary.  Use
18625         ira_register_move_cost instead of ira_get_register_move_cost.
18626         (move_spill_restore, update_curr_costs): Ditto.
18627         (allocno_spill_priority): Make it inline.
18628         (color_pass): Allocate and free allocno_color_dat and object_color_data.
18629         (struct coalesce_data, coalesce_data_t): New.
18630         (allocno_coalesce_data): New definition.
18631         (ALLOCNO_COALESCE_DATA): New macro.
18632         (merge_allocnos, coalesced_allocno_conflict_p): Use
18633         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
18634         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
18635         (coalesce_allocnos): Ditto.
18636         (setup_coalesced_allocno_costs_and_nums): Ditto.
18637         (collect_spilled_coalesced_allocnos): Ditto.
18638         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
18639         (setup_slot_coalesced_allocno_live_ranges): Ditto.
18640         (coalesce_spill_slots): Ditto.
18641         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
18642         free allocno_coalesce_data.
18643
18644         * ira-conflicts.c: Fix formatting.
18645         (process_regs_for_copy): Call
18646         ira_init_register_move_cost_if_necessary.  Use
18647         ira_register_move_cost instead of ira_get_register_move_cost.
18648         (build_object_conflicts): Optimize.
18649
18650         * ira-costs.c (record_reg_classes): Optimize.  Call
18651         ira_init_register_move_cost_if_necessary.  Use
18652         ira_register_move_cost, ira_may_move_in_cost, and
18653         ira_may_move_out_cost instead of ira_get_register_move_cost and
18654         ira_get_may_move_cost.
18655         (record_address_regs): Ditto.
18656         (scan_one_insn): Optimize.
18657         (find_costs_and_classes): Optimize.
18658         (process_bb_node_for_hard_reg_moves): Call
18659         ira_init_register_move_cost_if_necessary.  Use
18660         ira_register_move_cost instead of ira_get_register_move_cost.
18661
18662         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
18663         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
18664         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
18665         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
18666         definitions.
18667         (ira_initiate_emit_data, ira_finish_emit_data)
18668         (create_new_allocno): New functions.
18669         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
18670         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
18671         Use ira_register_move_cost instead of ira_get_register_move_cost.
18672
18673         * ira-int.h: Fix some comments.
18674         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
18675         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18676         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
18677         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
18678         add_data.
18679         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
18680         bitfield after mode.  Make hard_regno a short int.  Make
18681         hard_regno short.  Remove first_coalesced_allocno and
18682         next_coalesced_allocno.  Move mem_optimized_dest_p,
18683         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
18684         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
18685         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
18686         temp, colorable_p.  Add new member add_data.
18687         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
18688         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
18689         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
18690         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
18691         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
18692         (ALLOCNO_ADD_DATA): New macro.
18693         (ira_emit_data_t): New typedef.
18694         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
18695         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
18696         from struct ira_allocno.
18697         (ALLOCNO_EMIT_DATA): New macro.
18698         (ira_allocno_emit_data, allocno_emit_reg): New.
18699         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
18700         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
18701         (OBJECT_ADD_DATA): New macro.
18702         (ira_reallocate): Remove.
18703         (ira_initiate_emit_data, ira_finish_emit_data): New.
18704         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
18705         (ira_init_register_move_cost_if_necessary): New.
18706         (ira_object_conflict_iter_next): Merge into
18707         ira_object_conflict_iter_cond.
18708         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
18709
18710         * ira-live.c (process_single_reg_class_operands): Call
18711         ira_init_register_move_cost_if_necessary.  Use
18712         ira_register_move_cost instead of ira_get_register_move_cost.
18713
18714         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18715
18716         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
18717
18718         * ira-costs.c: Fix formatting.
18719         (cost_classes, cost_classes_num): Remove.
18720         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
18721         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
18722         (cost_classes_del, cost_classes_htab): New.
18723         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
18724         (initiate_regno_cost_classes, setup_cost_classes): New.
18725         (setup_regno_cost_classes_by_aclass): New.
18726         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
18727         (record_reg_classes): Use regno_cost_classes instead of
18728         cost_classes.  Move checking opposite operand up.
18729         (record_address_regs): Use regno_cost_classes
18730         instead of cost_classes.
18731         (scan_one_insn): Ditto.  Use always general register.
18732         (print_allocno_costs): Use regno_cost_classes instead of
18733         cost_classes.
18734         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
18735         (find_costs_and_classes): Set up cost classes for each registers.
18736         Use also their mode for this.  Use regno_cost_classes instead of
18737         cost_classes.
18738         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
18739         cost_classes.
18740         (free_ira_costs, ira_init_costs): Don't use cost_classes.
18741         (ira_costs, ira_set_pseudo_classes): Call
18742         initiate_regno_cost_classes and finish_regno_cost_classes.
18743
18744         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
18745
18746         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
18747
18748         * target.def (ira_cover_classes): Remove.
18749
18750         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
18751
18752         * doc/tm.texi.in: Ditto.
18753
18754         * ira-conflicts.c: Remove mentioning cover classes from the file.
18755         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
18756         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
18757
18758         * targhooks.c (default_ira_cover_classes): Remove.
18759
18760         * targhooks.h (default_ira_cover_classes): Ditto.
18761
18762         * haifa-sched.c: Remove mentioning cover classes from the file.
18763         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
18764         ira_pressure_classes and ira_pressure_classes_num instead of
18765         ira_reg_class_cover_size and ira_reg_class_cover.  Use
18766         sched_regno_pressure_class instead of sched_regno_cover_class.
18767         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
18768         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18769
18770         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
18771         classes from the file.
18772         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
18773         (struct object_hard_regs, struct object_hard_regs_node): New.
18774         (struct ira_object): New members profitable_hard_regs,
18775         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
18776         (struct ira_allocno): Rename cover_class to aclass.  Rename
18777         cover_class_cost and updated_cover_class_cost to class_cost and
18778         updated_class_cost.  Remove splay_removed_p and
18779         left_conflict_size.  Add new members colorable_p.
18780         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
18781         (ALLOCNO_COLORABLE_P): New macro.
18782         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
18783         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
18784         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
18785         (OBJECT_...): Rename parameter C to O.
18786         (OBJECT_PROFITABLE_HARD_REGS): New macro.
18787         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
18788         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
18789         (struct target_ira_int): New members x_ira_max_memory_move_cost,
18790         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
18791         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
18792         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
18793         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
18794         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
18795         x_ira_reg_class_subunion.
18796         (ira_max_memory_move_cost, ira_max_register_move_cost)
18797         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
18798         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
18799         (ira_important_class_nums, ira_reg_class_superunion): New macros.
18800         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
18801         (ira_reg_class_union): Rename to ira_reg_class_subunion.
18802         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18803         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18804         (ira_tune_allocno_costs_and_cover_classes): Rename to
18805         ira_tune_allocno_costs.
18806         (ira_debug_hard_regs_forest): New.
18807         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
18808         (ira_object_conflict_iter_next): Fix comments.
18809         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
18810         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
18811         cover_class to aclass.
18812         (ira_allocate_and_accumulate_costs): Ditto.
18813         (ira_allocate_and_set_or_copy_costs): Ditto.
18814
18815         * opts.c (decode_options): Remove ira_cover_class check.
18816
18817         * ira-color.c: Remove mentioning cover classes from the file.  Use
18818         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
18819         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
18820         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
18821         (splay-tree.h): Remove include.
18822         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
18823         before copy_freq_compare_func.
18824         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
18825         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
18826         New definitions.
18827         (hard_regs_roots, hard_regs_node_vec): Ditto.
18828         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
18829         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
18830         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
18831         (create_new_object_hard_regs_node): Ditto.
18832         (add_new_object_hard_regs_node_to_forest): Ditto.
18833         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
18834         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
18835         Ditto.
18836         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
18837         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
18838         (remove_unused_object_hard_regs_nodes): Ditto.
18839         (enumerate_object_hard_regs_nodes): Ditto.
18840         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
18841         (object_hard_regs_subnode_t): Ditto.
18842         (struct object_hard_regs_subnode): Ditto.
18843         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
18844         (setup_object_hard_regs_subnode_index): Ditto.
18845         (get_object_hard_regs_subnodes_num): Ditto.
18846         (form_object_hard_regs_nodes_forest): Ditto.
18847         (finish_object_hard_regs_nodes_tree): Ditto.
18848         (finish_object_hard_regs_nodes_forest): Ditto.
18849         (allocnos_have_intersected_live_ranges_p): Rename to
18850         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
18851         (pseudos_have_intersected_live_ranges_p): Rename to
18852         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
18853         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
18854         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
18855         (update_copy_costs): Remove assert.  Skip cost update if the hard
18856         reg does not belong the class.
18857         (assign_hard_reg): Process only profitable hard regs.
18858         (uncolorable_allocnos_num): Make it scalar.
18859         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18860         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
18861         and ira_reg_class_max_nregs.
18862         (bucket_allocno_compare_func): Check frequency first.
18863         (sort_bucket): Add compare function as a parameter.
18864         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
18865         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
18866         (push_allocno_to_stack): Rewrite for checking new allocno
18867         colorability.
18868         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
18869         (push_only_colorable): Pass new parameter to sort_bucket.
18870         (push_allocno_to_spill): Remove.
18871         (allocno_spill_priority_compare): Make it inline and rewrite.
18872         (splay_tree_allocate, splay_tree_free): Remove.
18873         (allocno_spill_sort_compare): New function.
18874         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
18875         build and use splay tree.  Choose first allocno in uncolorable
18876         allocno bucket to spill.  Remove setting spill cost.
18877         (all_conflicting_hard_regs): Remove.
18878         (setup_allocno_available_regs_num): Check only profitable hard
18879         regs.  Print info about hard regs nodes.
18880         (setup_allocno_left_conflicts_size): Remove.
18881         (put_allocno_into_bucket): Don't call
18882         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
18883         (improve_allocation): New.
18884         (color_allocnos): Call setup_profitable_hard_regs,
18885         form_object_hard_regs_nodes_forest, improve_allocation,
18886         finish_object_hard_regs_nodes_forest.  Setup spill cost.
18887         (print_loop_title): Use pressure classes.
18888         (color_allocnso): Ditto.
18889         (do_coloring): Remove allocation and freeing splay_tree_node_pool
18890         and allocnos_for_spilling.
18891         (ira_sort_regnos_for_alter_reg): Don't setup members
18892         {first,next}_coalesced_allocno.
18893         (color): Remove allocating and freeing removed_splay_allocno_vec.
18894         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
18895         prohibited_class_mode_regs.
18896
18897         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
18898         formatting.
18899         (update_allocno_pressure_excess_length): Use pressure classes.
18900         (inc_register_pressure, dec_register_pressure): Check for pressure
18901         class.
18902         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
18903         pressure class.  Use ira_reg_class_nregs instead of
18904         ira_reg_class_max_nregs.
18905         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
18906         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
18907         (single_reg_class): Use ira_reg_class_nregs instead of
18908         ira_reg_class_max_nregs.
18909         (process_bb_node_lives): Use pressure classes.
18910
18911         * ira-emit.c: Remove mentioning cover classes from the file.  Use
18912         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
18913         (change_loop): Use pressure classes.
18914         (modify_move_list): Call ira_set_allocno_class instead of
18915         ira_set_allocno_cover_class.
18916
18917         * ira-build.c: Remove mentioning cover classes from the file.  Use
18918         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
18919         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
18920         ALLOCNO_UPDATED_CLASS_COST instead of
18921         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
18922         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
18923         (ira_create_allocno): Remove initialization of
18924         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
18925         ALLOCNO_COLORABLE_P.
18926         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18927         Update conflict regs for the objects.
18928         (create_cap_allocno): Remove assert.  Don't propagate
18929         ALLOCNO_AVAILABLE_REGS_NUM.
18930         (ira_free_allocno_costs): New function.
18931         (finish_allocno): Change a part of code into call of
18932         ira_free_allocno_costs.
18933         (low_pressure_loop_node_p): Use pressure classes.
18934         (object_range_compare_func): Don't compare classes.
18935         (setup_min_max_conflict_allocno_ids): Ditto.
18936
18937         * loop-invariant.c: Remove mentioning cover classes from the file.
18938         Use ira_pressure_classes and ira_pressure_classes_num instead of
18939         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
18940         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
18941         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18942         Use reg_allocno_class instead of reg_cover_class.
18943         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
18944         STACK_REG_COVER_CLASS.
18945         (get_regno_cover_class): Rename to get_regno_pressure_class.
18946         (move_loop_invariants): Initialize and finalize regstat.
18947
18948         * ira.c: Remove mentioning cover classes from the file.  Add
18949         comments about coloring without cover classes.  Use ALLOCNO_CLASS
18950         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
18951         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
18952         setup_class_subset_and_memory_move_costs.
18953         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
18954         (setup_cover_and_important_classes): Rename to
18955         setup_allocno_and_important_classes.
18956         (setup_class_translate_array): New.
18957         (setup_class_translate): Call it for allocno and pressure classes.
18958         (cover_class_order): Rename to allocno_class_order.
18959         (comp_reg_classes_func): Use ira_allocno_class_translate instead
18960         of ira_class_translate.
18961         (reorder_important_classes): Set up ira_important_class_nums.
18962         (setup_reg_class_relations): Set up ira_reg_class_superunion.
18963         (print_class_cover): Rename to print_classes.  Add parameter.
18964         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18965         Print pressure classes too.
18966         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
18967         setup_reg_subclasses.
18968         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
18969         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
18970         (setup_prohibited_class_mode_regs): Use
18971         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
18972         (clarify_prohibited_class_mode_regs): New function.
18973         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
18974         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
18975         (ira_init_once): Initialize them.
18976         (free_register_move_costs): Process them.
18977         (ira_init): Move calls of find_reg_classes and
18978         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
18979         Call clarify_prohibited_class_mode_regs.
18980         (ira_no_alloc_reg): Remove.
18981         (too_high_register_pressure_p): Use pressure classes.
18982
18983         * sched-deps.c: Remove mentioning cover classes from the file.
18984         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
18985         ira_pressure_classes and ira_pressure_classes_num instead of
18986         ira_reg_class_cover_size and ira_reg_class_cover.
18987         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
18988         sched_regno_pressure_class instead of sched_regno_cover_class.
18989         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
18990         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18991
18992         * ira.h: Add 2010 to Copyright.
18993         (ira_no_alloc_reg): Remove external.
18994         (struct target_ira): Rename x_ira_hard_regno_cover_class,
18995         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
18996         x_ira_class_translate to x_ira_hard_regno_allocno_class,
18997         x_ira_allocno_classes_num, x_ira_allocno_classes, and
18998         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
18999         x_ira_pressure_classes, x_ira_pressure_class_translate, and
19000         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
19001         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
19002         x_ira_no_alloc_regs.
19003         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
19004         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
19005         ira_allocno_classes_num and ira_allocno_classes.
19006         (ira_class_translate): Rename to ira_allocno_class_translate.
19007         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
19008         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
19009         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19010         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
19011         (ira_no_alloc_regs): New.
19012
19013         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
19014         classes from the file.  Use ALLOCNO_CLASS instead of
19015         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
19016         ALLOCNO_COVER_CLASS_COST.
19017         (regno_cover_class): Rename to regno_aclass.
19018         (record_reg_classes): Use ira_reg_class_subunion instead of
19019         ira_reg_class_union.
19020         (record_address_regs): Check overflow.
19021         (scan_one_insn): Ditto.
19022         (print_allocno_costs): Print total mem cost fore regional allocation.
19023         (print_pseudo_costs): Use REG_N_REFS.
19024         (find_costs_and_classes): Use classes intersected with them on the
19025         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
19026         ira_reg_class_union.  Use ira_allocno_class_translate and
19027         regno_aclass instead of ira_class_translate and regno_cover_class.
19028         Modify code for finding regno_aclass.  Setup preferred classes for
19029         the next pass.
19030         (setup_allocno_cover_class_and_costs): Rename to
19031         setup_allocno_class_and_costs.  Use regno_aclass instead of
19032         regno_cover_class.  Use ira_set_allocno_class instead of
19033         ira_set_allocno_cover_class.
19034         (init_costs, finish_costs): Use regno_aclass instead of
19035         regno_cover_class.
19036         (ira_costs): Use setup_allocno_class_and_costs instead of
19037         setup_allocno_cover_class_and_costs.
19038         (ira_tune_allocno_costs_and_cover_classes): Rename to
19039         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
19040         by processing objects.  Use ira_reg_class_max_nregs instead of
19041         ira_reg_class_nregs.
19042
19043         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
19044
19045         * sched-int.h: Remove mentioning cover classes from the file.
19046         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
19047
19048         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
19049         classes from the file.
19050         (struct reg_pref): Rename coverclass into allocnoclass.
19051         (reg_cover_class): Rename to reg_allocno_class.
19052
19053         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
19054
19055         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
19056
19057         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
19058
19059         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
19060
19061         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
19062
19063         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
19064
19065         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
19066
19067         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
19068
19069         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
19070
19071         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
19072
19073         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
19074         (i386_ira_cover_classes): Ditto.
19075
19076         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
19077
19078         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
19079
19080         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
19081
19082         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
19083
19084         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
19085
19086         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
19087
19088         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
19089         (mips_ira_cover_classes): Ditto.
19090
19091         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
19092
19093         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
19094
19095         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
19096
19097         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
19098
19099         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
19100
19101         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
19102         (IRA_COVER_CLASSES_VSX): Ditto.
19103
19104         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
19105         (rs6000_ira_cover_classes): Ditto.
19106
19107         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
19108
19109         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
19110
19111         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
19112
19113         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
19114
19115         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
19116
19117         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
19118
19119         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
19120
19121         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
19122
19123         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
19124
19125         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
19126
19127 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
19128
19129         PR debug/48253
19130         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
19131         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
19132         dw_fde_unlikely_section_end_label, cold_in_std_section,
19133         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
19134         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
19135         fields.
19136         (output_fde): Use dw_fde_second_{begin,end} if second is
19137         true, otherwise dw_fde_{begin,end}.
19138         (output_call_frame_info): Test dw_fde_second_begin != NULL
19139         instead of dw_fde_switched_sections.
19140         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
19141         fields, initialize new fields.  Initialize in_std_section
19142         unconditionally from the first partition.
19143         (dwarf2out_end_epilogue): Don't override dw_fde_end when
19144         dw_fde_second_begin is non-NULL.
19145         (dwarf2out_switch_text_section): Stop initializing removed
19146         dw_fde_struct fields, initialize new fields, initialize
19147         also dw_fde_end here.  Set dw_fde_switch_cfi even when
19148         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
19149         (struct var_loc_list_def): Add last_before_switch field.
19150         (arange_table, arange_table_allocated, arange_table_in_use,
19151         ARANGE_TABLE_INCREMENT, add_arange): Removed.
19152         (size_of_aranges): Count !in_std_section and !second_in_std_section
19153         hunks in fdes, instead of looking at arange_table_in_use.
19154         (output_aranges): Add aranges_length argument, don't call
19155         size_of_aranges here.  Instead of using aranges_table*
19156         emit ranges for fdes when !in_std_section resp.
19157         !second_in_std_section.
19158         (dw_loc_list): Break ranges crossing section switch.
19159         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
19160         use dw_fde_second_end instead of dw_fde_end as end of last range.
19161         (gen_subprogram_die): Don't call add_arange.  Use
19162         dw_fde_{begin,end} for first partition and if switched
19163         section dw_fde_second_{begin,end} for the second.
19164         (var_location_switch_text_section_1,
19165         var_location_switch_text_section): New functions.
19166         (dwarf2out_begin_function): Initialize cold_text_section even
19167         when function_section () isn't text_section.
19168         (prune_unused_types): Don't walk arange_table.
19169         (dwarf2out_finish): Don't needlessly test
19170         flag_reorder_blocks_and_partition when testing cold_text_section_used.
19171         If info_section_emitted, call size_of_aranges and if it indicates
19172         non-empty .debug_aranges, call output_aranges with the computed
19173         size.  Stop using removed dw_fde_struct fields, use
19174         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
19175         for second.
19176
19177         PR debug/48203
19178         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
19179         create ENTRY_VALUE if incoming or address of incoming's MEM
19180         is a hard REG.
19181         * dwarf2out.c (mem_loc_descriptor): Don't emit
19182         DW_OP_GNU_entry_value of DW_OP_fbreg.
19183         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
19184         on ENTRY_VALUE is able to find the canonical parameter VALUE.
19185         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
19186         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
19187         ENTRY_VALUE_EXPs.
19188         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
19189         is a REG_P or MEM_P with REG_P address, compute hash directly
19190         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
19191         (preserve_only_constants): Don't clear VALUES forwaring
19192         ENTRY_VALUE to some other VALUE.
19193
19194 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
19195
19196         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
19197         instead of GEN_INT.
19198
19199 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
19200
19201         * cfgexpand.c (expand_gimple_cond): Always set the source location and
19202         block before expanding the statement.
19203         (expand_gimple_stmt_1): Likewise.  Set them here...
19204         (expand_gimple_stmt): ...and not here.  Tidy.
19205         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
19206         unknown.
19207
19208 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
19209
19210         * Makefile.in: New rule for cprop.o.
19211         * gcse.c: Move constant/copy propagation to cprop.c.
19212         (compute_local_properties): Only handle expression tables.
19213         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
19214         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
19215         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
19216         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
19217         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
19218         compute_cprop_data, find_used_regs, try_replace_reg,
19219         find_avail_set, cprop_jump, constprop_register, cprop_insn,
19220         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
19221         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
19222         find_bypass_set, reg_killed_on_edge, bypass_block,
19223         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
19224         execute_rtl_cprop, pass_rtl_cprop): Move to...
19225         * cprop.c: ...here.  New file, constant/copy propagation for RTL
19226         moved from gcse.c to here with minor cleanups in duplicated code.
19227
19228 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
19229
19230         * config/i386/i386.c (flag_opts): Fix a typo in
19231         -mavx256-split-unaligned-store.
19232
19233 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
19234
19235         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19236         LIBCALL_VALUE): Remove macros.
19237         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19238         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19239         (h8300_function_value, h8300_libcall_value,
19240         h8300_function_value_regno_p): New functions.
19241
19242 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
19243
19244         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
19245
19246 2011-03-28  Jeff Law  <law@redhat.com>
19247
19248         * tree-ssa-threadupdate.c (redirect_edges): Call
19249         create_edge_and_update_destination_phis as needed.
19250         (create_edge_and_update_destination_phis): Accept new BB argument.
19251         All callers updated.
19252         (thread_block): Do not update the profile when threading around
19253         intermediate blocks.
19254         (thread_single_edge): Likewise.
19255         (determine_bb_domination_status): If BB is not a successor of the
19256         loop header, return NONDOMINATING.
19257         (register_jump_thread): Note when we register a jump thread around
19258         an intermediate block.
19259         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
19260         (thread_across_edge): Use it.
19261
19262 2011-03-28  Tristan Gingold  <gingold@adacore.com>
19263
19264         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
19265         when for_return is 2.
19266
19267 2011-03-28  Jeff Law  <law@redhat.com>
19268
19269         * var-tracking.c (canonicalize_values_mark): Delete unused
19270         lhs assignment.
19271         (canonicalize_values_star, set_variable_part): Likewise.
19272         (clobber_variable_part, delete_variable_part): Likewise.
19273
19274 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
19275
19276         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
19277
19278 2011-03-28  Martin Jambor  <mjambor@suse.cz>
19279
19280         * tree-inline.c (expand_call_inline): Do not check that destination
19281         node is analyzed.
19282         (optimize_inline_calls): Assert that destination node is analyzed.
19283         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
19284         not call tree_lowering_passes.
19285         * cgraph.h (cgraph_analyze_function): Declare.
19286         * cgraphunit.c (cgraph_analyze_function): Make public.
19287
19288 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
19289
19290         * config/sparc/sparc-opts.h: New.
19291         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
19292         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
19293         (sparc_option_override): Store processor_type enumeration rather
19294         than string in cpu_default.  Remove name and enumeration from
19295         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
19296         without using sparc_select.  Use target_flags_explicit instead of
19297         fpu_option_set.
19298         * config/sparc/sparc.h (enum processor_type): Move to
19299         sparc-opts.h.
19300         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
19301         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
19302         HeaderInclude entry.
19303         (mcpu=, mtune=): Use Var and Enum.
19304         (sparc_processor_type): New Enum and EnumValue entries.
19305
19306 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19307             Iain Sandoe  <iains@gcc.gnu.org>
19308
19309         PR target/48245
19310         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
19311
19312 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
19313
19314         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
19315         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
19316         Insert new statements at it in lieu of STMT.
19317         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
19318         * tree-vect-stmts.c (vectorizable_store): Likewise.
19319         (vectorizable_load): Likewise.
19320
19321 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
19322
19323         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
19324         (divtf3): Ditto.
19325         (multf3): Ditto.
19326         (subtf3): Ditto.
19327
19328 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19329
19330         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
19331         unaligned 256bit load/store.
19332         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
19333         (*avx_movdqu<avxmodesuffix>): Likewise.
19334
19335 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19336
19337         PR target/48288
19338         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
19339         * config/pa/pa.md (iordi3): Use new predicate in expander.
19340         (iorsi3): Likewise.
19341
19342 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
19343
19344         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
19345         FUNCTION_VALUE_REGNO_P): Remove macros.
19346         * config/mips/mips-protos.h (mips_function_value): Remove.
19347         * config/mips/mips.c (mips_function_value): Rename to...
19348         (mips_function_value_1): ... this. Make static.  Handle receiving
19349         the function type in 'fn_decl_or_type' argument.
19350         (mips_function_value, mips_libcall_value,
19351         mips_function_value_regno_p): New function.
19352         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19353         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19354
19355 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19356
19357         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
19358         and -mavx256-split-unaligned-store.
19359         (ix86_option_override_internal): Split 32-byte AVX unaligned
19360         load/store by default.
19361         (ix86_avx256_split_vector_move_misalign): New.
19362         (ix86_expand_vector_move_misalign): Use it.
19363
19364         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
19365         -mavx256-split-unaligned-store.
19366
19367         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
19368         256bit load/store.  Generate unaligned store on misaligned memory
19369         operand.
19370         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
19371         256bit load/store.
19372         (*avx_movdqu<avxmodesuffix>): Likewise.
19373
19374         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
19375         -mavx256-split-unaligned-store.
19376
19377 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
19378
19379         PR target/38598
19380         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
19381         Update commentary.
19382
19383 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
19384
19385         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
19386         opno arguments with an expand_operand.  Use create_input_operand.
19387         (mips_prepare_builtin_target): Delete.
19388         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
19389         functions.
19390         (mips_expand_builtin_direct): Use create_output_operand and
19391         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
19392         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
19393         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
19394
19395 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
19396
19397         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
19398         function.
19399         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19400
19401 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
19402
19403         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
19404         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
19405         basic blocks and call commit_edge_insertions directly.
19406         (fixup_abnormal_edges): Move from here to...
19407         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
19408         on the edges and return whether some have actually been inserted.
19409         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
19410         compensation code.
19411
19412 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
19413
19414         PR rtl-optimization/48144
19415         * sel-sched-ir.c (merge_history_vect): Factor out from ...
19416         (merge_expr_data): ... here.
19417         (av_set_intersect): Rename to av_set_code_motion_filter.
19418         Update all callers.  Call merge_history_vect when an expression
19419         is found in both sets.
19420         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
19421
19422 2011-03-26  Alan Modra  <amodra@gmail.com>
19423
19424         * config/rs6000/predicates.md (word_offset_memref_op): Handle
19425         cmodel medium addresses.
19426         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
19427         64-bit gpr loads and stores.
19428         (rs6000_secondary_reload_ppc64): New function.
19429         * config/rs6000/rs6000-protos.h: Declare it.
19430         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
19431
19432 2011-03-26  Alan Modra  <amodra@gmail.com>
19433
19434         PR target/47487
19435         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
19436         GNU Go in traceback table.
19437
19438 2011-03-25  Richard Henderson  <rth@redhat.com>
19439
19440         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
19441         if there are exactly 6 operands.
19442         (set_storage_via_setmem): Similarly.
19443
19444 2011-03-25  Kai Tietz  <ktietz@redhat.com>
19445
19446         * collect2.c (write_c_file_stat): Handle backslash
19447         as right-hand directory separator.
19448         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
19449         checking just for slash.
19450         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
19451         instead of checking for trailing slash.
19452         * gcc.c (record_temp_file): Use filename_cmp instead
19453         of strcmp.
19454         (do_spec_1): Likewise.
19455         (replace_outfile_spec_function): Likewise.
19456         (is_directory): Use filename_ncmp instead of strncmp.
19457         (print_multilib_info): Likewise.
19458         * gcov.c (find_source): Use filename_cmp instead
19459         instead of strcmp.
19460         (make_gcov_file_name): Fix order of slash/backslash
19461         checks.
19462         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
19463         (add_standard_paths): Likewise.
19464         * mips-tfile.c (saber_stop): Handle backslash.
19465         * prefix.c (update_path): Use filename_ncmp instead of
19466         strncmp.
19467         * profile.c (output_location): Use filename_cmp instead
19468         of strcmp.
19469         * read-md.c (handle_toplevel_file): Handle backslash.
19470         * tlink.c (frob_extension):  Likewise.
19471         * tree-cfg.c (same_line_p): Use filename_cmp instead of
19472         strcmp.
19473         * tree-dump.c (dequeue_and_dump): Handle backslash.
19474         * tree.c (get_file_function_name): Likewise.
19475         * gengtype.c (read_input_list): Likewise.
19476         (get_file_realbasename): Likewise.
19477         (get_output_file_with_visibility): Use filename_cmp
19478         instead of strcmp.
19479
19480 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
19481
19482         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
19483         case to VFPv1.
19484
19485 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
19486
19487         * fold-const.c (expr_location_or): New function.
19488         (fold_truth_not_expr): Call it.
19489
19490 2011-03-25  Jeff Law  <law@redhat.com>
19491
19492         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
19493         va_end.
19494         * c-family/c-common.c (def_fn_type): Likewise.
19495         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
19496         * emit-rtl.c (gen_rtvec): Likewise.
19497         * lto/lto-lang.c (def_fn_type): Likewise.
19498
19499 2011-03-25  Richard Guenther  <rguenther@suse.de>
19500
19501         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
19502         also generate copies.
19503         (fini_copy_prop): Handle constant values properly.
19504
19505 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
19506
19507         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
19508         mode size instead of bitsize with DWARF2_ADDR_SIZE.
19509         (hash_loc_operands, compare_loc_operands): Handle
19510         DW_OP_GNU_entry_value.
19511
19512 2011-03-25  Kai Tietz  <ktietz@redhat.com>
19513
19514         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
19515         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
19516         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
19517         comment and use macro TARGET_64BIT_MS_ABI instead.
19518         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
19519         and change default behavior for 32-bit MS_ABI.
19520         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
19521         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
19522         32-bit, too.
19523         (ix86_cfun_abi): Likewise.
19524         (ix86_maybe_switch_abi): Adjust comment.
19525         (init_cumulative_args): Check for bit-ness in MS_ABI case.
19526         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
19527         instead of checking for SYSV_ABI.
19528         (ix86_nsaved_sseregs): Likewise.
19529         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
19530         to 16 bytes.
19531         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
19532         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
19533         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
19534         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
19535         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
19536
19537 2011-03-25  Richard Guenther  <rguenther@suse.de>
19538
19539         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
19540         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19541         (verify_gimple): Remove.
19542         * tree-cfg.c (verify_gimple_call): Merge verification
19543         from verify_stmts.
19544         (verify_gimple_phi): Merge verification from verify_stmts.
19545         (verify_gimple_label): New function.
19546         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
19547         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19548         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
19549         (verify_stmts): Rename to verify_gimple_in_cfg.
19550         (verify_gimple_in_cfg): New function.
19551         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
19552         * tree-ssa.c (verify_ssa): Likewise.
19553         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
19554
19555 2011-03-25  Richard Guenther  <rguenther@suse.de>
19556
19557         * passes.c (init_optimization_passes): Add FRE pass after
19558         early SRA.
19559
19560 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
19561             Andrew Stubbs  <ams@codesourcery.com>
19562
19563         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
19564         for Cortex-A8.
19565         (arm_movdi_vfp_cortexa8): New pattern.
19566         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
19567         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
19568         instructions when tuning for Cortex-A8.  Set attribute "arch".
19569         * config/arm/arm.md: Move include arm-tune.md up a bit.
19570         (define_attr "arch"): Add "onlya8" and "nota8" values.
19571         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
19572
19573 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
19574
19575         PR bootstrap/48282
19576         Revert:
19577         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
19578
19579         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19580         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
19581         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19582         * passes.c (init_optimization_passes): Move
19583         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19584
19585 2011-03-25  Kai Tietz  <ktietz@redhat.com>
19586
19587         * c-typeck.c (comptypes_internal): Replace target
19588         hook call of comp_type_attributes by version in tree.c file.
19589         * gimple.c (gimple_types_compatible_p_1): Likewise.
19590         * tree-ssa.c (useless_type_conversion_p): Likewise.
19591         * tree.c (build_type_attribute_qual_variant): Likewise.
19592         (attribute_value_equal): New static helper function.
19593         (comp_type_attributes): New function.
19594         (merge_attributes): Use attribute_value_equal for comparison.
19595         (attribute_list_contained): Likewise.
19596         * tree.h (comp_type_attributes): New prototype.
19597
19598 2011-03-25  Richard Guenther  <rguenther@suse.de>
19599
19600         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
19601         of complex types at -O0.
19602         (verify_gimple_assign_binary): Likewise.
19603         (verify_gimple_assign_ternary): Likewise.
19604
19605 2011-03-24  Mark Wielaard  <mjw@redhat.com>
19606
19607         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
19608         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
19609
19610 2011-03-24  Mark Wielaard  <mjw@redhat.com>
19611
19612         PR debug/48041
19613         * dwarf2out.c (output_abbrev_section): Only write table when
19614         abbrev_die_table_in_use > 1.
19615
19616 2011-02-24  Richard Henderson  <rth@redhat.com>
19617
19618         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
19619         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
19620         (alpha_expand_unaligned_load_words): Use extql.
19621         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
19622         (emit_insxl): Handle all modes for consistency.
19623
19624 2011-02-24  Richard Henderson  <rth@redhat.com>
19625
19626         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
19627         (alpha_expand_unaligned_load): Likewise.
19628         (alpha_expand_unaligned_store): Likewise.
19629         (alpha_expand_unaligned_load_words): Likewise.
19630         (alpha_expand_unaligned_store_words): Likewise.
19631         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
19632         (alpha_split_lock_test_and_set_12): Likewise.
19633         (print_operand, alpha_fold_builtin_extxx): Likewise.
19634         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
19635         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
19636         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
19637         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
19638         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
19639         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
19640         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
19641         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
19642         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
19643         (extwl, extll, extql): Similarly.
19644         (inswh, inslh, insqh): Similarly.
19645         (mskbl, mskwl, mskll, mskql): Similarly.
19646         (mskwh, msklh, mskqh): Similarly.
19647
19648 2011-02-24  Richard Henderson  <rth@redhat.com>
19649
19650         * config/alpha/alpha.md (attribute isa): Add er, ner.
19651         (attribute enabled): Handle them.
19652         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
19653
19654 2011-02-24  Richard Henderson  <rth@redhat.com>
19655
19656         * config/alpha/alpha.md (attribute isa): Add vms.
19657         (attribute enabled): Handle it.
19658         (*movsf): Merge *movsf_{nofix,fix,nofp}.
19659         (*movdf): Merge *movdf_{nofix,fix,nofp}.
19660         (*movtf): Rename from *movtf_internal for consistency.
19661         (*movsi): Merge with *movsi_nt_vms.
19662         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
19663         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
19664         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
19665         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
19666
19667 2011-02-24  Richard Henderson  <rth@redhat.com>
19668
19669         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
19670         (extendqisi2, extendhisi2): Likewise.
19671         (extendqidi2): Simplify BWX/non-BWX expansions.
19672         (extendhidi2): Similarly.
19673
19674 2011-02-24  Richard Henderson  <rth@redhat.com>
19675
19676         * config/alpha/alpha.md (attribute isa): New.
19677         (attribute enabled): New.
19678         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
19679         (zero_extendqisi2, zero_extendqidi2): Similarly.
19680         (zero_extendhisi2, zero_extendhidi2): Similarly.
19681         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
19682
19683 2011-02-24  Richard Henderson  <rth@redhat.com>
19684
19685         * config/alpha/predicates.md (input_operand): Revert last change;
19686         update comment to mention 32-bit VMS rather than Windows.
19687
19688 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
19689
19690         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19691         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
19692         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19693         * passes.c (init_optimization_passes): Move
19694         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19695
19696 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19697
19698         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
19699
19700 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
19701
19702         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
19703         correctly.
19704
19705 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
19706
19707         PR debug/48204
19708         * simplify-rtx.c (simplify_const_unary_operation): Call
19709         real_convert when changing mode class with FLOAT_EXTEND.
19710
19711 2011-03-24  Nick Clifton  <nickc@redhat.com>
19712
19713         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
19714         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19715         * config/rx/rx.c (rx_option_override): Set align_jumps,
19716         align_loops and align_labels if not set by the user.
19717         (rx_align_for_label): New function.
19718         (rx_max_skip_for_label): New function.
19719         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
19720         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
19721         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
19722         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
19723         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
19724
19725 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
19726
19727         PR rtl-optimization/48263
19728         * optabs.c (expand_binop_directly): Reinstate convert_modes code
19729         and original commutative_p handling.  Use maybe_gen_insn.
19730
19731 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19732
19733         * reload.c (find_reloads_subreg_address): Add address_reloaded
19734         parameter and return true there if the full address has been
19735         reloaded.
19736         (find_reloads_toplev): Pass address_reloaded flag.
19737         (find_reloads_address_1): Don't use address_reloaded parameter.
19738
19739 2011-03-24  Jeff Law  <law@redhat.com>
19740
19741         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
19742         unused variable "ann".
19743         (remove_unused_locals): Likewise.
19744
19745         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
19746         statement.
19747
19748         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
19749         after it is freed.
19750
19751 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19752
19753         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
19754         for invalid symbolic addresses.
19755         (s390_secondary_reload): Don't use s390_check_symref_alignment for
19756         larl operands.
19757
19758 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19759
19760         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
19761         the argument in calls to fold_truth_not_expr.
19762
19763 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
19764
19765         * tree.c (record_node_allocation_statistics): New function.
19766         (make_node_stat, copy_node_stat, build_string): Call it.
19767         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
19768         (build1_stat, build_omp_clause): Likewise.
19769
19770 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
19771
19772         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
19773         last commit.
19774
19775 2011-03-24  Richard Guenther  <rguenther@suse.de>
19776
19777         PR tree-optimization/48271
19778         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
19779         blocks that still exist.
19780
19781 2011-03-24  Richard Guenther  <rguenther@suse.de>
19782
19783         PR tree-optimization/48270
19784         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
19785         not free datarefs before ddrs.
19786
19787 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19788
19789         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
19790         from the address built for a reference with variable offset.
19791
19792 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
19793
19794         PR target/48237
19795         * config/i386/i386.md (*movdf_internal_rex64): Do not split
19796         alternatives that can be handled with movq or movabsq insn.
19797         (*movdf_internal): Disable for !TARGET_64BIT.
19798         (*movdf_internal_nointeger): Ditto.
19799         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
19800
19801 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
19802
19803         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19804         (FUNCTION_ARG_ADVANCE): Likewise.
19805         * tm.texi.in: Change references to them to hook references.
19806         * tm.texi: Regenerate.
19807         * targhooks.c (default_function_arg): Eliminate check for target macro.
19808         (default_function_incoming_arg): Likewise.
19809         (default_function_arg_advance): Likewise.
19810         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
19811         (function_arg_advance): Likewise.
19812         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19813
19814 2011-03-24  Richard Guenther  <rguenther@suse.de>
19815
19816         PR middle-end/48269
19817         * tree-object-size.c (addr_object_size): Do not double-account
19818         for MEM_REF offsets.
19819
19820 2011-03-24  Diego Novillo  <dnovillo@google.com>
19821
19822         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
19823         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
19824         (lto_input_data_block): Move from lto-opts.c.  Make extern.
19825         Update all users.
19826         (lto_input_string): Rename from input_string.  Make extern.
19827         Update all users.
19828         * lto-streamer-out.c (lto_output_string_with_length): Rename from
19829         output_string_with_length.
19830         Output 0 to indicate a non-NULL string.  Update all callers to
19831         not emit 0.
19832         (lto_output_string): Rename from output_string.  Make extern.
19833         Update all users.
19834         (lto_output_decl_state_streams): Make extern.
19835         (lto_output_decl_state_refs): Make extern.
19836         * lto-streamer.h (lto_input_string): Declare.
19837         (lto_input_data_block): Declare.
19838         (lto_output_string): Declare.
19839         (lto_output_string_with_length): Declare.
19840         (lto_output_decl_state_streams): Declare.
19841         (lto_output_decl_state_refs): Declare.
19842
19843 2011-03-24  Richard Guenther  <rguenther@suse.de>
19844
19845         PR tree-optimization/46562
19846         * tree.c (build_invariant_address): New function.
19847         * tree.h (build_invariant_address): Declare.
19848         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
19849         a renamed function moved ...
19850         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
19851         Take valueization callback parameter.
19852         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
19853         * gimple-fold.h: New file.
19854         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
19855         (ccp_fold, fold_const_aggregate_ref,
19856         fold_ctor_reference, fold_nonarray_ctor_reference,
19857         fold_array_ctor_reference, fold_string_cst_ctor_reference,
19858         get_base_constructor): Move ...
19859         * gimple-fold.c: ... here.
19860         (gimple_fold_stmt_to_constant_1): New function
19861         split out from ccp_fold.  Take a valueization callback parameter.
19862         Valueize all operands.
19863         (gimple_fold_stmt_to_constant): New wrapper function.
19864         (fold_const_aggregate_ref_1): New function split out from
19865         fold_const_aggregate_ref.  Take a valueization callback parameter.
19866         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
19867         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
19868         invariant POINTER_PLUS_EXPRs to invariant form.
19869         (vn_valueize): New function.
19870         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
19871         * tree-vrp.c (vrp_valueize): New function.
19872         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
19873         to fold statements to constants.
19874         * tree-ssa-pre.c (eliminate): Properly guard propagation of
19875         function declarations.
19876         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
19877         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
19878
19879 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
19880
19881         * config/h8300/predicates.md (jump_address_operand): Fix register
19882         mode check.
19883
19884 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
19885
19886         * doc/invoke.texi (max-stores-to-sink): Document.
19887         * params.h (MAX_STORES_TO_SINK): Define.
19888         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
19889         if either vectorization or if-conversion is disabled.
19890         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
19891         tree-vect-data-refs.c vect_equal_offsets.
19892         (dr_equal_offsets_p): New function.
19893         (find_data_references_in_bb): Remove static.
19894         * tree-data-ref.h (find_data_references_in_bb): Declare.
19895         (dr_equal_offsets_p): Likewise.
19896         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
19897         (vect_drs_dependent_in_basic_block): Update calls to
19898         vect_equal_offsets.
19899         (vect_check_interleaving): Likewise.
19900         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
19901         (cond_if_else_store_replacement): Rename to...
19902         (cond_if_else_store_replacement_1): ... this.  Change arguments and
19903         documentation.
19904         (cond_if_else_store_replacement): New function.
19905         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
19906         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
19907
19908 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
19909
19910         PR target/46934
19911         * config/arm/arm.md (casesi): Use the gen_int_mode() function
19912         to subtract lower bound instead of GEN_INT().
19913
19914 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
19915
19916         PR other/48179
19917         PR other/48221
19918         PR other/48234
19919         * doc/extend.texi (Alignment): Move section to match order in TOC.
19920         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
19921         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
19922
19923 2011-03-23  Jeff Law  <law@redhat.com>
19924
19925         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
19926         before removing the edge.
19927
19928         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
19929         it may have been freed by redirect_branch_edge or
19930         redirect_edge_succ_nodup.
19931
19932 2011-03-23  Richard Guenther  <rguenther@suse.de>
19933
19934         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
19935         (check_va_list_escapes): Likewise.
19936         (check_all_va_list_escapes): Likewise.
19937
19938 2011-03-23  Richard Guenther  <rguenther@suse.de>
19939
19940         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
19941         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
19942         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
19943         (alias.o): Likewise.
19944         (ipa-type-escape.o): Remove.
19945         (ipa-struct-reorg.o): Likewise.
19946         (GTFILES): Remove ipa-struct-reorg.c.
19947         * alias.c: Do not include ipa-type-escape.h.
19948         * tree-ssa-alias.c: Likewise.
19949         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
19950         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
19951         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
19952         and ipa-type-escape passes.
19953         * tree-pass.h (pass_ipa_type_escape): Remove.
19954         (pass_ipa_struct_reorg): Likewise.
19955         * ipa-struct-reorg.h: Remove.
19956         * ipa-struct-reorg.c: Likewise.
19957         * ipa-type-escape.h: Likewise.
19958         * ipa-type-escape.c: Likewise.
19959         * doc/invoke.texi (-fipa-struct-reorg): Remove.
19960         (--param struct-reorg-cold-struct-ratio): Likewise.
19961         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
19962         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
19963         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
19964
19965 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19966
19967         * config/s390/2084.md: Enable all insn reservations also for z9_ec
19968         cpu attribute value.
19969         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
19970         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
19971         * config/s390/s390.c (processor_flags_table): New constant array.
19972         (s390_handle_arch_option): Remove.
19973         (s390_handle_option): Remove s390_handle_arch_option invocations
19974         and OPT_mwarn_framesize_ handling.
19975         (s390_option_override): Remove s390_handle_arch_option invocation.
19976         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
19977         warnings.
19978         * config/s390/s390.md (cpu attribute): Add z9_ec value.
19979         * config/s390/s390.opt (s390_tune, s390_arch)
19980         (march=): Replace s390_arch_option enum and values with
19981         processor_type.  Set variable name to s390_arch.  Set
19982         initialization value.
19983         (mtune=): Replace s390_arch_option with processor_type.  Set
19984         variable name to s390_tune.  Set initialization value.
19985
19986 2011-03-23  Julian Brown  <julian@codesourcery.com>
19987
19988         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
19989         accesses which are not naturally aligned.
19990
19991 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
19992
19993         PR target/47553
19994         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
19995
19996 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
19997
19998         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
19999         parameter from "int" to "enum insn_code".
20000         (expand_operand_type): New enum.
20001         (expand_operand): New structure.
20002         (create_expand_operand): New function.
20003         (create_fixed_operand, create_output_operand): Likewise
20004         (create_input_operand, create_convert_operand_to): Likewise.
20005         (create_convert_operand_from, create_address_operand): Likewise.
20006         (create_integer_operand): Likewise.
20007         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
20008         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20009         (expand_insn, expand_jump_insn): Likewise.
20010         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
20011         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
20012         (expand_movstr, expand_builtin___clear_cache): Likewise.
20013         (expand_builtin_lock_release): Likewise.
20014         * explow.c (allocate_dynamic_stack_space): Likewise.
20015         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
20016         and use the default handling in that case.
20017         * expmed.c (check_predicate_volatile_ok): Delete.
20018         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
20019         (emit_cstore): Likewise.
20020         * expr.c (emit_block_move_via_movmem): Likewise.
20021         (set_storage_via_setmem, expand_assignment): Likewise.
20022         (emit_storent_insn, try_casesi): Likewise.
20023         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
20024         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
20025         (expand_vec_shift_expr, expand_binop_directly): Likewise.
20026         (expand_twoval_unop, expand_twoval_binop): Likewise.
20027         (expand_unop_direct, emit_indirect_jump): Likewise.
20028         (emit_conditional_move, vector_compare_rtx): Likewise.
20029         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
20030         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
20031         (expand_sync_lock_test_and_set): Likewise.
20032         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
20033         (emit_unop_insn): Likewise.
20034         (expand_copysign_absneg): Change icode to an insn_code.
20035         (create_convert_operand_from_type): New function.
20036         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
20037         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20038         (expand_insn, expand_jump_insn): Likewise.
20039         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
20040         than const_int_operand for operand 2.
20041
20042 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20043
20044         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
20045         if possible.
20046
20047 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
20048
20049         * emit-rtl.c (emit_pattern_before_noloc): New function.
20050         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
20051         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
20052         (emit_pattern_after_noloc): New function.
20053         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
20054         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
20055
20056 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
20057
20058         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
20059         (__ffsDI2): Likewise.
20060
20061 2011-03-22  Richard Henderson  <rth@redhat.com>
20062
20063         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
20064         of !TARGET_ABI_OPEN_VMS.
20065         (alpha_trampoline_init, alpha_start_function): Likewise.
20066         (alpha_expand_epilogue, alpha_file_start): Likewise.
20067         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
20068         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
20069         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
20070         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
20071         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
20072
20073 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20074
20075         * config/s390/s390-opts.h: New.
20076         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
20077         s390_arch_flags, s390_warn_framesize, s390_stack_size,
20078         s390_stack_guard): Remove.
20079         (s390_handle_arch_option): Return void.  Take enum
20080         s390_arch_option value instead of string and searching array.
20081         (s390_handle_option): Don't assert that global structures are in
20082         use.  Access variables via opts pointer.  Use error_at.  Don't use
20083         sscanf for -mstack-guard= or -mstack-size=.  Update call to
20084         s390_handle_arch_option.
20085         (s390_option_override): Update call to s390_handle_arch_option.
20086         (s390_emit_prologue): Use %d format for s390_stack_size in
20087         diagnostic.  Use %wd for HOST_WIDE_INT.
20088         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
20089         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
20090         * config/s390/s390.opt (config/s390/s390-opts.h): New
20091         HeaderInclude entry.
20092         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
20093         s390_arch_flags, s390_warn_framesize): New Variable entries.
20094         (s390_arch_option): New Enum and EnumValue entries.
20095         (march=): Use Enum instead of Var.
20096         (mstack-guard=, mstack-size=): Use UInteger and Var.
20097         (mtune=): Use Enum.
20098
20099 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20100
20101         * config/score/score.c (score_handle_option): Don't assert that
20102         global structures are in use.  Access target_flags via opts
20103         pointer.  Use value of -march= option to determine target_flags
20104         settings.
20105         * config/score/score.opt (march=): Use Enum.
20106         (score_arch): New Enum and EnumValue entries.
20107
20108 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20109
20110         * config/mep/mep.c (option_mtiny_specified): Remove.
20111         (mep_option_override): Move register handling for -mivc2 from
20112         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
20113         instead of option_mtiny_specified.
20114         (mep_handle_option): Access target_flags via opts pointer.  Don't
20115         assert that global structures are in use.  Defer part of -mivc2
20116         handling and move it to mep_option_override.
20117         * config/mep/mep.opt (IVC2): New Mask entry.
20118         (mivc2): Use Var and Defer instead of Mask.
20119
20120 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20121
20122         * config/v850/v850-opts.h: New.
20123         * config/v850/v850.c (small_memory): Replace with
20124         small_memory_physical_max array.  Make that array static const.
20125         (v850_handle_memory_option): Take integer value of argument.  Take
20126         gcc_options pointer, option text and location.  Return void.
20127         Update for changes to small memory structures.
20128         (v850_handle_option): Access target_flags via opts pointer.  Don't
20129         assert that global structures are in use.  Update calls to
20130         v850_handle_memory_option.
20131         (v850_encode_data_area): Update references to small memory settings.
20132         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
20133         (enum small_memory_type): Move to v850-opts.h.
20134         * config/v850/v850.opt (config/v850/v850-opts.h): New
20135         HeaderInclude entry.
20136         (small_memory_max): New Variable entry.
20137         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
20138         (mtda, mzda): Likewise.
20139
20140 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20141
20142         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
20143         pointer.  Don't assert that global structures are in use.
20144
20145 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20146
20147         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
20148         via opts pointer.  Don't assert that global structures are in use.
20149
20150 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20151
20152         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
20153         (munix=93): Use Var.
20154         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
20155         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
20156         * config/pa/pa-opts.h: New.
20157         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
20158         (pa_handle_option): Don't assert that global structures are in
20159         use.  Access target_flags via opts pointer.  Don't handle
20160         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
20161         OPT_munix_98 here.
20162         (pa_option_override): Handle deferred OPT_mfixed_range_.
20163
20164 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20165
20166         * config/mn10300/mn10300-opts.h: New.
20167         * config/mn10300/mn10300.c (mn10300_processor,
20168         mn10300_tune_string): Remove.
20169         (mn10300_handle_option): Don't assert that global structures are
20170         in use.  Access mn10300_processor via opts pointer.  Don't handle
20171         OPT_mtune_ here.
20172         * config/mn10300/mn10300.h (enum processor_type): Move to
20173         mn10300-opts.h.
20174         (mn10300_processor): Remove.
20175         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
20176         HeaderInclude entry.
20177         (mn10300_processor): New Variable entry.
20178         (mtune=): Use Var.
20179
20180 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20181
20182         * config/microblaze/microblaze.c: Don't include opts.h.
20183         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
20184         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
20185         (mno-clearbss): Use Var and Warn.
20186
20187 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20188
20189         * config/m32r/m32r-opts.h: New.
20190         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
20191         (m32r_handle_option): Don't assert that global structures are in
20192         use.  Access target_flags and m32r_cache_flush_func via opts
20193         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
20194         OPT_mno_flush_trap here.
20195         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
20196         include of m32r-opts.h.
20197         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
20198         HeaderInclude entry.
20199         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
20200         (mmodel=): Use Enum and Var.
20201         (m32r_model): New Enum and EnumValue entries.
20202         (mno-flush-trap): Use Var.
20203         (msdata=): Use Enum and Var.
20204         (m32r_sdata): New Enum and EnumValue entries.
20205
20206 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20207
20208         * config/m32c/m32c.c: Don't include opts.h.
20209         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
20210         m32c_handle_option): Remove.
20211         (m32c_option_override): Check global_options_set.x_target_memregs
20212         instead of target_memregs_set.
20213         * config/m32c/m32c.h (target_memregs): Remove.
20214         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
20215         variable.
20216
20217 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20218
20219         * config/iq2000/iq2000-opts.h: New.
20220         * config/iq2000/iq2000.c: Don't include opts.h.
20221         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
20222         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
20223         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
20224         HeaderInclude entry.
20225         (iq2000_tune): New Variable entry.
20226         (march=): Add comment.  Use Enum.
20227         (iq2000_arch): New Enum and EnumValue entries.
20228         (mcpu=): Use Enum and Var.
20229         (iq2000_tune): New Enum and EnumValue entries.
20230
20231 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20232
20233         * config/ia64/ia64-opts.h: New.
20234         * config/ia64/ia64.c (ia64_tune): Remove.
20235         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
20236         here.  Use error_at.
20237         (ia64_option_override): Handle deferred OPT_mfixed_range_.
20238         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
20239         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
20240         HeaderInclude entry.
20241         (ia64_tune): New Variable entry.
20242         (mfixed-range=): Use Defer and Var.
20243         (mtune=): Use Enum and Var.
20244         (ia64_tune): New Enum and EnumValue entries.
20245
20246 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20247
20248         * config/frv/frv-opts.h: New.
20249         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
20250         frv-opts.h.
20251         (frv_cpu_type): Remove.
20252         * config/frv/frv.c: Don't include opts.h.
20253         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
20254         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
20255         (frv_cpu_type): New Variable entry.
20256         (frv_cpu): New Enum and EnumValue entries.
20257
20258 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20259
20260         * config/cris/cris.c (cris_handle_option): Access target_flags via
20261         opts pointer.  Don't assert that global structures are in use.
20262         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
20263         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
20264
20265 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20266
20267         * config/bfin/bfin-opts.h: New.
20268         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
20269         bfin_si_revision, bfin_workarounds): Remove.
20270         (bfin_cpus): Make static const.
20271         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
20272         not bfin_lib_id_given.
20273         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
20274         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
20275         pointer. Use error_at.  Don't assert that global structures are in use.
20276         * config/bfin/bfin.h: Include bfin-opts.h.
20277         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
20278         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
20279         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
20280         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
20281         entries.
20282
20283 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20284
20285         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
20286         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
20287         or -msoft-float here.
20288         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
20289         -msoft-float and -mhard-float.
20290         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
20291         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20292         msoft-float.
20293         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
20294         -msoft-float.
20295         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
20296         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
20297         not mhard-float.
20298         (LIBGCC_SPEC): Don't handle -msoft-float.
20299         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
20300         -mhard-float.
20301         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20302         msoft-float.
20303         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
20304         -mfloat-abi=*, not -msoft-float and -mhard-float.
20305         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
20306         -msoft-float.
20307         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
20308         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
20309         mhard-float and msoft-float.
20310         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
20311         mfloat-abi=soft in comments, not mhard-float and msoft-float.
20312         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20313         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
20314         mhard-float.
20315         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
20316         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
20317         msoft-float.
20318         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
20319         not mhard-float.
20320         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
20321         not msoft-float.
20322
20323 2011-03-22  Richard Henderson  <rth@redhat.com>
20324
20325         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
20326         TARGET_ABI_WINDOWS_NT.
20327         (alpha_output_function_end_prologue): Likewise.
20328         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
20329         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20330         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
20331         (trap, *movsi_nt_vms): Likewise.
20332         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
20333         (*tablejump_osf_nt_internal): Remove.
20334         * config/alpha/predicates.md (input_operand): Only test Pmode.
20335
20336 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20337
20338         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
20339         via opts pointer.  Use error_at.  Don't assert that global
20340         structures are in use.
20341
20342 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20343
20344         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
20345         (ix86_handle_option): Access ix86_isa_flags and
20346         ix86_isa_flags_explicit via opts pointer.  Don't assert that
20347         global structures are in use.
20348         (ix86_function_specific_save, ix86_function_specific_restore):
20349         Update ix86_isa_flags_explicit field name.
20350         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
20351         (ix86_isa_flags_explicit): Rename TargetSave entry to
20352         x_ix86_isa_flags_explicit.
20353
20354 2011-03-22  Richard Henderson  <rth@redhat.com>
20355
20356         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
20357         (alpha_option_override, direct_return): Likewise.
20358         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
20359         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
20360         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
20361         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20362         (alpha_expand_epilogue, alpha_end_function): Likewise.
20363         (alpha_init_libfuncs): Likewise.
20364         (struct machine_function): Remove unicosmk members.
20365         (print_operand) ['t']: Remove.
20366         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
20367         unicosmk_output_module_name, unicosmk_output_common,
20368         current_section_align, unicosmk_output_text_section_asm_op,
20369         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
20370         unicosmk_section_type_flags, unicosmk_unique_section,
20371         unicosmk_asm_named_section, unicosmk_insert_attributes,
20372         unicosmk_output_align, unicosmk_defer_case_vector,
20373         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
20374         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
20375         unicosmk_output_ssib, unicosmk_add_call_info_word,
20376         unicosmk_extern_head, unicosmk_output_default_externs,
20377         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
20378         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
20379         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
20380         * config/alpha/alpha-protos.h: Update.
20381         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
20382         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
20383         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
20384         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
20385         (*mulsi_se, mulvsi3): Likewise.
20386         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
20387         (*divmodsi_internal, call, call_value, realign): Likewise.
20388         (moddi3, umoddi3): Likewise; remove duplicate expander.
20389         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
20390         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
20391         (*movdi_nofix): Remove r/U alternative.
20392         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
20393         * config/alpha/constraints.md ("U"): Remove.
20394         * config/alpha/predicates.md (call_operand"): Don't test
20395         TARGET_ABI_UNICOSMK.
20396
20397 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20398
20399         * target.def (handle_option): Take gcc_options and
20400         cl_decoded_option pointers and location_t.
20401         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
20402         * doc/tm.texi: Regenerate.
20403         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
20404         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
20405         * lto-opts.c (lto_reissue_options): Generate option structure for
20406         targetm.handle_option call.
20407         * opts.c (target_handle_option): Update call to
20408         targetm.handle_option.  Remove assertions about values now passed
20409         down to hook.
20410         * targhooks.c (default_target_handle_option): New.
20411         * targhooks.h (default_target_handle_option): Declare.
20412         * config/alpha/alpha.c: Include opts.h.
20413         (alpha_handle_option): Update to new hook interface.
20414         * config/arm/arm.c: Include opts.h.
20415         (arm_handle_option): Update to new hook interface.
20416         * config/arm/t-arm (arm.o): Update dependencies.
20417         * config/bfin/bfin.c: Include opts.h.
20418         (bfin_handle_option): Update to new hook interface.
20419         * config/cris/cris.c: Include opts.h.
20420         (cris_handle_option): Update to new hook interface.
20421         * config/frv/frv.c: Include opts.h.
20422         (frv_handle_option): Update to new hook interface.
20423         * config/i386/i386.c: Include opts.h.
20424         (ix86_handle_option): Update to new hook interface.
20425         (ix86_valid_target_attribute_inner_p): Generate option structure
20426         for call to ix86_handle_option.
20427         * config/i386/t-i386 (i386.o): Update dependencies.
20428         * config/ia64/ia64.c: Include opts.h.
20429         (ia64_handle_option): Update to new hook interface.
20430         * config/ia64/t-ia64 (ia64.o): Update dependencies.
20431         * config/iq2000/iq2000.c: Include opts.h.
20432         (iq2000_handle_option): Update to new hook interface.
20433         * config/m32c/m32c.c: Include opts.h.
20434         (m32c_handle_option): Update to new hook interface.
20435         * config/m32r/m32r.c: Include opts.h.
20436         (m32r_handle_option): Update to new hook interface.
20437         * config/m68k/m68k.c: Include opts.h.
20438         (m68k_handle_option): Update to new hook interface.
20439         * config/mep/mep.c: Include opts.h.
20440         (mep_handle_option): Update to new hook interface.
20441         * config/microblaze/microblaze.c: Include opts.h.
20442         (microblaze_handle_option): Update to new hook interface.
20443         * config/mips/mips.c: Include opts.h.
20444         (mips_handle_option): Update to new hook interface.
20445         * config/mn10300/mn10300.c: Include opts.h.
20446         (mn10300_handle_option): Update to new hook interface.
20447         * config/pa/pa.c: Include opts.h.
20448         (pa_handle_option): Update to new hook interface.
20449         * config/pdp11/pdp11.c: Include opts.h.
20450         (pdp11_handle_option): Update to new hook interface.
20451         * config/rs6000/rs6000.c: Include opts.h.
20452         (rs6000_handle_option): Update to new hook interface.
20453         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
20454         * config/rx/rx.c: Include opts.h.
20455         (rx_handle_option): Update to new hook interface.
20456         * config/s390/s390.c: Include opts.h.
20457         (s390_handle_option): Update to new hook interface.
20458         * config/score/score.c: Include opts.h.
20459         (score_handle_option): Update to new hook interface.
20460         * config/sh/sh.c: Include opts.h.
20461         (sh_handle_option): Update to new hook interface.
20462         * config/sparc/sparc.c: Include opts.h.
20463         (sparc_handle_option): Update to new hook interface.
20464         * config/v850/v850.c: Include opts.h.
20465         (v850_handle_option): Update to new hook interface.
20466
20467 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20468
20469         * gcc.c (driver_unknown_option_callback): Only permit and save
20470         unknown -Wno- options.
20471         (driver_wrong_lang_callback): Save options directly instead of via
20472         driver_unknown_option_callback.
20473
20474 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
20475
20476         * combine.c (simplify_set): Try harder to find the best CC mode when
20477         simplifying a nested COMPARE on the RHS.
20478
20479 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
20480
20481         * config/alpha/gnu.h: Remove.
20482         * config/arc: Remove directory.
20483         * config/arm/netbsd.h: Remove.
20484         * config/arm/t-pe: Remove.
20485         * config/crx: Remove directory.
20486         * config/i386/netbsd.h: Remove.
20487         * config/m68hc11: Remove directory.
20488         * config/m68k/uclinux-oldabi.h: Remove.
20489         * config/mcore/mcore-pe.h: Remove.
20490         * config/mcore/t-mcore-pe: Remove.
20491         * config/netbsd-aout.h: Remove.
20492         * config/rs6000/gnu.h: Remove.
20493         * config/sh/sh-symbian.h: Remove.
20494         * config/sh/symbian-base.c: Remove.
20495         * config/sh/symbian-c.c: Remove.
20496         * config/sh/symbian-cxx.c: Remove.
20497         * config/sh/symbian-post.h: Remove.
20498         * config/sh/symbian-pre.h: Remove.
20499         * config/sh/t-symbian: Remove.
20500         * config/svr3.h: Remove.
20501         * config/vax/netbsd.h: Remove.
20502         * config.build: Don't handle i[34567]86-*-pe.
20503         * config.gcc: Remove handling of deprecations for most deprecated
20504         targets.
20505         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
20506         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
20507         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
20508         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
20509         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
20510         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
20511         Remove cases.
20512         * config.host: Don't handle i[34567]86-*-pe.
20513         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
20514         (ASM_SPEC32): Don't handle -mcall-gnu.
20515         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
20516         -mcall-gnu.
20517         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
20518         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
20519         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
20520         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
20521         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
20522         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
20523         conditional on SYMBIAN.
20524         * configure.ac: Don't handle powerpc*-*-gnu*.
20525         * configure: Regenerate.
20526         * doc/extend.texi (interrupt attribute): Don't mention CRX.
20527         * doc/install-old.texi (m6811, m6812): Don't mention.
20528         * doc/install.texi (arc-*-elf*): Don't document multilib option.
20529         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
20530         (m68k-uclinuxoldabi): Don't mention.
20531         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
20532         Remove.
20533         (-mcall-gnu): Remove.
20534         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
20535         families): Remove constraint documentation.
20536
20537 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
20538
20539         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
20540         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
20541         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
20542
20543 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20544
20545         PR target/48226
20546         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
20547         vector when peeking at the next token for vector, don't expand the
20548         keywords.
20549
20550 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
20551
20552         * config/avr/avr-protos.h (expand_epilogue): Change prototype
20553         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
20554         * config/avr/avr.c (init_cumulative_args)
20555         (avr_function_arg_advance): Use it.
20556         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
20557         sibcall epilogues.
20558         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
20559         (avr_function_ok_for_sibcall): ...this new function.
20560         (avr_lookup_function_attribute1): New static Function.
20561         (avr_naked_function_p, interrupt_function_p)
20562         (signal_function_p, avr_OS_task_function_p)
20563         (avr_OS_main_function_p): Use it.
20564         * config/avr/avr.md ("sibcall", "sibcall_value")
20565         ("sibcall_epilogue"): New expander.
20566         ("*call_insn", "*call_value_insn"): New insn.
20567         ("call_insn", "call_value_insn"): Remove
20568         ("call", "call_value", "epilogue"): Change expander to handle
20569         sibling calls.
20570
20571 2011-03-21  Nick Clifton  <nickc@redhat.com>
20572
20573         * doc/invoke.texi (Overall Options): Move closing brace to end of
20574         options list.
20575         (Optimization Options): Add missing @gol.
20576         (Directory Options): Likewise.
20577         (i386 and x86-64 Options): Likewise.
20578         (RS6000 and PowerPC Options): Likewise.
20579         (i386 and x86-64 Windows Options): Likewise.
20580         (V850 Options): Add text missing from descriptions.
20581
20582 2011-03-22  Richard Henderson  <rth@redhat.com>
20583
20584         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
20585         (avr_incoming_return_addr_rtx): New.
20586         (emit_push_byte): New.
20587         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
20588         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
20589         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
20590         (emit_pop_byte): New.
20591         (expand_epilogue): Use it.  Pop frame pointer by bytes.
20592         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
20593         (INCOMING_RETURN_ADDR_RTX): New.
20594         (INCOMING_FRAME_SP_OFFSET): New.
20595         (ARG_POINTER_CFA_OFFSET): New.
20596         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
20597         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
20598         (pophi): Remove.
20599
20600         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
20601
20602 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
20603
20604         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20605         (FUNCTION_ARG_ADVANCE): Likewise.
20606         * tm.texi.in: Change references to them to hook references.
20607         * tm.texi: Regenerate.
20608         * targhooks.c (default_function_arg): Eliminate check for target
20609         macro.
20610         (default_function_incoming_arg): Likewise.
20611         (default_function_arg_advance): Likewise.
20612         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
20613         (function_arg_advance): Likewise.
20614         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20615
20616 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
20617
20618         * tree.c (build_call_1): New function.
20619         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
20620
20621 2011-03-22  Richard Guenther  <rguenther@suse.de>
20622
20623         PR tree-optimization/48228
20624         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
20625         for single-arg PHIs.
20626
20627 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
20628
20629         PR rtl-optimization/48143
20630         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
20631         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
20632         sse2_cvtps2pd): Likewise.
20633
20634 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20635
20636         * recog.c (canonicalize_change_group): Use validate_unshare_change.
20637
20638 2011-03-22  Richard Guenther  <rguenther@suse.de>
20639
20640         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
20641         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
20642         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
20643         and REALIGN_LOAD_EXPR.
20644         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
20645         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
20646         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
20647         DOT_PROD_EXPR case ...
20648         (expand_expr_real_2): ... here.
20649         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
20650         and REALIGN_LOAD_EXPR.
20651         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
20652         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
20653         (vect_create_epilog_for_reduction): Likewise.
20654         (vectorizable_reduction): Likewise.
20655         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
20656         * tree-vect-stmts.c (vectorizable_load): Likewise.
20657
20658 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
20659
20660         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
20661
20662 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20663
20664         * config/s390/s390.c (s390_delegitimize_address): Fix offset
20665         handling for PLTOFF/GOTOFF.
20666
20667 2011-03-22  Nick Clifton  <nickc@redhat.com>
20668
20669         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
20670         trailing backslash from the end of the macro definition.
20671
20672 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20673
20674         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
20675         and PLT unspecs.
20676
20677 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
20678
20679         * expr.h (prepare_operand): Move to...
20680         * optabs.h (prepare_operand): ...here and change the insn code
20681         parameter from "int" to "enum insn_code".
20682         (insn_operand_matches): Declare.
20683         * expr.c (init_expr_target): Use insn_operand_matches.
20684         (compress_float_constant): Likewise.
20685         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
20686         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
20687         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
20688         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
20689         Likewise.
20690         (gen_cond_trap): Likewise.
20691         (prepare_operand): Likewise.  Change icode to an insn_code.
20692         (insn_operand_matches): New function.
20693         * reload.c (find_reloads_address_1): Use insn_operand_matches.
20694         * reload1.c (gen_reload): Likewise.
20695         * targhooks.c (default_secondary_reload): Likewise.
20696
20697 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
20698
20699         * config/alpha/alpha.md (unspec): New define_c_enum.
20700         (unspecv): Ditto.
20701
20702 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
20703
20704         PR debug/48214
20705         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
20706         between a call and its CALL_ARG_LOCATION note.
20707
20708 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
20709
20710         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
20711
20712 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
20713
20714         PR c/42544
20715         PR c/48197
20716         * c-common.c (shorten_compare): If primopN is first sign-extended
20717         to opN and then zero-extended to result type, set primopN to opN.
20718
20719 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
20720
20721         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
20722         for barrier handlers.
20723
20724 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20725
20726         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
20727         UNSPEC constants to be in the unspec enumeration, and redefine
20728         all UNSPECV constants to be in the unspecv enumeration, so that
20729         dumps print which unspec/unspec_volatile this is.
20730         * config/rs6000/vector.md (UNSPEC_*): Ditto.
20731         * config/rs6000/paired.md (UNSPEC_*): Ditto.
20732         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
20733         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
20734         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
20735
20736         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
20737         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
20738         UNSPECV_LWSYNC, since these are used as unspec_volatile.
20739         * config/rs6000/sync.md (isync, lwsync): Ditto.
20740
20741 2011-03-21  Richard Guenther  <rguenther@suse.de>
20742
20743         * params.def (lto-min-partition): Fix typo.
20744
20745 2011-03-21  Richard Guenther  <rguenther@suse.de>
20746
20747         PR c/47939
20748         * c-decl.c (grokdeclarator): Drop to the main variant only
20749         for array types.  Drop flag_gen_aux_info check.
20750
20751 2011-03-21  Richard Guenther  <rguenther@suse.de>
20752
20753         PR translation/47911
20754         * params.def (lto-partitions): Fix typo.
20755         (lto-min-partition): Fix wording.
20756
20757 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
20758
20759         * config/rs6000/t-freebsd: Remove duplication from file.
20760
20761 2011-03-21  Richard Guenther  <rguenther@suse.de>
20762
20763         PR middle-end/47661
20764         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
20765
20766 2011-03-21  Richard Guenther  <rguenther@suse.de>
20767
20768         PR lto/48210
20769         * params.def (lto-partitions): Require at least 1 partition.
20770
20771 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20772
20773         * gthr-solaris.h: Remove.
20774         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
20775         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
20776         (LIB_SPEC): Likewise.
20777         * config/sol2.opt (threads): Remove.
20778         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
20779         (sparc*-*-solaris2*): Likewise.
20780         * configure.ac (enable_threads): Enable solaris support.
20781         * configure: Regenerate.
20782         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
20783         * doc/install.texi (Configuration, --enable-threads=lib): Remove
20784         solaris.
20785
20786 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20787
20788         * config.gcc: Obsolete *-*-solaris2.8*.
20789         * doc/install.texi (Specific, *-*-solaris2*): Document it.
20790
20791 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20792
20793         PR bootstrap/48135
20794         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
20795         reference.  Solaris 8 perl works.
20796
20797 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20798
20799         PR bootstrap/48135
20800         * doc/install.texi (Prerequisites): Move jar etc. up.
20801         Explain support library version requirements.
20802
20803 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20804
20805         PR bootstrap/48135
20806         * doc/install.texi (Prerequisites): Move Perl to build
20807         requirements.  Always necessary on Solaris 2 with Sun ld.
20808
20809 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20810
20811         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
20812         binutils 2.21.
20813         (Specific, i?86-*-solaris2.[89]): Likewise.
20814         (Specific, i?86-*-solaris2.10): Likewise.
20815         (Specific, mips-sgi-irix6): Likewise.
20816         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
20817         Update for binutils 2.21.
20818
20819 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20820
20821         * configure.ac (gcc_cv_lto_plugin): Fix typo.
20822         Allow -fuse-linker-plugin for non-default plugin linker.
20823         * configure: Regenerate.
20824
20825 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
20826
20827         PR bootstrap/48167
20828         * gengtype.c (files_rules): Added rule for cp/parser.h.
20829
20830 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
20831
20832         PR target/48213
20833         * config/s390/s390.c (s390_delegitimize_address): Don't call
20834         lowpart_subreg if orig_x has BLKmode.
20835
20836 2011-03-21  Kai Tietz  <ktietz@redhat.com>
20837
20838         PR target/12171
20839         * doc/plugins.texi: Adjust documentation for plugin register_callback.
20840         * tree.h (attribute_spec): Add new member affects_type_identity.
20841         * attribs.c (empty_attribute_table): Adjust attribute_spec
20842         initializers.
20843         * config/alpha/alpha.c: Likewise.
20844         * config/arc/arc.c: Likewise.
20845         * config/arm/arm.c: Likewise.
20846         * config/avr/avr.c: Likewise.
20847         * config/bfin/bfin.c: Likewise.
20848         * config/crx/crx.c: Likewise.
20849         * config/darwin.h: Likewise.
20850         * config/h8300/h8300.c: Likewise.
20851         * config/i386/cygming.h: Likewise.
20852         * config/i386/i386.c: Likewise.
20853         * config/ia64/ia64.c: Likewise.
20854         * config/m32c/m32c.c: Likewise.
20855         * config/m32r/m32r.c: Likewise.
20856         * config/m68hc11/m68hc11.c: Likewise.
20857         * config/m68k/m68k.c: Likewise.
20858         * config/mcore/mcore.c: Likewise.
20859         * config/mep/mep.c: Likewise.
20860         * config/microblaze/microblaze.c: Likewise.
20861         * config/mips/mips.c: Likewise.
20862         * config/rs6000/rs6000.c: Likewise.
20863         * config/rx/rx.c: Likewise.
20864         * config/sh/sh.c: Likewise.
20865         * config/sol2.h: Likewise.
20866         * config/sparc/sparc.c: Likewise.
20867         * config/spu/spu.c: Likewise.
20868         * config/stormy16/stormy16.c: Likewise.
20869         * config/v850/v850.c: Likewise.
20870
20871 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
20872
20873         * simplify-rtx.c (simplify_binary_operation_1): Handle
20874         (xor (and A B) C) case when B and C are both constants.
20875
20876 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
20877
20878         * tree-dfa.c (add_referenced_var): Fix typo in comment.
20879
20880 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
20881
20882         PR bootstrap/48168
20883         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
20884
20885 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
20886
20887         PR rtl-optimization/48156
20888         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
20889         assume df and df_lr are not NULL.
20890
20891 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20892
20893         PR debug/48023
20894         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
20895         between a call and its CALL_ARG_LOCATION note.
20896
20897 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
20898
20899         PR debug/48178
20900         * config/sh/sh.c (find_barrier): Don't emit a constant pool
20901         between a call and its corresponding CALL_ARG_LOCATION note.
20902
20903 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
20904
20905         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
20906         instead of loop. Use HARD_REGISTER_NUM_P predicate.
20907         * haifa-sched.c (setup_ref_regs): Ditto.
20908         * caller-save.c (add_used_regs_1): Ditto.
20909         * dse.c (look_for_hardregs): Ditto.
20910         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
20911         * sched-rgn.c (check_live_1): Ditto.
20912
20913 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
20914
20915         * c-decl.c (diagnose_mismatched_decls): Give an error for
20916         redefining a typedef with variably modified type.
20917
20918 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
20919
20920         * c-decl.c (grokfield): Don't allow typedefs for structures or
20921         unions with no tag by default.
20922         * doc/extend.texi (Unnamed Fields): Update.
20923
20924 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
20925
20926         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
20927         Rewrite using indirect functions.
20928         (lwp_slwpcb): Ditto.
20929         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
20930         (avx_vinsertf128<mode>): Ditto.
20931
20932 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20933
20934         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
20935         unspecs.
20936
20937 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20938
20939         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
20940         splitting between a call and its corresponding CALL_ARG_LOCATION note.
20941
20942 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
20943
20944         PR rtl-optimization/48170
20945         * gcse.c (hoist_code): Remove bogus asserts.
20946
20947 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
20948
20949         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
20950         computation for prologue/epilogue.
20951
20952 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20953
20954         * Makefile.in (check-consistency): Remove.
20955
20956 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
20957
20958         PR debug/48176
20959         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
20960         arange_table_in_use is 0, but either text_section_used or
20961         cold_text_section_used is true.  Don't call it if
20962         !info_section_emitted.
20963
20964 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
20965
20966         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
20967         FUNCTION_VALUE_REGNO_P): Remove.
20968         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
20969         Remove.
20970         * config/avr/avr.c (avr_ret_register): Make static inline.
20971         (avr_function_value_regno_p): New function.
20972         (avr_libcall_value): Make static. Add 'func' argument.
20973         (avr_function_value): Make static. Rename 'func' argument to
20974         'fn_decl_or_type', forward it to avr_libcall_value. Call
20975         avr_ret_register function instead of RET_REGISTER macro.
20976         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20977
20978 2011-03-18  Jason Merrill  <jason@redhat.com>
20979
20980         PR c++/23372
20981         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
20982
20983 2011-03-18  Richard Guenther  <rguenther@suse.de>
20984
20985         * doc/install.texi (--enable-gold): Remove.
20986         (--with-plugin-ld): Document.
20987         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
20988
20989 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
20990
20991         PR middle-end/47790
20992         * expr.c (optimize_bitfield_assignment_op): Revamp to work
20993         again after expansion changes.
20994
20995 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
20996
20997         * combine.c (try_combine): Do simplification only call of
20998         subst() on i2 even when i1 is present. Update comments.
20999
21000 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21001
21002         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
21003         and UNSPEC_PCREL_SYMOFF.
21004
21005 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21006
21007         * config/s390/s390.md: Use define_c_enum for the unspec constant
21008         definitions.
21009
21010 2011-03-18  Richard Henderson  <rth@redhat.com>
21011             Jakub Jelinek  <jakub@redhat.com>
21012
21013         PR bootstrap/48161
21014         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
21015         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
21016
21017 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
21018
21019         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21020         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
21021         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
21022         Change return type to bool.
21023         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21024
21025 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
21026
21027         PR debug/48163
21028         * var-tracking.c (prepare_call_arguments): If CALL target
21029         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
21030         pc instead of looking it up using cselib_lookup and use
21031         Pmode for it if x has VOIDmode.
21032         * dwarf2out.c (gen_subprogram_die): If also both first and
21033         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
21034
21035         PR debug/48163
21036         * function.c (assign_parms): For data.passed_pointer parms
21037         use MEM of data.entry_parm instead of data.entry_parm itself
21038         as DECL_INCOMING_RTL.
21039         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
21040         also when passed and declared mode is the same, DECL_RTL
21041         is a MEM with pseudo as address and DECL_INCOMING_RTL is
21042         a MEM too.
21043
21044 2011-03-16  Jeff Law  <law@redhat.com>
21045
21046         PR rtl-optimization/37273
21047         * ira-costs.c (scan_one_insn): Detect constants living in memory and
21048         handle them like argument loads from stack slots.  Do not double
21049         count memory for memory constants and argument loads from stack slots.
21050
21051 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21052
21053         PR debug/48160
21054         * var-tracking.c (prepare_call_arguments): Check SUBREG.
21055
21056 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21057
21058         PR target/48171
21059         * config/i386/i386.opt: Add Save to -mavx and -mfma.
21060
21061 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
21062
21063         PR bootstrap/48153
21064         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
21065         if dwarf_strict.
21066         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
21067         Clear call_arg_locations and call_arg_loc_last always.
21068
21069         PR middle-end/48152
21070         * var-tracking.c (prepare_call_arguments): If argument needs to be
21071         passed by reference, adjust argtype and mode.
21072
21073 2011-03-17  Richard Guenther  <rguenther@suse.de>
21074
21075         PR middle-end/48134
21076         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
21077         a value make sure to fold the statement.
21078
21079 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
21080
21081         PR target/43872
21082         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
21083         return condition with !cfun->calls_alloca.
21084
21085 2011-03-17  Richard Guenther  <rguenther@suse.de>
21086
21087         PR bootstrap/48148
21088         * lto-cgraph.c (input_overwrite_node): Clear the abstract
21089         origin for decls in other ltrans units.
21090         (input_varpool_node): Likewise.
21091
21092 2011-03-17  Richard Guenther  <rguenther@suse.de>
21093
21094         PR middle-end/48165
21095         * tree-object-size.c (compute_object_offset): Properly return
21096         the offset operand of MEM_REFs as sizetype.
21097
21098 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
21099
21100         PR rtl-optimization/48141
21101         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
21102         * dse.c: Include params.h.
21103         (active_local_stores_len): New variable.
21104         (add_wild_read, dse_step1): Clear it when setting active_local_stores
21105         to NULL.
21106         (record_store, check_mem_read_rtx): Decrease it when removing
21107         from the chain.
21108         (scan_insn): Likewise.  Increase it when adding to chain, if it
21109         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
21110         set active_local_stores to NULL before the addition.
21111         * Makefile.in (dse.o): Depend on $(PARAMS_H).
21112
21113         PR rtl-optimization/48141
21114         * dse.c (record_store): If no positions are needed in an insn
21115         that cannot be deleted, at least unchain it from active_local_stores.
21116
21117 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
21118
21119         PR debug/47510
21120         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
21121         (lookup_type_die_strip_naming_typedef): ... here.
21122         (get_context_die): Use it.
21123         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
21124         the anonymous struct named by the naming typedef.
21125
21126 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21127
21128         PR target/48154
21129         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
21130         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21131
21132 2011-03-16  Jeff Law  <law@redhat.com>
21133
21134         * tree-vrp.c (identify_jump_threads): Slightly simplify type
21135         check for operands of conditional.  Allow type to be a pointer.
21136
21137 2011-03-16  Richard Guenther  <rguenther@suse.de>
21138
21139         PR tree-optimization/48149
21140         * fold-const.c (fold_binary_loc): Fold
21141         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
21142
21143 2011-03-16  Richard Guenther  <rguenther@suse.de>
21144
21145         PR tree-optimization/26134
21146         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
21147         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
21148         (non_rewritable_mem_ref_base): Handle complex type component
21149         accesses, constrain offsets for vector and complex extracts
21150         more properly.
21151
21152 2011-03-16  Richard Guenther  <rguenther@suse.de>
21153
21154         PR tree-optimization/48146
21155         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
21156         operands avoiding the need for renaming.
21157
21158 2011-03-16  Richard Guenther  <rguenther@suse.de>
21159
21160         * gimple-fold.c (maybe_fold_reference): Open-code relevant
21161         constant folding.  Move MEM_REF canonicalization first.
21162         Rely on fold_const_aggregate_ref for initializer folding.
21163         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
21164
21165 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
21166
21167         PR middle-end/48136
21168         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21169         arg0/arg1 or their arguments are always fold converted to matching
21170         types.
21171
21172         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
21173         to nargs.
21174
21175 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21176
21177         PR lto/46944
21178         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
21179         Handle in-tree gold.
21180         (ld_vers): Extract binutils version for gold.
21181         (gcc_cv_ld_hidden): Handle gold here.
21182         (gcc_cv_lto_plugin): Determine level of linker plugin support.
21183         * configure: Regenerate.
21184         * config.in: Regenerate.
21185         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
21186         -fuse-linker-plugin otherwise.
21187         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
21188         (LINK_COMMAND_SPEC): Use it.
21189         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
21190
21191 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
21192
21193         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
21194         * calls.c: Remove debug.h include.
21195         (emit_call_1): Don't call virtual_call_token debug hook.
21196         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
21197         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
21198         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
21199         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
21200         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
21201         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
21202         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
21203         dwarf2out_virtual_call): Remove.
21204         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
21205         copy_call_info and virtual_call hooks.
21206         (dwarf2out_init): Don't initialize vcall_insn_table,
21207         debug_dcall_section and debug_vcall_section.
21208         (prune_unused_types): Don't mark nodes from dcall_table.
21209         (dwarf2out_finish): Don't output dcall or vcall tables.
21210         * final.c (final_scan_insn): Don't call direct_call or
21211         virtual_call debug hooks.
21212         * debug.h (struct gcc_debug_hooks): Remove direct_call,
21213         virtual_call_token, copy_call_info and virtual_call hooks.
21214         (debug_nothing_uid): Remove prototype.
21215         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
21216         copy_call_info and virtual_call hooks.
21217         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21218         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
21219         * debug.c (do_nothing_debug_hooks): Likewise.
21220         (debug_nothing_uid): Remove.
21221         * doc/invoke.texi (-fenable-icf-debug): Remove.
21222         * common.opt (-fenable-icf-debug): Likewise.
21223
21224         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
21225         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
21226         call's MEM.  Handle functions returning aggregate through a hidden
21227         first pointer.  For virtual calls add clobbered pc to call arguments
21228         chain.
21229         * dwarf2out.c (gen_subprogram_die): Emit
21230         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
21231         can't be emitted.
21232
21233         PR debug/45882
21234         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
21235         * rtl.h (ENTRY_VALUE_EXP): Define.
21236         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
21237         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21238         * print-rtl.c (print_rtx): Likewise.
21239         * gengtype.c (adjust_field_rtx_def): Likewise.
21240         * var-tracking.c (vt_add_function_parameter): Adjust
21241         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
21242         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
21243         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
21244         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
21245         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
21246
21247         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
21248         Call var_location debug hook even on CALL_INSNs.
21249         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
21250         * rtl.def (ENTRY_VALUE): New.
21251         * dwarf2out.c: Include cfglayout.h.
21252         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21253         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
21254         (struct call_arg_loc_node): New type.
21255         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
21256         tail_call_site_count): New variables.
21257         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
21258         DW_TAG_GNU_call_site_parameter.
21259         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
21260         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
21261         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
21262         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
21263         and DW_AT_GNU_all_source_call_sites.
21264         (mem_loc_descriptor): Handle ENTRY_VALUE.
21265         (add_src_coords_attributes): Don't add enything if
21266         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
21267         (dwarf2out_abstract_function): Save and clear call_arg_location,
21268         call_site_count and tail_call_site_count around dwarf2out_decl call.
21269         (gen_call_site_die): New function.
21270         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
21271         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
21272         (dwarf2out_function_decl): Clear call_arg_locations,
21273         call_arg_loc_last, set call_site_count and tail_call_site_count
21274         to -1 and free block_map.
21275         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
21276         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
21277         followed by any real instructions.
21278         (dwarf2out_begin_function): Set call_site_count and
21279         tail_call_site_count to 0.
21280         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
21281         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
21282         attempt to force a DIE for it and worst case remove the attribute.
21283         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
21284         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
21285         the decl itself.
21286         * var-tracking.c: Include tm_p.h.
21287         (vt_stack_adjustments): For calls call note_register_arguments.
21288         (argument_reg_set): New variable.
21289         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
21290         ensure the VALUE is resolved.
21291         (call_arguments): New variable.
21292         (prepare_call_arguments): New function.
21293         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
21294         (struct expand_loc_callback_data): Add ignore_cur_loc field.
21295         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
21296         always use the best expression.
21297         (vt_expand_loc): Add ignore_cur_loc argument.
21298         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
21299         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
21300         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
21301         note for all calls.
21302         (vt_add_function_parameter): Use cselib_lookup_from_insn.
21303         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
21304         argument.  Don't call cselib_preserve_only_values and
21305         cselib_reset_table.
21306         (note_register_arguments): New function.
21307         (vt_initialize): Compute argument_reg_set.  Call
21308         vt_add_function_parameters before processing basic blocks instead of
21309         afterwards.  For calls call prepare_call_arguments before calling
21310         cselib_process_insn.
21311         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
21312         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
21313         (var-tracking.o): Depend on $(TM_P_H).
21314         * cfglayout.h (insn_scope): New prototype.
21315         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
21316         * cfglayout.c (insn_scope): No longer static.
21317         * insn-notes.def (CALL_ARG_LOCATION): New.
21318         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
21319         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
21320         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
21321         nothing for DECL_EXTERNAL BLOCK_VARS.
21322
21323 2011-03-16  Alan Modra  <amodra@gmail.com>
21324
21325         PR target/45844
21326         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21327         create invalid offset address for vsx splat insn.
21328         * config/rs6000/predicates.md (splat_input_operand): New.
21329         * config/rs6000/vsx.md (vsx_splat_*): Use it.
21330
21331 2011-03-15  Xinliang David Li  <davidxl@google.com>
21332
21333         PR c/47837
21334         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
21335         (normalize_preds): New function.
21336         (is_use_properly_guarded): Normalize def predicates.
21337
21338 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21339
21340         PR target/46788
21341         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
21342         in the output template.
21343
21344 2011-03-15  Richard Guenther  <rguenther@suse.de>
21345
21346         PR middle-end/47650
21347         * tree-pretty-print.c (dump_function_declaration): Properly
21348         dump unprototyped and varargs function types.
21349
21350 2011-03-15  Richard Guenther  <rguenther@suse.de>
21351
21352         PR tree-optimization/13954
21353         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
21354         and friends.
21355
21356 2011-03-15  Richard Guenther  <rguenther@suse.de>
21357
21358         PR tree-optimization/48037
21359         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
21360         selects into BIT_FIELD_REFs.
21361         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
21362         vector select.
21363
21364 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
21365
21366         PR tree-optimization/48129
21367         * builtins.c (fold_builtin_snprintf): Convert to type of
21368         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
21369         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
21370
21371 2011-03-15  Richard Guenther  <rguenther@suse.de>
21372
21373         PR tree-optimization/41490
21374         * tree-ssa-dce.c (propagate_necessity): Handle returns without
21375         value but with VUSE.
21376         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
21377         return statements.
21378         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
21379         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
21380         * tree-tailcall.c (find_tail_calls): Ignore returns.
21381
21382 2011-03-15  Richard Guenther  <rguenther@suse.de>
21383
21384         PR middle-end/48031
21385         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
21386         or variable-indexed array accesses when in gimple form.
21387
21388 2011-03-15  Richard Guenther  <rguenther@suse.de>
21389
21390         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
21391
21392 2011-03-15  Alan Modra  <amodra@gmail.com>
21393
21394         PR target/48032
21395         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
21396         presume symbol_refs without a symbol_ref_decl are suitably
21397         aligned, nor other trees we may see here.  Handle anchor symbols.
21398         (legitimate_constant_pool_address_p): Comment.  Add mode param.
21399         Check cmodel=medium addresses.  Adjust all calls.
21400         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
21401         creating cmodel=medium optimized access to locals.
21402         * config/rs6000/constraints.md (R): Pass QImode to
21403         legitimate_constant_pool_address_p.
21404         * config/rs6000/predicates.md (input_operand): Pass mode to
21405         legitimate_constant_pool_address_p.
21406         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
21407         Update prototype.
21408
21409 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21410
21411         PR target/48053
21412         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
21413         64-bit constants being loaded into registers other than GPRs such
21414         as loading 0 into a VSX register.
21415
21416 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21417
21418         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
21419
21420 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
21421
21422         PR middle-end/47917
21423         * builtins.c (fold_builtin_snprintf): New function.
21424         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
21425         (fold_builtin_4): Likewise.
21426
21427         PR middle-end/38878
21428         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
21429         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
21430         and C - X == X also strip nops from +/-/p+ operand.
21431         When optimizing -X == C, fold C to arg0's type.
21432
21433         PR debug/47946
21434         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
21435         emit it as add_AT_int instead of add_AT_unsigned.
21436
21437 2011-03-14  Tom Tromey  <tromey@redhat.com>
21438
21439         * unwind-dw2.c: Include sys/sdt.h if it exists.
21440         (_Unwind_DebugHook): Use STAP_PROBE2.
21441         * config.in, configure: Rebuild.
21442         * configure.ac: Check for sys/sdt.h.
21443
21444 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
21445
21446         * config/i386/i386.md (ROUND_FLOOR): New constant.
21447         (ROUND_CEIL): Ditto.
21448         (ROUND_TRUNC): Ditto.
21449         (ROUND_MXCSR): Ditto.
21450         (ROUND_NO_EXC): Ditto.
21451         (rint<mode>2): Use new defines instead of numerical constants.
21452         (floor<mode>2): Ditto.
21453         (ceil<mode>2): Ditto.
21454         (btrunc<mode>2): Ditto.
21455         * config/i386/i386-builtin-types.def: Define ROUND function type
21456         aliases.
21457         * config/i386/i386.c (enum ix86_builtins): Add
21458         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
21459         (struct builtin_description): Add
21460         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
21461         (ix86_expand_sse_round): New static function.
21462         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
21463         function types.
21464         (ix86_builtin_vectorized_function): Handle
21465         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21466
21467 2011-03-14  Tom Tromey  <tromey@redhat.com>
21468
21469         * c-parser.c (c_parser_asm_string_literal): Clear
21470         warn_overlength_strings.
21471
21472 2011-03-14  Tom Tromey  <tromey@redhat.com>
21473
21474         * c-parser.c (disable_extension_diagnostics): Save
21475         warn_overlength_strings.
21476         (restore_extension_diagnostics): Restore warn_overlength_strings.
21477
21478 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
21479
21480         * BASE-VER: Change to 4.7.0.
21481
21482 2011-03-14  Richard Guenther  <rguenther@suse.de>
21483
21484         PR middle-end/48098
21485         * tree.c (build_vector_from_val): Adjust assert to requirements
21486         and reality.
21487
21488 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
21489
21490         PR bootstrap/48102
21491         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
21492
21493 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
21494
21495         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
21496         terms of target_flags_explicit. Adjust copyright year.
21497
21498         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
21499         * config/rs6000/t-freebsd: New file. Add override for
21500         LIB2FUNCS_EXTRA.
21501
21502 2011-03-13  Chris Demetriou  <cgd@google.com>
21503
21504         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
21505         (-fno-diagnostics-show-option): this, to reflect current default.
21506         (-Werror=): Update text about -fno-diagnostics-show-option.
21507
21508 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
21509
21510         PR target/48053
21511         * config/rs6000/predicates.md (easy_vector_constant_add_self,
21512         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
21513         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
21514         mode is not V2DImode or V2DFmode.
21515         (vspltis_constant): Do not handle V2DImode and V2DFmode.
21516         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
21517         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
21518         registers to 0.
21519         (movdi_internal64): Likewise.
21520
21521 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
21522
21523         PR tree-optimization/47127
21524         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
21525         parameter.
21526         (set_cloog_options): Same.
21527         (scop_to_clast): Same.
21528         (print_clast_stmt): Do not call cloog_state_malloc and
21529         cloog_state_free.
21530         (print_generated_program): Same.
21531         (gloog): Same.
21532         * graphite-clast-to-gimple.h (cloog_state): Declared.
21533         (scop_to_clast): Adjust declaration.
21534         * graphite.c (cloog_state): Defined here.
21535         (graphite_initialize): Call cloog_state_malloc.
21536         (graphite_finalize): Call cloog_state_free.
21537
21538 2011-03-11  Jason Merrill  <jason@redhat.com>
21539
21540         * attribs.c (lookup_attribute_spec): Take const_tree.
21541         * tree.h: Adjust.
21542
21543 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
21544
21545         * config/sparc/sparc.c (sparc_option_override): Use
21546         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
21547
21548 2011-03-11  Richard Guenther  <rguenther@suse.de>
21549
21550         PR tree-optimization/48067
21551         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
21552         multiplication result will be only used once on the target
21553         stmt.
21554
21555 2011-03-11  Richard Guenther  <rguenther@suse.de>
21556
21557         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
21558
21559 2011-03-11  Richard Guenther  <rguenther@suse.de>
21560
21561         PR lto/48073
21562         * tree.c (find_decls_types_r): Do not walk types only reachable
21563         from IDENTIFIER_NODEs.
21564
21565 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
21566
21567         PR middle-end/48044
21568         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
21569         all vnode->force_output nodes as needed.
21570
21571 2011-03-11  Jason Merrill  <jason@redhat.com>
21572
21573         PR c++/48069
21574         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
21575         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
21576
21577 2011-03-11  Martin Jambor  <mjambor@suse.cz>
21578
21579         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
21580         cgraph_node.
21581
21582 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
21583
21584         PR tree-optimization/48063
21585         * ipa-inline.c (cgraph_decide_inlining): Don't try to
21586         inline functions called once if !tree_can_inline_p (node->callers).
21587
21588 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
21589
21590         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
21591         extra_objs.
21592         * config/score/score3.c: Delete.
21593         * config/score/score3.h: Delete.
21594         * config/score/mul-div.S: Delete.
21595         * config/score/sfp-machine.h: Add new file.
21596         * config/score/constraints.md: Add new file.
21597         * config/score/t-score-softfp: Add new file.
21598         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
21599         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
21600         (score7_extra_constraint): Delete.
21601         (score7_option_override): Remove unused code.
21602         * config/score/score.c: Remove score3 and score5 define and code.
21603         * config/score/score.h: Remove score3 and score5 define and code.
21604         * config/score/score.md: Remove score3 template and unusual insn.
21605         * config/score/score.opt: Remove score3 and score5 options.
21606
21607 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21608
21609         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
21610         when _HPUX_SOURCE is defined.
21611         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
21612
21613 2011-03-10  Jason Merrill  <jason@redhat.com>
21614
21615         PR c++/48029
21616         * stor-layout.c (layout_type): Don't set structural equality
21617         on arrays of incomplete type.
21618         * tree.c (type_hash_eq): Handle comparing them properly.
21619
21620 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
21621
21622         PR debug/48043
21623         * config/s390/s390.c (s390_delegitimize_address): Make sure the
21624         result mode matches original rtl mode.
21625
21626 2011-03-10  Nick Clifton  <nickc@redhat.com>
21627
21628         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
21629         (andsi3, andsi3_flags): Fix timings for three operand alternative.
21630
21631 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
21632
21633         PR rtl-optimization/47866
21634         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
21635         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
21636         if target wasn't scalar.
21637         * function.c (assign_stack_temp_for_type): Assert that neither
21638         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
21639         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
21640         macro.
21641         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
21642
21643 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21644
21645         * config/s390/s390-protos.h (s390_label_align): New prototype.
21646         * config/s390/s390.c (s390_label_align): New function.
21647         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
21648
21649 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
21650
21651         PR target/47755
21652         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
21653         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
21654         (output_vec_const_move): Ditto.
21655
21656 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
21657
21658         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
21659         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
21660         * config/mips/mips.c (mips_preferred_reload_class): Make static.
21661         Change 'rclass' argument and result type to reg_class_t.
21662         (TARGET_PREFERRED_RELOAD_CLASS): Define.
21663
21664 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
21665
21666         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21667         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
21668         (TARGET_MEMORY_MOVE_COST): Define.
21669         (avr_register_move_cost, avr_memory_move_cost): New Functions.
21670
21671 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
21672
21673         PR debug/47881
21674         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
21675         removed anything.
21676
21677         PR tree-optimization/48022
21678         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
21679         for EQ/NE_EXPR.
21680
21681 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
21682
21683         PR debug/47991
21684         * var-tracking.c (find_use_val): Return NULL for
21685         cui->sets && cui->store_p BLKmode MEMs.
21686
21687 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
21688
21689         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
21690         Remove.
21691         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
21692         xstormy16_print_operand_address): Remove.
21693         * config/stormy16/stormy16.c (xstormy16_print_operand,
21694         xstormy16_print_operand_address): Make static.
21695         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21696
21697 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
21698
21699         PR target/47862
21700         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21701         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
21702         before definition.
21703
21704 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
21705
21706         PR bootstrap/48000
21707         * cfgloopmanip.c (fix_bb_placements): Return immediately
21708         if FROM is BASE_LOOP's header.
21709
21710 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
21711
21712         * gimplify.c (gimplify_function_tree): Fix building calls
21713         to __builtin_return_address.
21714
21715 2011-03-07  Alan Modra  <amodra@gmail.com>
21716
21717         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
21718         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
21719         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
21720         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
21721         return_mode args.
21722         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
21723         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
21724         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
21725         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
21726         * config/rs6000/rs6000.c
21727         (rs6000_elf_end_indicate_exec_stack): Rename to..
21728         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
21729         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
21730         (rs6000_file_start): ..here.
21731         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
21732         file scope variables.
21733         (call_ABI_of_interest): New function.
21734         (init_cumulative_args): Set above vars when function return value
21735         is a float, vector, or small struct.
21736         (rs6000_function_arg_advance_1): Likewise for function args.
21737         (rs6000_va_start): Set rs6000_passes_float if variable arg function
21738         references float args.
21739
21740 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
21741
21742         * doc/cfg.texi: Remove "See" before @ref.
21743         * doc/invoke.texi: Likewise.
21744
21745 2011-03-05  Jason Merrill  <jason@redhat.com>
21746
21747         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
21748
21749 2011-03-05  Anthony Green  <green@moxielogic.com>
21750
21751         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
21752
21753 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
21754
21755         PR rtl-optimization/47899
21756         * cfgloopmanip.c (fix_bb_placements): Fix first argument
21757         to flow_loop_nested_p when moving the loop upward.
21758
21759 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
21760
21761         PR target/47719
21762         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
21763
21764 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
21765
21766         PR tree-optimization/47967
21767         * ipa-cp.c (build_const_val): Return NULL instead of creating
21768         VIEW_CONVERT_EXPR for mismatching sizes.
21769         (ipcp_create_replace_map): Return NULL if build_const_val failed.
21770         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
21771         give up on versioning.
21772
21773 2011-03-05  Alan Modra  <amodra@gmail.com>
21774
21775         PR target/47986
21776         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21777         full cmodel medium/large lo_sum + high addresses.
21778
21779 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21780
21781         * config/s390/s390.c (s390_decompose_address): Reject non-literal
21782         pool references in UNSPEC_LTREL_OFFSET.
21783
21784 2011-03-04  Jan Hubicka  <jh@suse.cz>
21785
21786         PR lto/47497
21787         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
21788         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
21789         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
21790         Add node pointers.
21791         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
21792         cgraph_add_thunk): Add node pointers.
21793         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
21794         associated to right node.
21795         (input_node): Update use of cgraph_same_body_alias
21796         and cgraph_add_thunk.
21797
21798 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
21799
21800         * config/i386/i386.opt (mprefer-avx128): New flag.
21801         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
21802         modes when the flag -mprefer-avx128 is on.
21803
21804 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
21805
21806         * dwarf2out.c (compare_loc_operands): Fix address handling.
21807
21808 2011-03-04  Alan Modra  <amodra@gmail.com>
21809
21810         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
21811
21812 2011-03-04  Richard Guenther  <rguenther@suse.de>
21813
21814         PR middle-end/47968
21815         * expmed.c (extract_bit_field_1): Prefer vector modes that
21816         vec_extract patterns can handle.
21817
21818 2011-03-04  Richard Guenther  <rguenther@suse.de>
21819
21820         PR middle-end/47975
21821         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
21822
21823 2011-03-04  Richard Henderson  <rth@redhat.com>
21824
21825         * explow.c (emit_stack_save): Remove 'after' parameter.
21826         (emit_stack_restore): Likewise.
21827         * expr.h: Update to match.
21828         * builtins.c, calls.c, stmt.c: Likewise.
21829         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
21830         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
21831         * function.c (expand_function_end): Insert the emit_stack_save
21832         sequence before parm_birth_insn instead of after.
21833
21834 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
21835
21836         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
21837         (ssse3_pmaddubsw128): Ditto.
21838         (ssse3_pmaddubsw): Ditto.
21839
21840 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
21841
21842         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
21843
21844 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
21845
21846         PR c/47963
21847         * gimplify.c (omp_add_variable): Only call omp_notice_variable
21848         on TYPE_SIZE_UNIT if it is a DECL.
21849
21850         PR debug/47283
21851         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
21852         first operand is not is_gimple_mem_ref_addr, try to fold it.
21853         If the operand still isn't is_gimple_mem_ref_addr, clear
21854         MEM_EXPR on op0.
21855
21856 2011-03-03  Richard Guenther  <rguenther@suse.de>
21857
21858         PR middle-end/47283
21859         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
21860         match comment.
21861         (refs_may_alias_p_1): For release branches return true if
21862         we are confused by our input.
21863
21864 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21865
21866         * config/s390/s390.c (s390_function_value): Rename to ...
21867         (s390_function_and_libcall_value): ... this.
21868         (s390_function_value): New function.
21869         (s390_libcall_value): New function.
21870         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
21871         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
21872         target macro definitions.
21873         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
21874
21875 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
21876
21877         * config/i386/freebsd64.h (CC1_SPEC): Define.
21878         * config/i386/linux64.h (CC1_SPEC): Define.
21879         * config/i386/x86-64.h (CC1_SPEC): Don't define.
21880
21881 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
21882
21883         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21884         Remove.
21885         * config/stormy16/stormy16.c: Include reload.h.
21886         (xstormy16_memory_move_cost): New function.
21887         (TARGET_MEMORY_MOVE_COST): Define.
21888
21889 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
21890
21891         PR rtl-optimization/47925
21892         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
21893         with side effects.  Remove the more-specific check for volatile asms.
21894
21895 2011-03-02  Alan Modra  <amodra@gmail.com>
21896
21897         PR target/47935
21898         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
21899         toc relative addresses for valid offsets.
21900
21901 2011-03-01  Richard Guenther  <rguenther@suse.de>
21902
21903         PR tree-optimization/47890
21904         * tree-vect-loop.c (get_initial_def_for_induction): Set
21905         related stmt properly.
21906
21907 2011-03-01  Richard Guenther  <rguenther@suse.de>
21908
21909         PR lto/47924
21910         * lto-streamer.c (lto_record_common_node): Also register
21911         the canonical type.
21912
21913 2011-03-01  Richard Guenther  <rguenther@suse.de>
21914
21915         PR lto/46911
21916         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
21917         Do not stream DECL_ABSTRACT_ORIGIN.
21918         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21919         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21920         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21921         Do not stream DECL_ABSTRACT_ORIGIN.
21922         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21923         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21924
21925 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
21926
21927         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
21928         FUNCTION_VALUE_REGNO_P): Remove.
21929         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
21930         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
21931         Add 'outgoing' argument.
21932         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
21933         function.
21934         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21935         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21936
21937 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
21938
21939         PR debug/28047
21940         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
21941         (lookup_filename): Likewise.
21942         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
21943
21944 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
21945             Jakub Jelinek  <jakub@redhat.com>
21946
21947         PR middle-end/47893
21948         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
21949         (assign_stack_local_1): Change last argument type to int.
21950         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
21951         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
21952         don't record padding space into frame_space_list nor use those areas.
21953         (assign_stack_local): Adjust caller.
21954         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
21955         of assign_stack_local, pass 0 as last argument.
21956         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
21957         callers.
21958
21959 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
21960
21961         PR debug/47283
21962         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
21963         Use target address_mode and pointer_mode hooks instead of hardcoded
21964         Pmode and ptr_mode.  Handle some simple cases of extending if
21965         POINTERS_EXTEND_UNSIGNED < 0.
21966         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
21967         Call convert_debug_memory_address.
21968         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
21969         convert_debug_memory_address.
21970
21971         PR middle-end/46790
21972         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
21973         * configure: Regenerated.
21974         * config.in: Regenerated.
21975         * varasm.c (default_function_section): Return NULL
21976         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
21977
21978 2011-02-28  Martin Jambor  <mjambor@suse.cz>
21979
21980         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
21981         the description to match the printed values.
21982
21983 2011-02-28  Richard Guenther  <rguenther@suse.de>
21984
21985         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
21986         of the copied scope tree.
21987
21988 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21989
21990         * doc/extend.texi (Function Attributes): Avoid deeply (and
21991         wrongly) nested tables.
21992
21993 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
21994
21995         PR middle-end/47903
21996         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
21997         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
21998         r isn't op0 nor op1.
21999
22000 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
22001
22002         * config/avr/avr.md: Remove magic comment for emacs.
22003
22004 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
22005
22006         PR target/45261
22007         * config/avr/avr.c (avr_option_override): Use error on bad options.
22008         (avr_help): New function.
22009         (TARGET_HELP): Define.
22010
22011 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
22012
22013         PR target/42240
22014         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
22015         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
22016
22017 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
22018
22019         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
22020         (ARM Options): Ditto.
22021         (i386 and x86-64 Options): Ditto.
22022         (RX Options): Ditto.
22023         (SPARC Options): Ditto.
22024
22025 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
22026
22027         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
22028         FreeBSD 6 and later.  Generally use cpu generic.
22029
22030 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
22031
22032         * doc/cpp.texi: Update copyright years.
22033
22034 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
22035
22036         PR target/46898
22037         * config/lm32/lm32.md (ashrsi3): Added needed variable.
22038
22039 2011-02-25  Jon Beniston  <jon@beniston.com>
22040
22041         PR target/46898
22042         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
22043         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
22044         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
22045         (lm32_block_move_inline): Add type cast to remove warning.
22046         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
22047         (gen_int_relational): Move declarations to start of function.
22048
22049 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
22050
22051         PR tree-optimization/45470
22052         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
22053         can throw internally only.
22054         * tree-vect-stmts.c (vectorizable_call): Likewise.
22055
22056 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
22057
22058         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
22059         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22060         * config/stormy16/stormy16-protos.h
22061         (xstormy16_preferred_reload_class): Remove.
22062         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
22063         static. Change 'rclass' argument and return type to reg_class_t.
22064         (TARGET_PREFERRED_RELOAD_CLASS,
22065         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22066
22067 2011-02-24  Richard Guenther  <rguenther@suse.de>
22068
22069         * lto-streamer-in.c (input_bb): Do not find referenced vars
22070         in debug statements.
22071
22072 2011-02-23  Jason Merrill  <jason@redhat.com>
22073
22074         * common.opt (fabi-version): Document v5 and v6.
22075
22076 2011-02-23  Richard Guenther  <rguenther@suse.de>
22077
22078         PR tree-optimization/47849
22079         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
22080
22081 2011-02-23  Jie Zhang  <jie@codesourcery.com>
22082
22083         * opts-common.c (decode_cmdline_option): Print empty string
22084         argument as "" in decoded->orig_option_with_args_text.
22085         * gcc.c (execute): Print empty string argument as ""
22086         in the verbose output.
22087         (do_spec_1): Keep empty string argument.
22088
22089 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
22090
22091         * config.gcc: Declare score-* and crx-* obsolete.
22092
22093 2011-02-23  Jie Zhang  <jie@codesourcery.com>
22094
22095         PR rtl-optimization/47763
22096         * web.c (web_main): Ignore naked clobber when replacing register.
22097
22098 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
22099
22100         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22101         Remove.
22102
22103 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
22104
22105         PR doc/47848
22106         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
22107
22108 2011-02-22  Mike Stump  <mikestump@comcast.net>
22109
22110         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
22111         assembler.
22112         * configure: Regenerate.
22113
22114 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
22115
22116         PR rtl-optimization/46002
22117         * ira-color.c (update_copy_costs): Change class intersection
22118         test to reg_class_contents[] test of 'hard_regno'.
22119
22120 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
22121
22122         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
22123         than Driver option.
22124         * config/hpux11.opt (mt): Likewise.
22125         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
22126         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
22127         * config/vax/elf.opt (mno-asm-pic): Likewise.
22128         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
22129
22130 2011-02-21  Mike Stump  <mikestump@comcast.net>
22131
22132         PR target/47822
22133         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
22134         tree so we can get save the type.
22135         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
22136         for CFString instead of trying to use past the end of the builtins.
22137         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
22138         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
22139         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
22140         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
22141         Rename to darwin_builtin_cfstring.
22142         (darwin_init_cfstring_builtins): Return the built type.
22143
22144 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
22145
22146         PR target/47840
22147         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
22148         (_mm256_insert_epi64): Use _mm_insert_epi64.
22149
22150 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
22151
22152         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22153         * config/stormy16/stormy16-protos.h
22154         (xstormy16_mode_dependent_address_p): Remove.
22155         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
22156         Make static. Change return type to bool. Change argument type to
22157         const_rtx. Remove dead code.
22158         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22159
22160 2011-02-21  Richard Guenther  <rguenther@suse.de>
22161
22162         PR lto/47820
22163         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22164         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22165         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
22166         TUs context.
22167         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22168         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22169
22170 2011-02-20  Richard Guenther  <rguenther@suse.de>
22171
22172         PR lto/47822
22173         * tree.c (free_lang_data_in_decl): Clean builtins from
22174         the TU decl BLOCK_VARS.
22175
22176 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
22177
22178         PR debug/47620
22179         PR debug/47630
22180         * haifa-sched.c (fix_tick_ready): Skip tick computation
22181         for debug insns.
22182
22183 2011-02-19  Richard Guenther  <rguenther@suse.de>
22184
22185         PR lto/47647
22186         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
22187         Remove lazy BLOCK_VARS streaming.
22188         (lto_input_ts_block_tree_pointers): Likewise.
22189         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
22190
22191 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
22192
22193         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
22194
22195 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
22196
22197         * config/i386/biarch32.h, config/i386/mach.h,
22198         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
22199
22200 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
22201
22202         PR target/47800
22203         * config/i386/i386.md (peephole2 for shift and plus): Use
22204         operands[1] original mode in the first insn.
22205
22206 2011-02-18  Mike Stump  <mikestump@comcast.net>
22207
22208         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
22209
22210 2011-02-18  Jan Hubicka  <jh@suse.cz>
22211
22212         PR middle-end/47788
22213         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
22214         to zero when the function is not inlinable at all.
22215
22216 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22217
22218         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
22219         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22220         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
22221         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
22222         * config/pa/t-pa64: Likewise.
22223         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
22224
22225 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
22226
22227         PR driver/47787
22228         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
22229
22230 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22231
22232         PR target/47792
22233         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
22234
22235 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
22236
22237         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22238         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
22239         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
22240         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22241         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
22242         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
22243         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
22244         m32r_load_postinc_p, m32r_store_preinc_predec_p,
22245         m32r_legitimate_address_p): New functions.
22246         * config/m32r/constraints.md (constraint "S"): Don't use
22247         STORE_PREINC_PREDEC_P.
22248         (constraint "U"): Don't use LOAD_POSTINC_P.
22249
22250 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
22251
22252         PR rtl-optimization/46178
22253         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
22254         compute ira_hard_regno_cover_class[].
22255
22256 2011-02-18  Richard Guenther  <rguenther@suse.de>
22257
22258         PR lto/47798
22259         * lto-streamer.h (lto_global_var_decls): Declare.
22260         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
22261         statics for global var processing.
22262
22263 2011-02-18  Richard Guenther  <rguenther@suse.de>
22264
22265         PR tree-optimization/47737
22266         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
22267         edge dominance check.
22268
22269 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
22270
22271         PR debug/47780
22272         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
22273         avoid invalid rtx sharing.
22274
22275 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
22276
22277         * doc/cpp.texi (Obsolete Features): Add background on the
22278         origin of assertions.
22279
22280 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
22281
22282         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
22283         objc_abi == 2.
22284         * config/darwin.c (output_objc_section_asm_op): Added support for
22285         ABI v1 and v2.
22286         (is_objc_metadata): New.
22287         (darwin_objc2_section): New.
22288         (darwin_objc1_section): New.
22289         (machopic_select_section): Added support for ABI v1 and v2.
22290         (darwin_emit_objc_zeroed): New.
22291         (darwin_output_aligned_bss): Detect objc metadata and treat it
22292         appropriately.
22293         (darwin_asm_output_aligned_decl_common): Same.
22294         (darwin_asm_output_aligned_decl_local): Same.
22295         * config/darwin-sections.def: Updated for ABI v1 and v2.
22296         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
22297         compiling Objective-C code for the NeXT runtime, default to using
22298         ABI version 0 for 32-bit, and version 2 for 64-bit.
22299
22300 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
22301
22302         * common.opt (optimize_fast): New Variable.
22303         * opts.c (default_options_optimization): Use opts->x_optimize_fast
22304         instead of local variable ofast.
22305
22306 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
22307
22308         * doc/invoke.texi (fobjc-abi-version): Documented.
22309         (fobjc-nilcheck): Documented.
22310         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
22311         version.
22312
22313 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
22314
22315         PR driver/47390
22316         * common.opt (export-dynamic): New Driver option.
22317         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
22318
22319 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
22320
22321         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
22322
22323 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
22324             Jan Hubicka  <jh@suse.cz>
22325
22326         PR debug/47106
22327         PR debug/47402
22328         * cfgexpand.c (account_used_vars_for_block): Remove.
22329         (estimated_stack_frame_size): Use referenced vars.
22330         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
22331         that were referenced in the original function.  Test src_fn
22332         rather than cfun.  Drop redundant get_var_ann.
22333         (setup_one_parameter): Drop redundant get_var_ann.
22334         (declare_return_variable): Likewise.
22335         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
22336         (copy_arguments_for_versioning): Drop redundant get_var_ann.
22337         * ipa-inline.c (compute_inline_parameters): Do not compute
22338         disregard_inline_limits here.
22339         (compute_inlinable_for_current, pass_inlinable): New.
22340         (pass_inline_parameters): Require PROP_referenced_vars.
22341         * cgraphunit.c (cgraph_process_new_functions): Don't run
22342         compute_inline_parameters explicitly unless function is in SSA form.
22343         (cgraph_analyze_function): Set .disregard_inline_limits.
22344         * tree-sra.c (convert_callers): Compute inliner parameters
22345         only for functions already in SSA form.
22346
22347 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
22348
22349         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
22350         -mlittle-endian-data.
22351
22352 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
22353
22354         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
22355         -mno-fpu, not -fpu and -no-fpu.
22356         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
22357         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
22358
22359 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
22360
22361         PR target/43653
22362         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
22363         input reload with PLUS RTX.
22364
22365 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
22366
22367         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
22368         of InverseVar(MDMX).
22369
22370 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
22371
22372         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
22373         --m4-340.
22374
22375 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
22376
22377         * config/mn10300/mn10300.opt (mno-crt0): New.
22378
22379 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
22380
22381         * config/m68k/uclinux.opt (static-libc): New Driver option.
22382
22383 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
22384
22385         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
22386
22387 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
22388
22389         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
22390         %{muser-extend-enabled}.
22391
22392 2011-02-16  Richard Guenther  <rguenther@suse.de>
22393
22394         PR tree-optimization/47738
22395         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
22396         the TODO from tree_predictive_commoning.
22397
22398 2011-02-15  Jeff Law  <law@redhat.com>
22399
22400         Revert
22401         2011-01-25  Jeff Law  <law@redhat.com>
22402
22403         PR rtl-optimization/37273
22404         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22405         handle them like argument loads from stack slots.  Do not double
22406         count memory for memory constants and argument loads from stack slots.
22407
22408 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
22409
22410         PR target/47755
22411         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
22412         mode for vector constants.  Remove code that checks for TImode.
22413
22414 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
22415
22416         PR debug/47106
22417         PR debug/47402
22418         * cgraph.h (compute_inline_parameters): Return void.
22419         * ipa-inline.c (compute_inline_parameters): Adjust.
22420
22421 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
22422
22423         PR debug/47106
22424         PR debug/47402
22425         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
22426         rather than decl.
22427         * cfgexpand.c (estimated_stack_frame_size): Likewise.
22428         * ipa-inline.c (compute_inline_parameters): Adjust.
22429
22430 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
22431
22432         PR debug/47106
22433         PR debug/47402
22434         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
22435         Adjust all users.  Pass FN to...
22436         * tree-flow-inline.h (first_referenced_var): ... this.  Add
22437         fn argument.
22438         * ipa-struct-reorg.c: Adjust.
22439         * tree-dfa.c: Adjust.
22440         * tree-into-ssa.c: Adjust.
22441         * tree-sra.c: Adjust.
22442         * tree-ssa-alias.c: Adjust.
22443         * tree-ssa-live.c: Adjust.
22444         * tree-ssa.c: Adjust.
22445         * tree-ssanames.c: Adjust.
22446         * tree-tailcall.c: Adjust.
22447
22448 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
22449
22450         PR debug/47106
22451         PR debug/47402
22452         * tree-flow.h (referenced_var_lookup): Add fn parameter.
22453         Adjust all callers.
22454         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
22455         * tree-flow-inline.h: Adjust.
22456         * gimple-pretty-print.c: Adjust.
22457         * tree-into-ssa.c: Adjust.
22458         * tree-ssa.c: Adjust.
22459         * cfgexpand.c: Adjust.
22460
22461 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
22462
22463         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
22464         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22465         (EXTRA_CONSTRAINT): Delete.
22466         * config/iq2000/constraints.md: New file.
22467         * config/iq2000/iq2000.md: Include it.
22468         (define_insn ""): Delete.
22469         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
22470         unsupported constraint letters from patterns.
22471         (call_value, call_value_internal1): Likewise.
22472         (call_value_multiple_internal1): Likewise.
22473
22474 2011-02-15  Nick Clifton  <nickc@redhat.com>
22475
22476         * config/mn10300/mn10300.c: Include tm-constrs.h.
22477         (struct liw_data): New data structure describing an LIW candidate
22478         instruction.
22479         (extract_bundle): Use struct liw_data.  Allow small integer
22480         operands for some instructions.
22481         (check_liw_constraints): Use struct liw_data.  Remove swapped
22482         parameter.  Add comments describing the checks.  Fix bug when
22483         assigning the source of liw1 to the source of liw2.
22484         (liw_candidate): Delete.  Code moved into extract_bundle.
22485         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
22486         before swapping.
22487         * config/mn10300/predicates.md (liw_operand): New predicate.
22488         Allows registers and small integer constants.
22489         * config/mn10300/constraints.md (O): New constraint.  Accetps
22490         integers in the range -8 to +7 inclusive.
22491         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
22492         for moving a small integer into a register.  Give this alternative
22493         LIW attributes.
22494         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
22495         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
22496         using the J,K,L and M constraints,
22497         (liw): Remove SI mode on second operands to allow for HI and QI
22498         mode values.
22499         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
22500         instruction.
22501
22502 2011-02-15  Richard Guenther  <rguenther@suse.de>
22503
22504         PR tree-optimization/47743
22505         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
22506         for a non-type-compatible VN lookup bail out.
22507
22508 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
22509
22510         * config/fr30/constraints.md: New file.
22511         * config/fr30/fr30.md: Include it.
22512         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
22513         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22514         (EXTRA_CONSTRAINT): Delete.
22515
22516 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
22517
22518         * config/frv/constraints.md: New file.
22519         * config/frv/predicates.md: Include it.
22520         * config/frv/frv.c (reg_class_from_letter): Delete.
22521         (frv_option_override): Don't initialize it.
22522         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
22523         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
22524         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
22525         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22526         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
22527         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22528         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
22529         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
22530         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
22531         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
22532         (REG_CLASS_FROM_CONSTRAINT): Delete.
22533
22534 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
22535
22536         PR middle-end/47581
22537         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
22538         if frame size is 0 in a leaf function.
22539
22540 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22541
22542         PR pch/14940
22543         * config/alpha/host-osf.c: New file.
22544         * config/alpha/x-osf: New file.
22545         * config.host (alpha*-dec-osf*): Use it.
22546
22547 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
22548
22549         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22550         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
22551         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
22552         (rx_mode_dependent_address_p): ...this. Make static. Change argument
22553         type to const_rtx.
22554         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22555
22556 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
22557
22558         * config/stormy16/constraints.md: New file.
22559         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
22560         Use satisfies_constraint_Q and satisfies_constraint_R.
22561         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
22562         Delete.
22563         (xstormy16_legitiamte_address_p): Declare.
22564         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
22565         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22566         (EXTRA_CONSTRAINT): Delete.
22567         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
22568         Un-staticize.
22569         (xstormy16_extra_constraint_p): Delete.
22570
22571 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
22572
22573         PR tree-optimization/46494
22574         * loop-unroll.c (split_edge_and_insert): Adjust comment.
22575         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
22576         (pass_rtl_loop_done): Add TODO_verify_flow.
22577         * fwprop.c (pass_rtl_fwprop): Likewise.
22578         * modulo-sched.c (pass_sms): Likewise.
22579         * tree-ssa-dom.c (pass_dominator): Likewise.
22580         * tree-ssa-loop-ch.c (pass_ch): Likewise.
22581         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
22582         (pass_tree_loop_done): Likewise.
22583         * tree-ssa-pre.c (execute_pre): Likewise.
22584         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22585         * tree-ssa-sink.c (pass_sink_code): Likewise.
22586         * tree-vrp.c (pass_vrp): Likewise.
22587
22588 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
22589
22590         * config/v850/constraints.md: New file.
22591         * config/v850/v850.md: Include it.
22592         * config/v850/predicates.md (reg_or_0_operand): Use
22593         satisfies_constraint_G.
22594         (special_symbolref_operand): Use satisfies_constraint_K.
22595         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
22596         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
22597         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
22598         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22599         (EXTRA_CONSTRAINT): Delete.
22600         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
22601         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
22602         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
22603
22604 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
22605
22606         PR target/47696
22607         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
22608         description.
22609
22610 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
22611
22612         * config/mcore/constraints.md: New file.
22613         * config/mcore/mcore.md: Include it.
22614         * config/mcore/mcore.c (reg_class_from_letter): Delete.
22615         * config/mcore/mcore.h (reg_class_from_letter): Delete.
22616         (REG_CLASS_FROM_LETTER): Delete.
22617         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
22618         insn_const_int_ok_for_constraint.
22619         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
22620         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
22621         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22622         (EXTRA_CONSTRAINT): Delete.
22623
22624 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22625
22626         PR ada/41929
22627         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
22628         (IS_SIGHANDLER): Define.
22629         (sparc64_is_sighandler): New function, split off from
22630         sparc64_fallback_frame_state.
22631         (sparc_is_sighandler): New function, split off from
22632         sparc_fallback_frame_state.
22633         (sparc64_fallback_frame_state): Merge with ...
22634         (sparc_fallback_frame_state): ... this into ...
22635         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
22636         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
22637         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
22638         stack instead of hardcoded offsets.
22639
22640 2011-02-14  Andriy Gapon  <avg@freebsd.org>
22641
22642         PR target/45808
22643         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
22644
22645 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22646
22647         * configure: Regenerate.
22648
22649 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
22650
22651         PR driver/45731
22652         * gcc.c (asm_options): Correct spec matching --target-help.
22653
22654 2011-02-12  Martin Jambor  <mjambor@suse.cz>
22655
22656         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
22657         to gimple call error.
22658
22659 2011-02-12  Mike Stump  <mikestump@comcast.net>
22660
22661         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
22662         comments in backslash regions.
22663
22664 2011-02-12  Mike Stump  <mikestump@comcast.net>
22665             Jakub Jelinek  <jakub@redhat.com>
22666             Iain Sandoe  <iains@gcc.gnu.org>
22667
22668         PR target/47324
22669         * dwarf2out.c (output_cfa_loc): When required, apply the
22670         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
22671         (output_loc_sequence): Likewise.
22672         (output_loc_operands_raw): Likewise.
22673         (output_loc_sequence_raw): Likewise.
22674         (output_cfa_loc): Likewise.
22675         (output_loc_list): Suppress register number adjustment when
22676         calling output_loc_sequence()
22677         (output_die): Likewise.
22678
22679 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
22680
22681         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22682         Remove macros.
22683         * config/xtensa/xtensa.c (xtensa_register_move_cost,
22684         xtensa_memory_move_cost): New functions.
22685         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
22686
22687 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
22688
22689         PR lto/47225
22690         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
22691         in the current directory.
22692         * configure: Rebuilt.
22693
22694 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
22695
22696         * config/darwin.c (darwin_override_options): Add a hunk missed
22697         from the commit of r168571.  Trim comment line lengths and
22698         correct indents of the preceding block.
22699
22700 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
22701
22702         * gcc.c (driver_handle_option): Concatenate the argument to -F with
22703         the switch.
22704
22705 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
22706
22707         * common.opt (nostartfiles): New Driver option.
22708
22709 2011-02-11  Xinliang David Li  <davidxl@google.com>
22710
22711         PR tree-optimization/47707
22712         * tree-chrec.c (convert_affine_scev): Keep type precision.
22713
22714 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
22715
22716         PR tree-optimization/47420
22717         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
22718
22719 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
22720
22721         PR rtl-optimization/47614
22722         * rtl.h (check_for_inc_dec): Declare.
22723         * dse.c (check_for_inc_dec): Externalize...
22724         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
22725         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
22726
22727 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
22728
22729         PR driver/47678
22730         * gcc.c (main): Do not compile inputs if there were errors in
22731         option handling.
22732         * opts-common.c (read_cmdline_option): Check for wrong language
22733         after other error checks.
22734
22735 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
22736
22737         * cgraph.c: Fix comment typos.
22738         * cgraph.h: Likewise.
22739         * cgraphunit.c: Likewise.
22740         * ipa-cp.c: Likewise.
22741         * ipa-inline.c: Likewise.
22742         * ipa-prop.c: Likewise.
22743         * ipa-pure-const.c: Likewise.
22744         * ipa-ref.c: Likewise.
22745         * ipa-reference.c: Likewise.
22746
22747 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
22748
22749         PR debug/47684
22750         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
22751
22752 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22753
22754         PR testsuite/47400
22755         * doc/sourcebuild.texi (Require Support): Document
22756         dg-require-ascii-locale.
22757
22758 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
22759
22760         * doc/lto.texi (Write summary): Fix missing parentheses.
22761
22762 2011-02-10  DJ Delorie  <dj@redhat.com>
22763
22764         * config/m32c/m32c.c (m32c_option_override): Disable
22765         -fcombine-stack-adjustments until flag value tracking and compare
22766         optimization can be rewritten.
22767
22768 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
22769
22770         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
22771         PROCESSOR_POWER7.
22772         (PROCESSOR_DEFAULT64): Likewise.
22773
22774 2011-02-10  Richard Henderson  <rth@redhat.com>
22775
22776         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
22777         change from 2011-02-03.
22778         * config/rx/rx.c (flags_from_code): Likewise.
22779         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
22780         is valid, n/pz otherwise.
22781         (rx_select_cc_mode): Return CCmode if Y is not zero.
22782
22783 2011-02-10  Richard Guenther  <rguenther@suse.de>
22784
22785         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
22786
22787 2011-02-10  Richard Guenther  <rguenther@suse.de>
22788
22789         PR tree-optimization/47677
22790         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
22791
22792 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
22793
22794         PR target/47665
22795         * combine.c (make_compound_operation): Only change shifts into
22796         multiplication for SCALAR_INT_MODE_P.
22797
22798 2011-02-10  Jie Zhang  <jie@codesourcery.com>
22799
22800         PR testsuite/47622
22801         Revert
22802         2011-02-05  Jie Zhang  <jie@codesourcery.com>
22803         PR debug/42631
22804         * web.c (entry_register): Don't clobber the number of the
22805         first uninitialized reference in used[].
22806
22807 2011-02-09  Richard Guenther  <rguenther@suse.de>
22808
22809         PR tree-optimization/47664
22810         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
22811         all edges again.
22812
22813 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
22814
22815         PR target/46481
22816         PR target/47032
22817         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
22818         PROCESSOR_POWER7.
22819         (PROCESSOR_DEFAULT64): Same.
22820         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
22821
22822 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22823
22824         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
22825
22826 2011-02-09  Martin Jambor  <mjambor@suse.cz>
22827
22828         PR middle-end/45505
22829         * tree-sra.c (struct access): New flags grp_scalar_read and
22830         grp_scalar_write.  Changed description of assignment read and write
22831         flags.
22832         (dump_access): Dump new flags, reorder all of them.
22833         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
22834         to detect multiple scalar reads.
22835         (analyze_access_subtree): Use the new scalar read write flags instead
22836         of the old flags.  Adjusted comments.
22837
22838 2011-02-08  DJ Delorie  <dj@redhat.com>
22839
22840         PR target/47548
22841         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
22842         patterns.
22843
22844 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22845
22846         * config/m68k/uclinux.opt: New.
22847         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
22848
22849 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22850
22851         * config/cris/elf.opt (sim): New Driver option.
22852
22853 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22854
22855         * config/xtensa/elf.opt: New.
22856         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
22857
22858 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22859
22860         * config/vax/elf.opt: New.
22861         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
22862
22863 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22864
22865         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
22866
22867 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22868
22869         * config/gnu-user.opt: New.
22870         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
22871         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
22872         *-*-uclinux*): Use gnu-user.opt.
22873
22874 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
22875
22876         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
22877         * config/i386/gnu.h (CPP_SPEC): Likewise.
22878
22879 2011-02-08  Ian Lance Taylor  <iant@google.com>
22880
22881         * common.opt (fcx-limited-range): Add SetByCombined flag.
22882         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
22883         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
22884         (fassociative-math, freciprocal-math): Likewise.
22885         (funsafe-math-optimizations): Likewise.
22886         * opth-gen.awk: Handle SetByCombined.
22887         * optc-gen.awk: Likewise.
22888         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
22889         (set_unsafe_math_optimizations_flags): Likewise.
22890         * doc/options.texi (Option properties): Document SetByCombined.
22891
22892 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22893
22894         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
22895         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
22896         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
22897         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
22898         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
22899
22900 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
22901
22902         PR tree-optimization/46834
22903         PR tree-optimization/46994
22904         PR tree-optimization/46995
22905         * graphite-sese-to-poly.c (used_outside_reduction): New.
22906         (detect_commutative_reduction): Call used_outside_reduction.
22907         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
22908         translate_scalar_reduction_to_array only when at least one
22909         loop-phi/close-phi tuple has been detected.
22910
22911 2011-02-08  Richard Guenther  <rguenther@suse.de>
22912
22913         PR middle-end/47639
22914         * tree-vect-generic.c (expand_vector_operations_1): Update
22915         stmts here ...
22916         (expand_vector_operations): ... not here.  Cleanup EH info
22917         and the CFG if required.
22918
22919 2011-02-08  Richard Guenther  <rguenther@suse.de>
22920
22921         PR tree-optimization/47641
22922         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
22923         require type compatibility.
22924
22925 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22926
22927         * gimple-low.c (lower_function_body): Don't remove the location of
22928         the return statement here.
22929         (lower_gimple_return): Do it here instead but only if the return
22930         statement is actually used twice.
22931
22932 2011-02-08  Richard Guenther  <rguenther@suse.de>
22933
22934         PR tree-optimization/47632
22935         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
22936         unused up_to_stmt parameter, return whether cfg-cleanup is
22937         necessary, remove EH info properly.
22938         (forward_propagate_into_gimple_cond): Adjust caller.
22939         (forward_propagate_into_cond): Likewise.
22940         (forward_propagate_comparison): Likewise.
22941         (tree_ssa_forward_propagate_single_use_vars): Make
22942         forward_propagate_comparison case similar to the two others.
22943
22944 2011-02-08  Nick Clifton  <nickc@redhat.com>
22945
22946         * config/mn10300/mn10300.opt (mliw): New command line option.
22947         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
22948         (liw_bundling): New automaton.
22949         (liw): New attribute.
22950         (liw_op): New attribute.
22951         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
22952         (movsi_internal): Add LIW attributes.
22953         (andsi3): Likewise.
22954         (iorsi3): Likewise.
22955         (xorsi3): Likewise.
22956         (addsi3): Separate register and immediate alternatives.
22957         Add LIW attributes.
22958         (subsi3): Likewise.
22959         (cmpsi): Likewise.
22960         (aslsi3): Likewise.
22961         (lshrsi3): Likewise.
22962         (ashrsi3): Likewise.
22963         (liw): New pattern.
22964         * config/mn10300/mn10300.c (liw_op_names): New
22965         (mn10300_print_operand): Handle 'W' operand descriptor.
22966         (extract_bundle): New function.
22967         (check_liw_constraints): New function.
22968         (liw_candidate): New function.
22969         (mn10300_bundle_liw): New function.
22970         (mn10300_reorg): New function.
22971         (TARGET_MACHINE_DEPENDENT_REORG): Define.
22972         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
22973         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
22974         __LIW__ or __NO_LIW__.
22975         * doc/invoke.texi: Describe the -mliw command line option.
22976
22977 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22978
22979         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
22980         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22981         pthread_mutex_unlock): Remove.
22982         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
22983         * config/pa/t-pa64: Likewise.
22984         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
22985         shared libc if not linking against libpthread.
22986         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
22987
22988 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
22989
22990         PR target/47558
22991         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
22992         on 10.6 and later to ensure that we always use the unwinder from
22993         the system.  Only add -no_compact_unwind when tarteting darwin
22994         10.6 or later.
22995
22996 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
22997
22998         PR target/46997
22999         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
23000         (vec_interleave_lowv2sf): Ditto.
23001         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
23002         (vec_extract_oddv2sf): Ditto.
23003
23004 2011-02-07  Mike Stump  <mikestump@comcast.net>
23005
23006         PR target/42333
23007         Add __ieee_divdc3 entry point.
23008         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
23009         entry point.
23010         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
23011         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
23012         * config/darwin.c (darwin_rename_builtins): Add.
23013         * config/darwin-protos.h (darwin_rename_builtins): Add.
23014
23015 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
23016
23017         PR target/47636
23018         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
23019         for the condition.
23020
23021 2011-02-07  Mike Stump  <mikestump@comcast.net>
23022
23023         * config/darwin.opt (mmacosx-version-min): Update default OS version.
23024
23025 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
23026
23027         PR target/47534
23028         * config/avr/libgcc.S (exit): Move .endfunc
23029
23030 2011-02-07  Richard Guenther  <rguenther@suse.de>
23031
23032         PR tree-optimization/47615
23033         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
23034         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
23035         (run_scc_vn): Initialize it.
23036         (visit_reference_op_load): Use it.
23037         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
23038
23039 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23040
23041         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
23042         DImode trapping arithmetic libfuncs.
23043
23044 2011-02-07  Richard Guenther  <rguenther@suse.de>
23045
23046         PR tree-optimization/47621
23047         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
23048         two duplicates ...
23049         (execute_update_addresses_taken): ... here.  Make it more
23050         conservative in what we accept.
23051
23052 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
23053
23054         * config/sparc/freebsd.h (ASM_SPEC): Define.
23055         * config/sparc/vxworks.h (ASM_SPEC): Define.
23056
23057 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
23058
23059         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23060
23061 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
23062
23063         * doc/invoke.texi: Remove reference to compiler internals from
23064         user documentation.
23065
23066         * reg-notes.def: Remove REG_VALUE_PROFILE.
23067         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
23068
23069 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
23070
23071         PR middle-end/47610
23072         * varasm.c (default_section_type_flags): If decl is NULL,
23073         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
23074
23075 2011-02-05  Jie Zhang  <jie@codesourcery.com>
23076
23077         PR debug/42631
23078         * web.c (entry_register): Don't clobber the number of the
23079         first uninitialized reference in used[].
23080
23081 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
23082
23083         PR tree-optimization/46194
23084         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
23085         (build_classic_dist_vector_1): Do not represent classic distance
23086         vectors when the access functions are variating in different loops.
23087
23088 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
23089
23090         * config/mips/iris6.opt: New.
23091         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
23092
23093 2011-02-04  Richard Henderson  <rth@redhat.com>
23094             Steve Ellcey  <sje@cup.hp.com>
23095
23096         PR target/46997
23097         * config/ia64/predicates.md (mux1_brcst_element): New.
23098         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
23099         * config/ia64/ia64.c (ia64_unpack_assemble): New.
23100         (ia64_unpack_sign): New.
23101         (ia64_expand_unpack): Rewrite using new routines.
23102         (ia64_expand_widen_sum): Ditto.
23103         (ia64_expand_dot_prod_v8qi): Ditto.
23104         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
23105         routines, add endian check.
23106         (pmpy2_even): Rename from pmpy2_r, add endian check.
23107         (pmpy2_odd): Rename from pmpy2_l, add endian check.
23108         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
23109         (vec_widen_smult_hi_v4hi): Ditto.
23110         (vec_widen_umult_lo_v4hi): Ditto.
23111         (vec_widen_umult_hi_v4hi): Ditto.
23112         (mulv2si3): Change endian checks.
23113         (sdot_prodv4hi): Rewrite with new calls.
23114         (udot_prodv4hi): New.
23115         (vec_pack_ssat_v4hi): Add endian check.
23116         (vec_pack_usat_v4hi): Ditto.
23117         (vec_pack_ssat_v2si): Ditto.
23118         (max1_even): Rename from max1_r, add endian check.
23119         (max1_odd): Rename from max1_l, add endian check.
23120         (*mux1_rev): Format change.
23121         (*mux1_mix): Ditto.
23122         (*mux1_shuf): Ditto.
23123         (*mux1_alt): Ditto.
23124         (*mux1_brcst_v8qi): Use new predicate.
23125         (vec_extract_evenv8qi): Remove endian check.
23126         (vec_extract_oddv8qi): Ditto.
23127         (vec_interleave_lowv4hi): Format change.
23128         (vec_interleave_highv4hi): Ditto.
23129         (mix2_even): Rename from mix2_r, add endian check.
23130         (mix2_odd): Rename from mux2_l, add endian check.
23131         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
23132         (vec_extract_evenodd_helper): Format change.
23133         (vec_extract_evenv4hi): Remove endian check.
23134         (vec_extract_oddv4hi): Remove endian check.
23135         (vec_interleave_lowv2si): Format change.
23136         (vec_interleave_highv2si): Format change.
23137         (vec_initv2si): Remove endian check.
23138         (vecinit_v2si): Add endian check.
23139         (reduc_splus_v2sf): Add endian check.
23140         (reduc_smax_v2sf): Ditto.
23141         (reduc_smin_v2sf): Ditto.
23142         (vec_initv2sf): Remove endian check.
23143         (fpack): Add endian check.
23144         (fswap): Add endian check.
23145         (vec_interleave_highv2sf): Add endian check.
23146         (vec_interleave_lowv2sf): Add endian check.
23147         (fmix_lr): Add endian check.
23148         (vec_setv2sf): Format change.
23149         (*vec_extractv2sf_0_be): Use shift to extract operand.
23150         (*vec_extractv2sf_1_be): New.
23151         (vec_pack_trunc_v4hi): Add endian check.
23152         (vec_pack_trunc_v2si): Format change.
23153
23154 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
23155
23156         PR inline-asm/23200
23157         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
23158         do bb, locus and block comparison and disallow loads if it is not set.
23159         (stmt_is_replaceable_p): New function.
23160         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
23161         callers.
23162         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
23163         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
23164         SSA_NAME_DEF_STMT.
23165         * tree-flow.h (stmt_is_replaceable_p): New prototype.
23166
23167 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
23168
23169         * config/rs6000/xilinx.opt: New.
23170         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
23171
23172 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
23173
23174         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
23175
23176 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
23177
23178         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
23179         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23180         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
23181         secondary_reload_info, xtensa_secondary_reload): Remove.
23182         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
23183         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23184         (xtensa_preferred_reload_class): Make static. Change return and
23185         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
23186         Use CONST_DOUBLE_P predicate.
23187         (xtensa_preferred_output_reload_class): New function.
23188         (xtensa_secondary_reload): Make static.
23189
23190 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
23191
23192         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
23193         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
23194         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
23195
23196 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
23197
23198         PR middle-end/31490
23199         * output.h (SECTION_RELRO): Define.
23200         (SECTION_MACH_DEP): Adjust.
23201         (get_variable_section): New prototype.
23202         * varpool.c (varpool_finalize_named_section_flags): New function.
23203         (varpool_assemble_pending_decls): Call it.
23204         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
23205         * cgraphunit.c (cgraph_output_in_order): Call
23206         varpool_finalize_named_section_flags.
23207         * varasm.c (get_section): Allow section flags conflicts between
23208         relro and read-only sections if the section hasn't been declared yet.
23209         Set SECTION_OVERRIDE after diagnosing section type conflict.
23210         (get_variable_section): No longer static.
23211         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
23212         readonly sections that need relocations.
23213         (decl_readonly_section_1): New function.
23214         (decl_readonly_section): Use it.
23215
23216         Revert:
23217         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
23218                     Steve Ellcey  <sje@cup.hp.com>
23219
23220         PR middle-end/31490
23221         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
23222         if section attribute used.
23223
23224 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
23225
23226         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
23227         * config/darwin.c (SECTION_NO_ANCHOR): Define.
23228         (darwin_init_sections): Remove assertion.
23229
23230 2011-02-03  Nick Clifton  <nickc@redhat.com>
23231
23232         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
23233         lt and ge.
23234         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
23235         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
23236         instead of "n" and "pz".
23237         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
23238         CC_FLAG_S.
23239
23240 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
23241
23242         PR target/47312
23243         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
23244         fma, expand FMA_EXPR as fma{,f,l} call.
23245
23246         PR lto/47274
23247         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
23248         copy them into a unsigned char variable and pass address of it to
23249         lto_output_data_stream.
23250
23251         PR target/47564
23252         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
23253         around backend_init_target and lang_dependent_init_target calls.
23254         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
23255         (verify_cgraph_node): Don't call set_cfun here.  Use
23256         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
23257         Set error_found for incorrectly represented calls to thunks.
23258
23259 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
23260
23261         PR debug/43092
23262         PR rtl-optimization/43494
23263         * rtl.h (for_each_inc_dec_fn): New type.
23264         (for_each_inc_dec): Declare.
23265         * rtlanal.c (struct for_each_inc_dec_ops): New type.
23266         (for_each_inc_dec_find_inc_dec): New fn.
23267         (for_each_inc_dec_find_mem): New fn.
23268         (for_each_inc_dec): New fn.
23269         * dse.c (struct insn_size): Remove.
23270         (replace_inc_dec, replace_inc_dec_mem): Remove.
23271         (emit_inc_dec_insn_before): New fn.
23272         (check_for_inc_dec): Use it, along with for_each_inc_dec.
23273         (canon_address): Pass mem modes to cselib_lookup.
23274         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
23275         (cselib_lookup_from_insn): Likewise.
23276         (cselib_subst_to_values): Likewise.
23277         * cselib.c (find_slot_memmode): New var.
23278         (cselib_find_slot): New fn.  Use it instead of
23279         htab_find_slot_with_hash everywhere.
23280         (entry_and_rtx_equal_p): Use find_slot_memmode.
23281         (autoinc_split): New fn.
23282         (rtx_equal_for_cselib_p): Rename and implement in terms of...
23283         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
23284         Deal with autoinc.  Special-case recursion into MEMs.
23285         (cselib_hash_rtx): Likewise.
23286         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
23287         address and MEM modes.
23288         (cselib_subst_to_values): Add memmode, pass it on.
23289         Deal with autoinc.
23290         (cselib_lookup): Add memmode argument, pass it on.
23291         (cselib_lookup_from_insn): Add memmode.
23292         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
23293         (struct cselib_record_autoinc_data): New.
23294         (cselib_record_autoinc_cb): New fn.
23295         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
23296         mode to cselib_lookup.  Reset autoinced REGs here instead of...
23297         (cselib_process_insn): ... here.
23298         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
23299         to cselib_lookup.
23300         (add_uses): Likewise, also to cselib_subst_to_values.
23301         (add_stores): Likewise.
23302         * sched-deps.c (add_insn_mem_dependence): Pass mode to
23303         cselib_subst_to_values.
23304         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
23305         * gcse.c (do_local_cprop): Adjusted.
23306         * postreload.c (reload_cse_simplify_set): Adjusted.
23307         (reload_cse_simplify_operands): Adjusted.
23308         * sel-sched-dump (debug_mem_addr_value): Pass mode.
23309
23310 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
23311
23312         PR tree-optimization/45122
23313         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
23314         unsafe assumptions when there's more than one loop exit.
23315
23316 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23317
23318         PR target/47272
23319         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23320         Document using vector double with the load/store builtins, and
23321         that the load/store builtins always use Altivec instructions.
23322
23323         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
23324         to use altivec memory instructions, even on VSX.
23325         (vector_altivec_store_<mode>): Ditto.
23326
23327         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
23328         function.
23329
23330         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23331         V2DF, V2DI support to load/store overloaded builtins.
23332
23333         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
23334         altivec load/store builtins for V2DF/V2DI types.
23335
23336         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23337         set avoid indexed addresses on power6 if -maltivec.
23338         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
23339         vector_altivec_load/vector_altivec_store builtins.
23340         (altivec_expand_st_builtin): Ditto.
23341         (altivec_expand_builtin): Add VSX memory builtins.
23342         (rs6000_init_builtins): Add V2DI types to internal types.
23343         (altivec_init_builtins): Add support for V2DF/V2DI altivec
23344         load/store builtins.
23345         (rs6000_address_for_altivec): Insure memory address is appropriate
23346         for Altivec.
23347
23348         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
23349         vec_vsx_ld and vec_vsx_st.
23350         (vsx_store_<mode>): Ditto.
23351
23352         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
23353         variables to hold long long types for VSX vector memory builtins.
23354         (RS6000_BTI_unsigned_long_long): Ditto.
23355         (long_long_integer_type_internal_node): Ditti.
23356         (long_long_unsigned_type_internal_node): Ditti.
23357
23358         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
23359         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
23360         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
23361
23362         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
23363         short cuts.
23364         (vec_vsx_st): Ditto.
23365
23366 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
23367
23368         * config/pa/pa-hpux10.opt: New.
23369         * config/hpux11.opt (pthread): New Driver option.
23370         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
23371         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
23372
23373 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
23374
23375         * config/ia64/vms.opt: New.
23376         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
23377
23378 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
23379
23380         PR target/47580
23381         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
23382         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
23383         generator functions.
23384         (vsx_floatuns<VSi><mode>2): Ditto.
23385         (vsx_fix_trunc<mode><VSi>2): Ditto.
23386         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
23387
23388 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
23389
23390         * config/i386/djgpp.opt (posix): New Driver option.
23391
23392 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
23393
23394         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
23395         Move to the unsupported targets list.
23396
23397 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
23398
23399         PR rtl-optimization/47525
23400         * df-scan.c: Update copyright years.
23401         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
23402         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
23403
23404 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23405
23406         * config/i386/sysv4.h (TARGET_VERSION): Remove.
23407         (SUBTARGET_RETURN_IN_MEMORY): Remove.
23408         (ASM_OUTPUT_ASCII): Remove.
23409         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
23410
23411 2011-02-02  Jeff Law  <law@redhat.com>
23412
23413         PR middle-end/47543
23414         * reload.c (find_reloads_address): Handle reg+d address where both
23415         components are invalid by reloading the entire address.
23416
23417 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
23418             Richard Guenther  <rguenther@suse.de>
23419
23420         PR tree-optimization/40979
23421         PR bootstrap/47044
23422         * passes.c (init_optimization_passes): After LIM call copy_prop
23423         and DCE to clean up.
23424         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
23425
23426 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
23427
23428         PR tree-optimization/47576
23429         PR tree-optimization/47555
23430         * doc/invoke.texi (scev-max-expr-complexity): Documented.
23431         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23432         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
23433         * tree-scalar-evolution.c (follow_ssa_edge): Use
23434         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
23435
23436 2011-02-02  Richard Guenther  <rguenther@suse.de>
23437
23438         PR tree-optimization/47566
23439         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
23440
23441 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
23442
23443         PR debug/47106
23444         PR debug/47402
23445         * tree-inline.c (declare_return_variable): Remove unused caller
23446         variable.
23447
23448         PR debug/47106
23449         PR debug/47402
23450         * tree-flow-inline.h (clear_is_used, is_used_p): New.
23451         * cfgexpand.c (account_used_vars_for_block): Use them.
23452         * tree-nrv.c (tree_nrv): Likewise.
23453         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
23454         (dump_scope_block): Likewise.
23455         (remove_unused_locals): Likewise.
23456
23457         PR debug/47106
23458         PR debug/47402
23459         * tree-inline.c (declare_return_variable): Add result decl to
23460         local decls only once.
23461         * gimple-low.c (record_vars_into): Mark newly-created variables
23462         as referenced.
23463
23464 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
23465
23466         PR debug/47498
23467         PR debug/47501
23468         PR debug/45136
23469         PR debug/45130
23470         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23471         debug insns.
23472         (no_real_insns_p, schedule_block, set_priorities): Drop special
23473         treatment of boundary debug insns.
23474         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
23475         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
23476         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23477         (BOUNDARY_DEBUG_INSN_P): Likewise.
23478         (SCHEDULE_DEBUG_INSN_P): Likewise.
23479         * sched-rgn.c (init_ready_list): Drop special treatment of
23480         boundary debug insns.
23481         * final.c (rest_of_clean_state): Clear notes' BB.
23482
23483 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
23484
23485         * config/openbsd.opt (assert=): New Driver option.
23486
23487 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
23488
23489         * config/i386/nto.opt: New.
23490         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
23491
23492 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
23493
23494         * config/i386/netware.opt: New.
23495         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
23496
23497 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
23498
23499         * config/interix.opt (posix): New Driver option.
23500
23501 2011-02-01  DJ Delorie  <dj@redhat.com>
23502
23503         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
23504
23505         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
23506         class for A0/A1.
23507
23508 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
23509
23510         PR tree-optimization/47561
23511         * toplev.c (process_options): Print the Graphite flags.  Add
23512         flag_loop_flatten to the list of options requiring Graphite.
23513
23514 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
23515
23516         * config/i386/cygming.opt (posix): New Driver option.
23517
23518 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
23519
23520         * config/arm/vxworks.opt: New.
23521         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
23522
23523 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
23524
23525         * config/alpha/elf.opt: New.
23526         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
23527         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
23528
23529 2011-02-01  Richard Guenther  <rguenther@suse.de>
23530
23531         PR tree-optimization/47559
23532         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
23533         store-motion on references that can throw.
23534
23535 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
23536
23537         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
23538         * tree-pass.h (TDF_CSELIB): New macro.
23539         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
23540         cselib_lookup): Check for it rather than for TDF_DETAILS.
23541
23542 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
23543
23544         PR driver/47547
23545         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
23546         is HOST_BIT_BUCKET.
23547
23548         * opts.c (finish_options): Don't add x_aux_base_name if it is
23549         HOST_BIT_BUCKET.
23550
23551 2011-02-01  Richard Guenther  <rguenther@suse.de>
23552
23553         PR tree-optimization/47555
23554         Revert
23555         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
23556
23557         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23558
23559 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
23560
23561         PR gcc/46692
23562         * config/lm32/t-lm32: Add multilib for all CPU options.
23563
23564 2011-02-01  Richard Guenther  <rguenther@suse.de>
23565
23566         PR tree-optimization/47541
23567         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
23568         sure to have a field at offset zero.
23569
23570 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
23571
23572         * config/arc/arc.opt (EB, EL): New Driver options.
23573
23574 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
23575
23576         * config/alpha/osf5.opt: New.
23577         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
23578
23579 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
23580
23581         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
23582
23583 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
23584
23585         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
23586         -floop-interchange.
23587         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
23588         is an alias of -floop-interchange and that it requires the
23589         Graphite infrastructure.
23590         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
23591         flag_loop_interchange based on the value of flag_tree_loop_linear.
23592
23593 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
23594             Richard Guenther  <rguenther@suse.de>
23595
23596         PR tree-optimization/47538
23597         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
23598         type instead of r1type, except for comparisons.  For right
23599         shifts and comparisons punt if there are mismatches in
23600         sizetype vs. non-sizetype types.
23601
23602 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23603
23604         * doc/sourcebuild.texi (Effective-Target Keywords): Document
23605         avx_runtime.
23606
23607 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23608
23609         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
23610         version number.
23611         * configure: Regenerate.
23612
23613 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23614
23615         * configure.ac (gcc_cv_ld_static_option): Define.
23616         (gcc_cv_ld_dynamic_option): Define.
23617         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
23618         instead.
23619         (HAVE_LD_STATIC_DYNAMIC): Update message.
23620         (LD_STATIC_OPTION): Define.
23621         (LD_DYNAMIC_OPTION): Define.
23622         * configure: Regenerate.
23623         * config.in: Regenerate.
23624         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
23625         HAVE_LD_STATIC_DYNAMIC]: Use them.
23626
23627 2011-01-31  Nick Clifton  <nickc@redhat.com>
23628
23629         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
23630         registers inside interrupt handlers if the handler is not a leaf
23631         function.
23632
23633 2011-01-31  Nick Clifton  <nickc@redhat.com>
23634
23635         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
23636         reg_renumber returning an INVALID_REGNUM.
23637
23638 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
23639
23640         PR libgcj/44341
23641         * doc/install.texi: Document host options discarded when cross
23642         configuring target libraries.
23643
23644 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
23645
23646         Reverted:
23647         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
23648         PR debug/45136
23649         PR debug/45130
23650         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23651         debug insns.
23652         (no_real_insns_p, schedule_block, set_priorities): Drop special
23653         treatment of boundary debug insns.
23654         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
23655         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23656         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23657         (BOUNDARY_DEBUG_INSN_P): Likewise.
23658         (SCHEDULE_DEBUG_INSN_P): Likewise.
23659         * sched-rgn.c (init_ready_list): Drop special treatment of
23660         boundary debug insns.
23661         * final.c (rest_of_clean-state): Clear notes' BB.
23662
23663 2011-01-31  Alan Modra  <amodra@gmail.com>
23664
23665         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
23666         toc relative expressions as we do in print_operand_address.
23667
23668 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
23669
23670         * doc/extend.texi: Follow spelling conventions.
23671         * doc/invoke.texi: Fix a typo.
23672
23673 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
23674
23675         * config/hpux11.opt: New.
23676         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
23677         ia64*-*-hpux*): Use hpux11.opt.
23678
23679 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
23680
23681         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
23682         to tmake_file.
23683
23684 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
23685
23686         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
23687         support sites.
23688
23689 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
23690
23691         * doc/install.texi (Binaries): Remove outdated reference for
23692         Motorola 68HC11/68HC12 downloads.
23693
23694 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
23695
23696         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
23697         Drepper's paper.
23698
23699 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
23700
23701         PR bootstrap/47147
23702         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
23703         used by NetBSD.
23704
23705 2011-01-28  Ahmad Sharif  <asharif@google.com>
23706
23707         * value-prof.c (check_counter): Corrected error message.
23708
23709 2011-01-29  Jie Zhang  <jie@codesourcery.com>
23710
23711         * config/arm/arm.c (arm_legitimize_reload_address): New.
23712         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23713         arm_legitimize_reload_address.
23714         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
23715
23716 2011-01-28  Ian Lance Taylor  <iant@google.com>
23717
23718         * godump.c (go_define): Ignore macros whose definitions include
23719         two adjacent operands.
23720
23721 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
23722
23723         PR target/42894
23724         * varasm.c (force_const_mem): Store copy of x in desc->constant
23725         instead of x itself.
23726         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
23727         itself into REG_EQUAL note.
23728
23729 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
23730
23731         * config/freebsd.opt (posix, rdynamic): New Driver options.
23732
23733 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23734
23735         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
23736         -Bstatic/-Bdynamic.
23737         * configure: Regenerate.
23738
23739 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
23740
23741         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
23742         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
23743
23744 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
23745
23746         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
23747         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
23748         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23749         (s390_preferred_reload_class): Make static. Change return and
23750         'rclass' argument type to reg_class_t.
23751
23752 2011-01-27  Jan Hubicka  <jh@suse.cz>
23753
23754         PR middle-end/46949
23755         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
23756         (process_function_and_variable_attributes): Check defined weakrefs.
23757
23758 2011-01-27  Martin Jambor  <mjambor@suse.cz>
23759
23760         PR tree-optimization/47228
23761         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
23762         build_ref_for_offset.
23763
23764 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23765
23766         * config/spu/spu-elf.h (ASM_SPEC): Remove.
23767
23768 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
23769
23770         PR rtl-optimization/46856
23771         * postreload.c (reload_combine_recognize_const_pattern): Do not
23772         separate cc0 setter and user on cc0 targets.
23773
23774 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
23775
23776         PR c/43082
23777         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
23778         passed a VOID_TYPE expression, immediately emit an error and
23779         return error_mark_node.
23780
23781 2011-01-26  Jeff Law  <law@redhat.com>
23782
23783         PR rtl-optimization/47464
23784         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
23785         rather than may_trap_p as needed.
23786
23787 2011-01-26  DJ Delorie  <dj@redhat.com>
23788
23789         PR rtl-optimization/46878
23790         * combine.c (insn_a_feeds_b): Check for the implicit cc0
23791         setter/user dependency as well.
23792
23793 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
23794
23795         PR rtl-optimization/44469
23796         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
23797         after removing trivially dead basic blocks.
23798
23799 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23800
23801         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
23802         * config/frv/frv.h (LINK_SPEC): Likewise.
23803         * config/i386/netware.h (LINK_SPEC): Likewise.
23804         * config/m68k/linux.h (ASM_SPEC): Likewise.
23805         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23806         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23807         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23808         * config/sparc/linux.h (ASM_SPEC): Likewise.
23809         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23810         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23811
23812 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23813
23814         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
23815         * config/frv/frv.h (ASM_SPEC): Likewise.
23816         * config/m68k/linux.h (ASM_SPEC): Likewise.
23817         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23818         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
23819         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23820         * config/sparc/linux.h (ASM_SPEC): Likewise.
23821         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23822         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23823
23824 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23825
23826         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
23827         * config/frv/frv.h (LINK_SPEC): Likewise.
23828         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23829
23830 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23831
23832         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
23833         * config/frv/frv.h (ASM_SPEC): Likewise.
23834         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
23835         * config/m68k/linux.h (ASM_SPEC): Likewise.
23836         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23837         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23838         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23839         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
23840         * config/sparc/linux.h (ASM_SPEC): Likewise.
23841         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23842         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23843         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
23844
23845 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
23846
23847         PR target/46997
23848         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
23849         (*mux2): Ditto.
23850         (vec_extract_evenodd_help): Ditto.
23851         (vec_extract_evenv4hi): Ditto.
23852         (vec_extract_oddv4hi): Ditto.
23853         (vec_interleave_lowv2si): Ditto.
23854         (vec_interleave_highv2si): Ditto.
23855         (vec_extract_evenv2si): Ditto.
23856         (vec_extract_oddv2si: Ditto.
23857         (vec_pack_trunc_v2si): Ditto.
23858
23859 2011-01-22  Jan Hubicka  <jh@suse.cz>
23860
23861         PR target/47237
23862         * cgraph.h (cgraph_local_info): New field can_change_signature.
23863         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
23864         signature can change.
23865         (ipcp_estimate_growth): Call sequence simplify only if calle signature
23866         can change.
23867         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
23868         (cgraph_function_versioning): We can not change signature of functions
23869         that don't allow that.
23870         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
23871         (lto_input_node): Likewise.
23872         * ipa-inline.c (compute_inline_parameters): Compute
23873         local.can_change_signature.
23874         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
23875         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
23876         functions that can not change signature.
23877         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
23878         init_cumulative_args): Do not use local calling conventions
23879         for functions that can not change signature.
23880
23881 2011-01-22  Jan Hubicka  <jh@suse.cz>
23882
23883         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
23884
23885 2011-01-26  Richard Guenther  <rguenther@suse.de>
23886
23887         PR tree-optimization/47190
23888         * cgraphunit.c (process_common_attributes): New function.
23889         (process_function_and_variable_attributes): Use it.
23890
23891 2011-01-26  Richard Guenther  <rguenther@suse.de>
23892
23893         PR lto/47423
23894         * cgraphbuild.c (record_eh_tables): Record reference to personality
23895         function.
23896
23897 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
23898
23899         PR debug/45454
23900         * sel-sched.c (moveup_expr): Don't let debug insns prevent
23901         non-debug insns from moving up.
23902
23903 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
23904
23905         PR target/40125
23906         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
23907         t-dlldir{,-x} fragment for build and add it to tmake_file.
23908         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
23909         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
23910         * config/i386/t-dlldir: New file.
23911         (SHLIB_DLLDIR): Define.
23912         * config/i386/t-dlldir-x: New file.
23913         (SHLIB_DLLDIR): Define.
23914         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
23915         (SHLIB_INSTALL): Use it.
23916
23917 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
23918
23919         PR target/47246
23920         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
23921         lower bound of the allowed Thumb-2 coprocessor load/store
23922         index range to -256. Add explaining comment.
23923
23924 2011-01-25  Ian Lance Taylor  <iant@google.com>
23925
23926         * godump.c (go_define): Improve lexing of macro expansion to only
23927         accept expressions which match Go spec.
23928
23929 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
23930
23931         PR c++/43601
23932         * tree.c (handle_dll_attribute): Handle it.
23933         * doc/extend.texi (@item dllexport): Mention it.
23934         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
23935
23936 2011-01-25  Ian Lance Taylor  <iant@google.com>
23937
23938         PR tree-optimization/26854
23939         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
23940         (decl_jump_unsafe): Move higher in file, with no other change.
23941         (bind): Set has_jump_unsafe_decl if appropriate.
23942         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
23943         (check_earlier_gotos): Likewise.
23944         (c_check_switch_jump_warnings): Likewise.
23945
23946 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
23947
23948         * doc/invoke.texi (Warning Options): Add missing hyphen.
23949         (-fprofile-dir): Minor grammatical fixes.
23950         (-fbranch-probabilities): Likewise.
23951
23952 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
23953
23954         PR debug/45136
23955         PR debug/45130
23956         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23957         debug insns.
23958         (no_real_insns_p, schedule_block, set_priorities): Drop special
23959         treatment of boundary debug insns.
23960         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
23961         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23962         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23963         (BOUNDARY_DEBUG_INSN_P): Likewise.
23964         (SCHEDULE_DEBUG_INSN_P): Likewise.
23965         * sched-rgn.c (init_ready_list): Drop special treatment of
23966         boundary debug insns.
23967         * final.c (rest_of_clean-state): Clear notes' BB.
23968
23969 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23970
23971         * Makefile.in (LAMBDA_H): Removed.
23972         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
23973         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
23974         lambda-trans.o, and tree-loop-linear.o.
23975         (lto-symtab.o): Remove dependence on LAMBDA_H.
23976         (tree-loop-linear.o): Remove rule.
23977         (lambda-mat.o): Same.
23978         (lambda-trans.o): Same.
23979         (lambda-code.o): Same.
23980         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
23981         (tree-vect-slp.o): Same.
23982         * hwint.h (gcd): Moved here.
23983         (least_common_multiple): Same.
23984         * lambda-code.c: Removed.
23985         * lambda-mat.c: Removed.
23986         * lambda-trans.c: Removed.
23987         * lambda.h: Removed.
23988         * tree-loop-linear.c: Removed.
23989         * lto-symtab.c: Do not include lambda.h.
23990         * omega.c (gcd): Removed.
23991         * passes.c (init_optimization_passes): Remove pass_linear_transform.
23992         * tree-data-ref.c (print_lambda_vector): Moved here.
23993         (lambda_vector_copy): Same.
23994         (lambda_matrix_copy): Same.
23995         (lambda_matrix_id): Same.
23996         (lambda_vector_first_nz): Same.
23997         (lambda_matrix_row_add): Same.
23998         (lambda_matrix_row_exchange): Same.
23999         (lambda_vector_mult_const): Same.
24000         (lambda_vector_negate): Same.
24001         (lambda_matrix_row_negate): Same.
24002         (lambda_vector_equal): Same.
24003         (lambda_matrix_right_hermite): Same.
24004         * tree-data-ref.h: Do not include lambda.h.
24005         (lambda_vector): Moved here.
24006         (lambda_matrix): Same.
24007         (dependence_level): Same.
24008         (lambda_transform_legal_p): Removed declaration.
24009         (lambda_collect_parameters): Same.
24010         (lambda_compute_access_matrices): Same.
24011         (lambda_vector_gcd): Same.
24012         (lambda_vector_new): Same.
24013         (lambda_vector_clear): Same.
24014         (lambda_vector_lexico_pos): Same.
24015         (lambda_vector_zerop): Same.
24016         (lambda_matrix_new): Same.
24017         * tree-flow.h (least_common_multiple): Removed declaration.
24018         * tree-parloops.c (lambda_trans_matrix): Moved here.
24019         (LTM_MATRIX): Same.
24020         (LTM_ROWSIZE): Same.
24021         (LTM_COLSIZE): Same.
24022         (LTM_DENOMINATOR): Same.
24023         (lambda_trans_matrix_new): Same.
24024         (lambda_matrix_vector_mult): Same.
24025         (lambda_transform_legal_p): Same.
24026         * tree-pass.h (pass_linear_transform): Removed declaration.
24027         * tree-ssa-loop.c (tree_linear_transform): Removed.
24028         (gate_tree_linear_transform): Removed.
24029         (pass_linear_transform): Removed.
24030         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
24031         flag_loop_interchange.
24032
24033 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
24034
24035         PR tree-optimization/47265
24036         PR tree-optimization/47443
24037         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
24038         if name still has some uses.
24039
24040 2011-01-25  Martin Jambor  <mjambor@suse.cz>
24041
24042         PR tree-optimization/47382
24043         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
24044         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
24045
24046 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
24047
24048         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
24049         sjlj_except_unwind_info.
24050
24051 2011-01-25  Richard Guenther  <rguenther@suse.de>
24052
24053         PR tree-optimization/47426
24054         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
24055         visible functions results escape.
24056
24057 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
24058
24059         PR target/45701
24060         * config/arm/arm.c (any_sibcall_uses_r3): New function.
24061         (arm_get_frame_offsets): Use it.
24062
24063 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24064             Jakub Jelinek  <jakub@redhat.com>
24065
24066         PR tree-optimization/47271
24067         * tree-if-conv.c (bb_postdominates_preds): New.
24068         (if_convertible_bb_p): Call bb_postdominates_preds.
24069         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
24070         (predicate_scalar_phi): Call bb_postdominates_preds.
24071
24072 2011-01-25  Nick Clifton  <nickc@redhat.com>
24073
24074         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
24075         * config/rx/rx.c (rx_function_value): Likewise.
24076         (rx_promote_function_mode): Likewise.
24077         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
24078         in order to make it legitimate.
24079         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
24080         make sure that the first operand is the same as the result register.
24081         (addsi3_unspec): Delete.
24082         (subdi3): Do not accept immediate operands.
24083         (subdi3_internal): Likewise.
24084
24085 2011-01-25  Jeff Law  <law@redhat.com>
24086
24087         PR rtl-optimization/37273
24088         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24089         handle them like argument loads from stack slots.  Do not double
24090         count memory for memory constants and argument loads from stack slots.
24091
24092 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
24093
24094         PR tree-optimization/47427
24095         PR tree-optimization/47428
24096         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
24097         coalesce if the new root var would be TREE_READONLY.
24098
24099 2011-01-25  Richard Guenther  <rguenther@suse.de>
24100
24101         PR middle-end/47414
24102         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
24103         correct type for TBAA.
24104
24105 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24106
24107         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
24108         (close_phi_written_to_memory): Call for_each_index with
24109         dr_indices_valid_in_loop.
24110
24111 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24112
24113         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
24114         when it is initialized.
24115
24116 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24117
24118         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
24119         call to graphite_find_data_references_in_stmt.
24120         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
24121         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
24122         call to graphite_find_data_references_in_stmt.
24123         (analyze_drs_in_stmts): Same.
24124         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
24125         in which the scalar analysis of indices is performed.
24126         (create_data_ref): Same.  Update call to dr_analyze_indices.
24127         (find_data_references_in_stmt): Update call to create_data_ref.
24128         (graphite_find_data_references_in_stmt): Same.
24129         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
24130         declaration.
24131         (create_data_ref): Same.
24132         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
24133         call to create_data_ref.
24134
24135 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24136
24137         * graphite-sese-to-poly.c (build_poly_scop): Move
24138         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
24139
24140 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24141
24142         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
24143         VAR_DECL, PARM_DECL, and RESULT_DECL.
24144
24145 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24146
24147         * graphite-dependences.c (reduction_dr_1): Allow several reductions
24148         in a reduction PBB.
24149         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
24150         that have already been marked as PBB_IS_REDUCTION.
24151
24152 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24153
24154         * graphite-scop-detection.c (same_close_phi_node): New.
24155         (remove_duplicate_close_phi): New.
24156         (make_close_phi_nodes_unique): New.
24157         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
24158
24159 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24160
24161         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
24162         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
24163         of both data references to be the same.
24164
24165 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24166
24167         * graphite-dependences.c (build_lexicographical_constraint): Remove
24168         the gdim parameter.
24169         (build_lexicographical_constraint): Adjust call to
24170         ppl_powerset_is_empty.
24171         (dependence_polyhedron): Same.
24172         (graphite_legal_transform_dr): Same.
24173         (graphite_carried_dependence_level_k): Same.
24174         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
24175         parameter.
24176         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
24177
24178 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24179
24180         * graphite-sese-to-poly.c
24181         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
24182         (close_phi_written_to_memory): New.
24183         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
24184         and unshare_expr.
24185
24186 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24187
24188         * doc/install.texi: Update the expected version number of PPL to 0.11.
24189         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24190         #if PPL_VERSION_MINOR < 11.
24191
24192 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24193
24194         * graphite-dependences.c: Include graphite-cloog-util.h.
24195         (new_poly_ddr): Inlined into dependence_polyhedron.
24196         (free_poly_ddr): Moved close by new_poly_ddr.
24197         (dependence_polyhedron_1): Renamed dependence_polyhedron.
24198         Early return NULL when ppl_powerset_is_empty returns true.
24199         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
24200         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
24201         (graphite_legal_transform_dr): Call new_poly_ddr.
24202         (graphite_carried_dependence_level_k): Same.
24203         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
24204         (dot_transformed_deps_stmt_1): Removed.
24205         (dot_deps_stmt_1): Call dot_deps_stmt_2.
24206         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
24207         (dot_deps_1): Call dot_deps_2.
24208         * Makefile.in (graphite-dependences.o): Add missing dependence on
24209         graphite-cloog-util.h.
24210
24211 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24212
24213         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
24214         (build_lexicographical_constraint): Same.
24215         (dependence_polyhedron_1): Same.
24216         (graphite_legal_transform_dr): Same.
24217         (graphite_carried_dependence_level_k): Same.
24218         * graphite-ppl.c (ppl_powerset_is_empty): New.
24219         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
24220         * tree-data-ref.c (dump_data_reference): Print the basic block index.
24221
24222 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24223
24224         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
24225         the "a followed by b" relation and document it.
24226
24227 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24228
24229         * graphite-dependences.c (build_lexicographical_constraint): Stop the
24230         iteration when the bag of constraints is empty.
24231
24232 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24233
24234         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
24235
24236 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24237
24238         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
24239         nest and two loop depths as parameters.
24240         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
24241         lst_perfect_nestify.
24242
24243 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24244
24245         * graphite-dependences.c (print_pddr): Call
24246         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
24247
24248 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
24249
24250         * graphite-ppl.c (debug_gmp_value): New.
24251         * graphite-ppl.h (debug_gmp_value): Declared.
24252
24253 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
24254
24255         * doc/install.texi: Document availability of cloog-0.16.
24256
24257 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
24258
24259         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
24260         invalid postdominance info.
24261
24262 2011-01-24  Jan Hubicka  <jh@suse.cz>
24263
24264         PR c/21659
24265         * doc/extend.texi (weak pragma): Drop claim that it must
24266         appear before definition.
24267         * varasm.c (merge_weak, declare_weak): Only sanity check
24268         that DECL is not output at a time it is declared weak.
24269
24270 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
24271
24272         * machmode.def: Fixed comments.
24273
24274 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
24275
24276         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
24277
24278 2011-01-24  Paul Koning  <ni1d@arrl.net>
24279
24280         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
24281         WORDS_BIG_ENDIAN.
24282
24283 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
24284
24285         PR target/46519
24286         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
24287         (block_info): Add scanned and prev.
24288         (move_or_delete_vzeroupper_2): Return if the basic block
24289         has been scanned and the upper 128bit state is unchanged
24290         from the last scan.
24291         (move_or_delete_vzeroupper_1): Return true if the exit
24292         state is changed.
24293         (move_or_delete_vzeroupper): Visit basic blocks using the
24294         work-list based algorithm based on vt_find_locations in
24295         var-tracking.c.
24296
24297         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
24298
24299 2011-01-24  Nick Clifton  <nickc@redhat.com>
24300
24301         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
24302         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
24303         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
24304         then define __v850e1__.
24305         * doc/invoke.texi: Document -mv850es.
24306
24307 2011-01-24  Richard Henderson  <rth@redhat.com>
24308
24309         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
24310         compound unordered comparisons.
24311         * config/rx/rx.c (rx_split_fp_compare): Remove.
24312         * config/rx/rx-protos.h: Update.
24313         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
24314         (cbranchsf4): Don't call rx_split_fp_compare.
24315         (*cbranchsf4): Use rx_split_cbranch.
24316         (*cmpsf): Don't accept "i" constraint.
24317         (*conditional_branch): Only valid after reload.
24318         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
24319
24320 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24321
24322         PR target/47385
24323         * config/rs6000/altivec.md (vector constant splitters): Add
24324         support for creating vector single precision constants if -mvsx is
24325         used and we would create the constant using Altivec primitives.
24326
24327 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
24328             Richard Sandiford  <rdsandiford@googlemail.com>
24329
24330         PR rtl-optimization/47166
24331         * reload1.c (emit_reload_insns): Disable the spill_reg_store
24332         mechanism for PRE_MODIFY and POST_MODIFY.
24333         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
24334         reloadreg.
24335
24336 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
24337
24338         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
24339
24340 2011-01-22  Jan Hubicka  <jh@suse.cz>
24341
24342         PR lto/47333
24343         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
24344
24345 2011-01-22  Jan Hubicka  <jh@suse.cz>
24346
24347         PR tree-optimization/43884
24348         PR lto/44334
24349         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
24350         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
24351
24352 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
24353
24354         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24355         * config/s390/s390.c (s390_register_move_cost,
24356         s390_memory_move_cost): New.
24357         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
24358
24359 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24360
24361         PR middle-end/47401
24362         * except.c (sjlj_assign_call_site_values): Move setting the
24363         crtl->uses_eh_lsda flag to ...
24364         (sjlj_mark_call_sites): ... here.
24365         (sjlj_emit_function_enter): Support NULL dispatch label.
24366         (sjlj_build_landing_pads): In a function with no landing pads
24367         that still has must-not-throw regions, generate code to register
24368         a personality function with empty LSDA.
24369
24370 2011-01-21  Richard Henderson  <rth@redhat.com>
24371
24372         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
24373
24374         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
24375
24376         * compare-elim.c: New file.
24377         * Makefile.in (OBJS-common): Add it.
24378         (compare-elim.o): New.
24379         * common.opt (fcompare-elim): New.
24380         * opts.c (default_options_table): Add OPT_fcompare_elim.
24381         * tree-pass.h (pass_compare_elim_after_reload): New.
24382         * passes.c (init_optimization_passes): Add it.
24383         * recog.h: Protect against re-inclusion.
24384         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
24385         * doc/invoke.texi (-fcompare-elim): Document it.
24386         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
24387         * doc/tm.texi: Rebuild.
24388
24389 2011-01-22  Nick Clifton  <nickc@redhat.com>
24390
24391         * config/rx/rx.md (cstoresf4): Pass comparison operator to
24392         rx_split_fp_compare.
24393
24394 2011-01-22  Nick Clifton  <nickc@redhat.com>
24395
24396         * config/rx/rx.md (UNSPEC_CONST): New.
24397         (deallocate_and_return): Wrap the amount popped off the stack in
24398         an UNSPEC_CONST in order to stop it being rejected by
24399         -mmax-constant-size.
24400         (pop_and_return): Add a "(return)" rtx.
24401         (call): Drop the immediate operand.
24402         (call_internal): Likewise.
24403         (call_value): Likewise.
24404         (call_value_internal): Likewise.
24405         (sibcall_internal): Likewise.
24406         (sibcall_value_internal): Likewise.
24407         (sibcall): Likewise.  Generate an explicit call using
24408         sibcall_internal.
24409         (sibcall_value): Likewise.
24410         (mov<>): FAIL if a constant operand is not legitimate.
24411         (addsi3_unpsec): New pattern.
24412
24413         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
24414         (ok_for_max_constant): New function.
24415         (gen_safe_add): New function.
24416         (rx_expand_prologue): Use gen_safe_add.
24417         (rx_expand_epilogue): Likewise.
24418         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
24419         UNSPEC CONSTs.
24420
24421 2011-01-21  Jeff Law  <law@redhat.com>
24422
24423         PR tree-optimization/47053
24424         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
24425         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
24426         statements are deleted.
24427         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
24428         is nonempty, then purge dead edges and cleanup the CFG.
24429
24430 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
24431
24432         PR debug/47402
24433         Temporarily revert:
24434         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
24435         PR debug/47106
24436         * tree-dfa.c (create_var_ann): Mark variable as used.
24437
24438 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
24439
24440         PR middle-end/45566
24441         * except.c (convert_to_eh_region_ranges): Emit queued no-region
24442         notes from other section in hot/cold partitioning even if
24443         last_action is -3.  Increment call_site_base.
24444
24445         PR rtl-optimization/47366
24446         * fwprop.c (forward_propagate_into): Return bool.  If
24447         any changes are made, -fnon-call-exceptions is used and
24448         REG_EH_REGION note is present, call purge_dead_edges
24449         and return true if it purged anything.
24450         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
24451         any EH edges were purged.
24452
24453 2011-01-21  Jeff Law  <law@redhat.com>
24454
24455         PR rtl-optimization/41619
24456         * caller-save.c (setup_save_areas): Break out code to determine
24457         which hard regs are live across calls by examining the reload chains
24458         so that it is always used.
24459         Eliminate code which checked REG_N_CALLS_CROSSED.
24460
24461 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
24462
24463         PR tree-optimization/47355
24464         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
24465         NOP has non-debug uses beyond PHIs in new_bb.
24466
24467 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
24468
24469         PR debug/47106
24470         * cfgexpand.c (account_used_vars_for_block): Only account vars
24471         that are annotated as used.
24472         (estimated_stack_frame_size): Don't set TREE_USED.
24473         * tree-dfa.c (create_var_ann): Mark variable as used.
24474
24475 2011-01-21  Richard Guenther  <rguenther@suse.de>
24476
24477         PR middle-end/47395
24478         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
24479
24480 2011-01-21  Richard Guenther  <rguenther@suse.de>
24481
24482         PR tree-optimization/47365
24483         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
24484         (vn_reference_lookup_pieces): Adjust.
24485         (vn_reference_lookup): Likewise.
24486         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
24487         (vn_reference_lookup_3): Only look through kills if in
24488         VN_WALKREWRITE mode.
24489         (vn_reference_lookup_pieces): Adjust.
24490         (vn_reference_lookup): Likewise.
24491         (visit_reference_op_load): Likewise.
24492         (visit_reference_op_store): Likewise.
24493         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
24494         (compute_avail): Likewise.
24495         (eliminate): Likewise.
24496
24497 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
24498
24499         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
24500         DECL_IGNORED_P non-reg vars if they are used.
24501
24502         PR tree-optimization/47391
24503         * varpool.c (const_value_known_p): Return false if
24504         decl is volatile.
24505
24506 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
24507
24508         PR bootstrap/47215
24509         * config/i386/i386.c (ix86_local_alignment): Handle
24510         case for va_list_type_node is nil.
24511         (ix86_canonical_va_list_type): Likewise.
24512
24513 2011-01-21  Alan Modra  <amodra@gmail.com>
24514
24515         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
24516         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
24517
24518 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24519
24520         * config/arm/arm.md (define_attr type): Rename f_load
24521         and f_store to f_fpa_load and f_fpa_store. Update.
24522         (write_conflict): Deal with rename fallout.
24523         (*push_fp_multi): Likewise.
24524         * config/arm/fpa.md (f_load): Use f_fpa_load.
24525         (f_store): Use f_fpa_store.
24526         (*movsf_fpa): Likewise.
24527         (*movdf_fpa): Likewise.
24528         (*movxf_fpa): Likewise.
24529         (*thumb2_movsf_fpa): Likewise.
24530         (*thumb2_movdf_fpa): Likewise.
24531         (*thumb2_movxf_fpa): Likewise.
24532         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
24533         f_loadd and f_stored.
24534         (*thumb2_movdi_vfp): Likewise.
24535         (*thumb2_movsf_vfp): Fix attribute to f_loads.
24536         (*thumb2_movsi_vfp): Likewise.
24537         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
24538         Use f_loads instead of f_load.
24539         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
24540
24541 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
24542
24543         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24544         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
24545         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24546         (xtensa_mode_dependent_address_p): New function.
24547         (constantpool_address_p): Make static. Change return type to bool.
24548         Change argument type to const_rtx. Use CONST_INT_P predicate.
24549
24550 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
24551
24552         PR debug/46583
24553         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
24554
24555 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
24556
24557         PR debug/47283
24558         * cfgexpand.c (expand_debug_expr): Instead of generating
24559         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
24560         etc. handling.
24561
24562 2011-01-20  Richard Guenther  <rguenther@suse.de>
24563
24564         PR middle-end/47370
24565         * tree-inline.c (remap_gimple_op_r): Recurse manually for
24566         the pointer operand of MEM_REFs.
24567
24568 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
24569
24570         PR tree-optimization/46130
24571         * ipa-split.c (consider_split): If return_bb contains non-virtual
24572         PHIs other than for retval or if split_function would not adjust it,
24573         refuse to split.
24574
24575 2011-01-20  Richard Guenther  <rguenther@suse.de>
24576
24577         PR tree-optimization/47167
24578         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
24579         Revert previous change, only avoid enumeral type changes.
24580
24581 2011-01-19  Mike Stump  <mikestump@comcast.net>
24582
24583         * doc/tm.texi.in (BRANCH_COST): Englishify.
24584         * doc/tm.texi (BRANCH_COST): Likewise.
24585
24586 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
24587
24588         PR c++/47291
24589         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
24590         (gen_scheduled_generic_parms_dies): New functions.
24591         (gen_struct_or_union_type_die): Schedule template parameters DIEs
24592         generation for the end of CU compilation.
24593         (dwarf2out_finish): Generate template parameters DIEs here.
24594
24595 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
24596
24597         PR debug/46240
24598         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
24599         debug bind stmt on merge edges.
24600
24601 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
24602
24603         PR debug/47079
24604         PR debug/46724
24605         * function.c (instantiate_expr): Instantiate incoming rtl of
24606         implicit arguments, and recurse on VALUE_EXPRs.
24607         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
24608         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
24609
24610 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
24611
24612         * c-parser.c (c_parser_for_statement): Initialize
24613         collection_expression.
24614
24615 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24616
24617         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
24618
24619 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24620
24621         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
24622         (LINK_SHLIB_SPEC): Don't use %(link_path).
24623         (SUBTARGET_EXTRA_SPECS): Remove link_path.
24624
24625 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24626
24627         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
24628         (NO_SHARED_LIB_SUPPORT): Remove.
24629         (LINK_SHLIB_SPEC): Remove one conditional definition.
24630
24631 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24632
24633         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
24634         %{call_shared}.
24635         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
24636         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
24637         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
24638         %{call_shared} and conditionals on these options not being passed.
24639         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
24640         %{call_shared}.
24641
24642 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
24643
24644         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
24645         simplify.
24646
24647         * ipa-split.c: Spelling fixes.
24648
24649 2011-01-19  Richard Henderson  <rth@redhat.com>
24650
24651         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
24652         (*mulsi3): Likewise.
24653
24654         * longlong.h [__mn10300__] (count_leading_zeros): New.
24655         [__mn10300__] (umul_ppmm, smul_ppmm): New.
24656         [__mn10300__] (add_ssaaaa, subddmmss): New.
24657         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
24658         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
24659
24660 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24661
24662         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
24663
24664 2011-01-19  Richard Henderson  <rth@redhat.com>
24665
24666         * config/mn10300/mn10300.md (addsi3_flags): New.
24667         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
24668         (subsi3_flags, subc_internal, subdi3): New.
24669         (subdi3_internal, *subdi3_degenerate): New.
24670         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
24671
24672         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
24673         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
24674         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
24675         * config/mn10300/mn10300-protos.h: Update.
24676         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
24677         (return_ret): Likewise.  Rename from return_internal_regs.
24678         (return_internal): Remove.
24679
24680         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
24681         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
24682         (mn10300_legitimate_constant_p): Likewise.
24683         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
24684         (mn10300_frame_size): New.
24685         (mn10300_expand_prologue): Use it.
24686         (mn10300_expand_epilogue): Likewise.
24687         (mn10300_initial_offset): Likewise.
24688         * config/mn10300/mn10300-protos.h: Update.
24689         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
24690         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
24691         (prologue, epilogue, return_internal): Tidy output code.
24692         (mn10300_store_multiple_operation, return): Likewise.
24693         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
24694         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
24695         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
24696         (load_pic, am33_load_pic): New.
24697         (mn10300_load_pic0, mn10300_load_pic1): New.
24698
24699         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
24700         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
24701         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
24702         (cc_flags_for_mode, cc_flags_for_code): New.
24703         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
24704         overflow flag is not valid.  Validate that the flags we need
24705         for the comparison are valid.
24706         (mn10300_output_cmp): Remove.
24707         (mn10300_output_add): New.
24708         (mn10300_select_cc_mode): Use cc_flags_for_code.
24709         (mn10300_split_cbranch): New.
24710         (mn10300_match_ccmode): New.
24711         (mn10300_split_and_operand_count): New.
24712         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
24713         to the function.
24714         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
24715         (addsi3): ... here.  Use mn10300_output_add.
24716         (*addsi3_flags): New.
24717         (*am33_subsi3, *mn10300_subsi3): Merge...
24718         (subsi3): ... here.  Use attribute isa.
24719         (*subsi3_flags): New.
24720         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
24721         when possible.
24722         (*am33_andsi3, *mn10300_andsi3): Merge...
24723         (andsi3): ... here.
24724         (*andsi3_flags): New.
24725         (andsi3 splitters): New.
24726         (*am33_iorsi3, *mn10300_iorsi3): Merge...
24727         (iorsi3): ... here.
24728         (*iorsi3_flags): New.
24729         (*am33_xorsi3, *mn10300_xorsi3): Merge...
24730         (xorsi3): ... here.
24731         (*xorsi3_flags): New.
24732         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
24733         (one_cmplsi2): ... here.
24734         (*one_cmplsi2_flags): New.
24735         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
24736         instead of "dax" in constraints.  Use mn10300_split_cbranch.
24737         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
24738         use matching constraints to eliminate a self-comparison.
24739         (*integer_conditional_branch): Rename from integer_conditional_branch.
24740         Use int_mode_flags to match CC_REG.
24741         (*cbranchsi4_btst, *btstsi): New.
24742         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
24743         mn10300_split_cbranch.
24744         (*am33_cmpsf): Rename from am33_cmpsf.
24745         (*float_conditional_branch): Rename from float_conditional_branch.
24746         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
24747         (zero_extendqisi2): ... here.
24748         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
24749         (zero_extendhisi2): ... here.
24750         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
24751         (extendqisi2): ... here.
24752         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
24753         (extendhisi2): ... here.
24754         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
24755         (ashlsi3): ... here.
24756         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
24757         (lshrsi3): ... here.
24758         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
24759         (ashrsi3): ... here.
24760         (consecutive add peephole): Remove.
24761         * config/mn10300/predicates.md (label_ref_operand): New.
24762         (int_mode_flags): New.
24763         (CCZN_comparison_operator): New.
24764
24765         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
24766         (throughput_42_latency_43): New reservation.
24767         (mulsidi3, umulsidi3): New expanders.
24768         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
24769         the MDR register to allocation; separately allocate the low and
24770         high parts of the DImode result.
24771         (umulsidi3_internal): Similarly.
24772         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
24773         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
24774         (udivsi3, umodsi3): Remove.
24775         (udivmodsi4, divmodsi4): New expanders.
24776         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
24777         (*divmodsi4): Simiarly.
24778         (ext_internal): New.
24779
24780         * config/mn10300/constraints.md ("z"): New constraint.
24781         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
24782         (FIXED_REGISTERS): Don't fix MDR.
24783         (CALL_USED_REGSITERS): Reformat nicely.
24784         (REG_ALLOC_ORDER): Add MDR.
24785         (enum regclass): Add MDR_REGS.
24786         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
24787         (IRA_COVER_CLASSES): Add MDR_REGS.
24788         (REGNO_REG_CLASS): Handle MDR_REG.
24789         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
24790         (mn10300_register_move_cost): Likewise.
24791         * config/mn10300/mn10300.md (MDR_REG): New.
24792         (*movsi_internal): Handle moves to/from MDR_REGS.
24793
24794         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
24795         POST_MODIFY.
24796         (mn10300_secondary_reload): Tidy combination reload classes.
24797         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
24798         addresses for AM33.  Allow symbolic offsets for reg+imm.
24799         (mn10300_regno_in_class_p): New.
24800         (mn10300_legitimize_reload_address): New.
24801         * config/mn10300/mn10300.h (enum reg_class): Remove
24802         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
24803         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
24804         SP_OR_GENERAL_REGS.
24805         (REG_CLASS_NAMES): Update to match.
24806         (REG_CLASS_CONTENTS): Likewise.
24807         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
24808         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
24809         (REGNO_IN_RANGE_P): Remove.
24810         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
24811         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
24812         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
24813         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
24814         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
24815         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
24816         (REGNO_GENERAL_P): New.
24817         (HAVE_POST_MODIFY_DISP): New.
24818         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
24819         (LEGITIMIZE_RELOAD_ADDRESS): New.
24820         * config/mn10300/mn10300-protos.h: Update.
24821
24822         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
24823         DATA_REGS for AM33 stack-pointer destination.
24824         (mn10300_preferred_output_reload_class): Likewise.
24825         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
24826         into a form appropriate for ...
24827         (TARGET_SECONDARY_RELOAD): New.
24828         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
24829         * config/mn10300/mn10300-protos.h: Update.
24830         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
24831         reload_insi; use the "A" constraint for the scratch; handle AM33
24832         moves of sp to non-address registers.
24833
24834         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
24835         (*movqi_internal): ... here.
24836         (*am33_movhi, *mn10300_movhi): Merge into...
24837         (*movhi_internal): ... here.
24838         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
24839         as the source/destination of moves from/to SP.
24840         (movsf): Only allow for AM33-2.
24841         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
24842         any integer constant constraint.  Only allow for AM33-2.  Tidy
24843         all of the alternative outputs.
24844         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
24845         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
24846         for MN103.
24847         (udivsi3, umodsi3): New patterns for MN103 only.
24848
24849 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
24850
24851         * doc/tm.texi.in: Spell out that a lack of register class unions
24852         can lead to ICEs.
24853         * doc/tm.texi: Regenerate.
24854
24855 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
24856
24857         PR rtl-optimization/47337
24858         * dce.c (check_argument_store): New function.
24859         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
24860
24861         PR tree-optimization/47290
24862         * tree-eh.c (infinite_empty_loop_p): New function.
24863         (cleanup_empty_eh): Use it.
24864
24865 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
24866
24867         PR target/46997
24868         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
24869         (a64_expand_widen_sum): Ditto.
24870         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
24871         (vec_extract_evenodd_help): Ditto.
24872         (vec_extract_evenv4hi): Ditto.
24873         (vec_extract_oddv4hi): Ditto.
24874         (vec_extract_evenv2si): Ditto.
24875         (vec_extract_oddv2si): Ditto.
24876         (vec_extract_evenv2sf): Ditto.
24877         (vec_extract_oddv2sf): Ditto.
24878         (vec_pack_trunc_v4hi: Ditto.
24879         (vec_pack_trunc_v2si): Ditto.
24880         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
24881         (vec_interleave_highv8qi): Ditto.
24882         (mix1_r): Ditto.
24883         (vec_extract_oddv8qi): Ditto.
24884         (vec_interleave_lowv4hi): Ditto.
24885         (vec_interleave_highv4hi): Ditto.
24886         (vec_interleave_lowv2si): Ditto.
24887         (vec_interleave_highv2si): Ditto.
24888
24889 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24890
24891         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
24892         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
24893         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
24894         (pa_c_mode_for_suffix): New.
24895         (TARGET_EXPAND_BUILTIN): Define.
24896         (TARGET_C_MODE_FOR_SUFFIX): Define.
24897         (pa_builtins): Define.
24898         (pa_init_builtins): Register __float128 type and init new support
24899         builtins.
24900         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
24901         * config/pa/quadlib.c (_U_Qfcopysign): New.
24902
24903 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
24904
24905         PR middle-end/46894
24906         * explow.c (allocate_dynamic_stack_space): Do not assume more than
24907         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
24908         are defined.
24909
24910 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24911
24912         PR tree-optimization/47179
24913         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
24914         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
24915
24916 2011-01-18  Richard Guenther  <rguenther@suse.de>
24917
24918         PR rtl-optimization/47216
24919         * emit-rtl.c: Include tree-flow.h.
24920         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
24921         of replicating it with different semantics.
24922         * Makefile.in (emit-rtl.o): Adjust.
24923
24924 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24925
24926         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
24927         (cortex_a9_dp): Handle neon types correctly.
24928
24929 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
24930
24931         PR rtl-optimization/47299
24932         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
24933         subtarget.  Use normal multiplication if both operands are constants.
24934         * expmed.c (expand_widening_mult): Don't try to optimize constant
24935         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
24936         before using it.
24937
24938 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24939
24940         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
24941         spacing after 'e.g.', typos, comma, hyphenation.
24942
24943 2011-01-17  Richard Henderson  <rth@redhat.com>
24944
24945         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
24946         (rx_restricted_mem_operand): New.
24947         (rx_shift_operand): Use register_operand.
24948         (rx_source_operand, rx_compare_operand): Likewise.
24949         * config/rx/rx.md (addsi3_flags): New expander.
24950         (adddi3): Rewrite as expander.
24951         (adc_internal, *adc_flags, adddi3_internal): New patterns.
24952         (subsi3_flags): New expander.
24953         (subdi3): Rewrite as expander.
24954         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
24955
24956         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
24957         (rx_init_builtins): Remove sat builtin.
24958         (rx_expand_builtin): Likewise.
24959         * config/rx/rx.md (ssaddsi3): New.
24960         (*sat): Rename from sat.  Represent the CC_REG input.
24961
24962         * config/rx/predicates.md (rshift_operator): New.
24963         * config/rx/rx.c (rx_expand_insv): Remove.
24964         * config/rx/rx-protos.h: Update.
24965         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
24966         operand to the canonical position.
24967         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
24968         (*bitclr, *bitclr_in_memory): Similarly.
24969         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
24970         (insv): Retain the zero_extract in the expansion.
24971
24972         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
24973         (bswaphi2, bitinvert, revw): Likewise.
24974
24975         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
24976         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
24977         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
24978         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
24979         (bitset, bitset_in_memory): Likewise.
24980         (bitinvert, bitinvert_in_memory): Likewise.
24981         (bitclr, bitclr_in_memory): Likewise.
24982         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
24983         (rx_strend, rx_cmpstrn): Likewise.
24984         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
24985         (bitop peep2 patterns): Remove.
24986
24987         * config/rx/rx.c (rx_match_ccmode): New.
24988         * config/rx/rx-protos.h: Update.
24989         * config/rx/rx.md (abssi2): Clobber, don't set flags.
24990         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
24991         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
24992         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
24993         (fix_truncsfsi2, floatsisf2): Likewise.
24994         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
24995         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
24996         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
24997         (*subsi3_flags, *xorsi3_flags): New.
24998
24999         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
25000
25001         * config/rx/rx.c (rx_print_operand): Remove workaround for
25002         unsplit comparison operations.
25003
25004         * config/rx/rx.md (movsicc): Split after reload.
25005         (*movsicc): Merge *movsieq and *movsine via match_operator.
25006         (*stcc): New pattern.
25007
25008         * config/rx/rx.c (rx_float_compare_mode): Remove.
25009         * config/rx/rx.h (rx_float_compare_mode): Remove.
25010         * config/rx/rx.md (cstoresi4): Split after reload.
25011         (*sccc): New pattern.
25012
25013         * config/rx/predicates.md (label_ref_operand): New.
25014         (rx_z_comparison_operator): New.
25015         (rx_zs_comparison_operator): New.
25016         (rx_fp_comparison_operator): New.
25017         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
25018         Validate that the flags are set properly for the comparison.
25019         (rx_gen_cond_branch_template): Remove.
25020         (rx_cc_modes_compatible): Remove.
25021         (mode_from_flags): New.
25022         (flags_from_code): Rename from flags_needed_for_conditional.
25023         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
25024         (rx_select_cc_mode): Likewise.
25025         (rx_split_fp_compare): New.
25026         (rx_split_cbranch): New.
25027         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
25028         (*cbranchsi4): Use match_operator and rx_split_cbranch.
25029         (*cbranchsf4): Similarly.
25030         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
25031         match_operator and rx_split_cbranch.
25032         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
25033         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
25034         (*cmpsi): Rename from cmpsi.
25035         (*tstsi): Rename from tstsi.
25036         (*cmpsf): Rename from cmpsf; use CC_Fmode.
25037         (*conditional_branch): Rename from conditional_branch.
25038         (*reveresed_conditional_branch): Remove.
25039         (b<code>): Remove expander.
25040         * config/rx/rx-protos.h: Update.
25041
25042         * config/rx/rx.c (rx_compare_redundant): Remove.
25043         * config/rx/rx.md (cmpsi): Don't use it.
25044         * config/rx/rx-protos.h: Update.
25045
25046         * config/rx/rx-modes.def (CC_F): New mode.
25047         * config/rx/rx.c (rx_select_cc_mode): New.
25048         * config/rx/rx.h (SELECT_CC_MODE): Use it.
25049         * config/rx/rx-protos.h: Update.
25050
25051 2011-01-17  Richard Henderson  <rth@redhat.com>
25052
25053         * except.c (dump_eh_tree): Fix stray ; after for statement.
25054
25055 2011-01-17  Richard Guenther  <rguenther@suse.de>
25056
25057         PR tree-optimization/47313
25058         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
25059         handling before copying the body.  Properly deal with
25060         by-reference result in SSA form.
25061
25062 2011-01-17  Ian Lance Taylor  <iant@google.com>
25063
25064         PR target/47219
25065         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
25066         (struct_value_alias_set): Don't define.
25067         (sparc_option_override): Don't set sparc_sr_alias_set and
25068         struct_value_alias_set.
25069         (save_or_restore_regs): Use gen_frame_mem rather than calling
25070         set_mem_alias_set.
25071         (sparc_struct_value_rtx): Likewise.
25072
25073 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25074
25075         PR target/47318
25076         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
25077         (_mm_maskstore_pd): Likewise.
25078         (_mm_maskload_ps): Likewise.
25079         (_mm_maskstore_ps): Likewise.
25080         (_mm256_maskload_pd): Change mask to __m256i.
25081         (_mm256_maskstore_pd): Likewise.
25082         (_mm256_maskload_ps): Likewise.
25083         (_mm256_maskstore_ps): Likewise.
25084
25085         * config/i386/i386-builtin-types.def: Updated.
25086         (ix86_expand_special_args_builtin): Likewise.
25087
25088         * config/i386/i386.c (bdesc_special_args): Update
25089         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
25090         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
25091         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
25092         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
25093
25094         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
25095         Use <avxpermvecmode> on mask register.
25096         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
25097
25098 2011-01-17  Olivier Hainque  <hainque@adacore.com>
25099             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25100             Eric Botcazou  <ebotcazou@adacore.com>
25101
25102         PR target/46655
25103         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
25104         if <= USHRT_MAX in 32-bit mode.
25105
25106 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25107
25108         * doc/install.texi (Configuration, Specific): Wrap long
25109         lines in examples.  Allow line wrapping in long options
25110         and URLs where beneficial for PDF output.
25111
25112 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
25113
25114         * config/mips/mips.c (mips_classify_symbol): Don't return
25115         SYMBOL_PC_RELATIVE for nonlocal labels.
25116
25117 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25118
25119         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
25120
25121 2011-01-15  Jan Hubicka  <jh@suse.cz>
25122
25123         PR tree-optimization/47276
25124         * ipa.c (function_and_variable_visibility): Do not try to mark alias
25125         declarations as needed.
25126
25127 2011-01-15  Martin Jambor  <mjambor@suse.cz>
25128
25129         * common.opt (fdevirtualize): New flag.
25130         * doc/invoke.texi (Option Summary): Document it.
25131         * opts.c (default_options_table): Add devirtualize flag.
25132         * ipa-prop.c (detect_type_change): Return immediately if
25133         devirtualize flag is not set.
25134         (detect_type_change_ssa): Likewise.
25135         (compute_known_type_jump_func): Likewise.
25136         (ipa_analyze_virtual_call_uses): Likewise.
25137
25138 2011-01-14  Martin Jambor  <mjambor@suse.cz>
25139
25140         PR tree-optimization/45934
25141         PR tree-optimization/46302
25142         * ipa-prop.c (type_change_info): New type.
25143         (stmt_may_be_vtbl_ptr_store): New function.
25144         (check_stmt_for_type_change): Likewise.
25145         (detect_type_change): Likewise.
25146         (detect_type_change_ssa): Likewise.
25147         (compute_complex_assign_jump_func): Check for dynamic type change.
25148         (compute_complex_ancestor_jump_func): Likewise.
25149         (compute_known_type_jump_func): Likewise.
25150         (compute_scalar_jump_functions): Likewise.
25151         (ipa_analyze_virtual_call_uses): Likewise.
25152         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
25153
25154 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25155
25156         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
25157         * config/i386/i386.opt (msse5): New Alias.
25158
25159 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25160
25161         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25162         * config/sparc/linux64.h (CC1_SPEC): Likewise.
25163         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25164         * config/sparc/sparc.h (CC1_SPEC): Likewise.
25165
25166 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25167
25168         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
25169         -mcpu options.
25170         * config/sparc/linux64.h (CC1_SPEC): Likewise.
25171         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25172         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
25173         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
25174         Likewise.
25175         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
25176
25177 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25178
25179         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
25180
25181 2011-01-14  Mike Stump  <mikestump@comcast.net>
25182
25183         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
25184         * config/fr30/fr30.md: Likweise
25185         (movsi_push): Likewise.
25186         (movsi_pop): Likewise.
25187         (enter_func): Likewise.
25188         * config/moxie/moxie.md (movsi_push): Likewise.
25189         (movsi_pop): Likewise.
25190
25191 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25192
25193         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
25194         %{no_archive} %{exact_version}.
25195         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
25196         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
25197         %{no_archive} %{exact_version}.
25198         * config/mips/openbsd.h (LINK_SPEC): Likewise.
25199         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
25200         * config/mips/vxworks.h: Likewise.
25201
25202 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25203
25204         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
25205
25206 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25207
25208         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
25209         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
25210
25211 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25212
25213         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
25214         -nodefaultlib.
25215
25216 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25217
25218         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
25219         for mcpu not cpu.
25220         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
25221         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
25222         not cpu.
25223         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
25224         Don't handle -shlib.
25225
25226 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25227
25228         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
25229         (CC1_SPEC): Don't handle -profile.
25230
25231 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25232
25233         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
25234         * config/mips/mips.h (CC1_SPEC): Likewise.
25235
25236 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25237
25238         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
25239         * config/mips/mips.h (CC1_SPEC): Likewise.
25240
25241 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25242
25243         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
25244         * config/m32r/linux.h (LINK_SPEC): Likewise.
25245         * config/mips/linux.h (LINK_SPEC): Likewise.
25246         * config/mips/linux64.h (LINK_SPEC): Likewise.
25247         * config/sparc/linux.h (LINK_SPEC): Likewise.
25248         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
25249         LINK_SPEC): Likewise.
25250         * config/xtensa/linux.h (LINK_SPEC): Likewise.
25251
25252 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25253
25254         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
25255         %{version:-v}.
25256         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
25257
25258 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25259
25260         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
25261         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25262
25263 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
25264
25265         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
25266
25267 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25268
25269         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
25270         supports -Bstatic/-Bdynamic.
25271         * configure: Regenerate.
25272
25273 2011-01-14  Jan Hubicka  <jh@suse.cz>
25274             Jack Howarth  <howarth@bromo.med.uc.edu>
25275
25276         PR target/46037
25277         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
25278         when checking debug_info_level. Test write_symbols instead of
25279         debug_hooks->var_location when setting flag_var_tracking_uninit.
25280
25281 2011-01-14  Richard Guenther  <rguenther@suse.de>
25282
25283         PR tree-optimization/47179
25284         * target.def (ref_may_alias_errno): New target hook.
25285         * targhooks.h (default_ref_may_alias_errno): Declare.
25286         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
25287         (default_ref_may_alias_errno): New function.
25288         * target.h (struct ao_ref_s): Declare.
25289         * tree-ssa-alias.c: Include target.h.
25290         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
25291         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
25292         (targhooks.o): Likewise.
25293         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
25294         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
25295
25296 2011-01-14  Richard Guenther  <rguenther@suse.de>
25297
25298         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
25299
25300 2011-01-14  Richard Guenther  <rguenther@suse.de>
25301
25302         PR tree-optimization/47280
25303         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
25304         return CFG changes.
25305         (tree_ssa_forward_propagate_single_use_vars): Deal with
25306         CFG changes from associate_plusminus.
25307
25308 2011-01-14  Richard Guenther  <rguenther@suse.de>
25309
25310         PR middle-end/47281
25311         Revert
25312         2011-01-11  Richard Guenther  <rguenther@suse.de>
25313
25314         PR tree-optimization/46076
25315         * tree-ssa.c (useless_type_conversion_p): Conversions from
25316         unprototyped to empty argument list function types are useless.
25317
25318 2011-01-14  Richard Guenther  <rguenther@suse.de>
25319
25320         PR tree-optimization/47286
25321         * tree-ssa-structalias.c (new_var_info): Register variables are global.
25322
25323 2011-01-14  Martin Jambor  <mjambor@suse.cz>
25324
25325         PR middle-end/46823
25326         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
25327
25328 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
25329
25330         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25331         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25332         * config/xtensa/xtensa.c (xtensa_libcall_value,
25333         xtensa_function_value_regno_p): New functions.
25334         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25335
25336 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
25337
25338         PR c++/47213
25339         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
25340         PE specific hook.
25341         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
25342         New function prototype.
25343         * config/i386/winnt.c (i386_pe_assemble_visibility):
25344         Warn only if attribute was specified by user.
25345
25346 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
25347
25348         PR target/47251
25349         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
25350         floating point.
25351         (floatunsdidf2_fcfidu): Ditto.
25352
25353 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25354
25355         * config/s390/s390.c (print_operand_address): Replace 'error' with
25356         'output_operand_lossage'.
25357         (print_operand): Likewise.
25358
25359 2011-01-13  Jeff Law  <law@redhat.com>
25360
25361         PR rtl-optimization/39077
25362         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
25363         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
25364         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
25365         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
25366         * gcse.c (prune_insertions_deletions): New function.
25367         (compute_pre_data): Use it.
25368
25369 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
25370
25371         PR debug/PR46973
25372         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
25373         static function.
25374         (prune_unused_types_mark): Use it.
25375
25376 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
25377
25378         PR rtl-optimization/45352
25379         * sel-sched.c: Update copyright years.
25380         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
25381         in the advancing loop when we have issued issue_rate insns.
25382
25383 2011-01-12  Richard Henderson  <rth@redhat.com>
25384
25385         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
25386         (TARGET_MD_ASM_CLOBBERS): New.
25387
25388         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
25389         (TARGET_DELEGITIMIZE_ADDRESS): New.
25390
25391         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
25392         (clzsi2, *bsch): New patterns.
25393
25394         * config/mn10300/mn10300.md (INT): New mode iterator.
25395         (*mov<INT>_clr): New pattern, and peep2 to generate it.
25396
25397         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
25398         flag_split_wide_types.
25399
25400         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
25401         (mn10300_trampoline_init): Rewrite without a template, an immediate
25402         load and a direct branch.
25403         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
25404
25405 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
25406
25407         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25408         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
25409         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
25410         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25411
25412 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
25413
25414         PR debug/47209
25415         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
25416         of type.
25417
25418 2011-01-12  Jan Hubicka  <jh@suse.cz>
25419
25420         PR driver/47244
25421         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
25422         (PLUGIN_COND_CLOSE): New macro.
25423         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
25424
25425 2011-01-12  Richard Guenther  <rguenther@suse.de>
25426
25427         PR lto/47259
25428         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
25429         register variables in a MEM_REF.
25430
25431 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
25432
25433         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
25434         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
25435         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
25436         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
25437         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
25438         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
25439         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
25440         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
25441         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
25442         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
25443         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
25444         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
25445         * config/gnu-user.h: New.  Copied from linux.h.
25446         (LINUX_TARGET_STARTFILE_SPEC): Rename to
25447         GNU_USER_TARGET_STARTFILE_SPEC.
25448         (LINUX_TARGET_ENDFILE_SPEC): Rename to
25449         GNU_USER_TARGET_ENDFILE_SPEC.
25450         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
25451         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
25452         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
25453         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
25454         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
25455         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
25456         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
25457         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
25458         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
25459         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
25460         * config/arm/linux-eabi.h (CC1_SPEC): Use
25461         GNU_USER_TARGET_CC1_SPEC.
25462         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
25463         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
25464         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
25465         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
25466         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
25467         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
25468         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
25469         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
25470
25471 2011-01-12  Richard Guenther  <rguenther@suse.de>
25472
25473         PR other/46946
25474         * doc/invoke.texi (ffast-math): Document it is turned on
25475         with -Ofast.
25476
25477 2011-01-12  Jan Hubicka  <jh@suse.cz>
25478
25479         PR tree-optimization/47233
25480         * opts.c (common_handle_option): Disable ipa-reference with profile
25481         feedback.
25482
25483 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25484
25485         * c-parser.c (c_parser_objc_at_property_declaration): Improved
25486         error message.
25487
25488 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25489
25490         * c-parser.c (c_lex_one_token): Updated and reindented some
25491         comments.  No changes in code.
25492
25493 2011-01-11  Ian Lance Taylor  <iant@google.com>
25494
25495         * godump.c (go_output_var): Don't output the variable if there is
25496         already a type with the same name.
25497
25498 2011-01-11  Ian Lance Taylor  <iant@google.com>
25499
25500         * godump.c (go_format_type): Don't generate float80.
25501
25502 2011-01-11  Richard Henderson  <rth@redhat.com>
25503
25504         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
25505         declaration.  Rewrite for both speed and size.
25506         (mn10300_address_cost_1): Remove.
25507         (mn10300_register_move_cost): New.
25508         (mn10300_memory_move_cost): New.
25509         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
25510         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
25511         extensions, shifts, BSWAP, CLZ.
25512         (mn10300_wide_const_load_uses_clr): Remove.
25513         (TARGET_REGISTER_MOVE_COST): New.
25514         (TARGET_MEMORY_MOVE_COST): New.
25515         * config/mn10300/mn10300-protos.h: Update.
25516         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
25517
25518         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
25519         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
25520         * config/mn10300/mn10300-protos.h: Update.
25521         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
25522         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
25523         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
25524         (*test_int_bitfield, *test_byte_bitfield): Remove.
25525         (*bit_test, *subreg_bit_test): Remove.
25526         * config/mn10300/predicates.md (const_8bit_operand): Remove.
25527
25528         * config/mn10300/constraints.md ("c"): Rename from "A".
25529         ("A", "D"): New constraint letters.
25530         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
25531         (fmssf4, fnmasf4, fnmssf4): Likewise.
25532
25533         * config/mn10300/mn10300.md (isa): New attribute.
25534         (enabled): New attribute.
25535
25536         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
25537         (abssf2, negsf2): Define only for hardware fp.
25538         (sqrtsf2): Reformat.
25539         (addsf3, subsf3, mulsf3): Merge expander and insn.
25540
25541         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
25542         (DEBUGGER_AUTO_OFFSET): Remove.
25543         (DEBUGGER_ARG_OFFSET): Remove.
25544
25545         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
25546         Emit register stores with the same offsets as the hardware.
25547         (mn10300_store_multiple_operation): Don't check that the register
25548         save offsets are monotonic.
25549         * config/mn10300/mn10300-protos.h: Update.
25550
25551         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
25552
25553         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
25554         in terms of the value on the stack, not the MDR register.
25555
25556 2011-01-11  Jan Hubicka  <jh@suse.cz>
25557
25558         PR lto/45721
25559         PR lto/45375
25560         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
25561         (symbol_alias_set_destroy, symbol_alias_set_contains,
25562         propagate_aliases_backward): Declare.
25563         * lto-streamer-out.c (struct sets): New sturcture.
25564         (trivally_defined_alias): New function.
25565         (output_alias_pair_p): Rewrite.
25566         (output_unreferenced_globals): Fix output of alias pairs.
25567         (produce_symtab): Likewise.
25568         * ipa.c (function_and_variable_visibility): Set weak alias destination
25569         as needed in lto.
25570         * varasm.c (symbol_alias_set_t): Remove.
25571         (symbol_alias_set_destroy): Export.
25572         (propagate_aliases_forward, propagate_aliases_backward): New functions
25573         based on ...
25574         (compute_visible_aliases): ... this one; remove.
25575         (trivially_visible_alias): New
25576         (trivially_defined_alias): New.
25577         (remove_unreachable_alias_pairs): Rewrite.
25578         (finish_aliases_1): Reorganize code checking if alias is defined.
25579         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
25580         in LTO mode.
25581
25582 2011-01-11  Richard Guenther  <rguenther@suse.de>
25583
25584         PR tree-optimization/46076
25585         * tree-ssa.c (useless_type_conversion_p): Conversions from
25586         unprototyped to empty argument list function types are useless.
25587
25588 2011-01-11  Richard Guenther  <rguenther@suse.de>
25589
25590         PR middle-end/45235
25591         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
25592         volatile MEMs as MEM_READONLY_P.
25593
25594 2011-01-11  Richard Guenther  <rguenther@suse.de>
25595
25596         PR tree-optimization/47239
25597         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
25598
25599 2011-01-11  Jeff Law  <law@redhat.com>
25600
25601         PR tree-optimization/47086
25602         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
25603         IVs from statements that might throw.
25604
25605 2011-01-10  Jan Hubicka  <jh@suse.cz>
25606
25607         PR lto/45375
25608         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
25609
25610 2011-01-10  Jan Hubicka  <jh@suse.cz>
25611
25612         PR lto/45375
25613         * profile.c (read_profile_edge_counts): Ignore profile inconistency
25614         when correcting profile.
25615
25616 2011-01-10  Jan Hubicka  <jh@suse.cz>
25617
25618         PR lto/46083
25619         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
25620         DECL_FINI_PRIORITY.
25621         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
25622         Restore DECL_FINI_PRIORITY.
25623
25624 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25625
25626         * doc/gimple.texi: Fix quoting of multi-word return values in
25627         @deftypefn statements.  Ensure presence of return value.  Wrap
25628         overlong @deftypefn lines.
25629         (is_gimple_operand, is_gimple_min_invariant_address): Remove
25630         descriptions of removed functions.
25631         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
25632         of multi-word return value in @deftypefn statement.
25633
25634 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25635
25636         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
25637         (Conditional Expressions, Logical Operators)
25638         (Statement and operand traversals): Do not indent smallexample
25639         code.  Fix duplicate function argument in example.
25640
25641 2011-01-10  Jeff Law  <law@redhat.com>
25642
25643         PR tree-optimization/47141
25644         * ipa-split.c (split_function): Handle case where we are
25645         returning a value and the return block has a virtual operand phi.
25646
25647 2011-01-10  Jan Hubicka  <jh@suse.cz>
25648
25649         PR tree-optimization/47234
25650         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
25651         (pass_feedback_split_functions): Declare.
25652         * passes.c (init_optimization_passes): Add ipa-split as subpass of
25653         tree-profile.
25654         * ipa-split.c (gate_split_functions): Update comments; disable
25655         split-functions for profile_arc_flag and branch_probabilities.
25656         (gate_feedback_split_functions): New function.
25657         (execute_feedback_split_functions): New function.
25658         (pass_feedback_split_functions): New global var.
25659
25660 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
25661
25662         PR lto/46760
25663         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
25664         calling gimple_call_set_cannot_inline.
25665
25666 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
25667
25668         * config/darwin-sections.def: Remove unused section.
25669
25670 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
25671
25672         PR c++/47218
25673         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
25674
25675 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
25676
25677         PR objc/47232
25678         * c-parser.c (c_parser_declaration_or_fndef): Improved
25679         error message.
25680
25681 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
25682
25683         * config/i386/winnt.c (i386_pe_start_function): Make sure
25684         to switch back to function's section.
25685
25686 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
25687
25688         PR gcc/46902
25689         PR testsuite/46912
25690         * plugin.c: Move include of dlfcn.h from here...
25691         * system.h: ... to here.
25692
25693 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25694
25695         * doc/cpp.texi (C++ Named Operators): Fix markup for header
25696         file name.
25697         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
25698         two extra empty pages in PDF output.
25699
25700 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
25701
25702         PR objc/47078
25703         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
25704         for error recovery purposes behave as if it was not specified so
25705         that the default type is usd.
25706
25707 2011-01-07  Jan Hubicka  <jh@suse.cz>
25708
25709         PR tree-optmization/46469
25710         * ipa.c (function_and_variable_visibility): Clear needed flags on
25711         nodes with external decls; handle weakrefs merging correctly.
25712
25713 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
25714
25715         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
25716         not false.
25717
25718 2011-01-07  Jan Hubicka  <jh@suse.cz>
25719
25720         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
25721         and no longer claim that gold is required for linker plugin.
25722         * configure: Regenerate.
25723         * gcc.c (PLUGIN_COND): New macro.
25724         (LINK_COMMAND_SPEC): Use it.
25725         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
25726         * config.in (HAVE_LTO_PLUGIN): New.
25727         * configure.ac (--with-lto-plugin): New parameter; autodetect
25728         HAVE_LTO_PLUGIN.
25729
25730 2011-01-07  Jan Hubicka  <jh@suse.cz>
25731
25732         PR tree-optimization/46367
25733         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
25734         when we can update original.
25735         (cgraph_mark_inline_edge): Sanity check.
25736         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
25737
25738 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25739
25740         * config/spu/spu.h (ASM_COMMENT_START): Define.
25741
25742 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
25743
25744         PR driver/42445
25745         * gcc.c (%>S): New.
25746         (SWITCH_KEEP_FOR_GCC): Likewise.
25747         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
25748         (do_spec_1): Handle "%>".
25749
25750         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
25751
25752 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
25753
25754         PR target/47201
25755         * config/i386/i386.c (ix86_delegitimize_address): If
25756         simplify_gen_subreg fails, return orig_x.
25757
25758         PR bootstrap/47187
25759         * value-prof.c (gimple_stringop_fixed_value): Handle
25760         lhs of the call properly.
25761
25762 2011-01-07  Jan Hubicka  <jh@suse.cz>
25763
25764         PR lto/45375
25765         * lto-opt.c (lto_reissue_options): Set flag_shlib.
25766
25767 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
25768
25769         * target.def (function_switched_text_sections): New hook.
25770         * doc/tm.texi: Regenerated.
25771         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
25772         * final.c (default_function_switched_text_sections): New.
25773         (final_scan_insn): Call function_switched_text_sections when a
25774         mid-function section change occurs.
25775         * output.h (default_function_switched_text_sections): Declare.
25776         * config/darwin-protos.h (darwin_function_switched_text_sections):
25777         Likewise.
25778         * config/darwin.c (darwin_function_switched_text_sections): New.
25779         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
25780
25781 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
25782
25783         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
25784         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
25785         the secondary code fragment when outputting for DWARF == 2.
25786
25787 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
25788
25789         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25790         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
25791         Remove.
25792         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
25793         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25794
25795 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
25796
25797         PR debug/46704
25798         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
25799         when it is not empty.
25800
25801 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
25802
25803         Bobcat Enablement
25804         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
25805         (case ${target}): Add btver1.
25806         * config/i386/driver-i386.c (host_detect_local_cpu): Let
25807         -march=native recognize btver1 processors.
25808         * config/i386/i386-c.c (ix86_target_macros_internal): Add
25809         btver1 def_and_undef
25810         * config/i386/i386.c (struct processor_costs btver1_cost): New
25811         btver1 cost table.
25812         (m_BTVER1): New definition.
25813         (m_AMD_MULTIPLE): Includes m_BTVER1.
25814         (initial_ix86_tune_features): Add btver1 tune.
25815         (processor_target_table): Add btver1 entry.
25816         (static const char *const cpu_names): Add btver1 entry.
25817         (software_prefetching_beneficial_p): Add btver1.
25818         (ix86_option_override_internal): Add btver1 instruction sets.
25819         (ix86_issue_rate): Add btver1.
25820         (ix86_adjust_cost): Add btver1.
25821         * config/i386/i386.h (TARGET_BTVER1): New definition.
25822         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
25823         (enum processor_type): Add PROCESSOR_BTVER1.
25824         * config/i386/i386.md (define_attr "cpu"): Add btver1.
25825
25826 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25827
25828         PR target/43309
25829         * config/i386/i386.c (legitimize_tls_address)
25830         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
25831         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
25832         (tls_initial_exec_64_sun): New pattern.
25833
25834 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
25835
25836         * doc/invoke.texi (Overall Options): Improve wording and markup
25837         of the description of -wrapper.
25838
25839 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
25840
25841         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
25842         rdynamic, threads): New Driver options.
25843
25844 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25845
25846         PR target/38118
25847         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
25848         if coming from .tdata.
25849         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25850
25851 2011-01-06  Jan Hubicka  <jh@suse.cz>
25852
25853         PR lto/47188
25854         * collect2.c (main): Do not enable LTOmode when plugin is active.
25855
25856 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25857
25858         PR other/45915
25859         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
25860         --version output if supported.
25861         * configure: Regenerate.
25862
25863 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
25864
25865         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
25866         Driver options.
25867
25868 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
25869
25870         PR c/47150
25871         * c-convert.c (convert): When converting a complex expression
25872         other than COMPLEX_EXPR to a different complex type, ensure
25873         c_save_expr is called instead of save_expr, unless in_late_binary_op.
25874         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
25875         when converting COMPLEX_TYPE.
25876
25877 2011-01-06  Ira Rosen  <irar@il.ibm.com>
25878
25879         PR tree-optimization/47139
25880         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
25881         only the last reduction value is used outside the loop.  Update
25882         documentation.
25883
25884 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
25885
25886         * config/rtems.opt: New.
25887         * config.gcc (*-*-rtems*): Use rtems.opt.
25888
25889 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
25890
25891         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
25892         processors do not support 3DNow instructions.
25893
25894 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25895
25896         * config/spu/spu.c (spu_option_override): Set parameter
25897         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
25898
25899 2011-01-05  Jan Hubicka  <jh@suse.cz>
25900
25901         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
25902         at the command line.
25903
25904 2011-01-05  Martin Jambor  <mjambor@suse.cz>
25905
25906         PR lto/47162
25907         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
25908         deltas on streamed outgoing edges.
25909         (output_node_opt_summary): Output info for outgoing edges only when
25910         the node is in new parameter set.
25911         (output_cgraph_opt_summary): New parameter set, passed to the two
25912         aforementioned functions.  Update its forward declaration and its
25913         callee too.
25914
25915 2011-01-05  Tom Tromey  <tromey@redhat.com>
25916
25917         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
25918         operator to c_finish_omp_atomic.
25919         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
25920         (build_unary_op): Update.
25921         (build_modify_expr): Update.
25922         (build_asm_expr): Update.
25923
25924 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25925
25926         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
25927         newly inserted insns.
25928         (pad_bb): Likewise.
25929         (spu_emit_branch_hint): Likewise.
25930         (insert_hbrp_for_ilb_runout): Likewise.
25931         (spu_machine_dependent_reorg): Call df_finish_pass after
25932         schedule_insns returns.
25933
25934 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25935
25936         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
25937
25938 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
25939
25940         PR tree-optimization/47005
25941         * tree-sra.c (struct access): Add 'non_addressable' bit.
25942         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
25943         (decide_one_param_reduction): Return 0 if the parameter is passed by
25944         reference and one of the accesses in the group is non_addressable.
25945
25946 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25947
25948         PR tree-optimization/47056
25949         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
25950         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
25951         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
25952
25953 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25954
25955         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
25956         initializer.  Skip view conversions from aggregate types.
25957
25958 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
25959
25960         PR bootstrap/47055
25961         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
25962
25963 2011-01-04  Philipp Thomas  <pth@suse.de>
25964
25965         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
25966         obvious typo.
25967
25968 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25969
25970         * function.c (thread_prologue_and_epilogue_insns): Do not crash
25971         on empty epilogue sequences.
25972
25973 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
25974
25975         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
25976         non-static): New Driver options.
25977
25978 2011-01-04  Jie Zhang  <jie@codesourcery.com>
25979
25980         PR driver/47137
25981         * gcc.c (default_compilers[]): Set combinable field to 0
25982         for all assembly languages.
25983
25984 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
25985
25986         * config/mips/loongson3a.md: New file.
25987         * config/mips/mips.md: Include loongson3a.md.
25988         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
25989         TUNE_LOONGSON_3A.
25990
25991 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
25992
25993         PR middle-end/47017
25994         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
25995         instead of convert_memory_address_addr_space on the base expression.
25996
25997 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25998
25999         * config/spu/spu.c (spu_option_override): Update error text
26000         for bad -march= / -mtune= values.
26001
26002 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26003
26004         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
26005         if branch-hint optimization will be performed.
26006
26007 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
26008
26009         PR tree-optimization/47148
26010         * ipa-split.c (split_function): Convert arguments to
26011         DECL_ARG_TYPE if possible.
26012
26013         PR tree-optimization/47155
26014         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
26015         when computing uns.
26016
26017         PR rtl-optimization/47157
26018         * combine.c (try_combine): If undobuf.other_insn becomes
26019         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
26020         and set *new_direct_jump_p too.
26021
26022 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
26023
26024         PR tree-optimization/47021
26025         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
26026
26027 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
26028
26029         * gcc.c (process_command): Update copyright notice dates.
26030         * gcov.c (print_version): Likewise.
26031         * gcov-dump.c (print_version): Likewise.
26032         * mips-tfile.c (main): Likewise.
26033         * mips-tdump.c (main): Likewise.
26034
26035 2011-01-03  Martin Jambor  <mjambor@suse.cz>
26036
26037         PR tree-optimization/46801
26038         * tree-sra.c (type_internals_preclude_sra_p): Check whether
26039         aggregate fields start at byte boundary instead of the bit-field flag.
26040
26041 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
26042
26043         PR driver/47137
26044         * gcc.c (main): Revert revision 168407.
26045
26046 2011-01-03  Martin Jambor  <mjambor@suse.cz>
26047
26048         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
26049
26050 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26051
26052         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
26053         vector optab to expand vector/scalar shift, update gimple to vector.
26054
26055 2011-01-03  Martin Jambor  <mjambor@suse.cz>
26056
26057         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
26058         a thunk.
26059
26060 2011-01-03  Martin Jambor  <mjambor@suse.cz>
26061
26062         PR tree-optimization/46984
26063         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
26064         HOST_WIDE_INT.
26065         (cgraph_create_indirect_edge): Fixed line length.
26066         (cgraph_indirect_call_info): Declare.
26067         (cgraph_make_edge_direct) Update declaration.
26068         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
26069         (cgraph_create_indirect_edge): Use it.
26070         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
26071         callees.
26072         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
26073         the new thunk_delta representation.
26074         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
26075         HOST_WIDE_INT.
26076         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
26077         (ipa_read_indirect_edge_info): Likewise.
26078         * lto-cgraph.c (output_edge_opt_summary): New function.
26079         (output_node_opt_summary): Call it on all outgoing edges.
26080         (input_edge_opt_summary): New function.
26081         (input_node_opt_summary): Call it on all outgoing edges.
26082
26083 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
26084
26085         PR driver/47137
26086         * gcc.c (main): Don't check have_o when settting combine_inputs.
26087
26088 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
26089
26090         * regrename.c: Add general comment describing the pass.
26091         (struct du_head): Remove 'length' field.
26092         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
26093         (regrename_optimize): Do not sort chains.  Rework comments, add others.
26094         Force renaming to the preferred class (if any) in the first pass and do
26095         not consider registers that belong to it in the second pass.
26096         (create_new_chain): Do not set 'length' field.
26097         (scan_rtx_reg): Likewise.
26098
26099 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
26100
26101         PR tree-optimization/47140
26102         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
26103         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
26104         to bit_value_binop.
26105
26106         PR rtl-optimization/47028
26107         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
26108         parm_birth_insn instead of at the beginning of first bb.
26109
26110 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
26111
26112         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
26113         Remove the word "see" before "@pxref".
26114         * doc/rtl.texi: Remove the word "see" before "@pxref".
26115
26116 2011-01-01  Jan Hubicka  <jh@suse.cz>
26117
26118         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
26119         memory.
26120
26121 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
26122
26123         PR target/38662
26124         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
26125
26126 \f
26127 Copyright (C) 2011 Free Software Foundation, Inc.
26128
26129 Copying and distribution of this file, with or without modification,
26130 are permitted in any medium without royalty provided the copyright
26131 notice and this notice are preserved.