OSDN Git Service

365eb94f0311012335b137da3365c21db6f04d79
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
2
3         PR tree-optimization/50717
4
5         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
6         parameter.  Calculate 'type' from stmt.
7         (convert_mult_to_widen): Update call the is_widening_mult_p.
8         (convert_plusminus_to_widen): Likewise.
9
10 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11
12         * config/spu/spu.c (struct machine_function): New data structure.
13         (spu_init_machine_status): New function.
14         (spu_option_override): Install it.
15         (get_pic_reg): Set and use cfun->machine->pic_reg.
16         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
17         (need_to_save_reg): Use cfun->machine->pic_reg instead of
18         checking crtl->uses_pic_offset_table.
19         (spu_expand_prologue): Likewise.
20
21 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
22
23         PR tree-optimization/50735
24         * function.c (gimplify_parameters): Use create_tmp_var instead of
25         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
26         or vector type, set DECL_GIMPLE_REG_P.
27
28 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
29
30         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
31         * config/arm/arm.opt: Add 'native' processor_type and
32         arm_arch enum values.
33         * config/arm/arm.h (host_detect_local_cpu): New prototype.
34         (EXTRA_SPEC_FUNCTIONS): New define.
35         (MCPU_MTUNE_NATIVE_SPECS): New define.
36         (DRIVER_SELF_SPECS): New define.
37         * config/arm/driver-arm.c: New file.
38         * config/arm/x-arm: New file.
39         * doc/invoke.texi (ARM Options): Document -mcpu=native,
40         -mtune=native and -march=native.
41
42 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
43
44         PR rtl-optimization/50205
45         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
46         p->x is a register.  Forbid substitution when the same register is
47         found in a different mode.
48         (count_occurrences_equiv): Assert that 'what' is a register.
49
50 2011-10-18  Richard Guenther  <rguenther@suse.de>
51
52         PR tree-optimization/50767
53         * tree-ssa-pre.c (create_expression_by_pieces): Update the
54         folded statement.
55
56 2011-10-18  Julian Brown  <julian@codesourcery.com>
57
58         * config/arm/arm.c (arm_block_move_unaligned_straight)
59         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
60         (arm_movmemqi_unaligned): New.
61         (arm_gen_movmemqi): Support unaligned block copies.
62
63 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
64
65         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
66         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
67         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
68         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
69         (op_code_prio): Likewise.
70         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
71         * optabs.c (optab_for_tree_code): Handle
72         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
73         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
74         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
75         * genopinit.c (optabs): Initialize the new optabs.
76         * expr.c (expand_expr_real_2): Handle
77         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
78         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
79         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
80         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
81         VEC_WIDEN_LSHIFT_LO_EXPR): New.
82         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
83         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
84         vect_recog_widen_shift_pattern.
85         (vect_handle_widen_mult_by_const): Rename...
86         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
87         Add a new argument, update documentation.
88         (vect_recog_widen_mult_pattern): Assume that only second
89         operand can be constant.  Update call to
90         vect_handle_widen_op_by_const.
91         (vect_recog_over_widening_pattern): Fix typo.
92         (vect_recog_widen_shift_pattern): New.
93         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
94         widening shifts.
95         (supportable_widening_operation): Likewise.
96         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
97         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
98         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
99         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
100         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
101         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
102         Likewise.
103         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
104         New.
105         * config/arm/iterators.md (V_innermode): New.
106         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
107         for widening shift.
108
109 2011-10-18  Richard Guenther  <rguenther@suse.de>
110
111         * tree-ssa-alias.h (struct pt_solution): Remove
112         vars_contains_restrict member.
113         (pt_solutions_same_restrict_base): Remove.
114         (pt_solution_set): Adjust.
115         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
116         vars_contains_restrict handling.
117         (dump_points_to_solution): Likewise.
118         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
119         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
120         field.
121         (new_var_info): Do not initialize it.
122         (ipa_escaped_pt): Adjust.
123         (make_constraint_from_restrict): Make the tag global.
124         (make_constraint_from_global_restrict): New function.
125         (make_constraint_from_heapvar): Remove.
126         (create_variable_info_for): Do not make restrict vars point
127         to NONLOCAL.
128         (intra_create_variable_infos): Likewise.
129         (find_what_var_points_to): Remove vars_contains_restrict handling.
130         (pt_solution_set): Adjust.
131         (pt_solution_ior_into): Likewise.
132         (pt_solutions_same_restrict_base): Remove.
133         (compute_points_to_sets): Do not test is_restrict_var.
134         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
135         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
136
137 2011-10-18  Tom de Vries  <tom@codesourcery.com>
138
139         PR tree-optimization/50672
140         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
141         factored out of ...
142         (mark_virtual_phi_result_for_renaming): Use
143         mark_virtual_operand_for_renaming.
144         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
145         * tree-ssa-tail-merge.c (release_last_vdef): New function.
146         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
147         deleted basic block.
148         (tail_merge_optimize): Add argument to call to purge_bbs.
149
150 2011-10-18  Richard Guenther  <rguenther@suse.de>
151
152         PR middle-end/50716
153         * expr.c (get_object_or_type_alignment): New function.
154         (expand_assignment): Use it.
155         (expand_expr_real_1): Likewise.
156
157 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
158
159         PR bootstrap/50760
160         * input.c (dump_line_table_statistics): Use long, not size_t.
161
162 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
163
164         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
165
166 2011-10-17  Simon Baldwin  <simonb@google.com>
167             Ian Lance Taylor  <iant@google.com>
168
169         * configure.ac: Add --with-native-system-header-dir.  Set and
170         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
171         when setting target_header_dir.
172         * config.gcc: Always set native_system_header_dir.
173         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
174         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
175         use i386/t-djgpp.
176         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
177         native_system_header_dir.
178         (spu-*-elf*): Set native_system_header_dir.
179         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
180         @NATIVE_SYSTEM_HEADER_DIR@.
181         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
182         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
183         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
184         STANDARD_INCLUDE_COMPONENT.
185         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
186         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
187         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
188         STANDARD_INCLUDE_COMPONENT.
189         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
190         * config/i386/t-mingw-w32: Likewise.
191         * config/i386/t-mingw-w64: Likewise.
192         * config/spu/t-spu-elf: Likewise.
193         * config/i386/t-djgpp: Remove.
194         * config/t-gnu: Remove.
195         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
196         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
197         STANDARD_INCLUDE_COMPONENT.
198         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
199         * config/spu/spu-elf.h: Likewise.
200         * config/vms/xm-vms.h: Likewise.
201         * config/gnu.h: Likewise.
202         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
203         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
204         NATIVE_SYSTME_HEADER_COMPONENT.
205         * doc/install.texi (Configuration): Document
206         --with-native-system-header-dir.  Mention it in the documentation
207         for --with-sysroot and --with-build-sysroot.
208         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
209         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
210         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
211         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
212         * doc/fragments.texi (Target Fragment): Don't document
213         NATIVE_SYSTEM_HEADER_DIR.
214         * configure, doc/tm.texi: Rebuild.
215
216 2011-10-17  Richard Henderson  <rth@redhat.com>
217
218         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
219         is the constraint.
220
221         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
222         patterns.
223         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
224         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
225
226 2011-10-17  David S. Miller  <davem@davemloft.net>
227
228         * config/sparc/sparc-modes.def: Add single entry vector modes for
229         DImode and SImode.
230         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
231         mode iterators.
232         (mov<V32:mode>): Revert back to plain SFmode pattern.
233         (*movsf_insn): Likewise.
234         (mov<V64:mode>): Revert back to plain DFmode pattern.
235         (*movdf_insn_sp32): Likewise.
236         (*movdf_insn_sp32_v9): Likewise.
237         (*movdf_insn_sp64): Likewise.
238         (V64 mode splitters) Likewise.
239         (addsi3): Remove VIS alternatives.
240         (subsi3): Likewise.
241         (and<V64I:mode>3): Revert to DImode only pattern.
242         (and<V64I:mode>3_sp32): Likewise.
243         (*and<V64I:mode>3_sp64): Likewise.
244         (and<V32I:mode>3): Likewise.
245         (*and_not_<V64I:mode>_sp32): Likewise.
246         (*and_not_<V64I:mode>_sp64): Likewise.
247         (*and_not_<V32I:mode>): Likewise.
248         (ior<V64I:mode>3): Likewise.
249         (*ior<V64I:mode>3_sp32): Likewise.
250         (*ior<V64I:mode>3_sp64): Likewise.
251         (ior<V32I:mode>3): Likewise.
252         (*or_not_<V64I:mode>_sp32): Likewise.
253         (*or_not_<V64I:mode>_sp64): Likewise.
254         (*or_not_<V32I:mode>): Likewise.
255         (xor<V64I:mode>3): Likewise.
256         (*xor<V64I:mode>3_sp32): Likewise.
257         (*xor<V64I:mode>3_sp64): Likewise.
258         (xor<V32I:mode>3): Likewise.
259         (V64I mode splitters): Likewise.
260         (*xor_not_<V64I:mode>_sp32): Likewise.
261         (*xor_not_<V64I:mode>_sp64): Likewise.
262         (*xor_not_<V32I:mode>): Likewise.
263         (one_cmpl<V64I:mode>2): Likewise.
264         (*one_cmpl<V64I:mode>2_sp32): Likewise.
265         (*one_cmpl<V64I:mode>2_sp64): Likewise.
266         (one_cmpl<V32I:mode>2): Likewise.
267         (VM32, VM64, VMALL): New mode iterators.
268         (vbits, vconstr, vfptype): New mode attributes.
269         (mov<VMALL:mode>): New expander.
270         (*mov<VM32:mode>_insn): New insn.
271         (*mov<VM64:mode>_insn_sp64): New insn.
272         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
273         specifically for the register to memory case.
274         (vec_init<mode>): New expander.
275         (VADDSUB): New mode iterator.
276         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
277         with...
278         (<plusminus_insn><mode>3): New consolidated pattern.
279         (VL): New mode iterator for logical operations.
280         (vlsuf): New more attribute.
281         (vlop): New code iterator.
282         (vlinsn, vlninsn): New code attributes.
283         (<code><mode>3): New insn to non-negated vector logical ops.
284         (*not_<code><mode>3): Likewise for negated variants.
285         (*nand<mode>_vis): New insn.
286         (vlnotop): New code iterator.
287         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
288         (one_cmpl<mode>2): New insn.
289         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
290         (bshuffle<VM64:mode>_vis): Likewise.
291         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
292         (fp<plusminus_insn>64_vis): Use V1DI mode.
293         (VASS mode iterator): Use V1SI not SI mode.
294         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
295         single-entry vector mode changes.
296         (sparc_expand_builtin): Likewise.
297         (sparc_expand_vector_init): New function.
298         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
299
300 2011-10-17  Kai Tietz  <ktietz@redhat.com>
301
302         * fold-const.c (simple_operand_p_2): New function.
303         (fold_truthop): Rename to
304         (fold_truth_andor_1): function name.
305         Additionally remove branching creation for logical and/or.
306         (fold_truth_andor): Handle branching creation for logical and/or here.
307
308 2011-10-17  Andi Kleen  <ak@linux.intel.com>
309
310         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
311
312 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
313
314         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
315         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
316         (adjust_len): Add alternative "call".
317         (isa, enabled): New insn attributes.
318         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
319         mcu_mega attribute.
320         (*sbrx_branch<mode>): Ditto.
321         (*sbrx_and_branch<mode>): Ditto.
322         (*sbix_branch): Ditto.
323         (*sbix_branch_bit7): Ditto.
324         (*sbix_branch_tmp): Ditto.
325         (*sbix_branch_tmp_bit7): Ditto.
326         (jump): Ditto.
327         (negsi2): Use attribute "isa" instead of assembler dialect.
328         (extendhisi2): Ditto.
329         (call_insn, call_value_insn): Set adjust_len attribute.
330         (indirect_jump): Indent to coding rules.
331         (call_prologue_saves): Use isa attribute instead of mcu_mega.
332         (epilogue_restores): Ditto.  Fix setting of SP as described in the
333         RTX pattern.
334         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
335         and *indirect_jump_avr6.
336         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
337         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
338         (*tablejump_rjmp, *tablejump_lib): Remove.
339         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
340
341 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
342
343         PR c++/50757
344         * doc/invoke.texi ([Wnonnull]): Update.
345
346 2011-10-17  Richard Henderson  <rth@redhat.com>
347
348         PR 50746
349         * optabs.c (expand_vec_perm_expr): Fix indexing error.
350
351 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
352
353         * configure.ac: Display `yes' if the SystemTap header has been
354         found.
355         * configure: Regenerate.
356
357 2011-10-08  Andi Kleen  <ak@linux.intel.com>
358
359         PR other/50636
360         * config.in, configure: Regenerate.
361         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
362         * ggc-page.c (USING_MADVISE): Add.
363         (page_entry): Add discarded field.
364         (alloc_page): Check for discarded pages.
365         (release_pages): Add USING_MADVISE branch.
366
367 2011-10-17  Richard Guenther  <rguenther@suse.de>
368
369         PR tree-optimization/50729
370         * tree-vrp.c (extract_range_from_unary_expr_1): Remove
371         redundant test.
372         (simplify_conversion_using_ranges): Properly test the
373         intermediate result.
374
375 2011-10-15  Tom Tromey  <tromey@redhat.com>
376             Dodji Seketeli  <dodji@redhat.com>
377
378         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
379         * ggc-none.c (ggc_round_alloc_size): New public stub function.
380         * ggc-page.c (ggc_alloced_size_order_for_request): New static
381         function.  Factorized from ggc_internal_alloc_stat.
382         (ggc_round_alloc_size): New public function.  Uses
383         ggc_alloced_size_order_for_request.
384         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
385         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
386         from ggc_internal_alloc_zone_stat.
387         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
388         * toplev.c (general_init): Initialize
389         line_table->alloced_size_for_request.
390
391 2011-10-15  Tom Tromey  <tromey@redhat.com>
392             Dodji Seketeli  <dodji@redhat.com>
393
394         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
395         macros.
396         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
397         new counters.
398         (dump_line_table_statistics): Define new function.
399         * input.h (dump_line_table_statistics): Declare new function.
400         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
401
402 2011-10-15  Tom Tromey  <tromey@redhat.com>
403             Dodji Seketeli  <dodji@redhat.com>
404
405         * doc/cppopts.texi: Document -fdebug-cpp.
406         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
407         options.
408
409 2011-10-15  Tom Tromey  <tromey@redhat.com>
410             Dodji Seketeli  <dodji@redhat.com>
411
412         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
413         location parameter.
414         * diagnostic.c (diagnostic_report_current_module): Add a location
415         parameter to the function definition.  Use it instead of
416         input_location.  Resolve the virtual location rather than just
417         looking up its map and risking to touch a resulting macro map.
418         (default_diagnostic_starter): Pass the relevant diagnostic
419         location to diagnostic_report_current_module.
420         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
421         (virt_loc_aware_diagnostic_finalizer): Likewise.
422         (diagnostic_report_current_function): Pass the
423         relevant location to diagnostic_report_current_module.
424         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
425         new function.
426         * toplev.c (general_init): By default, use the new
427         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
428         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
429
430 2011-10-15  Tom Tromey  <tromey@redhat.com>
431             Dodji Seketeli  <dodji@redhat.com>
432
433         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
434         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
435         preprocessor related options.
436
437 2011-10-15  Tom Tromey  <tromey@redhat>
438             Dodji Seketeli  <dodji@redhat.com>
439
440         * input.h (struct expanded_location): Move to libcpp/line-map.h.
441         (LOCATION_COLUMN): New accessor
442         (in_system_header_at): Use linemap_location_in_system_header_p.
443         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
444         touching the internals of struct line_map.  Use the public API.
445         instead.
446         (diagnostic_report_diagnostic): Don't use relational operator '<'
447         on virtual locations.  Use linemap_location_before_p instead.
448         * input.c (expand_location): Adjust to expand to the tokens'
449         spelling location when macro location tracking is on.
450
451
452 2011-10-08  Andi Kleen  <ak@linux.intel.com>
453
454         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
455
456 2011-10-13  Andi Kleen  <ak@linux.intel.com>
457
458         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
459
460 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
461
462         PR tree-optimization/50727
463         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
464         DEF_STMT to the list of statements to be replaced by the
465         pattern statements.
466
467 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
468
469         PR rtl-optimization/50615
470         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
471
472 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
473
474         PR tree-optimization/50596
475         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
476         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
477         vect_recog_bool_pattern.
478         (check_bool_pattern, adjust_bool_pattern_cast,
479         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
480
481 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
482
483         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
484         treat the first load of the node as the first element in its
485         interleaving chain.
486         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
487         necessary and possible.
488         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
489         in basic blocks.  Keep all the loads for further permutation check.
490         Use the new argument to determine if there is a permutation.  Update
491         the recursive calls.
492         (vect_supported_load_permutation_p): Allow subchains of interleaving
493         chains in basic block vectorization.
494         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
495         Check load permutation based on the new parameter.
496         (vect_schedule_slp_instance): Don't start from the first element in
497         interleaving chain unless the loads are permuted.
498
499 2011-10-15  Jan Hubicka  <jh@suse.cz>
500
501         PR target/48668
502         PR target/50689
503         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
504         after function body.
505
506 2011-10-15  Richard Henderson  <rth@redhat.com>
507
508         * tree-vect-slp.c: Include langhooks.h.
509         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
510         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
511         mask creation for VEC_PERM_EXPR.
512         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
513         not the builtin.
514         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
515         * Makefile.in (tree-vect-slp.o): Update dependency.
516         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
517
518 2011-10-15  Alan Modra  <amodra@gmail.com>
519
520         PR bootstrap/50738
521         * ifcvt.c (dead_or_predicable): Revert accidental commit with
522         HAVE_simple_return test.
523
524 2011-10-15  Alan Modra  <amodra@gmail.com>
525
526         * ifcvt.c (dead_or_predicable): Disable if-conversion when
527         doing so is likely to kill a shrink-wrapping opportunity.
528
529         PR rtl-optimization/49941
530         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
531
532         * rtl.h (set_return_jump_label): Declare.
533         * function.c (set_return_jump_label): New function, extracted..
534         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
535         another instance to set return jump_label.
536         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
537         * reorg.c (find_end_label): Likewise.
538
539 2011-10-14  David S. Miller  <davem@davemloft.net>
540
541         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
542         with a more complete cpp test.
543         * config/sparc/linux64.h: Likewise.
544         * config/sparc/linux.h: Likewise.
545         * config/sparc/sparc.opt (sparc_debug): New target variable.
546         (mdebug): New target option.
547         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
548         TARGET_DEBUG_OPTIONS): New defines.
549         * config/sparc/sparc.c (debug_target_flag_bits,
550         debug_target_flags): New functions.
551         (sparc_option_override): Add name strings back to cpu_table[].
552         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
553         out the target flags before and after override processing as well
554         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
555         cpu is at least v9.
556
557 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
558
559         PR target/49263
560         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
561         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
562         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
563         and instruction commutative.
564         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
565         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
566         tstsi_t_zero_extract_subreg_xor_little,
567         tstsi_t_zero_extract_subreg_xor_big): New insns.
568         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
569         asm output.
570         (*andsi_compact): Reorder alternatives so that K08 is considered first.
571
572 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
573
574         PR target/50354
575         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
576         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
577
578 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
579
580         * invoke.texi (AVR Options): Avoid \leq{}.
581
582 2011-10-14  Kai Tietz  <ktietz@redhat.com>
583
584         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
585         transformation the operands have compatible types.
586
587 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
588
589         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
590         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
591         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
592         mode iterator and any_extend code iterator.
593         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
594         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
595         also for TARGET_SSE4_1 using pmuldq insn.
596         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
597         (sse2_sse4_1): New code attr.
598         (udot_prodv4si): Macroize using any_extend code iterator.
599         (<s>dot_prodv8si): New expander.
600
601 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
602
603         * config/i386/i386.c (atom_cost): Changed cost for loading
604         QImode using movzbl.
605
606 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
607
608         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
609         change on October 11th, 2011.
610
611 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
612
613         * config/i386/sse.md (vec_interleave_high<mode>,
614         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
615         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
616         (ix86_expand_vec_perm_builtin_1): Call it.
617
618 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
619
620         Fix thinko from r179765
621         * config/avr/avr.c (avr_option_override): Don't override
622         flag_omit_frame_pointer if not actually needed.
623
624 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
625
626         PR target/46278
627         * doc/invoke.texi (AVR Options): Document -mstrict-X.
628
629         * config/avr/avr.opt (-mstrict-X): New option.
630         (avr_strict_X): New variable reflecting -mstrict-X.
631         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
632         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
633         (avr_legitimate_address_p): Pass outer_code to
634         avr_reg_ok_for_addr_p and use that function in case PLUS.
635         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
636         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
637         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
638
639 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
640
641         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
642         of VI_128.
643
644         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
645         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
646         Use <sseinsnmode> instead of TI in mode attr.
647
648 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
649
650         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
651         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
652         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
653         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
654
655 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
656
657         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
658         (arm_output_strex): Support strexd.
659         (arm_output_it): New helper to output it in Thumb2 mode only.
660         (arm_output_sync_loop): Support DI mode.  Change comment to
661         not support const_int.
662         (arm_expand_sync): Support DI mode.
663         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
664         and LDREXD.
665         * config/arm/iterators.md (NARROW): move from sync.md.
666         (QHSD): New iterator for all current ARM integer modes.
667         (SIDI): New iterator for SI and DI modes only.
668         * config/arm/sync.md (sync_predtab): New mode_attr.
669         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
670         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
671         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
672         (sync_nandsi): Fold into sync_nand<mode>.
673         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
674         (sync_new_nandsi): Fold into sync_new_nand<mode>.
675         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
676         (sync_old_nandsi): Fold into sync_old_nand<mode>.
677         (sync_compare_and_swap<mode>): Support SI & DI.
678         (sync_lock_test_and_set<mode>): Likewise.
679         (sync_<sync_optab><mode>): Likewise.
680         (sync_nand<mode>): Likewise.
681         (sync_new_<sync_optab><mode>): Likewise.
682         (sync_new_nand<mode>): Likewise.
683         (sync_old_<sync_optab><mode>): Likewise.
684         (sync_old_nand<mode>): Likewise.
685         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
686         (arm_sync_lock_test_and_setsi): Likewise.
687         (arm_sync_new_<sync_optab>si): Likewise.
688         (arm_sync_new_nandsi): Likewise.
689         (arm_sync_old_<sync_optab>si): Likewise.
690         (arm_sync_old_nandsi): Likewise.
691         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
692         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
693         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
694         (arm_sync_new_nand<mode> NARROW): Likewise.
695         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
696         (arm_sync_old_nand<mode> NARROW): Likewise.
697
698 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
699
700         PR target/48126
701         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
702
703 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
704
705         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
706
707 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
708
709         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
710
711 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
712
713         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
714         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
715
716 2011-10-14  Richard Guenther  <rguenther@suse.de>
717
718         PR tree-optimization/50723
719         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
720
721 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
722
723         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
724         objc/objc-map.c.
725
726 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
727
728         PR c++/17212
729         * doc/invoke.texi ([Wformat-zero-length]): Update.
730
731 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
732
733         PR bootstrap/50699
734         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
735         build for powerpc targets.  (darwin_patch_builtins): Only build for
736         powerpc targets.
737
738 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
739
740         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
741         (avx_cvtdq2pd256_2): ... this.
742         (sseunpackfltmode): New mode attr.
743         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
744         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
745         using VI2_AVX2 iterator.
746         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
747
748 2011-10-13  David S. Miller  <davem@davemloft.net>
749
750         * config/sparc/sparc.md (plusminus): New code iterator.
751         (plusminus_insn): New code attr.
752         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
753         using plusminus and plusminus_insn.
754         (fpadd64_vis, fpsub64_vis): Likewise.
755
756 2011-10-13  Richard Henderson  <rth@redhat.com>
757
758         * doc/md.texi (vec_perm): Document fallback to byte permutation.
759         * genopinit.c (optabs): Add vec_perm_const.
760         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
761         Reject non-vector modes.  Allow fallback to byte permutation.
762         (expand_vec_perm_expr_1): Split out from ...
763         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
764         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
765         * tree-vect-generic.c (lower_vec_perm): Update for name change.
766
767 2011-10-13  Richard Henderson  <rth@redhat.com>
768
769         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
770
771         * config/rs6000/spu.md (vec_permv16qi): New pattern.
772
773         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
774         * config/i386/i386-protos.h: Update.
775         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
776         (vec_perm_const<VEC_PERM_CONST>): New expander.
777
778         * optabs.c (expand_vector_broadcast): New.
779         (expand_binop): Expand scalar shifts of vectors to vector shifts
780         of vectors, if the former isn't supported.
781         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
782         here; always simplify to scalar shift of vector if possible.
783
784         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
785         test for vector splat.
786
787 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
788
789         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
790
791 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
792             Richard Guenther  <rguenther@suse.de>
793
794         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
795         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
796
797 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
798
799         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
800         * config/i386/i386.c (ix86_build_const_vector): Handle
801         also V32QI, V16QI, V16HI and V8HI modes.
802         (emit_reduc_half): New function.
803         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
804         Use emit_reduc_half helper function.
805
806 2011-10-13  Lawrence Crowl  <crowl@google.com>
807             Diego Novillo  <dnovillo@google.com>
808
809         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
810         (input_function): ... here.
811         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
812         (output_function): ... here.
813
814 2011-10-13  Gabriel Charette  <gchare@google.com>
815             Diego Novillo  <dnovillo@google.com>
816
817         * streamer-hooks.h (struct streamer_hooks): Add hooks
818         input_location and output_location.
819         * lto-streamer-in.c (lto_input_location): Use
820         streamer_hooks.input_location, if set.
821         * lto-streamer-out.c (lto_output_location): Use
822         streamer_hooks.output_location, if set.
823
824 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
825
826         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
827         * config/sparc/sparc.opt (mfix-at697f): New option.
828         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
829         (sparc_reorg): New function.
830
831 2011-10-13  Richard Guenther  <rguenther@suse.de>
832
833         PR tree-optimization/50712
834         * ipa-split.c (split_function): Always re-gimplify parameters
835         when they are not gimple vals before passing them.  Properly
836         check for type compatibility.
837
838 2011-10-13  Tom de Vries  <tom@codesourcery.com>
839
840         * function.c (gimplify_parameters): Set number of arguments of call to
841         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
842
843 2011-10-13  Tom de Vries  <tom@codesourcery.com>
844
845         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
846         for static const strings.
847         * varasm.c (build_constant_desc): Generate the memory location of the
848         constant using gen_const_mem.
849
850 2011-10-13  Richard Guenther  <rguenther@suse.de>
851
852         PR tree-optimization/50698
853         * tree-data-ref.c (split_constant_offset_1): Also process
854         offsets of &MEM.
855
856 2011-10-12  David S. Miller  <davem@davemloft.net>
857
858         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
859         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
860         unspecs.
861         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
862         of a vec_concat.
863         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
864         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
865         Reimplement as unspecs and remove inaccurate comments.
866         (vis3_shift_patname): New code attr.
867         (<vis3_shift_insn><vbits>_vis): Rename to
868         "v<vis3_shift_patname><mode>3".
869         (vis3_addsub_ss_patname): New code attr.
870         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
871         "<vis3_addsub_ss_patname><mode>3".
872         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
873         accommodate pattern name changes.
874
875         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
876         to zero when assembler lacks support for such instructions.
877         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
878         and MASK_FMAF in defaults when assembler lacks necessary support.
879
880 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
881
882         * config/i386/sse.md (vec_unpacks_lo_<mode>,
883         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
884         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
885         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
886         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
887
888         * config/i386/sse.md (vec_avx2): New mode_attr.
889         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
890         (mul<mode>3): ... this.
891
892         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
893         * config/i386/i386.c (ix86_expand_vec_perm): Handle
894         V16QImode and V32QImode for TARGET_AVX2.
895         (MAX_VECT_LEN): Increase to 32.
896         (expand_vec_perm_blend): Add support for 32-byte integer
897         vectors with TARGET_AVX2.
898         (valid_perm_using_mode_p): New function.
899         (expand_vec_perm_pshufb): Add support for 32-byte integer
900         vectors with TARGET_AVX2.
901         (expand_vec_perm_vpshufb2_vpermq): New function.
902         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
903         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
904         with TARGET_AVX2.
905         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
906         and expand_vec_perm_vpshufb2_vpermq_even_odd.
907         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
908         32-byte integer vector modes.
909         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
910         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
911         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
912         4 new operands.
913         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
914         match_dup, instead add 4 new operands and require they have
915         right cross-lane values.
916         (avx2_permv4di): Change into define_expand.
917         (avx2_permv4di_1): New instruction.
918         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
919         for "xm" constrained operand.
920         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
921
922         * config/i386/sse.md (avx2_gathersi<mode>,
923         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
924         match_scratch, change memory_operand to register_operand,
925         add (mem:BLK (scratch)) use.
926         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
927         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
928         add earlyclobber to the output operand and match_scratch,
929         add (mem:BLK (scratch)) use, change the other mem to match_operand.
930         Use %p6 instead of %c6 in the pattern.
931         * config/i386/i386.c (ix86_expand_builtin): Adjust for
932         operand 2 being a Pmode register_operand instead of memory_operand.
933
934 2011-10-12  Kai Tietz  <ktietz@redhat.com>
935
936         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
937
938 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
939
940         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
941
942 2011-10-12  Richard Guenther  <rguenther@suse.de>
943
944         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
945         of the first store we visit in a basic-block.
946         (get_continuation_for_phi): Search for a candidate VUSE that
947         might dominates all others.  Do pairwise disambiguation against
948         that candidate.
949
950 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
951
952         PR tree-optimization/50189
953         * tree-vrp.c (extract_range_from_assert): Use the type of
954         the variable, not the limit.
955
956 2011-10-12  Richard Guenther  <rguenther@suse.de>
957
958         PR tree-optimization/50700
959         * tree-object-size.c (addr_object_size): Simplify and treat
960         MEM_REF bases consistently.
961
962 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
963
964         * function.c (prepare_shrink_wrap, bb_active_p): New function.
965         (thread_prologue_and_epilogue_insns): Use bb_active_p.
966         Call prepare_shrink_wrap, then recompute bb_active_p for the
967         last block.
968
969 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
970
971         PR c/50565
972         * convert.c (convert_to_integer): Do not narrow operands of
973         pointer subtraction.
974
975 2011-10-12  Nick Clifton  <nickc@redhat.com>
976
977         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
978         emit a .eabi_attribute assembler directive, possibly with a
979         comment attached.
980         * config/arm/arm.c (arm_file_start): Use the new macro.
981         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
982
983 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
984
985         PR target/49939
986         * config/avr/avr.md (*movqi): Rename to movqi_insn.
987         (*call_insn): Rename to call_insn.
988         (*call_value_insn): Rename to call_value_insn.
989         * config/avr/avr.c (avr_2word_insn_p): New static function.
990         (jump_over_one_insn_p): Use it.
991
992 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
993
994         * expr.h (copy_blkmode_to_reg): Declare.
995         * expr.c (copy_blkmode_to_reg): New function.
996         (expand_assignment): Don't expand register RESULT_DECLs before
997         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
998         RESULT_DECL register.
999         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
1000         * stmt.c (expand_return): Move BLKmode-to-register code into
1001         copy_blkmode_to_reg.
1002
1003 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1004
1005         PR target/49965
1006         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
1007         (mov<F:mode>cc): Likewise.
1008
1009 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1010
1011         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
1012
1013 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1014
1015         * tree.h (built_in_decls): Delete old interface with two parallel
1016         arrays to hold standard builtin declarations, and replace it with
1017         a function based interface that can support creating builtins on
1018         the fly in the future.  Change all uses, and poison the old
1019         names.  Make sure 0 is not a legitimate builtin index.
1020         (implicit_built_in_decls): Ditto.
1021         (built_in_info): Ditto.
1022         (BUILTIN_VALID_P): Ditto.
1023         (builtin_decl_explicit): Ditto.
1024         (builtin_decl_implicit): Ditto.
1025         (set_builtin_decl): Ditto.
1026         (set_builtin_decl_implicit_p): Ditto.
1027         (builtin_decl_explicit_p): Ditto.
1028         (builtin_decl_implicit_p): Ditto.
1029         * tree-complex.c (expand_complex_libcall): Ditto.
1030         * tree-loop-distribution.c (generate_memset_zero): Ditto.
1031         * tree-ssa-strlen.c (get_string_length): Ditto.
1032         (handle_builtin_strcpy): Ditto.
1033         (handle_builtin_strcat): Ditto.
1034         * tree.c (iterative_hash_expr): Ditto.
1035         (local_define_builtin): Ditto.
1036         (build_common_builtin_nodes): Ditto.
1037         * builtins.c (built_in_decls): Ditto.
1038         (implicit_built_in_decls): Ditto.
1039         (built_in_info): Ditto
1040         (expand_builtin_classify_type): Ditto.
1041         (mathfn_built_in_1): Ditto.
1042         (expand_builtin_cexpi): Ditto.
1043         (expand_builtin_mempcpy_args): Ditto.
1044         (expand_builtin_stpcpy): Ditto.
1045         (gimplify_va_arg_expr): Ditto.
1046         (expand_builtin_sync_operation): Ditto.
1047         (build_builtin_expect_predicate): Ditto.
1048         (fold_builtin_memory_op): Ditto.
1049         (fold_builtin_strcpy): Ditto.
1050         (fold_builtin_stpcpy): Ditto.
1051         (fold_builtin_strncpy): Ditto.
1052         (fold_builtin_interclass_mathfn): Ditto.
1053         (fold_builtin_classify): Ditto.
1054         (fold_builtin_2): Ditto.
1055         (fold_builtin_strstr): Ditto.
1056         (fold_builtin_strrchr): Ditto.
1057         (fold_builtin_strpbrk): Ditto.
1058         (fold_builtin_strcat): Ditto.
1059         (fold_builtin_strncat): Ditto.
1060         (fold_builtin_strcspn): Ditto.
1061         (fold_builtin_fputs): Ditto.
1062         (fold_builtin_sprintf): Ditto.
1063         (fold_builtin_snprintf): Ditto.
1064         (expand_builtin_memory_chk): Ditto.
1065         (fold_builtin_memory_chk): Ditto.
1066         (fold_builtin_stxcpy_chk): Ditto.
1067         (fold_builtin_strncpy_chk): Ditto.
1068         (fold_builtin_strcat_chk): Ditto.
1069         (fold_builtin_strncat_chk): Ditto.
1070         (fold_builtin_sprintf_chk_1): Ditto.
1071         (fold_builtin_snprintf_chk_1): Ditto.
1072         (fold_builtin_printf): Ditto.
1073         (fold_builtin_fprintf): Ditto.
1074         (fold_call_stmt): Ditto.
1075         (set_builtin_user_assembler_name): Ditto.
1076         * tree-emutls.c (emutls_common_1): Ditto.
1077         * omp-low.c (scan_omp): Ditto.
1078         (lower_rec_input_clauses): Ditto.
1079         (lower_reduction_clauses): Ditto.
1080         (expand_parallel_call): Ditto.
1081         (expand_task_call): Ditto.
1082         (maybe_catch_exception): Ditto.
1083         (optimize_omp_library_calls): Ditto.
1084         (expand_omp_for_generic): Ditto.
1085         (expand_omp_for_static_nochunk): Ditto.
1086         (expand_omp_for_static_chunk): Ditto.
1087         (expand_omp_sections): Ditto.
1088         (expand_omp_atomic_fetch_op): Ditto.
1089         (expand_omp_atomic_pipeline): Ditto.
1090         (expand_omp_atomic_mutex): Ditto.
1091         (lower_omp_single_simple): Ditto.
1092         (lower_omp_single_copy): Ditto.
1093         (lower_omp_master): Ditto.
1094         (lower_omp_ordered): Ditto.
1095         (lower_omp_critical): Ditto.
1096         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1097         * builtins.c (DEF_BUILTIN_STUB): Ditto.
1098         (BUILT_IN_NONE): Ditto.
1099         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1100         * gimple-low.c (lower_function_body): Ditto.
1101         (lower_builtin_setjmp): Ditto.
1102         * c-decl.c (merge_decls): Ditto.
1103         * tree-eh.c (lower_resx): Ditto.
1104         (lower_resx): Ditto.
1105         (lower_eh_dispatch): Ditto.
1106         * function (gimplify_parameters): Ditto.
1107         * c-typeck.c (build_function_call_vec): Ditto.
1108         * gimplify.c (build_stack_save_restore): Ditto.
1109         (gimplify_vla_decl): Ditto.
1110         (gimplify_modify_expr_to_memcpy): Ditto.
1111         (gimplify_modify_expr_to_memset): Ditto.
1112         (gimplify_variable_sized_compare): Ditto.
1113         (gimplify_function_tree): Ditto.
1114         * calls.c (emit_call_1): Ditto.
1115         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1116         * tree-nested.c (convert_nl_goto_reference): Ditto.
1117         (convert_tramp_reference_op): Ditto.
1118         (finalize_nesting_tree_1): Ditto.
1119         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1120         (tree_ssa_prefetch_arrays): Ditto.
1121         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1122         * system.h (built_in_decls): Ditto.
1123         (implicit_built_in_decls): Ditto.
1124         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1125         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1126         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1127         (ix86_veclibabi_svml): Ditto.
1128         (ix86_veclibabi_acml): Ditto.
1129         * config/vms/vms.c (vms_patch_builtins): Ditto.
1130         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1131         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1132         (rs6000_builtin_vectorized_libmass): Ditto.
1133         (rs6000_init_builtins): Ditto.
1134         * config/darwin.c (darwin_override_options): Ditto.
1135         (darwin_patch_builtin): Ditto.
1136         (darwin_rename_builtins): Ditto.
1137         * config/pa/pa.c (pa_init_builtins): Ditto.
1138
1139 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1140
1141         * tree.h (copy_ref_info): Expose existing function.
1142         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1143         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1144
1145 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1146
1147         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1148         prototype.
1149         (avr_regno_mode_code_ok_for_base_p): New prototype.
1150         * config/avr/avr.h (BASE_REG_CLASS): Remove.
1151         (REGNO_OK_FOR_BASE_P): Remove.
1152         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1153         (REG_OK_FOR_BASE_STRICT_P): Remove.
1154         (MODE_CODE_BASE_REG_CLASS): New define.
1155         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1156         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1157         (avr_regno_mode_code_ok_for_base_p): New function.
1158         (avr_reg_ok_for_addr_p): New static function.
1159         (avr_legitimate_address_p): Use it.  Beautify.
1160
1161 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1162
1163         PR target/50447
1164         * config/avr/avr.md (cc): Add out_plus attribute alternative.
1165         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
1166         avr_out_plus for all CONST_INT addends.
1167         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1168         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1169         CC_OUT_PLUS.
1170         (avr_out_plus_1): Change prototype and report effect on cc0.
1171         (avr_out_plus): Ditto.
1172         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1173
1174 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1175
1176         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1177         the extra break.
1178
1179 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1180
1181         * doc/invoke.texi: Document new warning.
1182         * common.opt (Wvector-operation-performance): Define new warning.
1183         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1184         vector operation.
1185         (exapnd_vector_parallel): Warn about expanded vector operation.
1186         (lower_vec_shuffle): Warn about expanded vector operation.
1187         * c-typeck.c (c_build_vec_perm_expr): Store correct location
1188         when creating VEC_PERM_EXPR.
1189
1190 2011-10-11  Richard Guenther  <rguenther@suse.de>
1191
1192         PR tree-optimization/50204
1193         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
1194         two argument handling from ...
1195         (get_continuation_for_phi): ... here.  Handle arbitrary number
1196         of PHI args.
1197
1198 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
1199
1200         * modulo-sched.c: Fix comment typo.  Mention the possibility
1201         of using scheduling windows of II+1 cycles.
1202
1203 2011-10-11  Tristan Gingold  <gingold@adacore.com>
1204
1205         * doc/invoke.texi (C Dialect Options): Document
1206         -fallow-parameterless-variadic-functions.
1207         * c-parser.c (c_parser_parms_list_declarator): Handle it.
1208
1209 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1210
1211         * config/avr/avr.c (avr_option_override): Set
1212         flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
1213
1214 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
1215
1216         PR bootstrap/50665
1217         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
1218         optab_index to enum direct_optab_index.
1219         (vec_perm_optab): Update.
1220
1221 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
1222
1223         * config/cris/cris.c (cris_preferred_reload_class): New function.
1224         (TARGET_PREFERRED_RELOAD_CLASS): Define.
1225         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
1226
1227 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1228
1229         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
1230         !AVR_HAVE_JMP_CALL.
1231         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
1232         (*tablejump_enh, *tablejump): Remove insns.
1233         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
1234         EIJMP for indirect jump.  Use LPM Z+ where available.
1235
1236 2011-10-10  Richard Henderson  <rth@redhat.com>
1237
1238         * doc/md.texi (vec_perm_const): Fix typo in cindex.
1239
1240 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
1241             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
1242
1243         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
1244
1245 2011-10-10  Richard Guenther  <rguenther@suse.de>
1246
1247         PR middle-end/50389
1248         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1249         mark symbols for renaming.  Append the VUSE to all statements
1250         that possibly can have one.
1251
1252 2011-10-10  Richard Guenther  <rguenther@suse.de>
1253
1254         * ipa-split.c (pass_split_functions): Add verification TODOs.
1255         (pass_feedback_split_functions): Likewise.
1256
1257 2011-10-10  Richard Guenther  <rguenther@suse.de>
1258
1259         PR middle-end/50195
1260         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
1261         only when optimizing.
1262
1263 2011-10-10  Nick Clifton  <nickc@redhat.com>
1264
1265         PR middle-end/49801
1266         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
1267         df_get_live_out instead of accessing the bitmaps directly.
1268         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
1269         df_live_add_problem and df_analyze.
1270
1271 2011-10-10  Michael Matz  <matz@suse.de>
1272
1273         PR middle-end/50638
1274         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
1275
1276 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1277
1278         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
1279         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
1280         (node_sched_params): Remove first_reg_move and nreg_moves.
1281         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
1282         (update_node_sched_params): Move up file.
1283         (print_node_sched_params): Print the stage.  Don't dump info related
1284         to first_reg_move and nreg_moves.
1285         (set_columns_for_row): New function.
1286         (set_columns_for_ps): Move up file and use set_columns_for_row.
1287         (schedule_reg_move): New function.
1288         (schedule_reg_moves): Call extend_node_sched_params and
1289         schedule_reg_move.  Extend size of uses bitmap.  Initialize
1290         num_consecutive_stages.  Return false if a move could not be
1291         scheduled.
1292         (apply_reg_moves): Don't emit moves here.
1293         (permute_partial_schedule): Handle register moves.
1294         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
1295         to the same stage-count test as ddg nodes.
1296         (generate_prolog_epilog): Update calls accordingly.
1297         (sms_schedule): Allow move-scheduling to add a new first stage.
1298
1299 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1300
1301         * modulo-sched.c (ps_insn): Adjust comment.
1302         (ps_reg_move_info): New structure.
1303         (partial_schedule): Add reg_moves field.
1304         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
1305         (node_sched_params): Turn first_reg_move into an identifier.
1306         (ps_reg_move): New function.
1307         (ps_rtl_insn): Cope with register moves.
1308         (ps_first_note): Adjust comment and assert that the instruction
1309         isn't a register move.
1310         (node_sched_params): Replace with...
1311         (node_sched_param_vec): ...this vector.
1312         (set_node_sched_params): Adjust accordingly.
1313         (print_node_sched_params): Take a partial schedule instead of a ddg.
1314         Use ps_rtl_insn and ps_reg_move.
1315         (generate_reg_moves): Rename to...
1316         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
1317         move in the partial schedule, but don't emit it here.  Don't perform
1318         register substitutions here either.
1319         (apply_reg_moves): New function.
1320         (duplicate_insns_of_cycles): Use register indices directly,
1321         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
1322         (sms_schedule): Call schedule_reg_moves before committing to
1323         a partial schedule.   Try the next ii if the schedule fails.
1324         Use apply_reg_moves instead of generate_reg_moves.  Adjust
1325         call to print_node_sched_params.  Free node_sched_param_vec
1326         instead of node_sched_params.
1327         (create_partial_schedule): Initialize reg_moves.
1328         (free_partial_schedule): Free reg_moves.
1329
1330 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1331
1332         * modulo-sched.c (ps_insn): Replace node field with an identifier.
1333         (SCHED_ASAP): Replace with..
1334         (NODE_ASAP): ...this macro.
1335         (SCHED_PARAMS): New macro.
1336         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1337         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1338         (node_sched_params): Remove asap.
1339         (ps_rtl_insn, ps_first_note): New functions.
1340         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
1341         asap values.
1342         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1343         (generate_reg_moves): Pass ids to the SCHED_* macros.
1344         (update_node_sched_params): Take a ps insn identifier rather than
1345         a node as parameter.  Use ps_rtl_insn.
1346         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1347         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1348         (optimize_sc): Update for above field and SCHED_* macro changes.
1349         Update calls to try_scheduling_node_in_cycle and
1350         update_node_sched_params.
1351         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1352         macro changes.  Use ps_rtl_insn and ps_first_note.
1353         (sms_schedule): Pass ids to the SCHED_* macros.
1354         (get_sched_window): Adjust for above field and SCHED_* macro changes.
1355         Use NODE_ASAP instead of SCHED_ASAP.
1356         (try_scheduling_node_in_cycle): Remove node parameter.  Update
1357         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
1358         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1359         (ps_insert_empty_row): Adjust for above field changes.
1360         (compute_split_row): Use ids rather than nodes.
1361         (verify_partial_schedule): Adjust for above field changes.
1362         (print_partial_schedule): Use ps_rtl_insn.
1363         (create_ps_insn): Take an id rather than a node.
1364         (ps_insn_find_column): Adjust for above field changes.
1365         Use ps_rtl_insn.
1366         (ps_insn_advance_column): Adjust for above field changes.
1367         (add_node_to_ps): Remove node parameter.  Update call to
1368         create_ps_insn.
1369         (ps_has_conflicts): Use ps_rtl_insn.
1370         (ps_add_node_check_conflicts): Replace node parameter than an id.
1371
1372 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1373
1374         * modulo-sched.c (undo_replace_buff_elem): Delete.
1375         (generate_reg_moves): Don't build and return an undo list.
1376         (free_undo_replace_buff): Delete.
1377         (sms_schedule): Adjust call to generate_reg_moves.
1378         Don't call free_undo_replace_buff.
1379
1380 2011-10-10  Matthias Klose <doko@ubuntu.com>
1381
1382         * common/config/m32c: Remove empty directory.
1383
1384 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1385
1386         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1387
1388 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1389
1390         PR target/50652
1391         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1392         atmega164a to 0x100.
1393
1394 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1395
1396         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1397         the replacement if the conversion to the LHS type is not useless.
1398
1399 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
1400
1401         PR tree-optimization/50635
1402         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1403         DEF_STMT to the list of statements to be replaced by the
1404         pattern statements.
1405         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1406
1407 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
1408
1409         * system.h: Commit forgotten hunk in previous patch.
1410         (OUTPUT_ADDR_CONST_EXTRA): Poison.
1411
1412 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1413
1414         PR libobjc/50428
1415         * doc/objc.texi (Garbage Collection): Updated example to protect
1416         +initialize against execution in subclasses.
1417
1418 2011-10-07  Richard Henderson  <rth@redhat.com>
1419
1420         * doc/extend.texi (__builtin_shuffle): Improve the description to
1421         include the modulus of the selector.  Mention OpenCL.
1422         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1423
1424         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1425         * genopinit.c (optabs): Rename vshuffle to vec_perm.
1426         * c-typeck.c (c_build_vec_perm_expr): Rename from
1427         c_build_vec_shuffle_expr.  Update for name changes.
1428         * optabs.c (expand_vec_perm_expr_p): Rename from
1429         expand_vec_shuffle_expr_p.
1430         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1431         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1432         (vec_perm_optab): Rename from vshuffle_optab.
1433         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1434         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1435         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1436
1437         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1438         ix86_expand_vshuffle.
1439         * config/i386/i386-protos.h: Update.
1440         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1441         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1442
1443 2011-10-07  Richard Henderson  <rth@redhat.com>
1444
1445         * config/i386/predicates.md (avx2_pblendw_operand): New.
1446         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1447         (avx2_pblendw, *avx2_pblendw): New expander and insn.
1448
1449 2011-10-07  Richard Henderson  <rth@redhat.com>
1450
1451         * config/i386/i386.c (bdesc_args): Update code for
1452         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
1453         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1454         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1455         * config/i386/sse.md (mode iterator V16): Add V2TI.
1456         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1457         (mode attr ssse3_avx2): Add V2TI.
1458         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1459
1460 2011-10-07  David S. Miller  <davem@davemloft.net>
1461
1462         PR 50655
1463         * configure.ac: Add .register directives to VIS3 test.
1464         * configure: Regenerate.
1465
1466 2011-10-07  Richard Henderson  <rth@redhat.com>
1467
1468         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1469
1470 2011-10-07  Richard Henderson  <rth@redhat.com>
1471
1472         PR 49752
1473         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1474
1475 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
1476
1477         * config/arm/predicates.md (shift_amount_operand): Remove constant
1478         range check.
1479         (shift_operator): Check range of constants for all shift operators.
1480
1481 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1482
1483         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1484         Load GOT pointer for non-pic builds.
1485         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1486         (s390_emit_call): Likewise.
1487
1488 2011-10-07  Tom de Vries  <tom@codesourcery.com>
1489
1490         PR middle-end/50527
1491         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1492         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1493         throw.
1494         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1495         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1496         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1497         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1498         * tree-ssa-ccp.c (evaluate_stmt): Set align for
1499         BUILT_IN_ALLOCA_WITH_ALIGN.
1500         (fold_builtin_alloca_for_var): Rename to ...
1501         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1502         BUILT_IN_ALLOCA_WITH_ALIGN argument.
1503         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1504         fold_builtin_alloca_with_align.
1505         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1506         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1507         DEF_BUILTIN_STUB.
1508         * ipa-pure-const.c (special_builtin_state): Handle
1509         BUILT_IN_ALLOCA_WITH_ALIGN.
1510         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1511         (call_may_clobber_ref_p_1): Same.
1512         * function.c (gimplify_parameters): Lower vla to
1513         BUILT_IN_ALLOCA_WITH_ALIGN.
1514         * gimplify.c (gimplify_vla_decl): Same.
1515         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1516         * tree-mudflap.c (mf_xform_statements): Same.
1517         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1518         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1519         * varasm.c (incorporeal_function_p): Same.
1520         * tree-object-size.c (alloc_object_size): Same.
1521         * gimple.c (gimple_build_call_from_tree): Same.
1522
1523 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
1524
1525         * function.c (frame_required_for_rtx): Remove function.
1526         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
1527         changed.  Compute a set of mentioned registers and compare against
1528         the new arg rather than calling frame_required_for_rtx.
1529         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1530         reg set.  Convert the unconverted_simple_returns mechanism to store
1531         jump insns rather than their basic blocks.  Also check the
1532         orig_entry_edge destination for new blocks.
1533
1534 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
1535
1536         PR tree-optimization/50650
1537         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1538         call vect_is_simple_cond here, instead fail if cond_expr isn't
1539         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1540         for cond_expr's first operand.
1541         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1542         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1543
1544 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1545
1546         * config/s390/s390.md (DWH, dwh): New mode macros.
1547         ("umulsidi3"): Extend to support "umulditi3" as well.
1548
1549 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
1550             H.J. Lu  <hongjiu.lu@intel.com>
1551
1552         PR target/50603
1553         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1554         integer PLUS RTX to a register to improve address combine.
1555
1556 2011-10-06  Richard Henderson  <rth@redhat.com>
1557
1558         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1559         parameter; use it to decide whether to merge two notes.
1560         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1561         for the deallocation case as well.
1562
1563 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
1564
1565         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1566         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1567         * doc/tm.texi: Regenerate.
1568         * target.def (output_addr_const_extra): Use
1569         hook_bool_FILEptr_rtx_false.
1570         * targhooks.c (default_asm_output_addr_const_extra): Remove.
1571         * targhooks.h (default_asm_output_addr_const_extra): Remove.
1572         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1573         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1574
1575 2011-10-06  David S. Miller  <davem@davemloft.net>
1576
1577         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1578         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1579         SI mode 64-bit code gen case explicitly zero-extend and truncate.
1580         (*popcount<mode>_sp64): Split up into...
1581         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1582         SImode case use truncate.
1583         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1584         subtract so the compiler can optimize it.
1585         (SIDI): Remove unused mode iterator.
1586
1587 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1588
1589         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1590         on the orig_entry_edge. Don't account for it in prologue_clobbered.
1591
1592 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1593
1594         PR tree-optimization/50596
1595         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1596         (NUM_PATTERNS): Change to 6.
1597         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1598         function.
1599         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1600         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1601         if it already has one, and don't set STMT_VINFO_VECTYPE in it
1602         if it is already set.
1603         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1604         COND_EXPR in pattern stmts.
1605         (vect_is_simple_cond): No longer static.
1606
1607 2001-10-06  Richard Henderson  <rth@redhat.com>
1608
1609         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1610         * config/i386/sse.md (sseshuffint): Remove.
1611         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1612         (VSHUFFLE_AVX2): New mode iterator.
1613         (vshuffle<mode>): Use it.
1614         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1615
1616         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1617         for vector_all_ones_operand.
1618         (ix86_expand_int_vcond): Distinguish between comparison mode
1619         and data mode.  Allow them to differ.
1620         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1621
1622 2001-10-06  Richard Henderson  <rth@redhat.com>
1623
1624         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1625         mask operand.  Tidy the code.
1626
1627 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1628
1629         * tree-vect-patterns.c (vect_pattern_recog_1): Use
1630         vect_recog_func_ptr typedef for the first argument.
1631         (vect_pattern_recog): Rename vect_recog_func_ptr variable
1632         to vect_recog_func, use vect_recog_func_ptr typedef for it.
1633
1634         PR tree-optimization/49279
1635         * tree-ssa-structalias.c (find_func_aliases): Don't handle
1636         CAST_RESTRICT.
1637         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1638         restrict propagation.
1639         * tree-ssa.c (useless_type_conversion_p): Don't return false
1640         if TYPE_RESTRICT differs.
1641
1642 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1643
1644         * function.c (thread_prologue_and_epilogue_insns): Build a vector
1645         of unconverted simple return blocks rather than trying to
1646         recompute them later based on bb_flags bitmap tests.
1647
1648 2011-10-06  Michael Matz  <matz@suse.de>
1649
1650         * tree-flow.h (get_var_ann): Don't declare.
1651         * tree-flow-inline.h (get_var_ann): Remove.
1652         (set_is_used): Use var_ann, not get_var_ann.
1653         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1654         * tree-profile.c (gimple_gen_edge_profiler): Call
1655         find_referenced_var_in.
1656         (gimple_gen_interval_profiler): Ditto.
1657         (gimple_gen_pow2_profiler): Ditto.
1658         (gimple_gen_one_value_profiler): Ditto.
1659         (gimple_gen_average_profiler): Ditto.
1660         (gimple_gen_ior_profiler): Ditto.
1661         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1662         (gimple_gen_ic_func_profiler): Call add_referenced_var.
1663         * tree-mudflap.c (execute_mudflap_function_ops): Call
1664         add_referenced_var.
1665
1666 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1667
1668         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1669         don't set SSA_NAME_DEF_STMT that has been already set by
1670         gimple_build_assign_with_ops.
1671         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1672         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1673         Likewise.
1674
1675         * tree.h (avoid_folding_inline_builtin): New prototype.
1676         * builtins.c (avoid_folding_inline_builtin): No longer static.
1677         * gimple-fold.c (gimple_fold_builtin): Give up if
1678         avoid_folding_inline_builtin returns true.
1679
1680 2011-10-06  Richard Guenther  <rguenther@suse.de>
1681
1682         * tree-vect-generic.c (vector_element): Look at previous
1683         generated results.
1684
1685 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
1686
1687         PR target/39950
1688         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1689         __powerpc__, __PPC__, __unix__.
1690
1691 2011-10-06  Michael Matz  <matz@suse.de>
1692
1693         * i386/i386.opt (recip_mask, recip_mask_explicit,
1694         x_recip_mask_explicit): New variables and cl_target member.
1695         (mrecip=): New option.
1696         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1697         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1698         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1699         TARGET_RECIP_VEC_SQRT): New tests.
1700         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1701         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1702         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1703         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1704         * i386/i386.c (ix86_option_override_internal): Set recip_mask
1705         for -mrecip and -mrecip=options.
1706         (ix86_function_specific_save): Save recip_mask_explicit.
1707         (ix86_function_specific_restore): Restore recip_mask_explicit.
1708
1709         * doc/invoke.texi (ix86 Options): Document the new option.
1710
1711 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1712
1713         PR target/49049
1714         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1715
1716 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
1717
1718         PR target/50305
1719         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1720         output of a previous pass through legitimize_reload_address.
1721         Do not attempt to optimize addresses if the base register is
1722         equivalent to a constant.
1723
1724 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1725
1726         * function.c (thread_prologue_and_epilogue_insns): Mark
1727         last_bb_active as possibly unused.  It is unused for targets which
1728         do neither have "return" nor "simple_return" expanders.
1729
1730 2011-10-06  Richard Guenther  <rguenther@suse.de>
1731
1732         * fold-const.c (fold_ternary_loc): Also fold non-constant
1733         vector CONSTRUCTORs.  Make more efficient.
1734         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1735         (cprop_into_stmt): Don't propagate into virtual operands.
1736         (optimize_stmt): Really dump original statement.
1737
1738 2011-10-06  Nick Clifton  <nickc@redhat.com>
1739
1740         * config/rx/rx.md (smin3): Revert previous delta.
1741
1742 2011-10-06  Richard Guenther  <rguenther@suse.de>
1743
1744         PR tree-optimization/38884
1745         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1746         reads from aggregate SSA names.
1747
1748 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1749
1750         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1751         argument, truncate it at the beginning instead of allocating there
1752         and freeing at the end.
1753         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1754         pass its address to vect_pattern_recog_1.
1755
1756 2011-10-05  David S. Miller  <davem@davemloft.net>
1757
1758         * config/sparc/sparc.opt (POPC): New option.
1759         * doc/invoke.texi: Document it.
1760         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1761         default on Niagara-2 and later.
1762         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1763         * config/sparc/sparc.md (SIDI): New mode iterator.
1764         (ffsdi2): Delete commented out pattern and comments.
1765         (popcount<mode>2, clz<mode>2): New expanders.
1766         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1767         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1768
1769 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1770
1771         PR middle-end/50607
1772         * c-tree.h (c_expr_t): New typedef for struct c_expr.
1773         (C_EXPR_APPEND): New macro.
1774         * c-parser.c (c_parser_get_builtin_args): Preserve
1775         original_tree_code of c_expr structure.
1776         (c_parser_postfix_expression): Adjust to the new function.
1777
1778 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1779
1780         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
1781         if profiling after the prologue.
1782
1783 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1784
1785         PR tree-optimization/50613
1786         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1787         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1788         and if it is neither that not SSA_NAME, give up.
1789
1790 2011-10-05  Richard Henderson  <rth@redhat.com>
1791
1792         * tree-vect-generic.c (vector_element): Never fail.  Use
1793         build_zero_cst.  Tidy up type references.
1794         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
1795         code duplication.  Do update_stmt here ...
1796         (expand_vector_operations_1): ... not here.
1797
1798         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
1799         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
1800         duplication.  Handle V2DI without SSE4.1.
1801         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1802         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1803
1804 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1805
1806         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1807         of "found".  Simplify return value calculation.
1808         (distance_agu_use): Ditto.
1809
1810 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1811
1812         PR bootstrap/50621
1813         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1814         if the function was not shrink-wrapped.
1815         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1816         to an insn.
1817         * function.c (thread_prologue_and_epilogue_insns): Make sure the
1818         shrink_wrapped flag is set even if there is no dump file.
1819
1820 2011-10-05  DJ Delorie  <dj@redhat.com>
1821             Nick Clifton  <nickc@redhat.com>
1822
1823         * config/rx/rx.opt (mpid): Define.
1824         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1825         (MULTILIB_DIRNAMES): Add pid.
1826         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1827         (rx_num_interrupt_regs): New variable.
1828         (rx_gp_base_regnum): New function.  Returns the number of the
1829         small data area register.
1830         (rx_pid_base_regnum): New function.  Returns the number of the pid
1831         base register.
1832         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
1833         (rx_pid_data_operand): New function.  Returns whether an object is
1834         in the position independent data area.
1835         (rx_legitimize_address): New function.  Puts undecided PID
1836         objects in the PID data area.
1837         (rx_is_legitimate_address): Add support for PID operands.
1838         (rx_print_operand_address): Likewise.
1839         (rx_print_operand): Likewise.
1840         (rx_maybe_pidify_operand): New function.  Determine if an operand
1841         is suitable for PID addressing.
1842         (rx_gen_move_template): Add PID support.
1843         (rx_conditional_register_usage): Likewise.
1844         (rx_option_override): Initialise rx_num_interrupt_regs.
1845         (rx_is_legitimate_constant): Add support for PID constants.
1846         (TARGET_LEGITIMIZE_ADDRESS): Define.
1847         * config/rx/constraints.md (Rpid): Define.
1848         (Rpda): Define.
1849         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1850         (tablejump): Add PID support.
1851         (mov<>): Likewise.
1852         (mov<>_internal): Likewise.
1853         (addsi3): Convert to an expander.  Add PID support.
1854         (pid_addr): New pattern.
1855         * config/rx/rx.h (CPP_SPEC): Define.
1856         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1857         (CASE_VECTOR_PC_RELATIVE): Define.
1858         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1859         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1860         * doc/invoke.texi (RX Options): Document -mpid command line option.
1861
1862 2011-10-05  Richard Guenther  <rguenther@suse.de>
1863
1864         PR tree-optimization/38885
1865         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1866         from constants.
1867
1868 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1869
1870         * doc/invoke.texi (-fshrink-wrap): Document.
1871         * opts.c (default_options_table): Add it.
1872         * common.opt (fshrink-wrap): Add.
1873         * function.c (emit_return_into_block): Remove useless declaration.
1874         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1875         requires_stack_frame_p, gen_return_pattern): New static functions.
1876         (emit_return_into_block): New arg simple_p.  All callers changed.
1877         Use gen_return_pattern.
1878         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1879         * config/i386/i386.md (return): Expand into a simple_return.
1880         (simple_return): New expander):
1881         (simple_return_internal, simple_return_internal_long,
1882         simple_return_pop_internal_long, simple_return_indirect_internal):
1883         Renamed from return_internal, return_internal_long,
1884         return_pop_internal_long and return_indirect_internal; changed to use
1885         simple_return.
1886         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1887         simple returns.
1888         (ix86_pad_returns): Likewise.
1889         * function.h (struct rtl_data): Add member shrink_wrapped.
1890         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1891         are not jumps or sibcalls can't be compared.
1892
1893 2011-10-05  Richard Guenther  <rguenther@suse.de>
1894
1895         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1896         vector type.
1897         (simplify_unary_expression): Handle BIT_FIELD_REFs.
1898         (try_to_simplify): Handle BIT_FIELD_REFs.
1899
1900 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
1901
1902         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1903         * config/avr/avr.c (avr_out_addto_sp): New function.
1904         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1905         * config/avr/avr.md (adjust_len): Add "addto_sp".
1906         (*movhi_sp): Remove insn.
1907         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1908
1909 2011-10-05  Richard Guenther  <rguenther@suse.de>
1910
1911         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1912         with an embedded expression valueize and fold that as well.
1913         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1914         results from gimple_fold_stmt_to_constant_1.
1915
1916 2011-10-05  Nick Clifton  <nickc@redhat.com>
1917
1918         * config/rx/rx.md (tablejump): Add missing label.
1919         (adddi3_internal): Mark operand 0 as early-clobbered.
1920         (smaxsi3): Revert previous delta.
1921         (adc_internal): Fix whitespace in generated asm.
1922         (adc_flags): Likewise.
1923
1924 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1925
1926         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1927         with the new widening_optab_handler.
1928
1929 2011-10-05  Richard Guenther  <rguenther@suse.de>
1930
1931         PR tree-optimization/50609
1932         * gimple-fold.c (fold_array_ctor_reference): Also handle
1933         vector typed constructors.
1934         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1935         for vector typed constructors.
1936
1937 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1938
1939         * config/i386/i386.c (ix86_emit_binop): New static function.
1940         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1941         instructions.
1942         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1943
1944 2011-10-04  David S. Miller  <davem@davemloft.net>
1945
1946         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1947         UNSPEC_XMUL): New unspecs.
1948         (muldi3_v8plus): Use output_v8plus_mult.
1949         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1950         New VIS 3.0 combiner patterns.
1951         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1952         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1953         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1954         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1955         builtins patterns.
1956         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1957         (output_v8plus_mult): New function.
1958         * config/sparc/sparc-protos.h: Declare it.
1959         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1960         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
1961         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
1962         * doc/extend.texi: Document new builtins.
1963
1964 2011-10-04  Richard Henderson  <rth@redhat.com>
1965
1966         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
1967         Avoid save_expr unless two_arguments.
1968
1969 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
1970
1971         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
1972         * config/i386/mingw32.h (CPP_SPEC): Likewise.
1973
1974 2011-10-04  David S. Miller  <davem@davemloft.net>
1975
1976         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
1977         under Linux.
1978
1979 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
1980
1981         PR tree-optimization/50604
1982         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
1983         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
1984         last argument to memcpy has size_type_node type instead of ssizetype.
1985         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
1986         instead of TREE_TYPE (len) as type for newlen.
1987
1988         PR tree-optimization/50522
1989         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
1990         TYPE_RESTRICT.
1991         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
1992         unconditionally.
1993
1994         * fold-const.c (fold_unary_loc): Don't optimize
1995         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
1996         casting the inner pointer if it isn't TYPE_RESTRICT.
1997         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
1998         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
1999
2000 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
2001
2002         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
2003
2004 2011-10-04  Jan Hubicka  <jh@suse.cz>
2005
2006         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
2007         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
2008         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
2009         * lto-cgraph.c (order_base): New static var.
2010         (lto_output_node): Stream in order.
2011         (lto_output_varpool_node): Stream out order.
2012         (input_node): Stream in order.
2013         (input_varpool_node): Stream out order.
2014         (input_cgraph_1): Initialize order base; update call of
2015         lto_input_toplevel_asms.
2016
2017 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
2018
2019         PR target/50566
2020         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
2021         prototype.
2022         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
2023         from here...
2024         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
2025         function.  Log if avr_log.legitimize_reload_address.
2026
2027 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2028
2029         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
2030
2031 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2032
2033         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
2034         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
2035
2036 2011-10-03  David S. Miller  <davem@davemloft.net>
2037
2038         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
2039         GSR_REG an input operand to UNSPEC instead of a parallel USE.
2040         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
2041         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
2042         Reference GSR_REG in DI mode, simplify convoluted expressions by using
2043         zero_extract.
2044         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
2045
2046 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
2047
2048         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2049
2050 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2051             Ian Lance Taylor  <iant@google.com>
2052
2053         * godump.c (go_output_typedef): Support printing enum values that
2054         don't fit in a signed HOST_WIDE_INT.
2055
2056 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2057
2058         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2059         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2060         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2061         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2062
2063 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2064
2065         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2066         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2067         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2068         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2069
2070 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
2071
2072         PR target/49967
2073         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2074         (gcc_cv_ld_static_option): Ditto.
2075         (gcc_cv_ld_dynamic_option): Ditto.
2076         * configure: Regenerate.
2077
2078 2011-10-03  David S. Miller  <davem@davemloft.net>
2079
2080         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2081         and 'si' patterns which describe the GSR changes explicitly in the
2082         RTL using zero_extract.
2083         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2084
2085         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2086         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2087
2088 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2089
2090         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2091         if given expression can be expanded by the target.
2092         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2093         using target vector instructions.
2094         * optabs.h: New optab vshuffle.
2095         (expand_vec_shuffle_expr_p): New prototype.
2096         (expand_vec_shuffle_expr): New prototype.
2097         (vshuffle_optab): New optab.
2098         * genopinit.c: Adjust to support vecshuffle.
2099         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2100         * expr.c (expand_expr_real_2): Adjust.
2101         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2102         recognizing the cases of two and three arguments.
2103         (convert_arguments) (build_binary_op)
2104         (scalar_to_vector) (build_array_ref): Spurious whitespace.
2105         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2106         * tree.def: New tree code VEC_SHUFFLE_EXPR.
2107         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2108         * tree-vect-generic.c (vector_element): New function. Returns an
2109         element of the vector at the given position.
2110         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2111         by the backend or expand an expression piecewise.
2112         (expand_vector_operations_1): Adjusted.
2113         (gate_expand_vector_operations_noop): New gate function.
2114         * Makefile.in (tree-vect-generic.o): New include.
2115         * gimple.c (get_gimple_rhs_num_ops): Adjust.
2116         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2117         * passes.c: Move veclower down.
2118         * tree-pretty-print.c (dump_generic_node): Recognize
2119         VEC_SHUFFLE_EXPR as valid expression.
2120         * c-parser.c (c_parser_get_builtin_args): Helper function for the
2121         builtins with variable number of arguments.
2122         (c_parser_postfix_expression): Use a new helper function for
2123         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2124         * tree-ssa-operands: Adjust.
2125         * c-family/c-common.c: New __builtin_shuffle keyword.
2126         * c-family/c-common.h: New __builtin_shuffle keyword.
2127         * gcc/doc/extend.texi: Adjust.
2128
2129         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
2130         between the vector and the type of the mask when shuffling.
2131         (vecshuffle<mode>): New expansion.
2132         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2133         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2134         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2135
2136 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2137
2138         PR tree-optimization/50587
2139         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2140         arg0 is not a SSA_NAME.
2141
2142 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
2143
2144         * ipa-inline-analysis.c (MAX_TIME): Update comment.
2145
2146 2011-10-02  Richard Henderson  <rth@redhat.com>
2147             David S. Miller  <davem@davemloft.net>
2148
2149         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2150         conditional insn type setting, we always emit a shift.
2151         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2152         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2153         * config/sparc/predicates.md (const_one_operand): Delete.
2154
2155 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
2156
2157         * invoke.texi (SPARC Options): Refer to GNU/Linux.
2158
2159 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2160
2161         * config/mips/mips.c (mips_frame_barrier): New function.
2162         (mips_expand_prologue): Call it after allocating stack space.
2163         (mips_deallocate_stack): New function.
2164         (mips_expand_epilogue): Call mips_frame_barrier and
2165         mips_deallocate_stack.
2166
2167 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2168
2169         PR target/49696
2170         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2171         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2172         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2173
2174 2011-10-02  Jan Hubicka  <jh@suse.cz>
2175
2176         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2177
2178         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2179         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2180         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2181         functions are reachable when address is taken.
2182         * tree-sra.c (modify_function): Free dominance info.
2183
2184 2011-10-02  Jan Hubicka  <jh@suse.cz>
2185
2186         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
2187
2188         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
2189         (reset_inline_summary): New function.
2190         (compute_inline_parameters, inline_node_removal_hook,
2191         inline_edge_removal_hook): Use it.
2192         (inline_free_summary): Reset holders correctly.
2193         (inline_generate_summary): Free summary before computing it.
2194
2195 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
2196
2197         PR preprocessor/36819
2198         * incpath.c (merge_include_chains): Call free_path on
2199         heads[QUOTE] and tails[QUOTE].
2200
2201 2011-10-02  Jan Hubicka  <jh@suse.cz>
2202
2203         PR lto/47247
2204         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
2205         when resolution is already availbale from plugin.
2206         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
2207         * cgraph.c (ld_plugin_symbol_resolution): Add
2208         prevailing_def_ironly_exp.
2209         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
2210         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
2211         externally visible.
2212         * varasm.c (resolution_to_local_definition_p): Add
2213         LDPR_PREVAILING_DEF_IRONLY_EXP.
2214         (resolution_local_p): Likewise.
2215
2216 2011-10-01  David S. Miller  <davem@davemloft.net>
2217
2218         * config/sparc/sparc.opt (VIS3): New option.
2219         * doc/invoke.texi: Document it.
2220         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
2221         not capable of such instructions.
2222         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2223         to 0x300 when TARGET_VIS3.
2224         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
2225         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
2226         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
2227         (V64N8, VASS): New mode iterators.
2228         (vis3_shift, vis3_addsub_ss): New code iterators.
2229         (vbits, vconstr): New mode attributes.
2230         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
2231         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
2232         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
2233         fmean16_vis, fpadd64_vis, fpsub64_vis,
2234         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
2235         VIS 3.0 instruction patterns.
2236         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
2237         default when targetting capable cpus.  TARGET_VIS3 implies
2238         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
2239         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
2240         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
2241         is ignored.
2242         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
2243         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
2244         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
2245         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
2246         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
2247         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
2248         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
2249         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
2250         * doc/extend.texi: Document new VIS 3.0 builtins.
2251
2252 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
2253
2254         * ira-color.c (assign_hard_reg): Fix typo.
2255
2256 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
2257
2258         * doc/extend.texi: Add missing ','.
2259
2260 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2261
2262         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
2263         Enable -fmodulo-sched at -O2 and above.
2264         * config/c6x/c6x.md (doloop_end): New expander.
2265         (mvilc, sploop, spkernel, loop_end): New patterns.
2266         (loop_end with memory destination splitter): New.
2267         * config/c6x/c6x.c: Include "hw-doloop.h".
2268         (enum unitreqs): New.
2269         (unit_req_table): New typedef.
2270         (unit_reqs): New static variable.
2271         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
2272         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
2273         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
2274         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
2275         (struct c6x_sched_context): New member last_scheduled_iter0.
2276         (init_sched_state): Initialize it.
2277         (c6x_variable_issue): Update it.
2278         (sploop_max_uid_iter0): New static variable.
2279         (c6x_sched_reorder_1): Be careful about issuing sploop.
2280         (c6x_reorg): Call c6x_hwlooops before the final schedule.
2281
2282 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
2283
2284         PR target/50566
2285         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
2286         * config/avr/avr.c (avr_address_cost): Use it.
2287         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2288         (avr_log_vadump): Unknown %-codes finish printing.
2289
2290 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2291
2292         PR inline-asm/50571
2293         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
2294         input constraints allow mem and not reg, pass true instead of
2295         false as second argument to maybe_fold_reference.
2296
2297         PR tree-optimization/46309
2298         * fold-const.c (make_range, merge_ranges): Remove prototypes.
2299         (make_range_step): New function.
2300         (make_range): Use it.
2301         * tree.h (make_range_step): New prototypes.
2302         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
2303         * tree-ssa-reassoc.c: Include diagnostic-core.h.
2304         (struct range_entry): New type.
2305         (init_range_entry, range_entry_cmp, update_range_test,
2306         optimize_range_tests): New functions.
2307         (reassociate_bb): Call optimize_range_tests.
2308
2309 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2310             Richard Guenther  <rguenther@suse.de>
2311
2312         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
2313         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2314         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
2315         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
2316         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
2317         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
2318
2319 2011-09-30  Jan Beulich  <jbeulich@suse.com>
2320
2321         * lto-cgraph.c (output_cgraph): Remove processing of
2322         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
2323         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
2324         lto_input_toplevel_asms() instead.
2325         * lto-section-in.c (lto_section_name): Add "asm" entry.
2326         * lto-streamer-in.c (lto_input_toplevel_asms): New.
2327         * lto-streamer-out.c (lto_output_toplevel_asms): New.
2328         * lto-streamer.h (LTO_minor_version): Bump.
2329         (enum lto_section_type): Add LTO_section_asm.
2330         (struct lto_asm_header): New.
2331         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2332         * tree-streamer.h (streamer_write_string_cst): Declare.
2333         * tree-streamer-out.c (write_string_cst): Rename to
2334         streamer_write_string_cst and make global. Handle incoming string
2335         being NULL.
2336         (streamer_write_tree_header): Adjust call to renamed function.
2337
2338 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2339
2340         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2341         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2342         modulo_last_stage): New static variables.
2343         (set_modulo_params, discard_delay_pairs_above): New functions.
2344         (struct delay_pair): New member stages.
2345         (htab_i2_traverse, htab_i1_traverse): New static functions.
2346         (record_delay_slot_pair): New arg stages.  All callers changed.
2347         Record it.
2348         (pair_delay): Take stages into account.
2349         (add_delay_dependencies): Don't do so for stage pairs.
2350         (struct sched_block_state): New member modulo_epilogue.
2351         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2352         (unschedule_insns_until): Decrease modulo_insns_scheduled.
2353         Set HARD_DEP without using or.
2354         (resolve_dependencies): New static function.
2355         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
2356         If it is true, allow only insns with INSN_EXACT_TICK set.
2357         (schedule_block): Return bool, always true for normal scheduling,
2358         true or false depending on modulo scheduling success otherwise.
2359         Add bookkeeping for modulo scheduling, and call resolve_dependencies
2360         on everything left over after a modulo schedule.
2361         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
2362         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2363         declarations.
2364         (set_modulo_params, discard_delay_pairs_above): Declare.
2365         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2366         * doc/invoke.texi (--param): Document it.
2367
2368         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
2369         New arg modulo_scheduling.  All callers changed.  Move note handling
2370         code here from schedule_ebbs.
2371         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2372         out of schedule_ebbs.
2373         (schedule_ebbs): Call them.  Remove note handling code moved to
2374         schedule_ebb.
2375         * sched-int.h (schedule_ebb, schedule_ebbs_init,
2376         schedule_ebbs_finish): Declare.
2377
2378 2011-09-30  Richard Guenther  <rguenther@suse.de>
2379
2380         PR middle-end/50574
2381         * tree-cfg.c (verify_gimple_comparison): Compare component
2382         mode sizes for vector comparisons.
2383
2384 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2385
2386         * ddg.c (autoinc_var_is_used_p): New function.
2387         (create_ddg_dep_from_intra_loop_link,
2388         add_cross_iteration_register_deps): Call it.
2389         * ddg.h (autoinc_var_is_used_p): Declare.
2390         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2391         (sms_schedule): Handle instructions with REG_INC.
2392
2393 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2394
2395         * modulo-sched.c (generate_reg_moves): Skip instructions that
2396         do not set a register and verify no regmoves are created for
2397         !single_set instructions.
2398
2399 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2400
2401         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2402         insns.
2403
2404 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2405
2406         PR target/50099
2407         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2408         (qhs_zextenddi_op): New.
2409         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2410         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2411         Distinguish between ARM and Thumb2 states.
2412
2413 2011-09-30  David S. Miller  <davem@davemloft.net>
2414
2415         * config/sparc/sparc.opt (VIS2): New option.
2416         * doc/invoke.texi: Document it.
2417         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2418         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2419         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2420         (define_attr type): New insn type 'edgen'.
2421         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2422         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2423         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2424         patterns.
2425         * niagara.md: Handle edgen.
2426         * niagara2.md: Likewise.
2427         * ultra1_2.md: Likewise.
2428         * ultra3.md: Likewise.
2429         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2430         to 0x200 when TARGET_VIS2.
2431         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2432         default when targetting capable cpus.  TARGET_VIS2 implies
2433         TARGET_VIS, clear and it when TARGET_FPU is disabled.
2434         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2435         (sparc_expand_builtin): Fix predicate indexing when builtin returns
2436         void.
2437         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2438         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2439         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2440         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2441         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2442         * doc/extend.texi: Document new VIS 2.0 builtins.
2443
2444 2011-09-29  Nick Clifton  <nickc@redhat.com>
2445             Bernd Schmidt  <bernds@codesourcery.com>
2446
2447         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2448         * config/frv/frvend.c: Likewise.
2449         * config/frv/frv.c (frv_function_prologue): Move misplaced
2450         CALL_ARG_LOCATION notes back to their proper locations.
2451
2452 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2453
2454         PR target/50566
2455         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2456         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2457         from avr_rtx_costs.
2458         (avr_legitimate_address_p): Use avr_edump to print log information
2459         filtered by avr_log.
2460         (extra_constraint_Q): Ditto.
2461         (avr_legitimize_address): Ditto.
2462         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
2463         (final_prescan_insn): Use avr_log.rtx_costs as filter.
2464
2465 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
2466
2467         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2468         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2469         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
2470         NEON vector and structure modes to be tied.
2471
2472 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2473
2474         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
2475         forward declaration.
2476         (remove_duplicate_close_phi): Detect and repair creation of
2477         duplicate close-phis for a containing loop.
2478
2479 2011-09-27   Andi Kleen <ak@linux.intel.com>
2480
2481         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
2482         /dev/urandom.  Add getpid call.
2483         (compare_debug_dump_opt_spec_function): Drop getpid call.
2484
2485 2011-09-26   Andi Kleen <ak@linux.intel.com>
2486
2487         * toplev.c (init_local_tick): Try reading random seed
2488         from /dev/urandom.
2489
2490 2011-09-26   Andi Kleen <ak@linux.intel.com>
2491
2492         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2493         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2494         Handle numerical random seed.
2495         * lto-streamer.h (lto_file_decl_data): Change id to
2496         unsigned HOST_WIDE_INT.
2497         * toplev.c (random_seed): Add.
2498         (init_random_seed): Change for numerical random seed.
2499         (get_random_seed): Return as HOST_WIDE_INT.
2500         (set_random_seed): Crc32 existing string.
2501         * toplev.h (get_random_seed): Change to numercal return.
2502         * tree.c (get_file_function_name): Remove CRC. Handle
2503         numerical random seed.
2504
2505 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2506
2507         PR target/50566
2508         * config.gcc (extra_objs): Add avr-log.o for $target in:
2509         avr-*-rtems*, avr-*-*.
2510         * config/avr/t-avr (avr-log.o): New rule to compile...
2511         * config/avr/avr-log.c: ...this new file.
2512         * config/avr/avr.opt (mlog=): New option.
2513         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2514         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2515         (avr_log_set_avr_log): New prototype.
2516         (avr_log_t): New typedef.
2517         (avr_log): New declaration.
2518         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2519
2520 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2521
2522         * expr.c (do_store_flag): Expand vector comparison by
2523         building an appropriate VEC_COND_EXPR.
2524         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2525         (c_objc_common_truthvalue_conversion): Adjust.
2526         * tree-vect-generic.c (do_compare): Helper function.
2527         (expand_vector_comparison): Check if hardware supports
2528         vector comparison of the given type or expand vector piecewise.
2529         (expand_vector_operation): Treat comparison as binary
2530         operation of vector type.
2531         (expand_vector_operations_1): Adjust.
2532
2533 2011-09-29  Richard Guenther  <rguenther@suse.de>
2534
2535         * tree.c (build_opaque_vector_type): Make opaque vectors
2536         variant types of the corresponding non-opaque type.  Make
2537         sure to share opaque vector types properly.
2538
2539 2011-09-29  David S. Miller  <davem@davemloft.net>
2540
2541         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2542         UNSPEC_ARRAY32): New unspec.
2543         (define_attr type): New type 'array'.
2544         (array{8,16,32}<P:mode>_vis): New patterns.
2545         * config/sparc/ultra1_2.md: Add reservations for 'array'.
2546         * config/sparc/ultra3.md: Likewise.
2547         * config/sparc/niagara.md: Likewise.
2548         * config/sparc/niagara2.md: Likewise.
2549         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2550         array builtins.
2551         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2552         __vis_array32): New.
2553         * doc/extend.texi: Document new VIS builtins.
2554
2555         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2556         (VIS pixel-compare insn): Just use <gcond:name>.
2557
2558         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2559         code iterator used, so just use <code>.  There are two mode iterators
2560         so explicitly use <GCM:gcm_name>.
2561
2562 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
2563
2564         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2565         Darwin >= 9.
2566
2567 2011-09-28  David S. Miller  <davem@davemloft.net>
2568
2569         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2570         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2571         (UNSPEC_FCMP): New unspec.
2572         (gcond): New code iterator.
2573         (gcond_name): New code attr.
2574         (GCM): New mode iterator.
2575         (gcm_name): New mode attr.
2576         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2577
2578 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
2579
2580         PR target/49486
2581         * config/sh/sh.md (negdi2): Move expansion into split to
2582         allow more combination options.  Add T_REG clobber.
2583         (abssi2): New expander.
2584         (*negdi2, *abssi2, *negabssi2): New insns.
2585         (cneg): Change from insn to insn_and_split.  Rename to
2586         negsi_cond.  Add alternative for non-SH4.
2587
2588 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
2589
2590         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2591         (neon_move_hi_quad_<mode>): Likewise.
2592         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2593
2594 2011-09-28  Nick Clifton  <nickc@redhat.com>
2595
2596         * config/rx/predicates.md (rx_minmax_operand): New predicate.
2597         Accepts immediates and a restricted subset of MEMs.
2598         * config/rx/rx.md (int_modes): New iterator.
2599         (smaxsi3, sminsi3): Delete and replace with...
2600         (smax<int_mode>3, smin<int_mode>3): New patterns.
2601         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2602
2603 2011-09-28  Richard Guenther  <rguenther@suse.de>
2604
2605         PR middle-end/50460
2606         * fold-const.c (try_move_mult_to_index): Handle &a.array the
2607         same as &a.array[0].
2608
2609 2011-09-28  Kai Tietz  <ktietz@redhat.com>
2610
2611         * configure.ac: Add test for new section attribute
2612         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2613         * config.in: Regenerated.
2614         * configure: Regenerated.
2615         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2616         new section flag "e" for excluded sections, if supported.
2617         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2618
2619 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2620
2621         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2622         throughout file.
2623
2624 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2625
2626         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2627         throughout file.
2628
2629 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
2630
2631         * output.h (SECTION_EXCLUDE): New macro.
2632         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2633
2634 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2635
2636         * fwprop.c (forward_propagate_and_simplify): After checking
2637         reg/subreg combinations, check whether the modes are the same.
2638
2639 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2640             Richard Sandiford  <rdsandiford@googlemail.com>
2641
2642         * config/mips/mips.c (mips_add_cfa_restore): New function.
2643         (mips16e_save_restore_reg): Use it.
2644         (mips_restore_reg): Likewise.  Split double FPRs for
2645         REG_CFA_RESTORE notes.
2646
2647 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2648
2649         PR middle-end/50386
2650         PR middle-end/50326
2651         * tree-sra.c (build_ref_for_model): Use the type of the field as
2652         the type of the COMPONENT_REF.
2653
2654 2011-09-27  Jeff Law  <law@redhat.com>
2655
2656         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
2657         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2658         (find_if_case_1): Use the probability of the THEN clause when
2659         determining if speculation is profitable.
2660         (find_if_case_2): Similarly for the ELSE clause.
2661
2662 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2663
2664         * common.opt: Add -foptimize-strlen option.
2665         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2666         (tree-sssa-strlen.o): Add dependencies.
2667         * opts.c (default_options_table): Enable -foptimize-strlen
2668         by default at -O2 if not -Os.
2669         * passes.c (init_optimization_passes): Add pass_strlen
2670         after pass_object_sizes.
2671         * timevar.def (TV_TREE_STRLEN): New timevar.
2672         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2673         * tree-pass.h (pass_strlen): Declare.
2674         * tree-ssa-strlen.c: New file.
2675         * c-decl.c (merge_decls): If compatible stpcpy prototype
2676         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2677
2678 2011-09-27  Tom de Vries  <tom@codesourcery.com>
2679
2680         PR middle-end/43864
2681         * tree-ssa-tail-merge.c: New file.
2682         (struct same_succ_def): Define.
2683         (same_succ, const_same_succ): New typedef.
2684         (struct bb_cluster_def): Define.
2685         (bb_cluster, const_bb_cluster): New typedef.
2686         (struct aux_bb_info): Define.
2687         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2688         (gvn_uses_equal): New function.
2689         (same_succ_print, same_succ_print_traverse, update_dep_bb)
2690         (stmt_update_dep_bb, local_def, same_succ_hash)
2691         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2692         (same_succ_reset): New function.
2693         (same_succ_htab, same_succ_edge_flags)
2694         (deleted_bbs, deleted_bb_preds): New var.
2695         (debug_same_succ): New function.
2696         (worklist): New var.
2697         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2698         (init_worklist, delete_worklist, delete_basic_block_same_succ)
2699         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2700         (print_cluster, debug_cluster, update_rep_bb)
2701         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2702         (all_clusters): New var.
2703         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2704         (merge_clusters, set_cluster): New function.
2705         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2706         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2707         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2708         (find_clusters_1, find_clusters): New function.
2709         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2710         (update_bbs): New var.
2711         (apply_clusters): New function.
2712         (update_debug_stmt, update_debug_stmts): New function.
2713         (tail_merge_optimize): New function.
2714         tree-pass.h (tail_merge_optimize): Declare.
2715         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2716         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2717         (tree-ssa-tail-merge.o): New rule.
2718         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2719         default at OPT_LEVELS_2_PLUS.
2720         * tree-ssa-sccvn.c (vn_valueize): Move to ...
2721         * tree-ssa-sccvn.h (vn_valueize): Here.
2722         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2723         * common.opt (ftree-tail-merge): New switch.
2724         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2725         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2726         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2727         (-ftree-tail-merge, max-tail-merge-comparisons)
2728         (max-tail-merge-iterations): New item.
2729
2730 2011-09-27  Jan Hubicka  <jh@suse.cz>
2731
2732         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2733
2734 2011-09-27  Jan Hubicka  <jh@suse.cz>
2735
2736         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2737         parameters passed by reference; handle loads from non-SSA scalars
2738         and update comments.
2739
2740 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2741
2742         PR rtl-optimization/50249
2743         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2744         instead of opnum and type.  All callers changed.  Remove useless
2745         declaration.
2746         Search forward for other reloads of the same type for the same operand
2747         using the same register; if any are found, return false.
2748         (reload_regs_reach_end_p): Same argument changes; all callers changed.
2749
2750 2011-09-27  Andi Kleen  <ak@linux.intel.com>
2751             Jan Hubicka  <jh@suse.cz>
2752
2753         * doc/invoke.texi (ffat-lto-objects): Document.
2754         * toplev.c (compile_file): Do not output assembly when doing slim lto;
2755         Output __gnu_slim_lto when doing slim lto.
2756         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2757         (cgraph_optimize): Return early when doing slim lto.
2758         * opts.c (finish_options): Complain about lack of linker plugin
2759         when doing slim lto.
2760         * common.opt (ffat-lto-objects): New.
2761
2762 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2763
2764         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2765         between signed and unsigned.
2766
2767 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
2768
2769         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2770         vectorization.
2771         (vectorizable_type_promotion): Likewise.
2772         (vect_analyze_stmt): Call vectorizable_type_demotion and
2773         vectorizable_type_promotion for basic blocks.
2774         (supportable_widening_operation): Don't assume loop vectorization.
2775         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
2776         basic blocks.  Update vectorization factor for basic block
2777         vectorization.
2778         (vect_analyze_slp_instance): Allow multiple types for basic block
2779         vectorization.  Recheck unrolling factor after construction of SLP
2780         instance.
2781
2782 2011-09-27  Richard Guenther  <rguenther@suse.de>
2783
2784         * tree-object-size.c (compute_object_sizes): Fix dumping of
2785         folded statement.
2786
2787 2011-09-27  Richard Guenther  <rguenther@suse.de>
2788
2789         PR tree-optimization/50363
2790         * tree-ssa-pre.c (create_expression_by_pieces): Handle
2791         pointer conversions in POINTER_PLUS_EXPRs properly.
2792
2793 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2794
2795         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2796         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2797         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2798         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2799         that produce subreg moves.  Define using VQX iterators.
2800
2801 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
2802
2803         * config/avr/avr.md (ashrqi3): Split alternative "n"
2804         into its remaining parts C03, C04, C05, C06, C07 and describe
2805         impact in CC by attribute "cc" appropriately.
2806         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2807         by digging RTX.
2808
2809 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2810
2811         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2812         from 3 x MAX_MACHINE_MODE.
2813         (CONSTM1_RTX): Define.
2814         * emit-rtl.c (const_tiny_rtx): Change into array of
2815         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2816         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2817         CONSTM1_RTX.
2818         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2819         MODE_VECTOR_INT modes.
2820         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2821         Optimize if one operand is CONSTM1_RTX.
2822         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2823         into mask | x.
2824
2825 2011-09-26  David S. Miller  <davem@davemloft.net>
2826
2827         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2828         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2829         * config/sparc/visintrin.h: Update edge and pixel-compare
2830         intrinsics to return 'long' instead of 'int'.
2831         * doc/extend.texi: Update documentation to match.
2832         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2833         flat, allow any instruction.  Otherwise, when V9 allow parallels
2834         which consist only of sets to registers outside of %o0 to %o5.
2835         (sparc_vis_init_builtins): Update VIS builtin types for edge
2836         and pixel-compare.
2837
2838         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2839         is enabled, mark %gsr as global.
2840         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2841         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2842
2843         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2844         which will now define __VIS and __VIS__ when -mvis is enabled.
2845         * config/sparc/t-sparc: Likewise.
2846         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2847         and add t-sparc to tmake_file for all sparc targets.
2848         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2849         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2850
2851         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2852         builtins for VIS vector addition and subtraction.
2853         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2854         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2855         __vis_fpsub32, __vis_fpsub32s): New.
2856         * doc/extend.texi: Document new VIS intrinsics.
2857
2858 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2859
2860         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2861         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2862         EQ/NE comparisons against +/-1 in the case of unused-after,
2863         non-ld-regs target.
2864
2865 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
2866
2867         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2868         gctx.into_ssa after push_gimplify_context.
2869
2870         * gimple.c (gimple_build_call_valist): New function.
2871         * gimple.h (gimple_build_call_valist): New prototype.
2872         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2873         (update_gimple_call): Likewise.
2874         (update_call_from_tree): Use finish_update_gimple_call.
2875         * tree-ssa-propagate.h (update_gimple_call): New prototype.
2876
2877 2011-09-26  Richard Guenther  <rguenther@suse.de>
2878
2879         PR tree-optimization/50472
2880         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2881         volatile references.
2882
2883 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
2884
2885         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2886         * target.def: (addr_space_subset_p): Likewise.
2887
2888 2011-09-26  Tom de Vries  <tom@codesourcery.com>
2889
2890         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2891         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2892         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2893         of new var.
2894
2895 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2896
2897         PR target/50465
2898         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2899         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2900         output_reload_insisf.
2901         (adjust_len): Set default to "no".
2902         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
2903         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2904         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2905         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2906         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2907         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2908         *lshrsi3_const): Set attribute "adjust_len".
2909         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2910         (output_movsisf): Don't pass insn to output_reload_insisf.
2911         (adjust_insn_length): Handle new alternatives to adjust_len.
2912         Remove handling of ADJUST_LEN_YES.  Clean-up code.
2913
2914 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
2915
2916         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2917         may_trap_p to detect loads that may trap of fault.
2918
2919 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2920
2921         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2922         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2923         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
2924         prototype.
2925         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2926         * config/avr/avr.c: Rename output_reload_insisf_1 to
2927         output_reload_in_const.
2928         (avr_popcount_each_byte): Handle SFmode, too.
2929         (output_reload_in_const): Change so it can handle HI loads, too.
2930         Use avr_popcount_each_byte to work out if scratch register must be
2931         created on the fly.
2932         (output_reload_inhi): Rewrite using output_reload_in_const and...
2933         (output_movhi): ...use it to print constants' loads.
2934         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2935
2936 2011-09-25  David S. Miller  <davem@davemloft.net>
2937
2938         * config/sparc/constraints.md (C, P, Z): New constraints for
2939         const_doube, const_int, and const_vector "all ones" values.
2940         Make unused constraint letters comment match reality.
2941         * config/sparc/predicates.md (const_all_ones_operand,
2942         register_or_zero_or_all_ones_operand): New predicates.
2943         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2944         as well as zero constants when VIS.
2945         (sparc_legitimate_constant_p): Likewise.
2946         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2947         (movsf_insn): Likewise
2948         (movdi_insn_sp64): Add fone alternative.
2949         (movdf_insn_sp32_v9): Likewise.
2950         (movdf_insn_sp64): Likewise.
2951
2952         * configure.ac: Add feature check to make sure the assembler
2953         supports the FMAF, HPC, and VIS 3.0 instructions found on
2954         Niagara-3 and later cpus.
2955         * configure: Rebuild.
2956         * config.in: Likewise.
2957         * config/sparc/sparc.opt: New option '-mfmaf'.
2958         * config/sparc/sparc.md: Add float fused multiply-add patterns.
2959         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2960         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
2961         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
2962         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
2963         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
2964         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
2965         disabled.
2966         (sparc_rtx_costs): Handle 'FMA'.
2967         * doc/invoke.texi: Document -mfmaf.
2968
2969 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
2970
2971         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
2972         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
2973         DECL_BY_REFERENCE parameters.
2974
2975 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2976
2977         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
2978         if there is no outgoing edge.
2979
2980         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
2981         integral types.
2982
2983 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2984
2985         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
2986         of vect_analyze_bb here.
2987         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
2988
2989 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2990
2991         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
2992         Allow not simple iv if analyzing basic block.
2993         (create_data_ref): Update call to dr_analyze_innermost.
2994         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
2995         * tree-loop-distribution.c (generate_memset_zero): Likewise.
2996         * tree-predcom.c (find_looparound_phi): Likewise.
2997         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
2998
2999 2011-09-24  David S. Miller  <davem@davemloft.net>
3000
3001         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
3002         (SPARC_GSR_REG): Define.
3003         (FIXED_REGISTERS): Mark GSR as fixed.
3004         (CALL_USED_REGISTERS): Mark GSR as call used.
3005         (HARD_REGNO_NREGS): GSR is always 1 register.
3006         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
3007         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
3008         (REGISTER_NAMES): Add "%gsr".
3009         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
3010         (UNSPEC_WRGSR): New unspec.
3011         (GSR_REG): New constant.
3012         (type): Add new insn type 'gsr'.
3013         (fpack16_vis, fpackfix_vis, fpack32_vis,
3014         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
3015         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
3016         rdgsr_v8plus): New expanders and insns.
3017         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
3018         using patterns which show that this is a plus in addition to a
3019         modification of GSR_REG, instead of an unspec.
3020         * config/sparc/ultra1_2.md: Handle 'gsr'.
3021         * config/sparc/ultra3.md: Likewise.
3022         * config/sparc/niagara.md: Likewise.
3023         * config/sparc/niagara2.md: Likewise.
3024         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
3025         end of table.
3026         (sparc_option_override): Make -mvis imply -mv8plus.
3027         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
3028         for %gsr.
3029         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
3030         __builtin_vis_read_gsr.
3031         (sparc_expand_buildin): Handle builtins that take one argument and
3032         return void.
3033         (sparc_fold_builtin): Never fold writes to %gsr.
3034         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
3035         * doc/extend.texi: Document new VIS intrinsics.
3036
3037 2011-09-23  Jan Hubicka  <jh@suse.cz>
3038
3039         * ipa-inline-transform.c (inline_call): Add comment.
3040         * ipa-inline.h (inline_param_summary): New structure and vector.
3041         (struct inline_edge_summary): Add param field.
3042         * ipa-inline-analysis.c (CHANGED): New constant.
3043         (add_clause): Handle CHANGED and NOT_CONSTANT.
3044         (predicate_probability): New function.
3045         (dump_condition): Dump CHANGED predicate.
3046         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
3047         of unknown function wide invariant.
3048         (evaluate_conditions_for_edge): Handle change probabilities.
3049         (inline_edge_duplication_hook): Copy param summaries.
3050         (inline_edge_removal_hook): Free param summaries.
3051         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3052         sizes; dump param summaries.
3053         (will_be_nonconstant_predicate): Use CHANGED predicate.
3054         (record_modified_bb_info): New structure.
3055         (record_modified): New function.
3056         (param_change_prob): New function.
3057         (estimate_function_body_sizes): Compute param summaries.
3058         (estimate_edge_size_and_time): Add probability argument.
3059         (estimate_node_size_and_time): Add inline_param_summary argument;
3060         handle predicate probabilities.
3061         (remap_predicate): Fix formating.
3062         (remap_edge_change_prob): New function.
3063         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3064         (remap_edge_predicates): ... this one.
3065         (inline_merge_summary): Remap edge summaries; handle predicate
3066         probabilities; remove param summaries after we are done.
3067         (do_estimate_edge_time): Update.
3068         (do_estimate_edge_growth): Update.
3069         (read_inline_edge_summary): Read param info.
3070         (inline_read_summary): Fix formating.
3071         (write_inline_edge_summary): Write param summaries.
3072
3073 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3074
3075         * config/i386/i386.c (ix86_print_operand): Handle %~.
3076         (ix86_print_operand_punct_valid_p): Return true also for '~'.
3077         * config/i386/sse.md (i128): New mode_attr.
3078         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3079         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3080         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3081         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3082         patterns, use "<sseinsnmode>" for "mode" attribute.
3083         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3084         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3085         %~128 in the patterns, use "OI" for "mode" attribute.
3086
3087 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3088
3089         PR target/50447
3090         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3091         "tstsi", "compare".
3092         (*cmpqi_sign_extend): Use s8_operand.
3093         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3094         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3095         prototypes.
3096         (out_tsthi, out_tstsi): Remove prototypes.
3097         (avr_out_tsthi, avr_out_tstsi): New prototypes.
3098         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3099         (avr_asm_len): Negative length now sets *plen to -length.
3100         (compare_sign_p): Return bool instead of int.
3101         (compare_diff_p, compare_eq_p): Ditto and make static.
3102         (avr_out_tsthi): New function.
3103         (avr_out_tstsi): New function.
3104         (avr_out_compare): New function.
3105         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3106         ADJUST_LEN_COMPARE.
3107
3108 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3109
3110         PR target/50447
3111         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3112         (addsi3): Rewrite using QI scratch register.  Adjust text
3113         peepholes using plus:SI.
3114         (*addsi3_zero_extend.hi): New insn.
3115         (*subsi3_zero_extend.hi): New insn.
3116         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3117         (*subsi3_zero_extend): Ditto.
3118         (subsi3): Change predicate #2 to register_operand.
3119         * config/avr/avr-protos.h (avr_out_plus): New prototype.
3120         (avr_out_plus_1): New static function.
3121         (avr_out_plus): New function.
3122         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3123
3124 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3125
3126         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3127         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3128
3129 2011-09-23  Ian Lance Taylor  <iant@google.com>
3130
3131         * godump.c (go_define): Treat a single character in single quotes,
3132         or a string, as an operand.
3133
3134 2011-09-23  Martin Jambor  <mjambor@suse.cz>
3135
3136         * ipa-prop.h (jump_func_type): Updated comments.
3137         (ipa_known_type_data): New type.
3138         (ipa_jump_func): Use it to describe known type jump functions.
3139         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3140         reflect the new known type jump function contents.
3141         (compute_known_type_jump_func): Likewise.
3142         (combine_known_type_and_ancestor_jfs): Likewise.
3143         (try_make_edge_direct_virtual_call): Likewise.
3144         (ipa_write_jump_function): Likewise.
3145         (ipa_read_jump_function): Likewise.
3146         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3147         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3148         (propagate_accross_jump_function): Likewise.
3149
3150 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3151
3152         PR target/50446
3153         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3154         (rotlqi3_4): Turn insn into expander.
3155         (*rotlqi3): New insn.
3156         (rotlhi3, rotlsi3): Support rotate left/right by 1.
3157         (*rotlhi2.1, *rotlhi2.15): New insns.
3158         (*rotlsi2.1, *rotlsi2.31): New insns.
3159         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3160
3161 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
3162
3163         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3164
3165 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3166
3167         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3168
3169 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3170
3171         * reload.c (find_reloads): Set operand_mode to Pmode for address
3172         operands consisting of just a CONST_INT.
3173
3174 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
3175
3176         PR target/50482
3177         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3178         blendv, force op_true to register if it doesn't satisfy
3179         nonimmediate_operand predicate.
3180
3181 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
3182
3183         PR middle-end/50113
3184         PR middle-end/50061
3185         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
3186         get the locate.where_pad value for register-only arguments.
3187         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
3188         (arm_pad_reg_upward): Handle null types.
3189
3190 2011-09-22  Jan Hubicka  <jh@suse.cz>
3191
3192         * ipa-inline-analysis.c: Fix overly long lines.
3193
3194 2011-09-22  Jan Hubicka  <jh@suse.cz>
3195
3196         * ipa-inline-transform.c (inline_call): Always update jump functions
3197         after inlining.
3198         * ipa-inline.c (ipa_inline): Likewise; do not call
3199         ipa_create_all_structures_for_iinln.
3200         (ipa_inline): Always free jump functions.
3201         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
3202         (remap_edge_predicates): Fix pasto.
3203         (inline_merge_summary): Remove nlined edge predicate; remove hack.
3204         (inline_analyze_function): Always initialize jump functions.
3205         (inline_generate_summary): Likewise.
3206         (inline_write_summary): Always write jump functions when ipa-cp
3207         is not doing that.
3208         (inline_read_summary): Always read jump functions when ipa-cp
3209         is not doing that.
3210         * ipa-prop.c (iinlining_processed_edges): Remove.
3211         (update_indirect_edges_after_inlining): Do not use
3212         iinlining_processed_edges; instead set param_index to -1.
3213         (propagate_info_to_inlined_callees): Only try to indirect inlining
3214         when asked to do so; update jump functions of indirect calls, too;
3215         remove jump functions of the inlined edge.
3216         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
3217         (ipa_create_all_structures_for_iinln): Remove.
3218         (ipa_free_all_structures_after_iinln): Do not free
3219         iinlining_processed_edges.
3220         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
3221
3222 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
3223
3224         * config/arm/predicates.md (expandable_comparison_operator): New
3225         predicate, extracted from...
3226         (arm_comparison_operator): ...here.
3227         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
3228         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
3229         (movdfcc): Use expandable_comparison_operator.
3230
3231 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
3232
3233         PR target/50447
3234         PR target/50465
3235         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
3236         (avr_popcount_each_byte): New prototype.
3237         * config/avr/avr.c (avr_popcount): New static function.
3238         (avr_popcount_each_byte): New function.
3239         (avr_out_bitop): New function.
3240         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
3241         avr_out_bitop.  Cleanup code.
3242         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
3243         (Ca4, Co4, Cx4): New constraints.
3244         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
3245         alternative.
3246         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
3247         (andsi3, iorsi3, xorsi3): Ditto.
3248         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
3249
3250 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
3251
3252         PR tree-optimization/50451
3253         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
3254         constant operands in reduction.
3255         (vect_get_slp_defs): Don't create vector operand for NULL scalar
3256         operand.
3257
3258 2011-09-22  David S. Miller  <davem@davemloft.net>
3259
3260         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
3261         fpack16, fpack32, fpackfix as const.
3262
3263         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
3264         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
3265         constants.  Use them everywhere.
3266
3267 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
3268
3269         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
3270         Added AND special case.  Adapted comments.
3271         (sh_rtx_costs): Added XOR and IOR case.
3272
3273 2011-09-21  Jan Hubicka  <jh@suse.cz>
3274
3275         * ipa-inline-analsis.c (compute_inline_parameters): Set
3276         cfun and current_function_decl.
3277
3278 2011-09-21  Jan Hubicka  <jh@suse.cz>
3279
3280         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
3281         handled components in parameter of builtin_constant_p.
3282         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
3283
3284 2011-09-21  Jan Hubicka  <jh@suse.cz>
3285
3286         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
3287         * ipa-inline.h (estimate_edge_time): Fix pasto.
3288         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
3289
3290 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3291
3292         * config/i386/i386.c (ix86_expand_sse_movcc): Use
3293         blendvps, blendvpd and pblendvb if possible.
3294
3295 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
3296
3297         PR target/50464
3298         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
3299         operand 1 predicate to register_operand and operand 2 predicate
3300         to nonimmediate_operand.
3301         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3302         xop_pcmov, force op_true to register.  Also, force op_false to
3303         register if it doesn't satisfy nonimmediate_operand predicate.
3304
3305 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3306
3307         * config/i386/bmi2intrin.h (_mulx_u64): New.
3308         (_mulx_u32): Ditto.
3309
3310 2011-09-21  Jan Hubicka  <jh@suse.cz>
3311
3312         PR tree-optimization/50433
3313         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
3314         Use get_base_address.
3315
3316 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3317
3318         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
3319         nonimmediate_operand instead of register_operand predicate for operands
3320         1 and 2, force them into registers if expanding them as comparison.
3321         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
3322         V8HImode force into register just operand 1.
3323
3324 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3325
3326         PR target/45099
3327         * config/avr/avr.c (avr_function_arg_advance): Change error to
3328         warning if a fixed register is needed as function argument.
3329
3330 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3331
3332         PR target/50449
3333         PR target/50465
3334         * config/avr/avr.md (adjust_len): New insn attribute.
3335         (*reload_insi, *reload_insf): Use it.
3336         (*movsi, *movsf): Use new interface of output_movsisf.
3337         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3338         * config/avr/avr.c (output_movsisf): Ditto.
3339         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3340         lengths of insns *reload_insi, *reload_insf.
3341         (output_reload_insisf_1): New static function.
3342         (output_reload_insisf): Use it.
3343
3344 2011-09-21  David S. Miller  <davem@davemloft.net>
3345
3346         * config/sparc/sparc.c (def_builtin): Change from macro into function.
3347         (def_builtin_const): New.
3348         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3349         other than alignaddr and falignaddr.
3350
3351         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3352         UNSPEC_FCMPEQ): New unspec codes.
3353         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3354         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3355         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3356         new pixel compare VIS patterns.
3357         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3358         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3359         __vis_fcmpeq16, __vis_fcmpeq32): New.
3360         * doc/extend.texi: Document new pixel compare VIS intrinsics.
3361
3362 2011-09-21  Tom de Vries  <tom@codesourcery.com>
3363
3364         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3365
3366 2011-09-20  David S. Miller  <davem@davemloft.net>
3367
3368         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3369         (aligneddrl<P:mode>_vis): New pattern.
3370         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3371         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3372         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3373         alignaddrl insn, and adjust edge operations for updated types.
3374         * config/sparc/visintrin.h: Likewise.
3375         * doc/extend.texi: Make typing in VIS documentation match reality.
3376
3377 2011-09-20  Terry Guo  <terry.guo@arm.com>
3378
3379         * config/arm/arm-arches.def: Add armv6s-m.
3380         * config/arm/arm-tables.opt: Regenerate.
3381
3382 2011-09-20  Wei Guozhi  <carrot@google.com>
3383
3384         PR rtl-optimization/49452
3385         * postreload.c (reload_combine): Invalidate use information when across
3386         volatile insn.
3387
3388 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
3389
3390         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3391         Remove maintenance overhead.
3392         (haifa_sched_init, sched_finish): Update.
3393
3394 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3395
3396         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3397         to calculate unit, prefix_rep and prefix_data16 attributes.
3398         (*mov<mode>_internal): Ditto for unit attribute.
3399         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3400         (*movv2sf_internal): Ditto.
3401         * config/i386/sse.md (VI1248_256): Remove mode iterator.
3402         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3403         (*avx2_eq<mode>3): Ditto.
3404         (avx2_gt<mode>3): Ditto.
3405
3406 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3407
3408         * config/i386/i386.md (maxmin): New code iterator.
3409         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3410         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3411         code iterator.
3412         (*avx2_<maxmin:code><mode>3): Macroize isn from
3413         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3414         maxmin code iterator.
3415         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3416         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3417         <umaxmin:code>v16qi3.
3418
3419 2011-09-19  Alan Modra  <amodra@gmail.com>
3420             Michael Meissner  <meissner@linux.vnet.ibm.com>
3421
3422         PR target/50341
3423         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3424         split the load of the indirect function's TOC from the call to
3425         prevent the compiler from moving the load of the new TOC above
3426         code that references the current function's TOC.
3427         (call_indirect_aix<ptrsize>_internal): Ditto.
3428         (call_indirect_aix<ptrsize>_nor11): Ditto.
3429         (call_indirect_aix<ptrsize>_internal2): Ditto.
3430         (call_value_indirect_aix<ptrsize>): Ditto.
3431         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3432         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3433         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3434
3435 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
3436
3437         * config/i386/sse.md (*sse4_1_extractps): Change into
3438         define_insn_and_split, add =x 0 n and =x x n alternatives
3439         and split them after reload.
3440
3441 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3442
3443         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3444
3445 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3446
3447         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3448
3449 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
3450
3451         PR tree-optimization/50413
3452         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3453         a basic block if one of its data-refs can't be analyzed.
3454
3455 2011-09-19  Paul Brook  <paul@codesourcery.com>
3456
3457         * config/arm/predicates.md (shift_amount_operand): Check constant
3458         shift count is in range.
3459         (const_shift_operand): Remove.
3460
3461 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3462             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3463
3464         PR target/50091
3465         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3466         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3467
3468 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3469
3470         * config/i386/bmiintrin.h: Remove tmp.
3471         * config/i386/tbmintrin.h: Likewise.
3472
3473 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3474
3475         PR tree-optimization/50414
3476         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3477         MIN_EXPR.
3478
3479 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3480
3481         PR tree-optimization/50412
3482         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3483         acceses that require epilogue loop if vectorizing outer loop.
3484
3485 2011-09-17  David S. Miller  <davem@davemloft.net>
3486
3487         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3488         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3489         New unspecs.
3490         (define_attr type): New type 'edge'.
3491         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3492         edge32l_vis): New patterns.
3493         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3494         * config/sparc/ultra3.md: Likewise.
3495         * config/sparc/niagara.md: Likewise.
3496         * config/sparc/niagara2.md: Likewise.
3497         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3498         builtins for VIS edge instructions.
3499         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3500         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3501         intrinsics.
3502         (__v8qi, __v4qi): Make unsigned.
3503         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3504         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3505         __vis_fpack32): Fix types.
3506         * doc/extend.texi: Document new 'edge' VIS intrinsics.
3507
3508         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3509         divide costs.
3510         (niagara3_costs): New.
3511         (sparc_option_override): Use it.
3512         * gcc/config/sparc/niagara2.md: Adjust with more accurate
3513         Niagara-3 reservations.
3514
3515 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
3516
3517         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3518         (sse2_avx, sseinsnmode): Add V2TI.
3519         (REDUC_SMINMAX_MODE): New mode iterator.
3520         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3521         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3522         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3523         (sse2_lshrv1ti3): Rename to...
3524         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
3525         iterator.  Move before umaxmin expanders.
3526         * config/i386/i386.h (VALID_AVX256_REG_MODE,
3527         SSE_REG_MODE_P): Accept V2TImode.
3528         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3529         V16HImode, V8SImode and V4DImode.
3530
3531         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3532         and V4DImode.
3533         (ix86_build_signbit_mask): Likewise.
3534         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
3535         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3536         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3537         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3538         (<code><mode>3) ... this.
3539         (avx2_<code><mode>3 smaxmin expand): Rename to...
3540         (<code><mode>3) ... this.
3541         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3542         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3543         VI8_AVX2 mode iterator.
3544         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3545         VI8_AVX2 mode iterator.
3546         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3547         New expanders.
3548
3549 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
3550
3551         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3552         throughout file.
3553
3554 2011-09-16  David S. Miller  <davem@davemloft.net>
3555
3556         * config/sparc/visintrin.h: New file.
3557         * config.gcc: Add it to extra_headers on sparc.
3558
3559 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
3560
3561         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3562         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
3563         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3564         reduc_smin_v4sf): Adjust callers.
3565         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3566         New expanders.
3567
3568         * config/i386/sse.md (vec_extract_hi_<mode>,
3569         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3570         vextracti128 instead of vextractf128 for -mavx2 and
3571         integer vectors.  For V4DFmode fix up mode attribute.
3572         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3573         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3574         instead of V8SF mode attribute.
3575         (avx2_extracti128): Change into define_expand.
3576         * config/i386/i386.c (ix86_expand_vector_extract): Handle
3577         32-byte vector modes if TARGET_AVX.
3578
3579 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3580
3581         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3582         (umulqi3_highpart, smulqi3_highpart): Ditto.
3583         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3584         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3585         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3586
3587 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3588
3589         PR target/50358
3590         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3591         (*maddqi4, *maddqi4.const): New insns.
3592         (*msubqi4, *msubqi4.const): New insns.
3593         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3594         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
3595         HImode by 1 in the case of multiplying with a CONST_INT.
3596         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3597
3598 2011-09-15   Jan Hubicka  <jh@suse.cz>
3599
3600         PR lto/50430
3601         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3602         error_mark_node in the DECL_INITIAL of vtable.
3603
3604 2011-09-15   Diego Novillo  <dnovillo@google.com>
3605
3606         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3607         @SYSROOT_CFLAGS_FOR_TARGET@.
3608         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3609         * configure: Regenerate.
3610         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3611         Remove setting of GCC_UNDER_TEST.
3612
3613 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
3614
3615         * config/i386/i386.c (output_fp_compare): Return %v prefixed
3616         instruction mnemonics for TARGET_AVX.
3617
3618         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3619         "type" attribute calculation.
3620         (*movdf_internal): Ditto.
3621         (*movsf_internal): Ditto.
3622
3623 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
3624
3625         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3626
3627 2011-09-15  Jason Merrill  <jason@redhat.com>
3628
3629         PR c++/50361
3630         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3631
3632 2011-09-15  Jan Hubicka  <jh@suse.cz>
3633
3634         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3635         simplify obviously true clauses.
3636         (and_predicates, or_predicates): Add conditions parameter.
3637         (inline_duplication_hoook): Update.
3638         (mark_modified): New function.
3639         (unmodified_parm): New function.
3640         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3641         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3642         Use unmodified_parm.
3643         (estimate_function_body_sizes): Update.
3644         (remap_predicate): Update.
3645
3646 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
3647
3648         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3649         read-after-read dependencies in basic block SLP.
3650
3651 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3652
3653         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3654         throughout file.
3655
3656 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3657
3658         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3659         throughout file.
3660
3661 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3662
3663         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3664         throughout file.
3665
3666 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3667
3668         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3669         throughout file.
3670         * config/rs6000/constraints.md: Likewise.
3671
3672 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3673
3674         * config/microblaze/microblaze.md: Use match_test rather than
3675         eq/ne symbol_ref throughout file.
3676
3677 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3678
3679         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3680         throughout file.
3681
3682 2011-09-14  Tom de Vries  <tom@codesourcery.com>
3683
3684         PR middle-end/50251
3685         * explow.c (emit_stack_restore): Set crtl->need_drap if
3686         stack_restore is emitted.
3687
3688 2011-09-14  Julian Brown  <julian@codesourcery.com>
3689
3690         * config/arm/arm.c (arm_override_options): Add unaligned_access
3691         support.
3692         (arm_file_start): Emit attribute for unaligned access as appropriate.
3693         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3694         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3695         (insv, extzv): Add unaligned-access support.
3696         (extv): Change to expander. Likewise.
3697         (extzv_t1, extv_regsi): Add helpers.
3698         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3699         (unaligned_storesi, unaligned_storehi): New.
3700         (*extv_reg): New (previous extv implementation).
3701         * config/arm/arm.opt (munaligned_access): Add option.
3702         * config/arm/constraints.md (Uw): New constraint.
3703         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3704         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3705         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3706         volatile accesses when -fstrict-volatile-bitfields is in effect.
3707         (extract_bit_field_1): Likewise.
3708
3709 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
3710
3711         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3712         a scalar integer before applying integer-only optimisations to
3713         inner arithmetic.
3714
3715 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
3716
3717         * config/mips/mips.c (mips_expand_epilogue): Generate a
3718         simple_return only if the return address is in r31.
3719
3720 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3721
3722         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3723         NULL for a jump that is a cc0 insn, pick the previous insn for
3724         move_before.
3725
3726 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3727
3728         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3729         throughout file.
3730
3731 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3732
3733         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3734         throughout file.
3735
3736 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3737
3738         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3739         symbol_ref throughout file.
3740
3741 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3742
3743         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3744         throughout file.
3745
3746 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3747
3748         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3749         throughout file.
3750
3751 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3752
3753         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3754         throughout file.
3755         * config/arm/neon.md: Likewise.
3756         * config/arm/vfp.md: Likewise.
3757         * config/arm/thumb2.md: Likewise.
3758         * config/arm/cortex-m4.md: Likewise.
3759
3760 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3761
3762         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3763         define_insn patterns for combine.
3764
3765 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
3766
3767         * reorg.c: Always define make_return_insns.
3768
3769 2011-09-13  Jan Hubicka  <jh@suse.cz>
3770
3771         PR other/49533
3772         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3773
3774 2011-09-13  Jan Hubicka  <jh@suse.cz>
3775
3776         PR other/49533
3777         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
3778
3779 2011-09-13  Paul Brook  <paul@codesourcery.com>
3780
3781         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3782         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3783         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3784         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3785         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3786         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3787         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3788         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3789         enabling unwind tables.
3790         (c6x_debug_unwind_info): New function.
3791         (TARGET_ARM_EABI_UNWINDER): Define.
3792         (TARGET_DEBUG_UNWIND_INFO): Define.
3793         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3794         (TARGET_EXTRA_CFI_SECTION): Remove.
3795         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3796         * ginclude/unwind-arm-common.h: New file.
3797
3798 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
3799
3800         PR target/50358
3801         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3802         * config/avr/avr.md: (extend_s): New code attribute.
3803         (mul_r_d): New code attribute.
3804         (*maddqihi4, *umaddqihi4): New insns.
3805         (*msubqihi4, *umsubqihi4): New insns.
3806         (*usmaddqihi4, *sumaddqihi4): New insns.
3807         (*usmsubqihi4, *susubdqihi4): New insns.
3808         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3809         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3810         (*umsubqihi4.uconst.ashift): New insn-and-split.
3811         (*msubqihi4.sconst.ashift): New insn-and-split.
3812         (*sumaddqihi4.uconst): New insn-and-split.
3813         (*sumsubqihi4.uconst): New insn-and-split.
3814         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3815         PLUS:HI and MINUS:HI.
3816
3817 2011-09-13  Revital Eres  <revital.eres@linaro.org>
3818
3819         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3820         (optimize_sc): Adjust call to remove_node_from_ps.
3821         (sms_schedule): Add print info.
3822
3823 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3824
3825         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3826         flags specially.
3827
3828 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3829
3830         PR bootstrap/50010
3831         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3832         NOTE_INSN_CFI notes, with the exception of
3833         NOTE_INSN_SWITCH_TEXT_SECTIONS.
3834
3835 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3836             Richard Sandiford  <rdsandiford@googlemail.com>
3837
3838         * config/mips/mips.c (mips_epilogue): New structure.
3839         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3840         restoring registers.
3841         (mips_epilogue_emit_cfa_restores): New function.
3842         (mips_epilogue_set_cfa): Likewise.
3843         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
3844         the current CFA register from the stack, redefine the CFA in terms
3845         of the stack pointer.
3846         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
3847         to the epilogue instructions.
3848
3849 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
3850
3851         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3852         argument.
3853         (mips16e_build_save_restore): Update accordingly.
3854
3855 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3856
3857         PR rtl-optimization/50212
3858         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3859         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3860
3861         PR debug/50299
3862         * calls.c (load_register_parameters): Use use_reg_mode instead
3863         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3864         entry.
3865         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3866         for stack CALL_INSN_FUNCTION_USAGE uses.
3867         * expr.h (use_reg_mode): New prototype.
3868         (use_reg): Changed into inline around use_reg_mode.
3869         * expr.c (use_reg): Renamed to...
3870         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
3871         mode to that mode instead of VOIDmode.
3872         * var-tracking.c (prepare_call_arguments): Don't track parameters
3873         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3874         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
3875         EXPR_LIST mode.
3876
3877 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
3878
3879         PR target/43746
3880         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3881         (progmem_section): New Variable.
3882         (avr_asm_init_sections): Initialize it.
3883         (TARGET_ASM_SELECT_SECTION): Define to...
3884         (avr_asm_select_section): ... this new Function.
3885         (avr_replace_prefix): New Function.
3886         (avr_asm_function_rodata_section): Use it.
3887         (avr_insert_attributes): Don't add section attribute for PROGMEM.
3888         (avr_section_type_flags): Use avr_progmem_p instead of section
3889         name to detect if object is in PROGMEM.
3890         (avr_asm_named_section): Set section name prefix for objects in
3891         PROGMEM.
3892
3893 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3894
3895         PR bootstrap/50352
3896         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3897         sprintf format string.
3898
3899 2011-09-12  Richard Guenther  <rguenther@suse.de>
3900
3901         PR tree-optimization/50343
3902         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3903         that the reduction is over an SSA name before checking its definition.
3904
3905 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3906
3907         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3908         throughout file.
3909
3910 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3911
3912         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3913         throughout file.
3914         * config/mips/sb1.md: Likewise.
3915         * config/mips/predicates.md: Replace (match_test "!...")
3916         with (not (match_test "..."))
3917         * config/mips/constraints.md: Likewise.
3918
3919 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
3920
3921         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3922         * config/arm/arm-tables.opt: Regenerate.
3923         * config/arm/arm-tune.md: Regenerate.
3924         * config/arm/arm.c (arm_file_start): Output .arch directive when
3925         user passes -mcpu=generic-*.
3926         (arm_issue_rate): Add genericv7a support.
3927         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3928         (ASM_CPU_SPEC): New define.
3929         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3930         * config/arm/semi.h (ASM_SPEC): Likewise.
3931         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3932         and -mtune=generic-*.
3933
3934 2011-09-09  Richard Guenther  <rguenther@suse.de>
3935
3936         PR tree-optimization/50328
3937         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3938         constant or default-def operand.
3939
3940 2011-09-09  Richard Guenther  <rguenther@suse.de>
3941
3942         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3943         last statement.
3944
3945 2011-09-09  Richard Guenther  <rguenther@suse.de>
3946
3947         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3948         instead of a statement.
3949         * gimple-fold.c (fold_stmt_inplace): Likewise.
3950         * sese.c (graphite_copy_stmts_from_block): Adjust.
3951         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3952         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3953         fold_stmt.
3954         (forward_propagate_addr_into_variable_array_index): Likewise.
3955         (forward_propagate_addr_expr_1): adjust.
3956         (associate_plusminus): Likewise.
3957         (ssa_forward_propagate_and_combine): Likewise.
3958         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3959         (execute_cse_reciprocals): Likewise.
3960         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
3961
3962 2011-09-09  Nick Clifton  <nickc@redhat.com>
3963
3964         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
3965         Return a positive value to indicate that the bits at the
3966         bottom of the register should be cleared.
3967
3968 2011-09-09  Richard Guenther  <rguenther@suse.de>
3969
3970         * tree-ssa-operands.c (swap_tree_operands): Always adjust
3971         existing operand positions.
3972
3973 2011-09-09  Richard Guenther  <rguenther@suse.de>
3974
3975         PR middle-end/50333
3976         * tree-data-ref.c (split_constant_offset): Do not try to handle
3977         ternary ops.
3978
3979 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
3980
3981         PR tree-optimization/50318
3982         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
3983         typo in use of mult_rhs1 and mult_rhs2.
3984
3985 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
3986
3987         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
3988         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
3989
3990 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
3991
3992         * config/arm/arm.md (push_multi): Emit predicates.
3993         (push_fp_multi): Likewise.
3994         * config/arm/arm.c (vfp_output_fstmd): Likewise.
3995
3996 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3997
3998         PR c++/33255 - Support -Wunused-local-typedefs warning
3999         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
4000         (pushdecl): Use the new record_locally_defined_typedef.
4001         (store_parm_decls): Allocate cfun->language.
4002         (finish_function): Use the new maybe_warn_unused_local_typedefs,
4003         and free cfun->language.
4004         (c_push_function_context): Allocate cfun->language here only if needed.
4005         (c_pop_function_context): Likewise, mark cfun->language
4006         for collection only when it should be done.
4007         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
4008         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
4009         maybe_record_local_typedef_use.
4010         * doc/invoke.texi: Update documentation for
4011         -Wunused-local-typedefs.
4012
4013 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
4014
4015         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
4016         (ix86_avoid_lea_for_add): Likewise.
4017         (ix86_avoid_lea_for_addr): Likewise.
4018         (ix86_split_lea_for_addr): Likewise.
4019
4020         * config/i386/i386.c (LEA_MAX_STALL): New.
4021         (increase_distance): Likewise.
4022         (insn_defines_reg): Likewise.
4023         (insn_uses_reg_mem): Likewise.
4024         (distance_non_agu_define_in_bb): Likewise.
4025         (distance_agu_use_in_bb): Likewise.
4026         (ix86_lea_outperforms): Likewise.
4027         (ix86_ok_to_clobber_flags): Likewise.
4028         (ix86_avoid_lea_for_add): Likewise.
4029         (ix86_avoid_lea_for_addr): Likewise.
4030         (ix86_split_lea_for_addr): Likewise.
4031         (distance_non_agu_define): Search in pred BBs added.
4032         (distance_agu_use): Search in succ BBs added.
4033         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
4034         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
4035         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
4036
4037         * config/i386/i386.md: Split added to transform non destructive
4038         add into move and add.
4039         (lea_1): transformed into insn_and_split to avoid AGU stalls.
4040         (lea<mode>_2): Likewise.
4041
4042 2011-09-08  Martin Jambor  <mjambor@suse.cz>
4043
4044         PR tree-optimization/50287
4045         * ipa-split.c (split_function): Do not create SSA names for
4046         non-gimple-registers.
4047
4048 2011-09-08  Richard Guenther  <rguenther@suse.de>
4049
4050         PR tree-optimization/19831
4051         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4052         skip builtins with vdefs that do not really store something.
4053         (propagate_necessity): For calls to free that we can associate
4054         with an allocation function do not mark the freed pointer
4055         definition necessary.
4056         (eliminate_unnecessary_stmts): Remove a call to free if
4057         the associated call to an allocation function is not necessary.
4058
4059 2011-09-08  Richard Guenther  <rguenther@suse.de>
4060
4061         PR tree-optimization/19831
4062         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4063         allocation functions as necessary.
4064
4065 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
4066
4067         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4068         cut from ...
4069         (darwin_default_min_version): Amended to provide defaults
4070         for the cross directory case.
4071         (darwin_driver_init): call darwin_default_min_version unconditionally.
4072         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4073         * config/darwin9.h: Likewise.
4074         * config/darwin10.h: Likewise.
4075         * config/rs6000/darwin7.h: Likewise.
4076
4077 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
4078
4079         PR target/50310
4080         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4081         code early if TARGET_AVX.
4082         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4083
4084 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4085
4086         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4087         duplicates.
4088
4089         PR target/50310
4090         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4091         "mode" attribute computation.
4092
4093 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
4094
4095         * regrename.c (struct du_head): Make nregs signed.
4096         (closed_chains): Remove.
4097         (create_new_chain): Return the new chain.
4098         (chain_from_id): New static function.
4099         (dump_def_use_chain): Change argument to be an int, indicating
4100         the first ID to print.  All callers changed.
4101         (merge_overlapping_regs): Use chain_from_id.  Assert that
4102         chains don't conflict with themselves.
4103         (rename_chains): Take no argument.  Iterate over id_to_chain
4104         rather to find chains to rename.  Clear tick before the main loop.
4105         (struct incoming_reg_info): New struct.
4106         (struct bb_rename_info): New struct.
4107         (init_rename_info, set_incoming_from_chain, merge_chains): New
4108         static functions.
4109         (regrename_analyze): New static function, broken out of
4110         regrename_optimize.  Record and make use of open chain information
4111         at basic block boundaries, and merge chains where possible.
4112         (scan_rtx_reg): Make this_nregs signed.  Don't update
4113         closed_chains.
4114         (build_def_use): Return a bool to indicate success.  All callers
4115         changed.  Don't initialize global data here.
4116         (regrename_optimize): Move most code out of here into
4117         regrename_analyze.
4118         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4119         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4120         static inline functions.
4121         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4122
4123         * bb-reorder.c (insert_section_boundary_note): Don't check
4124         optimize_function_for_speed_p.
4125         (gate_handle_partition_blocks): Do it here instead.
4126         (gate_handle_reorder_blocks): Move preliminary checks here ...
4127         (rest_of_handle_reorder_blocks): ... from here.
4128
4129 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4130
4131         PR middle-end/50301
4132         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4133         function index bounds.
4134         (perhaps_add_new_callers): Likewise.
4135
4136 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4137
4138         PR tree-optimization/49911
4139         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4140         enumerations to the corresponding plain integer type.
4141
4142 2011-09-07  Richard Guenther  <rguenther@suse.de>
4143
4144         PR tree-optimization/50319
4145         * tree-if-conv.c (set_bb_predicate): Assert we only set
4146         canonical predicates.
4147         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
4148         around canonical predicates.
4149         (predicate_bbs): Do not re-gimplify already canonical
4150         predicates.  Properly unshare them though.
4151         (find_phi_replacement_condition): Simplify.
4152
4153 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
4154
4155         PR target/49030
4156         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4157         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4158         reusing the old code from get_arm_condition_code.  Return ARM_NV
4159         for invalid comparison codes.
4160         (get_arm_condition_code): Redefine in terms of
4161         maybe_get_arm_condition_code.
4162         * config/arm/predicates.md (arm_comparison_operator): Use
4163         maybe_get_arm_condition_code.
4164
4165 2011-09-07  Richard Guenther  <rguenther@suse.de>
4166
4167         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4168         Canonicalize negated predicates by swapping edges.
4169         (forward_propagate_into_cond): Likewise.
4170
4171 2011-09-07  Richard Guenther  <rguenther@suse.de>
4172
4173         PR tree-optimization/50213
4174         * tree-flow.h (simple_iv_increment_p): Declare.
4175         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
4176         POINTER_PLUS_EXPR.
4177         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4178         not propagate simple IV counter increments.
4179
4180 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
4181             Iain Sandoe  <iains@gcc.gnu.org>
4182
4183         * config/rs6000/rs6000.c (compute_save_world_info): Test
4184         cfun->has_nonlocal_label to determine if the out-of-line save
4185         world call may be used.
4186
4187 2011-09-07  Nick Clifton  <nickc@redhat.com>
4188
4189         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
4190         label on the parallel part of the insn.
4191
4192 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4193
4194         PR debug/50191
4195         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
4196         avoid_constant_pool_reference first instead of last.
4197
4198 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4199
4200         * doc/configfiles.texi (Configuration Files): Update documentation
4201         about tm_p.h and remove FIXME comment.
4202
4203 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
4204
4205         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
4206         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
4207
4208 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
4209
4210         * config/darwin10.h Remove duplicate LIB_SPEC.
4211
4212 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
4213
4214         PR middle-end/44382
4215         * target.def (reassociation_width): New hook.
4216
4217         * doc/tm.texi.in (reassociation_width): Likewise.
4218
4219         * doc/tm.texi (reassociation_width): Likewise.
4220
4221         * doc/invoke.texi (tree-reassoc-width): New param documented.
4222
4223         * hooks.h (hook_int_uint_mode_1): New default hook.
4224
4225         * hooks.c (hook_int_uint_mode_1): Likewise.
4226
4227         * config/i386/i386.h (ix86_tune_indices): Add
4228         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4229
4230         (TARGET_REASSOC_INT_TO_PARALLEL): New.
4231         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
4232
4233         * config/i386/i386.c (initial_ix86_tune_features): Add
4234         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4235
4236         (ix86_reassociation_width): New function.
4237
4238         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
4239
4240         * tree-ssa-reassoc.c (get_required_cycles): New function.
4241         (get_reassociation_width): Likewise.
4242         (swap_ops_for_binary_stmt): Likewise.
4243         (rewrite_expr_tree_parallel): Likewise.
4244
4245         (rewrite_expr_tree): Refactored.  Part of code moved into
4246         swap_ops_for_binary_stmt.
4247
4248         (reassociate_bb): Now checks reassociation width to be used and
4249         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
4250
4251 2011-09-06  Richard Guenther  <rguenther@suse.de>
4252
4253         PR tree-optimization/47025
4254         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
4255         uses nothing.
4256         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
4257         BUILT_IN_FREE.
4258         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
4259         definitely points to.
4260         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4261         BUILT_IN_VA_START doesn't let its va_list argument escape.
4262         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
4263         not make any previous stores necessary.
4264
4265 2011-09-06  Martin Jambor  <mjambor@suse.cz>
4266
4267         * ipa-inline.h (struct inline_summary): Move versionable flag...
4268         * cgraph.h (struct cgraph_local_info): ...here
4269         * ipa-cp.c (determine_versionability): Use the new versionable flag.
4270         (determine_versionability): Likewise.
4271         (ipcp_versionable_function_p): Likewise.
4272         (ipcp_generate_summary): Likewise.
4273         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
4274         versionable flag.
4275         (compute_inline_parameters): Do not clear the versionable flag.
4276         (inline_read_section): Do not stream the versionable flag.
4277         (inline_write_summary): Likewise.
4278         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
4279         (input_overwrite_node): Likewise.
4280
4281 2011-09-06  Richard Guenther  <rguenther@suse.de>
4282
4283         PR tree-optimization/48149
4284         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
4285         (vn_valueize): Move earlier.
4286         (valueize_expr): Use vn_valueize.
4287         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
4288         operands.
4289         (simplify_unary_expression): Simplify.
4290
4291 2011-09-06  Richard Guenther  <rguenther@suse.de>
4292
4293         PR tree-optimization/48317
4294         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
4295         trailing array.
4296         (sizeof_vn_nary_op): New inline function.
4297         (vn_nary_op_lookup_pieces): Adjust.
4298         (vn_nary_op_insert_pieces): Likewise.
4299         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
4300         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
4301         any number of operands.
4302         (vn_nary_length_from_stmt): New function.
4303         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
4304         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
4305         sized temporary.
4306         (vn_nary_op_lookup): Likewise.
4307         (vn_nary_op_lookup_stmt): Likewise.
4308         (vn_nary_op_insert_into): Likewise.
4309         (vn_nary_op_insert_stmt): Likewise.
4310         (visit_use): Handle CONSTRUCTOR as nary.
4311         * tree-ssa-pre.c (phi_translate_1): Adjust.
4312         (create_expression_by_pieces): Likewise.
4313         (compute_avail): Likewise.
4314
4315 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
4316
4317          * config/arm/arm.c (arm_preferred_simd_mode): Check
4318         TARGET_NEON_VECTORIZE_DOUBLE instead of
4319         TARGET_NEON_VECTORIZE_QUAD.
4320         (arm_autovectorize_vector_sizes): Likewise.
4321         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
4322         mask of mvectorize-with-neon-double.  Add RejectNegative.
4323         (mvectorize-with-neon-double): New.
4324
4325 2011-09-06  Richard Guenther  <rguenther@suse.de>
4326
4327         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
4328
4329 2011-09-06  Tom de Vries  <tom@codesourcery.com>
4330
4331         * recog.c (asm_labels_ok): New function.
4332         (check_asm_operands): Use asm_labels_ok.
4333
4334 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4335
4336         PR target/49606
4337         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4338         (PMODE_INSN): New macro.
4339         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4340         (mips_got_load, mips_expand_synci_loop): Likewise.
4341         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4342         cprestore patterns.
4343         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
4344         copygp_mips16 patterns.
4345         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4346         and use_cprestore patterns.
4347         (mips_override_options): Check for incompatible -mabi and -mlong
4348         combinations.
4349         * config/mips/mips.md (unspec_got<mode>): Rename to...
4350         (unspec_got_<mode>): ...this.
4351         (copygp_mips16): Use the Pmode iterator.
4352         (potential_cprestore, cprestore, use_cprestore): Likewise.
4353         (clear_cache, indirect_jump): Use PMODE_INSN.
4354         (indirect_jump<mode>): Rename to...
4355         (indirect_jump_<mode>): ...this.
4356         (tablejump): Use PMODE_INSN.
4357         (tablejump<mode>): Rename to...
4358         (tablejump_<mode>): ...this.
4359         (exception_receiver): Handle restore_gp_si and restore_gp_di.
4360         (restore_gp): Use the Pmode iterator.
4361         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4362         PMODE_INSN.
4363
4364 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4365
4366         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4367         Fix the type of the BIT_AND_EXPR.
4368
4369 2011-09-05  David S. Miller  <davem@davemloft.net>
4370
4371         * config.host: Add driver-sparc.o and sparc/x-sparc on
4372         native sparc*-*-linux* builds.
4373         * config/sparc/driver-sparc.c: Correct Linux strings.
4374         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4375         * config/sparc/linux64.h: Likewise.
4376         * doc/invoke.texi: Document that Linux also supports
4377         -mcpu=native and -mtune=native on sparc.
4378
4379         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4380         PROCESSOR_NIAGARA4): New.
4381         * config/sparc/sparc.opt: Handle new processor types.
4382         * config/sparc/sparc.md: Add to "cpu" attribute.
4383         * config/sparc/sparc.h (TARGET_CPU_niagara3,
4384         TARGET_CPU_niagara4): New, treat as niagara2.
4385         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4386         * config/sparc/sol2.h: Likewise.
4387         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4388         * config/sparc/sparc.c (sparc_option_override): Add
4389         niagara3 and niagara4 handling.
4390         (sparc32_initialize_trampoline): Likewise.
4391         (sparc64_initialize_trampoline): Likewise.
4392         (sparc_use_sched_lookahead): Likewise.
4393         (sparc_issue_rate): Likewise.
4394         (sparc_register_move_cost): Likewise.
4395         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4396         and niagara4 as appropriate.
4397         * doc/invoke.texi: Document new processor types.
4398         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4399         and --with-tune options.
4400
4401         * config/sparc/sol2-64.h: Move ...
4402         * config/sparc/default-64.h: ... to here.  Update comment.
4403         * config.gcc: Update Solaris sparc to use default-64.h, also
4404         prefix this header into the list on sparc64-*-linux.
4405         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4406         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
4407         to MASK_HARD_QUAD.
4408
4409 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4410
4411         PR target/50289
4412         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4413         that contain global register variable.
4414
4415 2011-09-05  Richard Guenther  <rguenther@suse.de>
4416
4417         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4418
4419 2011-09-05  Richard Guenther  <rguenther@suse.de>
4420
4421         * stor-layout.c (layout_type): Use size_binop for array size
4422         calculations.
4423
4424 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4425
4426         * config/avr/avr.h (progmem_section): Remove Declaration.
4427         * config/avr/avr.c (progmem_section): Make static and rename to
4428         progmem_swtable_section.
4429         (avr_output_addr_vec_elt): No need to switch sections.
4430         (avr_asm_init_sections): Use output_section_asm_op as section
4431         callback for progmem_swtable_section.
4432         (avr_output_progmem_section_asm_op): Remove Function.
4433         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4434         (avr_asm_function_rodata_section): New static Function.
4435         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4436         alignment 2**1 for jump tables.
4437
4438 2011-09-04  Jan Hubicka  <jh@suse.cz>
4439
4440         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4441         parameter is SSA name.
4442
4443 2011-09-04  Richard Guenther  <rguenther@suse.de>
4444
4445         Revert
4446         2011-08-31  Richard Guenther  <rguenther@suse.de>
4447
4448         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4449         special-casing.
4450
4451 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
4452
4453         PR debug/49901
4454         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4455
4456 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
4457             Ira Rosen  <ira.rosen@linaro.org>
4458
4459         PR tree-optimization/50208
4460         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4461         argument.  Check that def_stmt is inside the loop.
4462         (vect_recog_widen_mult_pattern): Update calls to
4463         vect_handle_widen_mult_by_cons.
4464         (vect_operation_fits_smaller_type): Check that def_stmt is
4465         inside the loop.
4466
4467 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
4468
4469         * tree-vectorizer.c (vect_print_dump_info): Print line
4470         number when dumping to a file.
4471         (vectorize_loops): Add new messages to dump file.
4472
4473 2011-09-03  Martin Jambor  <mjambor@suse.cz>
4474
4475         * ipa-prop.h (ipa_jump_func_t): New typedef.
4476         (struct ipa_edge_args): Removed field argument_count, field
4477         jump_functions turned into a vector.
4478         (ipa_set_cs_argument_count): Removed.
4479         (ipa_get_cs_argument_count): Updated to work on vectors.
4480         (ipa_get_ith_jump_func): Likewise.
4481         * ipa-prop.c (ipa_count_arguments): Removed.
4482         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4483         jump functions.  Update caller.
4484         (compute_pass_through_member_ptrs): Likewise.
4485         (compute_cst_member_ptr_arguments): Likewise.
4486         (ipa_compute_jump_functions_for_edge): Get number of arguments from
4487         the statement, allocate vector.
4488         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4489         (duplicate_ipa_jump_func_array): Removed.
4490         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4491         (ipa_read_node_info): Allocate vector.
4492
4493 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4494
4495         PR middle-end/50232
4496         * config/pa/pa.md (return): Define "return" insn pattern.
4497         (epilogue): Use it when no epilogue is needed.
4498         * config/pa/pa.c (pa_can_use_return_insn): New function.
4499         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4500
4501 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
4502
4503         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4504         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4505         Force at least BITS_PER_UNIT alignment on the new variable.
4506
4507 2011-09-02  Gary Funck <gary@intrepid.com>
4508
4509         * opts.c (print_specific_help): Fix off-by-one compare in
4510         assertion check.
4511         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4512         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4513         Increase by +5 to allow for more languages.
4514         * optc-gen.awk: Generate #if that ensures that the number of
4515         languages is within the implementation-defined limit.
4516
4517 2011-09-02  Michael Matz  <matz@suse.de>
4518
4519         PR middle-end/50260
4520         * ipa-split.c (split_function): Call add_referenced_var.
4521
4522         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4523         (cond_if_else_store_replacement_1): Ditto.
4524         * tree-ssa-pre.c (get_representative_for): Ditto.
4525         (create_expression_by_pieces): Ditto.
4526         (insert_into_preds_of_block): Ditto.
4527         * tree-sra.c (create_access_replacement): Ditto.
4528         (get_replaced_param_substitute): Ditto.
4529
4530 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
4531
4532         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4533         automata_options.
4534         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4535         (l1w, s1w, l2w, s2w): Define in the main automaton.
4536         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4537         units.
4538         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4539         (c6x_unit_names): Add the new units.
4540         (c6x_unit_codes): New static array.
4541         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4542         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4543         UNIT_QID_SIDE_OFFSET): New macros.
4544         (RESERVATION_S2): Adjust value.
4545         (c6x_option_override): Compute c6x_unit_codes.
4546         (assign_reservations): Take the unit_mask of the last instruction
4547         into account.  Detect floating point reservations by looking for
4548         the new units.  Don't assign reservations if the field is already
4549         nonzero.
4550         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4551         (init_sched_state): Initialize it.
4552         (c6x_clear_sched_context): Free it.
4553         (insn_set_clock): Clear reservation.
4554         (prev_cycle_state): New static variable.
4555         (c6x_init_sched_context): Save it.
4556         (c6x_sched_init): Allocate space for it and clear it.
4557         (c6x_sched_dfa_pre_cycle_insn): New static function.
4558         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4559         (c6x_variable_issue): Only record units in the unit_mask that
4560         were not set at the start of the cycle.
4561         (c6x_variable_issue): Compute and store the unit_mask from the
4562         current state.
4563         (reorg_split_calls): Ensure the new information remains correct.
4564         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4565         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4566         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4567         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4568         Add special reservations.
4569         * config/c6x/c6x-sched.md: Regenerate.
4570
4571 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4572
4573         * ipa-prop.h (ipa_node_params): Removed fields
4574         called_with_var_arguments and node_versionable.
4575         (ipa_set_called_with_variable_arg): Removed.
4576         (ipa_is_called_with_var_arguments): Likewise.
4577         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4578         (determine_versionability): Do not check for type attributes and va
4579         builtins.  Record versionability into inline summary.
4580         (initialize_node_lattices): Do not check
4581         ipa_is_called_with_var_arguments.
4582         (propagate_constants_accross_call): Likewise, ignore arguments we do
4583         not have PARM_DECLs for, set variable flag for parameters that were
4584         not passed a value.
4585         (create_specialized_node): Dump info that we cannot change signature.
4586         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4587         number of arguments.
4588         (ipa_make_edge_direct_to_target): Likewise.
4589         (ipa_update_after_lto_read): Likewise.
4590         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4591         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4592         they were remapped.
4593
4594 2011-09-02  Richard Guenther  <rguenther@suse.de>
4595
4596         PR tree-optimization/27460
4597         PR middle-end/29269
4598         * doc/md.texi (vcond): Document.
4599         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4600         optab with two modes.
4601         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4602         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4603         (vcond_optab): Adjust.
4604         (vcondu_optab): Likewise.
4605         (expand_vec_cond_expr_p): Adjust prototype.
4606         * optabs.c (get_vcond_icode): Adjust.
4607         (expand_vec_cond_expr_p): Likewise.
4608         (expand_vec_cond_expr): Likewise.
4609         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4610         vector type.
4611         (vectorizable_condition): Allow differing types for comparison
4612         and result.
4613         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4614         for the comparison.
4615         * config/i386/sse.md (vcond<mode>): Split to
4616         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4617         vcond<V_128:mode><VI124_128:mode> and
4618         vcondu<V_128:mode><VI124_128:mode>.
4619         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4620         (vconduv2di): Likewise.
4621         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4622         (vcondu<mode>): Likewise.
4623         * config/ia64/vect.md (vcond<mode>): Likewise.
4624         (vcondu<mode>): Likewise.
4625         (vcondv2sf): Likewise.
4626         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4627         * config/rs6000/paired.md (vcondv2sf): Likewise.
4628         * config/rs6000/vector.md (vcond<mode>): Likewise.
4629         (vcondu<mode>): Likewise.
4630         * config/spu/spu.md (vcond<mode>): Likewise.
4631         (vcondu<mode>): Likewise.
4632
4633 2011-09-02  Richard Guenther  <rguenther@suse.de>
4634
4635         * pretty-print.h (pp_unsigned_wide_integer): New.
4636         * tree-pretty-print.c (dump_generic_node): Print unsigned
4637         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4638
4639 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
4640
4641         PR target/49987
4642         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4643         valid CONST_VECTOR operands.
4644         (rs6000_expand_vector_init): Likewise.
4645
4646 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4647
4648         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4649         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4650         BINFO_VTABLE.  Parameter delta removed, all callers updated.
4651         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4652         BINFO_VTABLE.
4653         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4654         all calls.
4655         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4656         handling of thunk_delta.
4657         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4658         (devirtualization_time_bonus): Do not handle thunk deltas.
4659         (ipcp_discover_new_direct_edges): Likewise.
4660         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4661         (try_make_edge_direct_simple_call): Likewise.
4662         (try_make_edge_direct_virtual_call): Likewise.
4663         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4664         parameter set as unused.
4665         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4666         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4667         parameter set as unused.
4668         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4669         (input_edge_opt_summary): Likewise.
4670         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4671         BINFO_VIRTUALS at all.
4672         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4673
4674 2011-09-02  Richard Guenther  <rguenther@suse.de>
4675
4676         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4677         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4678
4679 2011-08-31  Richard Guenther  <rguenther@suse.de>
4680
4681         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4682         handling here, from ...
4683         (expand_expr_real_1): ... here.
4684         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4685         and VEC_COND_EXPR.
4686         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4687         a GIMPLE_TERNARY_RHS.
4688         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4689         and VEC_COND_EXPR here ...
4690         (verify_gimple_assign_single): ... not here.
4691         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4692         * tree-object-size.c (cond_expr_object_size): Adjust.
4693         (collect_object_sizes_for): Likewise.
4694         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4695         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4696         (ssa_forward_propagate_and_combine): Adjust.
4697         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4698         as ternary.
4699         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4700         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4701         * tree-vect-stmt.c (vectorizable_condition): Likewise.
4702         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4703         (extract_range_from_assignment): Likewise.
4704
4705 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4706
4707         * config/i386/i386.md: Use (match_test ...) for attribute tests.
4708         * config/i386/mmx.md: Likewise.
4709         * config/i386/sse.md: Likewise.
4710         * config/i386/predicates.md (call_insn_operand): Use
4711         (not (match_test "...")) instead of (match_test "!...")
4712         * config/i386/constraints.md (w): Likewise.
4713
4714 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4715
4716         * doc/md.texi: Describe the use of match_tests in attribute tests.
4717         * rtl.def (MATCH_TEST): Update commentary.
4718         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4719         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4720
4721 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4722
4723         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4724         (attr_string): Use copy_md_ptr_loc.
4725
4726 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4727
4728         PR middle-end/49886
4729         * ipa-inline-analysis.c (compute_inline_parameters): Set
4730         can_change_signature of noes with typde attributes.
4731         * ipa-split.c (split_function): Do not skip any arguments if
4732         can_change_signature is set.
4733
4734 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4735
4736         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4737         check removed.
4738
4739 2011-08-31  Richard Guenther  <rguenther@suse.de>
4740
4741         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4742         special-casing.
4743
4744 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
4745
4746         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4747
4748 2011-08-31  Tom de Vries  <tom@codesourcery.com>
4749
4750         PR middle-end/43513
4751         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4752         * tree-ssa-ccp.c (params.h): Include.
4753         (fold_builtin_alloca_for_var): New function.
4754         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4755
4756 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
4757
4758         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4759         Handle FMA option.
4760
4761 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4762
4763         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4764         b3 and b4 unsigned.
4765
4766 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4767
4768         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4769         when code is SET.
4770
4771 2011-08-30  Richard Guenther  <rguenther@suse.de>
4772
4773         PR middle-end/48571
4774         * gimple.h (maybe_fold_offset_to_address): Remove.
4775         (maybe_fold_offset_to_reference): Likewise.
4776         (maybe_fold_stmt_addition): Likewise.
4777         (may_propagate_address_into_dereference): Likewise.
4778         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
4779         array references.
4780         * gimple-fold.c (canonicalize_constructor_val): Likewise.
4781         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4782         addresses instead.
4783         (may_propagate_address_into_dereference): Remove.
4784         (maybe_fold_offset_to_array_ref): Likewise.
4785         (maybe_fold_offset_to_reference): Likewise.
4786         (maybe_fold_offset_to_address): Likewise.
4787         (maybe_fold_stmt_addition): Likewise.
4788         (fold_gimple_assign): Do not reconstruct array references but
4789         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4790         MEM_REF addresses.
4791         (gimple_fold_stmt_to_constant_1): Likewise.
4792         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4793         * gimplify.c (gimplify_conversion): Likewise.
4794         (gimplify_expr): Likewise.
4795
4796 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
4797
4798         * config/i386/fmaintrin.h: New.
4799         * config.gcc: Add fmaintrin.h.
4800         * config/i386/i386.c
4801         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4802         <IX86_BUILTIN_VFMADDSD3>: Likewise.
4803         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4804         (*fmai_fmadd_<mode>): Likewise.
4805         (*fmai_fmsub_<mode>): Likewise.
4806         (*fmai_fnmadd_<mode>): Likewise.
4807         (*fmai_fnmsub_<mode>): Likewise.
4808         * config/i386/immintrin.h: Add fmaintrin.h.
4809
4810 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
4811
4812         * genautomata.c (NO_COMB_OPTION): New macro.
4813         (no_comb_flag): New static variable.
4814         (gen_automata_option): Handle NO_COMB_OPTION.
4815         (comb_vect_p): False if no_comb_flag.
4816         (add_vect): Move computation of min/max values.  Return early if
4817         no_comb_flag.
4818         * doc/md.texi (automata_option): Document no-comb-vect.
4819
4820         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4821         "__x86.get_pc_thunk".
4822
4823         * bb-reorder.c (insert_section_boundary_note): Only do it if
4824         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4825
4826 2011-08-30  Christian Bruel  <christian.bruel@st.com>
4827
4828         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4829         flag_profile_use.
4830
4831 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4832
4833         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4834         to off.  Document switch.
4835         * doc/invoke.texi (-msave-toc-indirect): Ditto.
4836
4837 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4838
4839         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4840         conditionals and comments inside macro arguments.
4841
4842 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4843             Richard Guenther  <rguenther@suse.de>
4844
4845         * tree.h (constant_boolean_node): Adjust prototype.
4846         * fold-const.c (fold_convert_loc): Move aggregate conversion
4847         leeway down.
4848         (constant_boolean_node): Make value parameter boolean, add
4849         vector type handling.
4850         (fold_unary_loc): Use constant_boolean_node.
4851         (fold_binary_loc): Preserve types properly when folding
4852         COMPLEX_EXPR <__real x, __imag x>.
4853         * gimplify.c (gimplify_expr): Handle vector comparison.
4854         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4855         comparison.
4856         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4857         comparisons.
4858
4859 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4860
4861         PR middle-end/48722
4862         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4863         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4864         (verify_rtl_sharing): Likewise and verify_rtx_sharing
4865         in there too.
4866         (unshare_all_rtl_in_chain): For CALL_INSNs
4867         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4868
4869 2011-08-29  Richard Guenther  <rguenther@suse.de>
4870
4871         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4872         on the built ADDR_EXPR.
4873
4874 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4875
4876         PR debug/50215
4877         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4878         before adding ENTRY_VALUE to val->locs.
4879
4880 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
4881
4882         PR bootstrap/50218
4883         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4884         comp.
4885
4886 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
4887
4888         * doc/rtl.texi (simple_return): Document.
4889         (parallel, PATTERN): Here too.
4890         * doc/md.texi (return): Mention it's allowed to expand to simple_return
4891         in some cases.
4892         (simple_return): Document standard pattern.
4893         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4894         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4895         * reorg.c (function_return_label, function_simple_return_label):
4896         New static variables, replacing...
4897         (end_of_function_label): ... this.
4898         (simplejump_or_return_p): New static function.
4899         (optimize_skip, steal_delay_list_from_fallthrough,
4900         fill_slots_from_thread): Use it.
4901         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
4902         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4903         (find_end_label): Take a new arg which is one of the two return
4904         rtxs.  Depending on which, set either function_return_label or
4905         function_simple_return_label.  All callers changed.
4906         (make_return_insns): Make both kinds.
4907         (dbr_schedule): Adjust for two kinds of end labels.
4908         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4909         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4910         (gen_expand, gen_split): Use ANY_RETURN_P.
4911         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4912         * rtl.def (SIMPLE_RETURN): New code.
4913         * ifcvt.c (find_if_case_1): Be more careful about
4914         redirecting jumps to the EXIT_BLOCK.
4915         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4916         returnjump_p_1): Handle SIMPLE_RETURNs.
4917         * print-rtl.c (print_rtx): Likewise.
4918         * rtl.c (copy_rtx): Likewise.
4919         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4920         * combine.c (simplify_set): Likewise.
4921         * resource.c (find_dead_or_set_registers, mark_set_resources):
4922         Likewise.
4923         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4924         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4925         (init_emit_regs): Initialize simple_return_rtx.
4926         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4927         force_nonfallthru_and_redirect.
4928         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4929         (GR_SIMPLE_RETURN): New enum value.
4930         (simple_return_rtx): New macro.
4931         * basic-block.h (force_nonfallthru_and_redirect): Adjust
4932         declaration.
4933         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4934         argument.  All callers changed.  Be careful about what kinds of
4935         returnjumps to generate.
4936         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4937         ix86_pad_short_function): Likewise.
4938         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4939         of return.
4940         * config/mips/mips.md (any_return): New code_iterator.
4941         (optab): Add cases for return and simple_return.
4942         (return): Expand to a simple_return.
4943         (simple_return): New pattern.
4944         (*<optab>, *<optab>_internal for any_return): New patterns.
4945         (return_internal): Remove.
4946         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4947         a simple_return_internal.
4948
4949 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4950
4951         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4952         (vec_extract_lo_<mode>): Prevent both operands in memory.
4953         (vec_extract_lo_v16hi): Ditto.
4954         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4955
4956 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4957
4958         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4959         (*sse2_mulv4si3): Ditto.
4960         (mulv2di3): Ditto.
4961         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
4962         notes to REG_EQUAL.
4963
4964 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4965
4966         PR target/50202
4967         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
4968         when all outputs are unused.
4969         (sse4_2_pcmpistr): Ditto.
4970
4971 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4972
4973         * config/i386/i386.md (round<mode>2): New expander.
4974         * config/i386/i386.c (enum ix86_builtins): Add
4975         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
4976         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
4977         descriptions.
4978         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
4979         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
4980
4981 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4982
4983         PR middle-end/50083
4984         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
4985         only when TARGET_C99_FUNCTIONS.
4986         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
4987         <BUILT_IN_RINT{,F,L}>: Ditto.
4988
4989 2011-08-26  Michael Matz  <matz@suse.de>
4990             Jakub Jelinek  <jakub@redhat.com>
4991
4992         PR lto/50165
4993         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
4994         don't call strlen twice, use memcpy.
4995
4996 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4997
4998         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
4999         * config/i386/bmiintrin.h: Likewise.
5000         * config/i386/lzcntintrin.h: Likewise.
5001
5002         * config/i386/immintrin.h: Include <lzcntintrin.h>,
5003         <bmiintrin.h> and <bmi2intrin.h>.
5004
5005 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5006
5007         PR target/50166
5008         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
5009         * configure: Regenerate.
5010
5011 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5012
5013         PR c/50179
5014         * c-typeck.c (c_process_expr_stmt): Skip over nops and
5015         call mark_exp_read even if exprv is ADDR_EXPR.
5016
5017 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
5018
5019         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
5020         to df_set_dead_notes_for_mw.
5021
5022 2011-08-26  Richard Guenther  <rguenther@suse.de>
5023
5024         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
5025
5026 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
5027             Tom de Vries  <tom@codesourcery.com>
5028
5029         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
5030         (struct ivopts_data): Add loop_single_exit_p field.
5031         (niter_for_exit): Change parameter desc_p into return value.  Return
5032         desc if desc->may_be_zero.  Free desc if unused.
5033         (niter_for_single_dom_exit): Change return type.
5034         (find_induction_variables): Handle changed return type of
5035         niter_for_single_dom_exit.  Dump may_be_zero.
5036         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
5037         (set_use_iv_cost): Add and handle comp parameter.
5038         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
5039         comp argument to set_use_iv_cost.
5040         (strip_wrap_conserving_type_conversions, expr_equal_p)
5041         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
5042         (may_eliminate_iv): Add comp parameter.  Handle new return type of
5043         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
5044         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
5045         and may_eliminate_iv.
5046         (rewrite_use_compare): Move call to iv_elimination_compare to ...
5047         (may_eliminate_iv): Here.
5048         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5049
5050 2011-08-26  Tom de Vries  <tom@codesourcery.com>
5051
5052         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5053         accessing TREE_TYPE.
5054
5055 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
5056
5057         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5058         (*ior_scc_scc_cmp): Likewise
5059         (*and_scc_scc): Likewise.
5060         (*and_scc_scc_cmp): Likewise.
5061         (*and_scc_scc_nodom): Likewise.
5062         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5063
5064 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5065
5066         * rtlanal.c (nonzero_bits1): Handle CLRSB.
5067
5068 2011-08-26  Richard Guenther  <rguenther@suse.de>
5069
5070         * expr.c (string_constant): Handle &MEM_REF.
5071
5072 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5073
5074         * config/arm/arm.c (struct four_ints): New type.
5075         (count_insns_for_constant): Delete function.
5076         (find_best_start): Delete function.
5077         (optimal_immediate_sequence): New function.
5078         (optimal_immediate_sequence_1): New function.
5079         (arm_gen_constant): Move constant splitting code to
5080         optimal_immediate_sequence.
5081         Rewrite constant negation/invertion code.
5082
5083 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5084
5085         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5086         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5087         Remove prototype. Remove static function type.
5088         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5089         Add arch attribute.
5090         * config/arm/constraints.md (Pj, PJ): New constraints.
5091
5092 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5093
5094         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5095         ("cortex_a9_multiply_long"): New and use above.  Handle all
5096         long multiply cases.
5097         ("cortex_a9_multiply"): Handle smmul and smmulr.
5098         ("cortex_a9_mac"): Handle smmla.
5099
5100 2011-08-25  Richard Henderson  <rth@redhat.com>
5101
5102         PR 50132
5103         PR 49864
5104         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5105         non-constant stack adjutment.
5106         * expr.c (find_args_size_adjust): Break out from ...
5107         (fixup_args_size_notes): ... here.
5108         * rtl.h (find_args_size_adjust): Declare.
5109
5110 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
5111
5112         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5113         sse4 and sse4_noavx.
5114         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5115         (*pushdf_rex64): Change Y2 register constraint to x.
5116         (*movdf_internal_rex64): Ditto.
5117         (*zero_extendsidi2_rex64): Ditto.
5118         (*movdi_internal): Change Y2 register constraint to x
5119         and update "isa" attribute.
5120         (*pushdf): Ditto.
5121         (*movdf internal): Ditto.
5122         (zero_extendsidi2_1): Ditto.
5123         (*truncdfdf_mixed): Ditto.
5124         (*truncxfdf2_mixed): Ditto.
5125         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5126         register constraint to x.
5127         (*movv2sf_internal_rex64): Ditto.
5128         (*mov<mode>_internal): Change Y2 register constraint to x
5129         and add "isa" attribute.
5130         (*movv2sf_internal): Ditto.
5131         (*vec_extractv2si_1): Ditto.
5132         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5133         constraints to x and update "isa" attribute.
5134         (*vec_interleave_highv2df): Change Y3 registerconstraint
5135         to x and update "isa" attribute.
5136         (*vec_interleave_lowv2df): Ditto.
5137         (*vec_concatv2df): Change Y2 register constraint to x and
5138         update "isa" attribute.
5139         (sse2_loadld): Ditto.
5140         (*vec_extractv2di_1): Ditto.
5141         (*vec_dupv4si): Ditto.
5142         (*vec_dupv2di): Ditto.
5143         (*vec_concatv4si): Ditto.
5144         (vec_concatv2di): Ditto.
5145         * config/i386/constraints.md (Y2): Remove.
5146         (Y3): Ditto.
5147         (Y4): Ditto.
5148
5149 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5150
5151         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5152         dump_def_use_chain): Don't declare.
5153         (mark_conflict, create_new_chain): Move before users.
5154         (regrename_optimize): Move to near end of file.
5155
5156 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5157
5158         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5159         (secondary_input_reload_class): Remove Prototype.
5160         * config/avr/avr.c (byte_immediate_operand): Remove Function.
5161         * config/avr/avr.md (setmemhi): Use u8_operand.
5162         (strlenhi): Use const0_rtx for comparison.
5163         * config/avr/avr.h (avr_reg_order): Remove Declaration.
5164
5165 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5166
5167         * config/avr/avr.c (reg_class_tab): Make local to
5168         avr_regno_reg_class.  Return smallest register class available.
5169
5170 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5171
5172         * config/avr/avr.c (STR_PREFIX_P): New Define.
5173         (avr_asm_declare_function_name): Use it.
5174         (avr_asm_named_section): Use it.
5175         (avr_section_type_flags): Use it.
5176
5177 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5178
5179         * doc/md.texi (automata_option): Document collapse-ndfa.
5180         * genautomata.c (COLLAPSE_OPTION): New macro.
5181         (collapse_flag): New static variable.
5182         (struct description): New member normal_decls_num.
5183         (struct automaton): New members advance_ainsn and collapse_ainsn.
5184         (gen_automata_option): Check for COLLAPSE_OPTION.
5185         (collapse_ndfa_insn_decl): New static variable.
5186         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
5187         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
5188         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
5189         necessary.  Use normal_decls_num rather than decls_num, remove
5190         test for special decls.
5191         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
5192         (make_automaton); Likewise.  Use the new advance_cycle_insn member
5193         of struct automaton.
5194         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
5195         is set.
5196         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
5197         transition.  Create the necessary transitions for it.
5198         (create_ainsns): Return void.  Take an automaton_t argument, and
5199         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
5200         callers changed.
5201         (COLLAPSE_NDFA_VALUE_NAME): New macro.
5202         (output_tables): Output code to define it.
5203         (output_internal_insn_code_evaluation): Output code to accept
5204         const0_rtx as collapse-ndfa transition.
5205         (output_default_latencies, output_print_reservation_func,
5206         output_print_description): Reorganize loops to use normal_decls_num
5207         as loop bound; remove special case for advance_cycle_insn_decl.
5208         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
5209         (check_automata_insn_issues): Check for collapse_ainsn.
5210         (expand_automate): Allocate sufficient space.  Initialize
5211         normal_decls_num.
5212
5213 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5214
5215         * config/avr/avr.md: Fix indentation from r177991.
5216
5217 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5218
5219         * regrename.c (struct du_head): Remove member terminated.
5220         (create_new_chain): Don't initialize it.
5221         (scan_rtx_reg): Don't set or test it, test the open_chains_set
5222         bitmap instead.
5223         (tick, this_tick): New global variables, moved out of
5224         regrename_optimize.
5225         (current_id, open_chains, closed_chains, open_chains_set,
5226         live_in_chains, live_hard_regs): Reorder declarations.
5227         (dump_def_use_chain): Move function earlier in the file.
5228         (rename_chains): New static function, broken out of
5229         regrename_optimize.
5230         (regrename_optimize): Use it.  Remove #if 0'ed code.
5231
5232 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5233
5234         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
5235
5236 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
5237
5238         PR target/50172
5239         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
5240
5241 2011-08-24  Richard Guenther  <rguenther@suse.de>
5242
5243         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
5244         ref in the basic-block case.  Move stripping array-refs
5245         to the place we create an access-function for it.  Remove
5246         bogus stripping down a MEM_REF to its base.
5247
5248 2011-08-24  Richard Guenther  <rguenther@suse.de>
5249
5250         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
5251         with -fno-strict-overflow.
5252
5253 2011-08-24  Richard Guenther  <rguenther@suse.de>
5254
5255         * tree-vectorizer.c (vect_print_dump_info): Avoid the
5256         file and location clutter when dumping to dump files.
5257
5258 2011-08-24  Simon Baldwin  <simonb@google.com>
5259
5260         * gengtype-state.c (write_state): Remove timestamped header line.
5261
5262 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5263
5264         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
5265         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
5266         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
5267         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
5268         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
5269         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
5270         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
5271         rules.
5272         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
5273
5274 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5275
5276         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
5277
5278 2011-08-24  Richard Guenther  <rguenther@suse.de>
5279
5280         PR tree-optimization/50067
5281         * tree-data-ref.c (dr_analyze_indices): Do not add an access
5282         function for a MEM_REF base that has no evolution in the loop
5283         nest or that is not analyzable.
5284
5285 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
5286
5287         * ira.c (ira_init_register_move_cost): Check small subclasses
5288         through ira_reg_class_max_nregs and ira_available_class_regs.
5289
5290 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5291
5292         * config/i386/constraints.md (Yp): New register constraint.
5293         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
5294         Yp register constraint.
5295         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
5296         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
5297         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
5298
5299 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5300
5301         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
5302
5303 2011-08-23  Mark Heffernan  <meheff@google.com>
5304
5305         PR middle-end/38509
5306         * common.opt (Wfree-nonheap-object): New option.
5307         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
5308         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
5309         to warning.
5310         (expand_builtin): Make warning conditional.
5311
5312 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5313
5314         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
5315         (length_immediate): Handle imulx, ishiftx and rotatex.
5316         (imm_disp): Ditto.
5317         (isa): Add bmi2.
5318         (enabled): Handle bmi2.
5319         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
5320         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
5321         (*bmi2_umulditi3_1): New insn pattern.
5322         (*bmi2_umulsidi3_1): Ditto.
5323         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
5324         (*bmi2_ashl<mode>3_1): New insn pattern.
5325         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
5326         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
5327         (*bmi2_ashlsi3_1_zext): New insn pattern.
5328         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
5329         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
5330         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
5331         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5332         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5333         flags dependency.
5334         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5335         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5336         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5337         flags dependency.
5338         (*bmi2_rorx<mode>3_1): New insn pattern.
5339         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5340         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5341         (*rotatert<mode>3_1 splitter): Ditto.
5342         (*bmi2_rorxsi3_1_zext): New insn pattern.
5343         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5344         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5345         (*rotatertsi3_1_zext splitter): Ditto.
5346
5347 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5348
5349         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5350         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5351         (ix86_handle_option): Handle OPT_mbmi2 case.
5352         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5353         (x86_64-*-*): Likewise.
5354         * config/i386/bmi2intrin.h: New file.
5355         * config/i386/cpuid.h (bit_BMI2): New.
5356         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5357         BMI2 feature.
5358         * config/i386/i386-c.c (ix86_target_macros_internal):
5359         Conditionally define __BMI2__.
5360         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5361         Handle BMI2 option.
5362         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5363         (print_reg): New code.
5364         (ix86_print_operand): Likewise.
5365         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5366         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5367         IX86_BUILTIN_PEXT64.
5368         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5369         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5370         IX86_BUILTIN_PEXT64.
5371         * config/i386/i386.h (TARGET_BMI2): New.
5372         * config/i386/i386.md (UNSPEC_PDEP): New.
5373         (UNSPEC_PEXT): Likewise.
5374         (*bmi2_bzhi_<mode>3): Likewise.
5375         (*bmi2_pdep_<mode>3): Likewise.
5376         (*bmi2_pext_<mode>3): Likewise.
5377         * config/i386/i386.opt (mbmi2): New.
5378         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5379         is defined.
5380         * doc/extend.texi: Document BMI2 built-in functions.
5381         * doc/invoke.texi: Document -mbmi2.
5382
5383 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
5384
5385         PR middle-end/50161
5386         * simplify-rtx.c (simplify_const_unary_operation): If
5387         op is CONST_INT, don't look at op_mode, but use instead mode.
5388         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5389         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5390         operation and TRUNCATE/ZERO_EXTEND if needed.
5391         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5392         Document that operand mode must be same as operation mode,
5393         or VOIDmode.
5394         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5395         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5396         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5397         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5398         use the mode of operand for the operation and add truncate
5399         or zero_extend around if needed.
5400         * config/c6x/c6x.md (ctzdi2): Likewise.
5401         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5402
5403 2011-08-12  Michael Matz  <matz@suse.de>
5404
5405         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5406         (gimple_expand_cfg): Merge alignment info for coalesced pointer
5407         SSA names.
5408
5409 2011-08-23  Richard Guenther  <rguenther@suse.de>
5410
5411         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5412         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5413         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5414         from ...
5415         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5416         (mem_refs_may_alias_p): Adjust.
5417         * tree-data-ref.h (dr_may_alias_p): Adjust.
5418         * tree-data-ref.c: Include tree-affine.h.
5419         (dr_analyze_indices): Do nothing for the non-loop case.
5420         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
5421         more cases in the non-loop case.
5422         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5423         calls to dr_may_alias_p.
5424         (write_alias_graph_to_ascii_ecc): Likewise.
5425         (write_alias_graph_to_ascii_dot): Likewise.
5426         (build_alias_set_optimal_p): Likewise.
5427
5428 2011-08-23  Richard Guenther  <rguenther@suse.de>
5429
5430         PR tree-optimization/50162
5431         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5432
5433 2011-08-23  Richard Guenther  <rguenther@suse.de>
5434
5435         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5436         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5437         (create_data_ref): Also dump access functions for the created data-ref.
5438
5439 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
5440             Kirill Yukhin  <kirill.yukhin@intel.com>
5441
5442         PR target/50155
5443         * config/i386/sse.md (VI_AVX2): New.
5444         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5445         (*<plusminus_insn><mode>3): Ditto.
5446         (<sse2_avx2>_andnot<mode>3): Ditto.
5447         (*andnot<mode>3): Fix order of cond operands.
5448         Add asserts for correct TARGET_xxx.
5449         (*<any_logic:code><mode>3): Ditto.
5450
5451 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
5452
5453         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5454         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5455         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5456         regclass argument type to reg_class_t. Change 'max' and 'v' vars
5457         and return types to unsigned char. Use reg_class_contents instead
5458         of class_contents.
5459         (TARGET_CLASS_MAX_NREGS): Define.
5460
5461 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
5462
5463         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5464         to make computed_jump_p return true.
5465
5466 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5467
5468         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5469         (PICFLAG_FOR_TARGET): Substitute.
5470         * aclocal.m4: Regenerate.
5471         * configure: Regenerate.
5472
5473 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
5474
5475         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5476         after reading in the pch.
5477
5478 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5479
5480         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5481         * configure: Regenerated.
5482
5483 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
5484
5485         PR tree-optimization/50133
5486         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5487         from stmt instead of some statement around gsi.
5488
5489         PR middle-end/50141
5490         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5491         innerdecl is a VAR_DECL.
5492
5493 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5494
5495         * config/i386/avx2intrin.h: New file.
5496         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5497         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5498         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5499         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5500         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5501         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5502         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5503         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5504         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5505         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5506         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5507         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5508         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5509         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5510         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5511         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5512         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5513         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5514         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5515         VOID_FTYPE_PV8SI_V8SI_V8SI,
5516         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5517         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5518         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5519         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5520         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5521         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5522         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5523         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5524         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5525         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5526         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5527         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5528         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5529         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5530         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5531         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5532         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5533         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5534         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5535         V4DI_FTYPE_V4DI_INT_CONVERT,
5536         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5537         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5538         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5539         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5540         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5541         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5542         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5543         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5544         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5545         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5546         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5547         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5548         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5549         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5550         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5551         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5552         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5553         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5554         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5555         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5556         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5557         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5558         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5559         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5560         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5561         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5562         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5563         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5564         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5565         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5566         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5567         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5568         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5569         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5570         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5571         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5572         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5573         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5574         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5575         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5576         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5577         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5578         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5579         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5580         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5581         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5582         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5583         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5584         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5585         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5586         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5587         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5588         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5589         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5590         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5591         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5592         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5593         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5594         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5595         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5596         IX86_BUILTIN_VBROADCASTSS_PS256,
5597         IX86_BUILTIN_VBROADCASTSD_PD256,
5598         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5599         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5600         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5601         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5602         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5603         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5604         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5605         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5606         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5607         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5608         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5609         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5610         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5611         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5612         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5613         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5614         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5615         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5616         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5617         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5618         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5619         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5620         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5621         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5622         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5623         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5624         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5625         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5626         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5627         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5628         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5629         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
5630         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5631         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5632         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5633         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5634         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5635         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5636         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5637         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5638         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5639         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5640         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5641         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5642         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5643         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5644         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5645         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5646         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5647         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5648         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5649         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5650         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5651         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5652         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5653         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5654         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5655         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5656         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5657         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5658         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5659         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5660         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5661         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5662         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5663         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5664         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5665         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5666         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5667         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5668         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5669         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5670         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5671         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5672         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5673         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5674         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5675         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5676         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5677         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5678         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5679         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5680         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5681         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5682         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5683         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5684         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5685         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5686         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5687         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5688         IX86_BUILTIN_VBROADCASTSD_PD256,
5689         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5690         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5691         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5692         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5693         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5694         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5695         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5696         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5697         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5698         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5699         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5700         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5701         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5702         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5703         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5704         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5705         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5706         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5707         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5708         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5709         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5710         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5711         IX86_BUILTIN_GATHERDIV8SI.
5712         (ix86_preferred_simd_mode): Support AVX2 modes.
5713         (ix86_expand_args_builtin): Support AVX2 builtins.
5714         (ix86_expand_special_args_builtin): Likewise.
5715         (ix86_expand_builtin): Likewise.
5716         * config/i386/i386.md (UNSPEC_VPERMSI): New.
5717         (UNSPEC_VPERMDF): Likewise.
5718         (UNSPEC_VPERMSF): Likewise.
5719         (UNSPEC_VPERMDI): Likewise.
5720         (UNSPEC_VPERMTI): Likewise.
5721         (UNSPEC_GATHER): Likewise.
5722         (ssemodesuffix): Extend.
5723         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5724         is defined.
5725         * config/i386/predicates.md (const1248_operand): New.
5726         * config/i386/sse.md (VI1_AVX2): New mode iterator.
5727         (VI2_AVX2): Likewise.
5728         (VI4_AVX2): Likewise.
5729         (VI8_AVX2): Likewise.
5730         (VIMAX_AVX2): Likewise.
5731         (SSESCALARMODE): Likewise.
5732         (VI12_AVX2): Likewise.
5733         (VI24_AVX2): Likewise.
5734         (VI124_AVX2): Likewise.
5735         (VI248_AVX2): Likewise.
5736         (VI48_AVX2): Likewise.
5737         (VI4SD_AVX2): Likewise.
5738         (V48_AVX2): Likewise.
5739         (AVX256MODE2P): Likewise.
5740         (AVXMODE48P_DI): Likewise.
5741         (sse2_avx2): New mode attribute.
5742         (ssse3_avx2): Likewise.
5743         (sse4_1_avx2): Likewise.
5744         (avx_avx2): Likewise.
5745         (ssebytemode): Likewise.
5746         (AVXTOSSEMODE): Likewise.
5747         (AVXMODE48P_DI): Likewise.
5748         (gthrfirstp): Likewise.
5749         (gthrlastp): Likewise.
5750         (lshift): New code_iterator
5751         (lshift): New code attribute.
5752         (lshift): Likewise.
5753         (ssescalarmodesuffix): Update.
5754         (sseunpackmode): Likewise.
5755         (ssepackmode): Likewise.
5756         (avx2_vec_dupv4sf): New insn pattern.
5757         (avx2_vec_dupv8sf): Likewise.
5758         (avx2_interleave_highv4di): Likewise.
5759         (avx2_interleave_lowv4di): Likewise.
5760         (avx2_umulv4siv4di3): Likewise
5761         (*avx2_umulv4siv4di3): Likewise
5762         (avx2_pmaddwd): Likewise.
5763         (*avx2_pmaddwd): Likewise.
5764         (avx2_lshrqv4di3): Likewise.
5765         (avx2_lshlqv4di3): Likewise.
5766         (avx2_lshl<mode>3): Likewise.
5767         (avx2_<umaxmin:code><mode>3): Likewise.
5768         (*avx2_<umaxmin:code><mode>3): Likewise.
5769         (avx2_<smaxmin:code><mode>3): Likewise.
5770         (*avx2_<smaxmin:code><mode>3): Likewise.
5771         (avx2_eq<mode>3): Likewise.
5772         (*avx2_eq<mode>3): Likewise.
5773         (avx2_gt<mode>3): Likewise.
5774         (avx2_interleave_highv32qi): New.
5775         (avx2_interleave_lowv32qi): Likewise.
5776         (avx2_interleave_highv16hi): Likewise.
5777         (avx2_interleave_lowv16hi): Likewise.
5778         (avx2_interleave_highv8si): Likewise.
5779         (avx2_interleave_lowv8si): Likewise.
5780         (avx2_pshufd): Likewise.
5781         (avx2_pshufd_1): Likewise.
5782         (avx2_pshuflwv3): Likewise.
5783         (avx2_pshuflw_1): Likewise.
5784         (avx2_pshufhwv3): Likewise.
5785         (avx2_pshufhw_1): Likewise.
5786         (avx2_uavgv32qi3): Likewise.
5787         (*avx2_uavgv32qi3): Likewise.
5788         (avx2_uavgv16hi3): Likewise.
5789         (*avx2_uavgv16hi3): Likewise.
5790         (avx2_pmovmskb): Likewise.
5791         (avx2_phaddwv16hi3): Likewise.
5792         (avx2_phadddv8si3): Likewise.
5793         (avx2_phaddswv16hi3): Likewise.
5794         (avx2_phsubwv16hi3): Likewise.
5795         (avx2_phsubdv8si3): Likewise.
5796         (avx2_phsubswv16hi3): Likewise.
5797         (avx2_pmaddubsw256): Likewise.
5798         (avx2_umulhrswv16hi3): Likewise.
5799         (*avx2_umulhrswv16hi3): Likewise.
5800         (avx2_packusdw): Likewise.
5801         (avx2_pblendd<mode>): Likewise.
5802         (avx2_<code>v16qiv16hi2): Likewise.
5803         (avx2_<code>v8qiv8si2): Likewise.
5804         (avx2_<code>v8hiv8si2): Likewise.
5805         (avx2_<code>v4qiv4di2): Likewise.
5806         (avx2_<code>v4hiv4di2): Likewise.
5807         (avx2_<code>v4siv4di2): Likewise.
5808         (avx2_pbroadcast<mode>): Likewise.
5809         (avx2_permvarv8si): Likewise.
5810         (avx2_permv4df): Likewise.
5811         (avx2_permvarv8sf): Likewise.
5812         (avx2_permv4di): Likewise.
5813         (avx2_permv2ti): Likewise.
5814         (avx2_vec_dupv4df): Likewise.
5815         (avx2_vbroadcasti128_<mode>): Likewise.
5816         (avx2_vec_set_lo_v4di): Likewise.
5817         (avx2_vec_set_hi_v4di): Likewise.
5818         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5819         (avx2_extracti128): Likewise.
5820         (avx2_inserti128): Likewise.
5821         (avx2_ashrvv8si): Likewise.
5822         (avx2_ashrvv4si): Likewise.
5823         (avx2_<lshift>vv8si): Likewise.
5824         (avx2_<lshift>v<mode>): Likewise.
5825         (avx2_<lshift>vv2di): Likewise.
5826         (avx2_gathersi<mode>): Likewise.
5827         (*avx2_gathersi<mode>): Likewise.
5828         (avx2_gatherdi<mode>): Likewise.
5829         (*avx2_gatherdi<mode>): Likewise.
5830         (avx2_gatherdi<mode>256): Likewise.
5831         (*avx2_gatherdi<mode>256): Likewise.
5832         (<plusminus_insn><mode>3): Use VI mode iterator.
5833         (*<plusminus_insn><mode>3): Use VI mode iterator.
5834         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5835         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5836         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5837         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5838         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
5839         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
5840         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5841         Use VI2_AVX2 mode iterator.
5842         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5843         Use VI2_AVX2 mode iterator.
5844         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
5845         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
5846         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5847         Use VI4_AVX2 mode iterator.
5848         (ashr<mode>3): Use VI24_AVX2 mode iterator.
5849         (lshr<mode>3): Use VI248_AVX2 mode iterator.
5850         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5851         Use VIMAX_AVX2 mode iterator.
5852         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5853         Use VI mode iterator.
5854         (*andnot<mode>3): Update for AVX2.
5855         (*<any_logic:code><mode>3): Likewise.
5856         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5857         Use VI1_AVX mode iterator.
5858         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
5859         Use VI2_AVX mode iterator.
5860         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5861         Use VI1_AVX mode iterator.
5862         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5863         Use VI8_AVX2 mode iterator.
5864         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5865         Use VI1_AVX2 mode iterator.
5866         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5867         Use VI124_AVX2 mode iterator.
5868         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5869         Use SSESCALARMODE mode iterator.
5870         (abs<mode>2): Use VI124_AVX2 mode iterator.
5871         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5872         Use VI8_AVX2 mode iterator.
5873         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5874         Use VI1_AVX2 mode iterator.
5875         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5876         Use VI1_AVX2 mode iterator.
5877         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5878         Use VI2_AVX2 mode iterator.
5879         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5880         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5881         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5882         avx_maskstore<ssemodesuffix><avxsizesuffix>.
5883         Use V48_AVX2 mode iterator.
5884         * doc/extend.texi: Document AVX2 built-in functions.
5885         * doc/invoke.texi: Document -mavx2.
5886
5887 2011-08-22  Matthias Klose <doko@debian.org>
5888
5889         Revert:
5890         2011-07-11  Arthur Loiret  <aloiret@debian.org>
5891                     Matthias Klose <doko@debian.org>
5892         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5893         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5894         convention.
5895         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5896
5897 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
5898
5899         PR bootstrap/50146
5900         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5901         to #ifndef HONOR_REG_ALLOC_ORDER block.
5902
5903 2011-08-21  Richard Henderson  <rth@redhat.com>
5904
5905         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5906         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5907         * resource.c (next_insn_no_annul): Likewise.
5908         (mark_set_resources): Likewise.
5909         * reorg.c (delete_from_delay_slot): Likewise.
5910         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5911         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5912
5913 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
5914
5915         * config/i386/i386.md (any_div): Remove.
5916         (sgnprefix): Update for removal.
5917         (u): Ditto.
5918
5919 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
5920
5921         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5922         for ira_reg_class_max_nregs.  Increase pressure by 1.
5923         (mark_pseudo_regno_subword_dead): Use allocno class
5924         for ira_reg_class_max_nregs.
5925
5926 2011-08-20  Richard Henderson  <rth@redhat.com>
5927
5928         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5929         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5930         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5931         config/c6x/ltf.c: Adjust include path for soft-fp.
5932
5933 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5934
5935         PR other/46770
5936         * config.gcc (tm_file): Add initfini-array.h if
5937         .init_arrary/.fini_array are supported.
5938
5939         * crtstuff.c: Don't generate .ctors nor .dtors sections if
5940         USE_INITFINI_ARRAY is defined.
5941
5942         * output.h (default_elf_init_array_asm_out_constructor): New.
5943         (default_elf_fini_array_asm_out_destructor): Likewise.
5944         * varasm.c (elf_init_array_section): Likewise.
5945         (elf_fini_array_section): Likewise.
5946         (get_elf_initfini_array_priority_section): Likewise.
5947         (default_elf_init_array_asm_out_constructor): Likewise.
5948         (default_elf_fini_array_asm_out_destructor): Likewise.
5949
5950         * config/initfini-array.h: New.
5951
5952 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5953
5954         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5955         OK for ST_REGS and FP_REGS before taking those classes into account.
5956
5957 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5958
5959         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5960         before checking for annulled branches.
5961
5962 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5963
5964         * config/i386/i386.c (ix86_binary_operator_ok): Use
5965         satisfies_constraint_L.
5966
5967 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5968             Michael Matz  <matz@suse.de>
5969
5970         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
5971         trunc (a + copysign (nextafter (0.5, 0.0), a)).
5972
5973 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
5974
5975         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5976         * doc/tm.texi: Regenerate.
5977         * targhooks.c (default_preferred_output_reload_class): Don't use
5978         PREFERRED_OUTPUT_RELOAD_CLASS macro.
5979         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
5980
5981 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
5982
5983         PR tree-optimization/48739
5984         * tree-ssa.c: Include cfgloop.h.
5985         (execute_update_addresses_taken): When updating ssa, if in loop closed
5986         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
5987         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
5988
5989 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
5990
5991         PR rtl-optimization/49936
5992         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5993         for calculation of max register move costs.
5994
5995 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5996
5997         * c-parser.c (c_parser_postfix_expression): Convert operands of
5998         __builtin_complex to their semantic types.
5999
6000 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
6001
6002         PR middle-end/49721
6003         * explow.c (convert_memory_address_addr_space): Also permute the
6004         conversion and addition of constant for zero-extend.
6005
6006 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6007
6008         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
6009         * doc/extend.texi (__builtin_complex): Document.
6010
6011 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6012
6013         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
6014         beyond conversions.
6015         (convert_mult_to_widen): Convert constant inputs to the right type.
6016         (convert_plusminus_to_widen): Don't automatically reject inputs that
6017         are not an SSA_NAME.
6018         Convert constant inputs to the right type.
6019
6020 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6021
6022         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
6023         to the correct type.
6024
6025 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6026
6027         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
6028         unsigned inputs of different modes.
6029         (convert_plusminus_to_widen): Likewise.
6030
6031 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6032
6033         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
6034         'type'.
6035         Use 'type' from caller, not inferred from 'rhs'.
6036         Don't reject non-conversion statements. Do return lhs in this case.
6037         (is_widening_mult_p): Add new argument 'type'.
6038         Use 'type' from caller, not inferred from 'stmt'.
6039         Pass type to is_widening_mult_rhs_p.
6040         (convert_mult_to_widen): Pass type to is_widening_mult_p.
6041         (convert_plusminus_to_widen): Likewise.
6042
6043 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6044
6045         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
6046         Ensure the the larger type is the first operand.
6047
6048 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6049
6050         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6051         unsupported unsigned multiplies to signed.
6052         (convert_plusminus_to_widen): Likewise.
6053
6054 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6055
6056         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6057         conversion statement separating multiply-and-accumulate.
6058
6059 2011-08-19  Richard Guenther  <rguenther@suse.de>
6060
6061         PR tree-optimization/50067
6062         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6063         offset only if we accounted for it.
6064
6065 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6066
6067         * config/arm/arm.md (maddhidi4): Remove '*' from name.
6068         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6069         * optabs.c (find_widening_optab_handler_and_mode): New function.
6070         (expand_widen_pattern_expr): Use find_widening_optab_handler.
6071         (expand_binop_directly): Likewise.
6072         (expand_binop): Likewise.
6073         * optabs.h (find_widening_optab_handler): New macro define.
6074         (find_widening_optab_handler_and_mode): New prototype.
6075         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6076         type precision rules.
6077         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6078         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6079         (is_widening_mult_rhs_p): Allow widening by more than one mode.
6080         Explicitly disallow mis-matched input types.
6081         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6082         input types to fit the new handler.
6083         (convert_plusminus_to_widen): Likewise.
6084
6085 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6086
6087         * expr.c (expand_expr_real_2): Use widening_optab_handler.
6088         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6089         (gen_insn): $N now means $a must be wider than $b, not consecutive.
6090         * optabs.c (widened_mode): New function.
6091         (expand_widen_pattern_expr): Use widening_optab_handler.
6092         (expand_binop_directly): Likewise.
6093         (expand_binop): Likewise.
6094         * optabs.h (widening_optab_handlers): New struct.
6095         (optab_d): New member, 'widening'.
6096         (widening_optab_handler): New function.
6097         (set_widening_optab_handler): New function.
6098         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6099         widening_optab_handler.
6100         (convert_plusminus_to_widen): Likewise.
6101
6102 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6103
6104         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6105         pedantic.
6106         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6107         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6108
6109 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6110
6111         * opth-gen.awk: Do not declare target save/restore structures and
6112         functions if IN_RTS defined.
6113
6114 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6115
6116         PR target/49437
6117         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6118         when stack was realigned in interrupt handler prologue.
6119
6120 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
6121
6122         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6123         (quals_from_declspecs): Assert _Noreturn not present.
6124         (grokdeclarator): Handle _Noreturn.
6125         (build_null_declspecs): Initialize noreturn_p.
6126         (declspecs_add_scspec): Handle RID_NORETURN.
6127         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6128         (c_parser_attributes): Handle RID_NORETURN.
6129         * c-tree.h (struct c_declspecs): Add noreturn_p.
6130         * ginclude/stdnoreturn.h: New.
6131         * Makefile.in (USER_H): Add stdnoreturn.h.
6132
6133 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6134
6135         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6136         (OPTION_MASK_ISA_AVX_UNSET): Update.
6137         (OPTION_MASK_ISA_AVX2_UNSET): New.
6138         (ix86_handle_option): Handle OPT_mavx2 case.
6139         * config/i386/cpuid.h (bit_AVX2): New.
6140         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6141         AVX2 feature.
6142         * config/i386/i386-c.c (ix86_target_macros_internal):
6143         Conditionally define __AVX2__.
6144         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6145         Define "core-avx2" processor alias.  Handle avx2 option.
6146         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6147         * config/i386/i386.h (TARGET_AVX2): New.
6148         * config/i386/i386.opt (mavx2): New.
6149         * doc/invoke.texi: Document -mavx2.
6150
6151 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
6152
6153         PR rtl-optimization/49890
6154         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6155         subclasses of class which is superset of a pressure class.
6156
6157 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6158             Igor Zamyatin <igor.zamyatin@intel.com>
6159
6160         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6161         with HOST_WIDE_INT for isa_flag.
6162         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6163         isa variables.
6164
6165         * config/i386/i386.c (ix86_target_string): Replace int with
6166         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
6167         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6168         (pta_flags): Removed.
6169         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6170         (pta): Use HOST_WIDE_INT on flags.
6171         (builtin_isa): Use HOST_WIDE_INT on isa.
6172         (ix86_add_new_builtins): Likewise.
6173         (def_builtin): Use HOST_WIDE_INT on mask.
6174         (def_builtin_const): Likewise.
6175         (builtin_description): Likewise.
6176
6177         * config/i386/i386.opt (ix86_isa_flags): Replace int with
6178         HOST_WIDE_INT.
6179         (ix86_isa_flags_explicit): Likewise.
6180         (x_ix86_isa_flags_explicit): Likewise.
6181
6182 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
6183
6184         PR rtl-optimization/50107
6185         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
6186         (ira_hard_reg_in_set_p): New.
6187
6188         * ira-color.c (calculate_saved_nregs): New.
6189         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
6190         hard regs.
6191         (allocno_reload_assign, fast_allocation): Use
6192         ira_hard_reg_set_intersection_p instead of
6193         ira_hard_reg_not_in_set_p.
6194
6195         * ira.c (setup_reg_renumber): Use
6196         ira_hard_reg_set_intersection_p instead of
6197         ira_hard_reg_not_in_set_p.
6198         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
6199         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
6200
6201         * ira-costs.c (ira_tune_allocno_costs): Use
6202         ira_hard_reg_set_intersection_p instead of
6203         ira_hard_reg_not_in_set_p.
6204
6205 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6206             Igor Zamyatin <igor.zamyatin@intel.com>
6207
6208         * hwint.h (HOST_WIDE_INT_1): New.
6209
6210         * opt-functions.awk (switch_bit_fields): Initialize the
6211         host_wide_int field.
6212         (host_wide_int_var_name): New.
6213         (var_type_struct): Check and return HOST_WIDE_INT.
6214
6215         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
6216
6217         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
6218
6219         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
6220         check masks for HOST_WIDE_INT.
6221
6222         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
6223         (option_enabled): Likewise.
6224         (get_option_state): Likewise.
6225
6226         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
6227         to HOST_WIDE_INT.
6228
6229 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6230             Marc Glisse  <marc.glisse@normalesup.org>
6231
6232         PR libstdc++-v3/1773
6233         * target.def (decl_mangling_context): New C++ hook.
6234         * doc/tm.texi: Regenerate.
6235         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
6236         * config/sol2-protos.h: Group by source file.
6237         (solaris_cxx_decl_mangling_context): Declare.
6238         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
6239         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
6240         Use $<.
6241         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
6242         Add sol2-stubs.o to extra_objs.
6243
6244 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
6245
6246         PR target/50009
6247         * stor-layout.c (update_alignment_for_field): Don't ICE on
6248         packed flexible array members if ms_bitfield_layout_p.
6249
6250         PR target/50092
6251         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
6252         on the result before returning it.
6253
6254         PR debug/50017
6255         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
6256         is a debug stmt, use location of the first non-debug stmt after it.
6257
6258 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6259
6260         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
6261         (arm_size_rtx_costs): Likewise.
6262
6263 2011-08-18  Richard Guenther  <rguenther@suse.de>
6264
6265         * tree.h (tree_int_cst_msb): Remove.
6266         * tree.c (tree_int_cst_msb): Likewise.
6267         (tree_int_cst_sign_bit): Move from ...
6268         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
6269
6270 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6271
6272         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
6273         * doc/tm.texi: Regenerate.
6274         * target.def (rtx_costs): Add an opno parameter.
6275         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6276         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6277         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6278         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6279         * cse.c (COST_IN): Add an opno parameter.
6280         (notreg_cost): Likewise.  Update call to rtx_cost.
6281         (COST, fold_rtx): Update accordingly.
6282         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
6283         * expmed.c (emit_store_flag): Likewise.
6284         * optabs.c (avoid_expensive_constant): Add an opno parameter.
6285         Update call to rtx_cost.
6286         (expand_binop_directly, expand_binop): Likewise.
6287         (expand_twoval_binop, prepare_cmp_insn): Likewise.
6288         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
6289         (set_src_cost, get_full_set_src_cost): Update accordingly.
6290         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
6291         to target hook.
6292         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
6293         (default_adress_cost): Update calls to rtx_cost.
6294
6295         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
6296         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
6297         (arm_rtx_costs): Add an opno parameter.
6298         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
6299         adjust any recursive rtx-cost calls.
6300         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
6301         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6302         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6303         * config/cris/cris.c (cris_rtx_costs): Likewise.
6304         * config/frv/frv.c (frv_rtx_costs): Likewise.
6305         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6306         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6307         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6308         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6309         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6310         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6311         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6312         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6313         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6314         * config/mep/mep.c (mep_rtx_cost): Likewise.
6315         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6316         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
6317         (mips_zero_extend_cost): Add an opno parameter.
6318         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6319         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
6320         to rtx_cost.
6321         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
6322         rtx-cost calls.
6323         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6324         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6325         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
6326         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6327         (rs6000_debug_rtx_costs): Likewise.
6328         * config/s390/s390.c (s390_rtx_costs): Likewise.
6329         * config/score/score-protos.h (score_rtx_costs): Likewise.
6330         * config/score/score.c (score_rtx_costs): Likewise.
6331         * config/sh/sh.c (andcosts): Update call to rtx_cost.
6332         (sh_rtx_costs): Add an opno parameter.
6333         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6334         * config/spu/spu.c (spu_rtx_costs): Likewise.
6335         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6336         * config/v850/v850.c (v850_rtx_costs): Likewise.
6337         * config/vax/vax.c (vax_rtx_costs): Likewise.
6338         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6339
6340 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6341
6342         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6343         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6344         rtx_cost.
6345         * calls.c (precompute_register_parameters): Likewise.
6346         * combine.c (expand_compound_operation, make_extraction): Likewise.
6347         (force_to_mode, distribute_and_simplify_rtx): Likewise.
6348         * dse.c (find_shift_sequence): Likewise.
6349         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6350         * expr.c (compress_float_constant): Likewise.
6351         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6352         * gcse.c (want_to_gcse_p): Likewise.
6353         * ifcvt.c (noce_try_sign_mask): Likewise.
6354         * loop-doloop.c (doloop_optimize): Likewise.
6355         * loop-invariant.c (create_new_invariant): Likewise.
6356         * optabs.c (avoid_expensive_constant): Likewise.
6357         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6358         (try_replace_in_use, reload_cse_move2add): Likewise.
6359         * reload1.c (calculate_elim_costs_all_insns): Likewise.
6360         (note_reg_elim_costly): Likewise.
6361         * rtlanal.c (insn_rtx_cost): Likewise.
6362         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6363         * stmt.c (lshift_cheap_p): Likewise.
6364         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6365         * config/avr/avr.c (final_prescan_insn): Likewise.
6366         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6367         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6368
6369 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6370
6371         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6372         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6373         * cfgloopanal.c (seq_cost): Likewise.
6374         * loop-invariant.c (create_new_invariant): Likewise.
6375         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6376         (reload_cse_move2add): Use get_full_set_rtx_cost.
6377
6378 2011-08-18  Richard Guenther  <rguenther@suse.de>
6379
6380         * expr.c (get_inner_reference): Fix typo in last change.
6381
6382 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
6383             Joseph Myers  <joseph@codesourcery.com>
6384
6385         PR tree-optimization/49963
6386         * hwint.c (absu_hwi): Define.
6387         * hwint.h (absu_hwi): Declare.
6388         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6389         of abs_hwi.
6390         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6391         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6392
6393 2011-08-18  Richard Guenther  <rguenther@suse.de>
6394
6395         * expr.c (get_inner_reference): Sign-extend the constant
6396         twos-complement offset before doing arbitrary precision
6397         arithmetic on it.
6398         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6399         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6400         to get_constraint_for_ptr_offset.
6401
6402 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6403
6404         PR target/50068
6405         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6406
6407 2011-08-17  Richard Guenther  <rguenther@suse.de>
6408
6409         * tree.h (convert_to_ptrofftype_loc): New function.
6410         (convert_to_ptrofftype): Define.
6411         * builtins.c (expand_builtin_bzero): Use size_type_node.
6412         (fold_builtin_bzero): Likewise.
6413         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6414         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6415         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6416         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6417         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6418         * fold-const.c (build_range_check): Negate using the original type.
6419         (fold_unary_loc): Use fold_build_pointer_plus_loc.
6420         * gimple-fold.c (gimple_adjust_this_by_delta): Use
6421         convert_to_ptrofftype.
6422         * gimplify.c (gimplify_self_mod_expr): Likewise.
6423         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6424         (graphite_create_new_loop_guard): Likewise.
6425         * graphite-sese-to-poly.c (my_long_long): Remove.
6426         (scop_ivs_can_be_represented): Adjust.
6427         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6428         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6429         * tree-loop-distribution.c (build_size_arg_loc): Use
6430         size_type_node.
6431         (generate_memset_zero): Simplify.
6432         * tree-mudflap.c: Use fold_convert, not convert.
6433         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6434         its own type.
6435         (determine_offset): Likewise for DR_STEP.
6436         (valid_initializer_p): Likewise.
6437         * tree-profile.c (prepare_instrumented_value): Convert the pointer
6438         to an integer type of same size.
6439         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6440         to sizetype without need.
6441         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6442         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6443         * tree-ssa-loop-manip.c (create_iv): Likewise.
6444         (determine_exit_conditions): Adjust comment.
6445         * tree-ssa-pre.c (create_expression_by_pieces): Use
6446         convert_to_ptrofftype.
6447         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6448         * varasm.c (array_size_for_constructor): Compute using double_ints.
6449
6450 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6451
6452         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6453         when generating an integer result where possible.  Short-cut
6454         comparison against 0 also for QImode.
6455
6456 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6457
6458         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6459         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6460         prototype.
6461         * config/spu/spu.c (spu_legitimize_reload_address): New function.
6462         (spu_legitimate_address_p): Do not check displacement if the base
6463         is an eliminable stack register.
6464
6465 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
6466
6467         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6468         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6469         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6470         m32c_preferred_output_reload_class): Remove.
6471         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6472         Change rclass argument and return types to reg_class_t. Use
6473         reg_class_subset_p instead of class_sizes.
6474         (m32c_preferred_output_reload_class): Make static. Change rclass
6475         argument and return types to reg_class_t.
6476         (TARGET_PREFERRED_RELOAD_CLASS,
6477         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6478
6479 2011-08-16  Kai Tietz  <ktietz@redhat.com>
6480
6481         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6482
6483 2011-08-16  Richard GUenther  <rguenther@suse.de>
6484
6485         PR tree-optimization/50082
6486         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6487         warnings here, instead of ...
6488         (ssa_forward_propagate_and_combine): ... here.
6489         (forward_propagate_into_comparison_1): Adjust.
6490         (forward_propagate_into_comparison): Likewise.
6491         (forward_propagate_into_gimple_cond): Likewise.
6492         (forward_propagate_into_cond): Likewise.
6493
6494 2011-08-16  Andreas Schwab  <schwab@redhat.com>
6495
6496         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6497         instead of ggc_alloc_zone_vec_rtvec_def.
6498
6499 2011-08-16  Richard Guenther  <rguenther@suse.de>
6500
6501         * tree.h (ptrofftype_p): New helper function.
6502         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6503         offset verification.
6504         (verify_gimple_assign_binary): Likewise.
6505         * tree.c (build2_stat): Likewise.
6506         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6507         (reset_evolution_in_loop): Likewise.
6508         * tree-chrec.h (build_polynomial_chrec): Likewise.
6509
6510 2011-08-16  Liang Wang  <lwang1@marvell.com>
6511
6512         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6513         ggc_alloc_zone_vec_rtvec_def.
6514
6515 2011-08-16  Richard Guenther  <rguenther@suse.de>
6516
6517         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6518         helper factored out from ...
6519         (extract_range_from_binary_expr_1): ... here.  Re-structure
6520         to not glob handling too different tree codes.
6521
6522 2011-08-15  Richard Henderson  <rth@redhat.com>
6523
6524         PR middle-end/50006
6525         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6526         setting out to include allocate_stack named pattern as well.
6527         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6528         * stmt.c (expand_stack_restore): Likewise.
6529
6530 2011-08-15  Richard Guenther  <rguenther@suse.de>
6531
6532         PR middle-end/50082
6533         * fold-const.c (maybe_canonicalize_comparison_1): Properly
6534         convert the modified operand to the other operand type.
6535         (fold_comparison): Call maybe_canonicalize_comparison_1 with
6536         useless conversions stripped from comparison operands.
6537
6538 2011-08-15  Richard Guenther  <rguenther@suse.de>
6539
6540         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6541         (extract_range_from_unary_expr_1): Restructure.
6542
6543 2011-08-15  Richard Guenther  <rguenther@suse.de>
6544
6545         PR tree-optimization/50058
6546         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6547         copy matching.
6548
6549 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6550
6551         PR target/50022
6552         * config/arm/arm.c (output_move_double): Add 2 parameters
6553         to count the number of insns emitted and whether to emit or not.
6554         Use the flag to decide when to emit and count number of instructions
6555         that will be emitted.
6556         Handle case where output_move_double might be called for calculating
6557         lengths with an invalid constant.
6558         (arm_count_output_move_double_insns): Define.
6559         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6560         (output_move_double): Adjust prototype.
6561         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6562         output_move_double.
6563         ("*movdi_vfp_cortexa8"): Likewise and add attribute
6564         for ce_count.
6565         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6566         ("*movdf_soft_insn"): Likewise.
6567         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6568         ("*cirrus_thumb2_movdi"): Likewise.
6569         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6570         ("*cirrus_movdf_hard_insn"): Likewise.
6571         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6572         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6573         ("mov<mode>_internal VMMX"): Likewise.
6574         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6575
6576 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
6577
6578         * config/i386/i386.c (ix86_expand_round_sse4): New function.
6579         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6580         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6581         for TARGET_ROUND.
6582
6583         (rint<mode>2): Simplify TARGET_ROUND check.
6584         (floor<mode>2): Ditto.
6585         (ceil<mode>2): Ditto.
6586         (btrunc<mode>2): Ditto.
6587
6588 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
6589
6590         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6591         as mmix_preferred_output_reload_class.
6592
6593 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
6594
6595         * PR target/49903
6596         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6597         (branch_unspec): New insn.
6598         (branch): Beauty farm.
6599         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
6600         to be IF_THEN_ELSE.
6601         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6602         New static functions.
6603         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
6604         Use CONST_INT_P.  Beauty.
6605
6606 2011-08-12  Richard Henderson  <rth@redhat.com>
6607
6608         PR rtl-opt/49994
6609         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6610         * sched-deps.c (init_deps): Clear it.
6611         (deps_analyze_insn): Consume it.
6612         (sched_analyze_insn): Fill it.
6613
6614 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6615
6616         PR target/48328
6617         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6618         for tbh instructions.
6619
6620 2011-08-12  Diego Novillo  <dnovillo@google.com>
6621
6622         * data-streamer.h (streamer_write_zero): Rename from output_zero.
6623         (streamer_write_uhwi): Rename from lto_output_uleb128.
6624         (streamer_write_hwi): Rename from output_sleb128.
6625         (streamer_write_string): Rename from lto_output_string.
6626         (streamer_string_index): Rename from lto_string_index.
6627         (streamer_write_string_with_length): Rename from
6628         lto_output_string_with_length.
6629         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6630         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6631         (streamer_read_string): Rename from lto_input_string.
6632         (streamer_read_indexed_string): Rename from input_string_internal.
6633         (streamer_read_uhwi): Rename from lto_input_uleb128.
6634         (streamer_read_hwi): Rename from lto_input_sleb128.
6635         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6636         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6637         (streamer_write_enum): Rename from lto_output_enum.
6638         (streamer_read_enum): Rename from lto_input_enum.
6639         (streamer_write_record_start): Rename from output_record_start.
6640         (streamer_read_record_start): Rename from input_record_start.
6641         (streamer_write_bitpack): Rename from lto_output_bitpack.
6642         (streamer_read_bitpack): Rename from lto_input_bitpack.
6643         (streamer_write_char_stream): Rename from lto_output_1_stream.
6644         (streamer_read_uchar): Rename from lto_input_1_unsigned.
6645         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6646         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6647         (streamer_read_string_cst): Rename from input_string_cst.
6648         (streamer_read_chain): Rename from lto_input_chain.
6649         (streamer_alloc_tree): Rename from lto_materialize_tree.
6650         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6651         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6652         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6653         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6654         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6655         (streamer_write_chain): Rename from lto_output_chain.
6656         (streamer_write_tree_header): Rename from lto_output_tree_header.
6657         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6658         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6659         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6660         (streamer_write_builtin): Rename from lto_output_builtin_tree.
6661         (streamer_check_handled_ts_structures): Rename from
6662         check_handled_ts_structures.
6663         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6664         (streamer_tree_cache_insert_at): Rename from
6665         lto_streamer_cache_insert_at.
6666         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6667         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6668         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6669         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6670         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6671         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6672         (write_identifier): Rename from output_identifier.
6673         (write_ts_common_tree_pointers): Rename from
6674         lto_output_ts_common_tree_pointers.
6675         (write_ts_vector_tree_pointers): Rename from
6676         lto_output_ts_vector_tree_pointers.
6677         (write_ts_complex_tree_pointers): Rename from
6678         lto_output_ts_complex_tree_pointers.
6679         (write_ts_decl_minimal_tree_pointers): Rename from
6680         lto_output_ts_decl_minimal_tree_pointers.
6681         (write_ts_decl_common_tree_pointers): Rename from
6682         lto_output_ts_decl_common_tree_pointers.
6683         (write_ts_decl_non_common_tree_pointers): Rename from
6684         lto_output_ts_decl_non_common_tree_pointers.
6685         (write_ts_decl_with_vis_tree_pointers): Rename from
6686         lto_output_ts_decl_with_vis_tree_pointers.
6687         (write_ts_field_decl_tree_pointers): Rename from
6688         lto_output_ts_field_decl_tree_pointers.
6689         (write_ts_function_decl_tree_pointers): Rename from
6690         lto_output_ts_function_decl_tree_pointers.
6691         (write_ts_type_common_tree_pointers): Rename from
6692         lto_output_ts_type_common_tree_pointers.
6693         (write_ts_type_non_common_tree_pointers): Rename from
6694         lto_output_ts_type_non_common_tree_pointers.
6695         (write_ts_list_tree_pointers): Rename from
6696         lto_output_ts_list_tree_pointers.
6697         (write_ts_vec_tree_pointers): Rename from
6698         lto_output_ts_vec_tree_pointers.
6699         (write_ts_exp_tree_pointers): Rename from
6700         lto_output_ts_exp_tree_pointers.
6701         (write_ts_block_tree_pointers): Rename from
6702         lto_output_ts_block_tree_pointers.
6703         (write_ts_binfo_tree_pointers): Rename from
6704         lto_output_ts_binfo_tree_pointers.
6705         (write_ts_constructor_tree_pointers): Rename from
6706         lto_output_ts_constructor_tree_pointers.
6707         (write_ts_target_option): Rename from lto_output_ts_target_option.
6708         (write_ts_translation_unit_decl_tree_pointers): Rename from
6709         lto_output_ts_translation_unit_decl_tree_pointers.
6710         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6711         Rename from lto_streamer_cache_add_to_node_array.
6712         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6713         (record_common_node): Rename from lto_record_common_node.
6714
6715         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6716         declarations.
6717         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6718         function.
6719         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6720         unused function.
6721         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6722         (ipa-reference.o): Likewise.
6723         * lto-section-out.c: Include data-streamer.h.
6724         * ipa-reference.c: Include data-streamer.h.
6725
6726 2011-08-12  Nick Clifton  <nickc@redhat.com>
6727
6728         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6729         * doc/md.texi (cmpstrn): Note that the comparison stops if both
6730         fetched bytes are zero.
6731         (cmpstr): Likewise.
6732         (cmpmem): Note that the comparison does not stop if both of the
6733         fetched bytes are zero.
6734
6735 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
6736
6737         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6738         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6739         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6740         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6741         to integer_type_node.
6742         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6743         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6744         * builtins.c (expand_builtin_in): Ditto.
6745         (mathfn_built_in_1): Ditto.
6746         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6747         BUILT_IN_IFLOOR.
6748         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6749         BUILT_IN_IROUND.
6750         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6751         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6752         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6753
6754 2011-08-12  Richard Guenther  <rguenther@suse.de>
6755
6756         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6757
6758 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
6759
6760         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6761
6762 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
6763
6764         * config/arm/arm.c (get_label_padding): New function.
6765         (create_fix_barrier, arm_reorg): Use it.
6766
6767 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
6768
6769         PR target/49781
6770         * config/i386/i386.md (*lea_5_zext): New.
6771         (*lea_6_zext): Ditto.
6772         * config/i386/predicates.md (const_32bit_mask): New predicate.
6773         (lea_address_operand): Reject AND.
6774         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6775         const_32bit_mask immediate.
6776         (ix86_print_operand_address): Handle AND.
6777         (memory_address_length): Ditto.
6778
6779 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
6780             Brian Hackett  <bhackett1024@gmail.com>
6781
6782         * plugin.def: Add event for finish_decl.
6783         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6784         * c-decl.c (finish_decl): Invoke callbacks on above event.
6785         * doc/plugins.texi: Document above event.
6786
6787 2011-08-11  Richard Guenther  <rguenther@suse.de>
6788
6789         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6790         lookups, make looking through aggregate copies stronger.
6791
6792 2011-08-11  Richard Henderson  <rth@redhat.com>
6793
6794         PR bootstrap/50018
6795         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6796
6797 2011-08-11  Richard Guenther  <rguenther@suse.de>
6798
6799         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6800         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6801         (vrp_visit_stmt): Likewise.
6802
6803 2011-08-11  Richard Guenther  <rguenther@suse.de>
6804
6805         PR middle-end/50040
6806         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6807         load of the other piece with TREE_NO_WARNING.
6808         * tree-flow.h (warn_uninit): Adjust prototype.
6809         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6810         the base variable and the expression that is used separately.
6811         Properly query all TREE_NO_WARNING flags.
6812         (struct walk_data): Remove.
6813         (warn_uninitialized_var): Likewise.
6814         (warn_uninitialized_vars): Do not walk gimple pieces but simply
6815         look at all SSA uses of the statement.  Handle unused memory
6816         separately.
6817         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6818
6819 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
6820
6821         * config/rx/rx.md (movsicc): Allow register to register transfers.
6822         (*movsicc): Likewise.
6823         (*stcc): Restrict this pattern to EQ and NE compares.
6824         (*stcc_reg): New pattern.  Works for any comparison but only for
6825         register transfers.
6826
6827 2011-08-11   Diego Novillo  <dnovillo@google.com>
6828
6829         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6830         Call stream_write_tree instead of output_record_start.
6831         (lto_output_ts_binfo_tree_pointers): Likewise.
6832
6833         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6834         Convert it to a macro.
6835         (stream_read_tree): Likewise.
6836
6837         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6838         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6839
6840         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6841         and tree_read_bitfields.
6842         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6843         (lto_write_tree): Call it.
6844         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6845         * streamer-hooks.h (struct streamer_hooks): Remove fields
6846         name, is_streamable and alloc_tree. Update all users.
6847         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6848         (lto_materialize_tree): ... here.
6849         Handle CALL_EXPR codes.
6850         Remove call to lto_streamer_cache_append.
6851         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6852         * tree-streamer.h (tree_read_bitfields): Declare.
6853
6854         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6855         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6856         * tree-streamer.h (stream_read_tree): New.  Replace all calls
6857         to lto_input_tree with it.
6858         (stream_write_tree): New.  Replace all calls to lto_output_tree,
6859         lto_output_tree_ref and lto_output_tree_or_ref with it.
6860         * lto-streamer-in.c (lto_read_tree): Inline code from
6861         lto_streamer_read_tree.
6862         (lto_input_tree): Move from tree-streamer-in.c.
6863         * lto-streamer-out.c (lto_output_tree_ref): Make static.
6864         Remove handling of NULL values for EXPR.
6865         Do not handle EXPRs that are not indexable.
6866         (lto_write_tree): Move from tree-streamer-out.c.
6867         Inline lto_streamer_write_tree.
6868         (lto_output_tree): Move from tree-streamer-out.c.
6869         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6870         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6871         (lto_preload_common_nodes): Likewise.
6872         Remove assertions and adjustments for nodes
6873         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6874         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6875         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6876         * lto-streamer.h (lto_input_tree): Declare.
6877         (lto_output_tree_ref): Remove.
6878         * streamer-hooks.h (struct streamer_hooks): Remove fields
6879         preload_common_nodes, indexable_with_decls_p,
6880         pack_value_fields, unpack_value_fields and output_tree_header.
6881         Update all users.
6882         * tree-streamer-in.c (lto_materialize_tree): Make extern.
6883         (lto_input_tree_pointers): Likewise.
6884         (lto_read_tree): Move to lto-streamer-in.c.
6885         (lto_input_integer_cst): Make extern.
6886         (lto_get_pickled_tree): Likewise.
6887         (lto_get_builtin_tree): Likewise.
6888         (lto_input_tree): Move to lto-streamer-in.c.
6889         * tree-streamer-out.c (pack_value_fields): Make extern.
6890         (lto_output_tree_or_ref): Remove.  Replace all callers with
6891         calls to stream_write_tree.
6892         (lto_output_builtin_tree): Make extern.
6893         (lto_streamer_write_tree): Inline into lto_write_tree.
6894         (lto_output_tree_pointers): Make extern.
6895         (lto_output_tree_header): Likewise.
6896         (lto_output_integer_cst): Likewise.
6897         (lto_write_tree): Move to lto-streamer-out.c.
6898         (lto_output_tree): Likewise.
6899         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6900         (preload_common_nodes): Likewise.
6901         (lto_streamer_cache_create): Call it.
6902         * tree-streamer.h: Include streamer-hooks.h.
6903         (stream_write_tree): New.
6904         (stream_read_tree): New.
6905         (lto_input_tree): Remove.
6906         (lto_materialize_tree): Declare.
6907         (lto_input_tree_pointers): Declare.
6908         (lto_get_pickled_tree): Declare.
6909         (lto_get_builtin_tree): Declare.
6910         (lto_input_integer_cst): Declare.
6911         (lto_output_tree_header): Declare.
6912         (pack_value_fields): Declare.
6913         (lto_output_tree_pointers): Declare.
6914         (lto_output_integer_cst): Declare.
6915         (lto_output_builtin_tree): Declare.
6916
6917 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6918
6919         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6920         only if producer writes to the register given by regno.
6921
6922 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6923             Alexander Monakov  <amonakov@ispras.ru>
6924
6925         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6926         (sched_get_condition_with_rev_uncached): ... this.  Factor out
6927         condition caching logic into ...
6928         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
6929         attempt to use cache for instructions with zero luid.
6930         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6931         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6932
6933 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6934
6935         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6936         get_seqno_for_a_jump.  Update the caller.
6937         (get_seqno_by_succs): New.  Use it ...
6938         (get_seqno_for_a_jump): ... here to find a seqno if looking at
6939         predecessors was not sufficient.
6940         (get_seqno_by_preds): Include head in iteration range, exclude insn.
6941
6942 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6943
6944         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6945
6946 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6947
6948         * sel-sched-ir.h (register_unavailable_p): Declare.
6949         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
6950         (set_unavailable_target_for_expr): ... here to properly test
6951         availability of a register.
6952         (speculate_expr): Ditto.
6953         * sel-sched.c (substitute_reg_in_expr): Ditto.
6954         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6955
6956 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6957
6958         * sel-sched.c (verify_target_availability): Fix usage of
6959         hard_regno_nregs.
6960
6961 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6962
6963         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
6964         recognized by cannot_copy_insn_p hook and volatile instructions.
6965
6966 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6967
6968         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
6969
6970 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
6971
6972         * doc/md.texi (define_bypass): Say that the instruction names can
6973         be filename-style globs.
6974         * Makefile.in (FNMATCH_H): Define.
6975         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
6976         * genattrtab.c: Include fnmatch.h.
6977         (bypass_list): Change field name from "insn" to "pattern".
6978         (gen_bypass_1): Update accordingly.
6979         (process_bypasses): Use fnmatch to check for matches between
6980         insn reservations and define_bypasses.
6981         * genautomata.c: Include fnmatch.h.
6982         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
6983         and out_pattern respectively.
6984         (gen_bypass, insert_bypass): Update accordingly.
6985         (for_each_matching_insn, process_bypass_2, process_bypass_1)
6986         (process_bypass): New functions.
6987         (process_decls): Use process_bypass.  Update after field name changes.
6988
6989 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
6990
6991         PR target/49687
6992         * config/avr/avr.md (smulqi3_highpart): New insn.
6993         (umulqi3_highpart): New insn.
6994         (*subqi3.ashiftrt7): New insn.
6995         (smulhi3_highpart): New expander.
6996         (umulhi3_highpart): Nex expander.
6997         (*smulhi3_highpart_call): New insn.
6998         (*umulhi3_highpart_call): New insn.
6999         (extend_u): New code attribute.
7000         (extend_prefix): Rename code attribute to extend_su.
7001         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
7002         widening QI/HI multiply.
7003
7004 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
7005
7006         PR tree-optimization/50039
7007         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
7008         that DEF_STMT has a stmt_vec_info.
7009
7010 2011-08-10  Richard Guenther  <rguenther@suse.de>
7011
7012         * tree.h (can_trust_pointer_alignment): Remove.
7013         * builtins.c (can_trust_pointer_alignment): Remove.
7014
7015 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7016
7017         * c-typeck.c (scalar_to_vector): New function. Try scalar to
7018         vector conversion.
7019         (stv_conv): New enum for scalar_to_vector return type.
7020         (build_binary_op): Adjust.
7021         * doc/extend.texi: Description of scalar to vector expansion.
7022
7023 2011-08-10  Richard Guenther  <rguenther@suse.de>
7024
7025         * tree.h (get_pointer_alignment): Remove max-align argument.
7026         (get_object_alignment): Likewise.
7027         * builtins.c (get_object_alignment_1): Adjust.
7028         (get_object_alignment): Remove max-align argument.
7029         (get_pointer_alignment): Likewise.
7030         (expand_builtin_strlen): Adjust.
7031         (expand_builtin_memcpy): Likewise.
7032         (expand_builtin_mempcpy_args): Likewise.
7033         (expand_builtin_strncpy): Likewise.
7034         (expand_builtin_memset_args): Likewise.
7035         (expand_builtin_memcmp): Likewise.
7036         (expand_builtin_strcmp): Likewise.
7037         (expand_builtin_strncmp): Likewise.
7038         (get_builtin_sync_mem): Likewise.
7039         (fold_builtin_memset): Likewise.
7040         (fold_builtin_memory_op): Likewise.
7041         (expand_builtin_memory_chk): Likewise.
7042         * emit-rtl.c (get_mem_align_offset): Likewise.
7043         (set_mem_attributes_minus_bitpos): Likewise.
7044         * expr.c (expand_assignment): Likewise.
7045         (expand_expr_real_1): Likewise.
7046         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
7047         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7048         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7049         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7050         * value-prof.c (gimple_stringops_transform): Likewise.
7051
7052 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
7053
7054         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7055         * doc/tm.texi: Regenerate.
7056
7057 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
7058
7059         PR target/29560
7060         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7061         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7062         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7063         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7064         shift target is unused.
7065
7066 2011-08-10  Richard Guenther  <rguenther@suse.de>
7067
7068         PR tree-optimization/49937
7069         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7070         using get_object_alignment_1.
7071
7072 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7073
7074         * config/i386/i386.c (ix86_emit_i387_round): New function.
7075         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7076         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7077         Use ix86_emit_i387_round to expand round function for i387 math.
7078         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7079         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7080
7081 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7082
7083         * config/sync.c: Move to ../libgcc.
7084         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7085         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7086         Remove.
7087
7088 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7089
7090         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7091         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7092         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7093         Change 'from' and 'to' arguments type to reg_class_t.
7094         (TARGET_REGISTER_MOVE_COST): Define.
7095
7096 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
7097
7098         PR target/50026
7099         Revert:
7100         PR rtl-optimization/49990
7101         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7102         ignore classes which can not change mode.
7103         (find_costs_and_classes): Ditto.
7104
7105 2011-08-09  Richard Guenther  <rguenther@suse.de>
7106
7107         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7108         information for ranges with only negative values.
7109         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7110         BIT_AND_EXPR handling to handle ranges with negative values.
7111
7112 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
7113
7114         * config/i386/i386.c: Remove traling spaces.
7115         * config/i386/sse.md: Likewise.
7116         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7117         (*fma_fmsub_<mode>): Likewise.
7118         (*fma_fnmadd_<mode>): Likewise.
7119         (*fma_fnmsub_<mode>): Likewise.
7120
7121 2011-08-09  Nick Clifton  <nickc@redhat.com>
7122
7123         * config/rx/rx.md: Disable extender peepholes at -O3.
7124
7125 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7126
7127         PR target/49781
7128         * config/i386/i386.md (reload_noff_load): New.
7129         (reload_noff_store): Ditto.
7130         * config/i386/i386.c (ix86_secondary_reload): Use
7131         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7132         double-word moves from/to non-offsetable addresses instead of
7133         generating XMM temporary.
7134
7135 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7136
7137         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7138
7139 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
7140
7141         PR tree-optimization/50014
7142         * tree-vect-loop.c (vectorizable_reduction): Get def type before
7143         calling vect_get_vec_def_for_stmt_copy ().
7144
7145 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
7146
7147         PR rtl-optimization/49990
7148         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7149         ignore classes which can not change mode.
7150         (find_costs_and_classes): Ditto.
7151
7152 2011-08-08  Richard Henderson  <rth@redhat.com>
7153
7154         PR middle-end/49990
7155         * config/i386/i386.c (ix86_expand_prologue): Call
7156         for SEH target gen_prologue_use instead of gen_blockage
7157         at prologue's end.
7158
7159 2011-08-08  Martin Jambor  <mjambor@suse.cz>
7160
7161         PR middle-end/49923
7162         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7163         memory alignment.
7164
7165 2011-08-08   Diego Novillo  <dnovillo@google.com>
7166
7167         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7168         (DATA_STREAMER_H): New.
7169         (GIMPLE_STREAMER_H): New.
7170         (TREE_STREAMER_H): New.
7171         (STREAMER_HOOKS_H): New.
7172         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7173         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7174         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7175         (data-streamer.o): New.
7176         (data-streamer-in.o): New.
7177         (data-streamer-out.o): New.
7178         (gimple-streamer-in.o): New.
7179         (gimple-streamer-out.o): New.
7180         (streamer-hooks.o): New.
7181         (tree-streamer.o): New.
7182         (tree-streamer-in.o): New.
7183         (tree-streamer-out.o): New.
7184         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7185         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
7186         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7187         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
7188         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7189         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
7190         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7191         (ipa-inline-analysis.o): Likewise.
7192         (ipa-pure-const.o): Likewise.
7193         * data-streamer-in.c: New.
7194         * data-streamer-out.c: New.
7195         * data-streamer.c: New.
7196         * data-streamer.h: New.
7197         * gimple-streamer-in.c: New.
7198         * gimple-streamer-out.c: New.
7199         * gimple-streamer.h: New.
7200         * ipa-inline-analysis.c: Include data-streamer.h.
7201         * ipa-prop.c: Include data-streamer.h.
7202         * ipa-pure-const.c: Include data-streamer.h.
7203         * lto-cgraph.c: Include data-streamer.h.
7204         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
7205         (lto_input_widest_uint_uleb128): Likewise.
7206         (lto_input_sleb128): Likewise.
7207         (bp_unpack_var_len_unsigned): Likewise.
7208         (bp_unpack_var_len_int): Likewise.
7209         * lto-section-out.c (lto_output_uleb128_stream): Move to
7210         data-streamer-out.c.
7211         (lto_output_widest_uint_uleb128_stream): Likewise.
7212         (lto_output_sleb128_stream): Likewise.
7213         (bp_pack_var_len_unsigned): Likewise.
7214         (bp_pack_var_len_int): Likewise.
7215         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
7216         (struct string_slot): Remove.  Update all users.
7217         (lto_tag_check_set): Make extern.
7218         (lto_tag_check_range): Move to lto-streamer.h.
7219         (lto_tag_check): Likewise.
7220         (hash_string_slot_node): Remove.  Update all users.
7221         (eq_string_slot_node): Remove.  Update all users.
7222         (string_for_index): Move to data-streamer-in.c
7223         (input_string_internal): Likewise.
7224         (input_string_cst): Move to tree-streamer-in.c.
7225         (input_identifier): Likewise.
7226         (lto_input_string): Move to data-streamer-in.c
7227         (input_record_start): Move to data-streamer.h
7228         (canon_file_name): Use new definition of struct string_slot
7229         from data-streamer.h.  Set S_SLOT.LEN.
7230         (lto_input_location): Make extern.
7231         (lto_input_chain): Move to tree-streamer-in.c.
7232         (lto_init_eh): Make extern.
7233         (input_phi): Move to gimple-streamer-in.c.
7234         (input_gimple_stmt): Likewise.
7235         (input_bb): Likewise.
7236         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
7237         (unpack_ts_real_cst_value_fields): Likewise.
7238         (unpack_ts_fixed_cst_value_fields): Likewise.
7239         (unpack_ts_decl_common_value_fields): Likewise.
7240         (unpack_ts_decl_wrtl_value_fields): Likewise.
7241         (unpack_ts_decl_with_vis_value_fields): Likewise.
7242         (unpack_ts_function_decl_value_fields): Likewise.
7243         (unpack_ts_type_common_value_fields): Likewise.
7244         (unpack_ts_block_value_fields): Likewise.
7245         (unpack_ts_translation_unit_decl_value_fields): Likewise.
7246         (unpack_value_fields): Likewise.
7247         (lto_materialize_tree): Likewise.
7248         (lto_input_ts_common_tree_pointers): Likewise.
7249         (lto_input_ts_vector_tree_pointers): Likewise.
7250         (lto_input_ts_complex_tree_pointers): Likewise.
7251         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7252         (lto_input_ts_decl_common_tree_pointers): Likewise.
7253         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
7254         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
7255         (lto_input_ts_field_decl_tree_pointers): Likewise.
7256         (lto_input_ts_function_decl_tree_pointers): Likewise.
7257         (lto_input_ts_type_common_tree_pointers): Likewise.
7258         (lto_input_ts_type_non_common_tree_pointers): Likewise.
7259         (lto_input_ts_list_tree_pointers): Likewise.
7260         (lto_input_ts_vec_tree_pointers): Likewise.
7261         (lto_input_ts_exp_tree_pointers): Likewise.
7262         (lto_input_ts_block_tree_pointers): Likewise.
7263         (lto_input_ts_binfo_tree_pointers): Likewise.
7264         (lto_input_ts_constructor_tree_pointers): Likewise.
7265         (lto_input_ts_target_option): Likewise.
7266         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
7267         (lto_input_tree_pointers): Likewise.
7268         (lto_get_pickled_tree): Likewise.
7269         (lto_get_builtin_tree): Likewise.
7270         (lto_read_tree): Likewise.
7271         (lto_input_integer_cst): Likewise.
7272         (lto_input_tree): Likewise.
7273         * lto-streamer-out.c: Include data-streamer.h,
7274         gimple-streamer.h and streamer-hooks.h.
7275         (struct string_slot): Move to data-streamer.h.
7276         (hash_string_slot_node): Likewise.
7277         (eq_string_slot_node): Likewise.
7278         (lto_string_index): Move to data-streamer-out.c.
7279         (lto_output_string_with_length): Likewise.
7280         (lto_output_string): Likewise.
7281         (output_string_cst): Move to tree-streamer-out.c.
7282         (output_identifier): Likewise.
7283         (output_zero): Move to data-streamer-out.c
7284         (output_uleb128): Likewise.
7285         (output_sleb128): Likewise.
7286         (output_record_start): Move to data-streamer.h
7287         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
7288         (pack_ts_real_cst_value_fields): Likewise.
7289         (pack_ts_fixed_cst_value_fields): Likewise.
7290         (pack_ts_decl_common_value_fields): Likewise.
7291         (pack_ts_decl_wrtl_value_fields): Likewise.
7292         (pack_ts_decl_with_vis_value_fields): Likewise.
7293         (pack_ts_function_decl_value_fields): Likewise.
7294         (pack_ts_type_common_value_fields): Likewise.
7295         (pack_ts_block_value_fields): Likewise.
7296         (pack_ts_translation_unit_decl_value_fields): Likewise.
7297         (pack_value_fields): Likewise.
7298         (lto_output_chain): Likewise.
7299         (lto_output_ts_common_tree_pointers): Likewise.
7300         (lto_output_ts_vector_tree_pointers): Likewise.
7301         (lto_output_ts_complex_tree_pointers): Likewise.
7302         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
7303         (lto_output_ts_decl_common_tree_pointers): Likewise.
7304         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
7305         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
7306         (lto_output_ts_field_decl_tree_pointers): Likewise.
7307         (lto_output_ts_function_decl_tree_pointers): Likewise.
7308         (lto_output_ts_type_common_tree_pointers): Likewise.
7309         (lto_output_ts_type_non_common_tree_pointers): Likewise.
7310         (lto_output_ts_list_tree_pointers): Likewise.
7311         (lto_output_ts_vec_tree_pointers): Likewise.
7312         (lto_output_ts_exp_tree_pointers): Likewise.
7313         (lto_output_ts_block_tree_pointers): Likewise.
7314         (lto_output_ts_binfo_tree_pointers): Likewise.
7315         (lto_output_ts_constructor_tree_pointers): Likewise.
7316         (lto_output_ts_target_option): Likewise.
7317         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
7318         (lto_output_tree_pointers): Likewise.
7319         (lto_output_tree_header): Likewise.
7320         (lto_output_builtin_tree): Likewise.
7321         (lto_write_tree): Likewise.
7322         (lto_output_integer_cst): Likewise.
7323         (lto_output_tree): Likewise.
7324         (output_phi): Move to gimple-streamer-out.c.
7325         (output_gimple_stmt): Likewise.
7326         (output_bb): Likewise.
7327         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
7328         (streamer_hooks): Move to streamer-hooks.c.
7329         (check_handled_ts_structures): Move to tree-streamer.c
7330         (lto_streamer_cache_add_to_node_array): Likewise.
7331         (lto_streamer_cache_insert_1): Likewise.
7332         (lto_streamer_cache_insert): Likewise.
7333         (lto_streamer_cache_insert_at): Likewise.
7334         (lto_streamer_cache_append): Likewise.
7335         (lto_streamer_cache_lookup): Likewise.
7336         (lto_streamer_cache_get): Likewise.
7337         (lto_record_common_node): Likewise.
7338         (lto_preload_common_nodes): Likewise.
7339         (lto_streamer_cache_create): Likewise.
7340         (lto_streamer_cache_delete): Likewise.
7341         (streamer_hooks_init): Move to streamer-hooks.c.
7342         * lto-streamer.h: Include diagnostic.h
7343         (struct output_block, struct lto_input_block,
7344         struct data_in, struct bitpack_d): Remove forward declarations.
7345         (struct bitpack_d): Move to data-streamer.h.
7346         (struct lto_streamer_cache_d): Move to tree-streamer.h.
7347         (struct streamer_hooks): Move to streamer-hooks.h.
7348         (bp_pack_var_len_unsigned): Move to data-streamer.h.
7349         (bp_pack_var_len_int): Likewise.
7350         (bp_unpack_var_len_unsigned): Likewise.
7351         (bp_unpack_var_len_int): Likewise.
7352         (lto_input_location): Declare.
7353         (lto_tag_check_set): Declare.
7354         (lto_init_eh): Declare.
7355         (lto_output_tree_ref): Declare.
7356         (lto_output_location): Declare.
7357         (bitpack_create): Move to data-streamer.h.
7358         (bp_pack_value): Likewise.
7359         (lto_output_bitpack): Likewise.
7360         (lto_input_bitpack): Likewise.
7361         (bp_unpack_value): Likewise.
7362         (lto_output_1_stream): Likewise.
7363         (lto_input_1_unsigned): Likewise.
7364         (lto_output_int_in_range): Likewise.
7365         (lto_input_int_in_range): Likewise.
7366         (bp_pack_int_in_range): Likewise.
7367         (bp_unpack_int_in_range): Likewise.
7368         (lto_output_enum): Likewise.
7369         (lto_input_enum): Likewise.
7370         (bp_pack_enum): Likewise.
7371         (bp_unpack_enum): Likewise.
7372         * streamer-hooks.c: New.
7373         * streamer-hooks.h: New.
7374         * tree-streamer-in.c: New.
7375         * tree-streamer-out.c: New.
7376         * tree-streamer.c: New.
7377         * tree-streamer.h: New.
7378
7379 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7380
7381         * gthr-posix95.h: Remove.
7382         * gthr.h [_PTHREADS95]: Remove.
7383         * configure.ac (enable_threads): Remove posix95.
7384         * configure: Regenerate.
7385         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7386
7387 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
7388
7389         PR target/49781
7390         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7391         SImode addresses.
7392         (ix86_print_operand_address): Handle zero-extended addresses.
7393         (memory_address_length): Add length of addr32 prefix for
7394         zero-extended addresses.
7395         (ix86_secondary_reload): Handle moves to/from double-word general
7396         registers from/to zero-extended addresses.
7397         * config/i386/predicates.md (lea_address_operand): Reject
7398         zero-extended operands.
7399
7400 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
7401
7402         PR other/48007
7403         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7404
7405         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7406         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7407
7408         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7409         (_Unwind_Context_Reg_Val): Likewise.
7410         (_Unwind_Get_Unwind_Word): Likewise.
7411         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7412         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7413         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7414         for EXTENDED_CONTEXT_BIT.
7415         (__frame_state_for): Likewise.
7416         (uw_init_context_1): Likewise.
7417         (_Unwind_GetGR): Updated.
7418         (_Unwind_SetGR): Likewise.
7419         (_Unwind_GetGRPtr): Likewise.
7420         (_Unwind_SetGRPtr): Likewise.
7421         (_Unwind_SetGRValue): Likewise.
7422         (_Unwind_GRByValue): Likewise.
7423         (uw_install_context_1): Likewise.
7424
7425         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7426         ASSUME_EXTENDED_UNWIND_CONTEXT.
7427         * doc/tm.texi: Regenerated.
7428
7429 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7430
7431         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7432
7433 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7434
7435         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7436         Linux/GNU-specific.
7437         (DEC Alpha Options, -mtune): Likewise.
7438         (MIPS Options, -march): native is supported on IRIX.
7439
7440 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7441
7442         * config/sparc/driver-sparc.c: New file.
7443         * config/sparc/x-sparc: New file.
7444         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7445         * config/sparc/sparc.opt (native): New value for enum processor_type.
7446         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7447         * config/sparc/sparc.c (sparc_option_override): Abort if
7448         PROCESSOR_NATIVE gets here.
7449         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7450         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7451         DRIVER_SELF_SPECS): Define.
7452         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7453         (SPARC Options, -mtune): Likewise.
7454         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7455         Substitute result.
7456         * configure: Regenerate.
7457         * Makefile.in (EXTRA_GCC_LIBS): Set.
7458         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7459         (cpp$(exeext)): Likewise.
7460
7461 2011-08-08  Richard Guenther  <rguenther@suse.de>
7462
7463         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7464         split out from ...
7465         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
7466         by composition.
7467
7468 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
7469
7470         PR tree-optimization/50005
7471         * ipa-inline-analysis (remap_predicate): Add cast to
7472         silence signed/unsigned comparison warning.
7473
7474 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7475
7476         * modulo-sched.c (get_sched_window): Use a table for the debug output.
7477         Print the current ii.
7478         (sms_schedule_by_order): Reduce whitespace in dump line.
7479
7480 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7481
7482         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7483         and one loop for successors.  Fix upper bound of memory range.
7484
7485 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7486
7487         PR target/50001
7488         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7489         (TARGET_INSTANTIATE_DECLS): New define.
7490
7491 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
7492             Mikael Morin   <mikael.morin@sfr.fr>
7493
7494         * Makefile.in (INCLUDES_FOR_TARGET): New.
7495         (LIBGCC2_CFLAGS): Use it.
7496         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7497
7498 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7499
7500         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7501         frame->save_regs_using_mov calculation.
7502
7503 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7504
7505         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7506         * config/i386/sse.md (castmode): New mode attribute.
7507         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7508         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7509
7510 2011-08-05  Jan Hubicka  <jh@suse.cz>
7511
7512         PR middle-end/49494
7513         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7514
7515 2011-08-05  Jan Hubicka  <jh@suse.cz>
7516
7517         PR middle-end/49500
7518         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7519         handle aliases.
7520         (create_emultls_var):New function.
7521         (ipa_lower_emutls): Handle aliases correctly.
7522
7523 2011-08-05  Jan Hubicka  <jh@suse.cz>
7524
7525         PR middle-end/49735
7526         * ipa-inline.c (recursive_inlining): Look through aliases.
7527
7528 2011-08-05  Jason Merrill  <jason@redhat.com>
7529
7530         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7531         declarations to beginning of function.
7532
7533 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7534
7535         PR rtl-optimization/49900
7536         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7537         ensure basic blocks stay in the same order.
7538
7539 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
7540
7541         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7542         store_bit_field.
7543         (s390_expand_atomic): Same.
7544
7545 2011-08-05  Richard Henderson  <rth@redhat.com>
7546
7547         PR rtl-opt/49977
7548         * dwarf2cfi.c (scan_insn_after): Split out of ...
7549         (scan_trace): ... here.  Correctly place notes wrt sequences.
7550
7551 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7552             Richard Henderson  <rth@redhat.com>
7553
7554         PR rtl-opt/49982
7555         * expr.c (fixup_args_size_notes): Look through no-op moves.
7556
7557 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7558
7559         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7560         of "m" for operand 0.  Add type and mode attribute.
7561         (*pushxf_nointeger"): Use "<" constraint for operand 0.
7562         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
7563         constraint instead of "o" for opreand 1.
7564         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
7565         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7566         operand 0, alternative 4.
7567         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7568
7569 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7570
7571         * config/i386/predicates.md (lea_address_operand): Rename from
7572         no_seg_address_operand.
7573         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7574         (*lea_1_zext): Ditto.
7575         (*lea_2): Ditto.
7576         (*lea_2_zext): Ditto.
7577
7578 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7579
7580         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7581         parts.base and parts.index.
7582         * config/i386/predicates.md (aligned_operand): Ditto.
7583         (cmpxchg8b_pic_memory_operand): Ditto.
7584
7585 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7586
7587         * config/soft-fp: Move to ../libgcc.
7588         * Makefile.in (SFP_MACHINE): Remove.
7589         (libgcc-support): Remove $(SFP_MACHINE) dependency.
7590         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7591         * config/arm/t-arm-softfp: Move to
7592         ../libgcc/config/arm/t-softfp.
7593         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7594         * config/c6x/t-c6x-softfp: Remove.
7595         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7596         * config/i386/t-fprules-softfp: Move to
7597         ../libgcc/config/t-softfp-tf.
7598         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7599         * config/ia64/t-fprules-softfp: Remove.
7600         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7601         * config/lm32/t-fprules-softfp: Remove.
7602         * config/moxie/sfp-machine.h: Remove.
7603         * config/moxie/t-moxie-softfp: Remove.
7604         * config/rs6000/darwin-ldouble-format: Move to
7605         ../libgcc/config/rs6000/ibm-ldouble-format.
7606         * config/rs6000/darwin-ldouble.c: Move to
7607         ../libgcc/config/rs6000/ibm-ldouble.c
7608         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7609         * config/rs6000/libgcc-ppc64.ver: Likewise.
7610         * config/rs6000/sfp-machine.h: Likewise.
7611         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7612         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7613         (LIB2FUNCS_EXTRA): Remove.
7614         (TARGET_LIBGCC2_CFLAGS): Remove.
7615         * config/rs6000/t-aix52: Likewise
7616         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7617         $(srcdir)/config/rs6000/darwin-ldouble.c.
7618         (SHLIB_MAPFILES): Remove.
7619         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7620         $(srcdir)/config/rs6000/darwin-ldouble.c.
7621         * config/rs6000/t-fprules-softfp: Move to
7622         ../libgcc/config/t-softfp-sfdf.
7623         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7624         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7625         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7626         $(srcdir)/config/rs6000/darwin-ldouble.c.
7627         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7628         * config/score/t-score-softfp: Remove.
7629         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7630         soft-fp/t-softfp from tmake_file.
7631         (arm*-*-uclinux*): Likewise.
7632         (arm*-*-ecos-elf): Likewise.
7633         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7634         (arm*-*-rtems*): Likewise.
7635         (arm*-*-elf): Likewise.
7636         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7637         tmake_file.
7638         (moxie-*-uclinux*): Likewise.
7639         (moxie-*-rtems*): Likewise.
7640         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7641         tmake_file.
7642         (lm32-*-rtems*): Likewise.
7643         (lm32-*-uclinux*): Likewise.
7644         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7645         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7646         (powerpc-*-linux*, powerpc64-*-linux*): Remove
7647         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7648         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7649         tmake_file.
7650         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7651         tmake_file.
7652         (tic6x-*-uclinux): Likewise.
7653         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7654         soft-fp/t-softfp from tmake_file.
7655         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7656         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7657         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7658         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7659         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7660
7661 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7662
7663         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7664         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7665         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7666         TPBIT, TPBIT_FUNCS.
7667         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7668         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7669         Remove.
7670         * config/arm/t-vxworks: Likewise.
7671         * config/arm/t-wince-pe: Likewise.
7672         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7673         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7674         * config/bfin/t-bfin-elf: Likewise.
7675         * config/bfin/t-bfin-linux: Likewise.
7676         * config/bfin/t-bfin-uclinux: Likewise.
7677         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7678         Remove.
7679         * config/fr30/t-fr30: Likewise.
7680         * config/frv/t-frv: Likewise.
7681         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7682         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7683         * config/m32c/t-m32c: Likewise.
7684         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7685         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7686         * config/mcore/t-mcore: Likewise.
7687         * config/mep/t-mep: Likewise.
7688         * config/microblaze/t-microblaze: Likewise.
7689         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7690         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7691         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7692         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7693         * config/mn10300/t-linux: Remove.
7694         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7695         * config/pdp11/t-pdp11: Likewise.
7696         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7697         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7698         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7699         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7700         * config/rs6000/t-aix52: Likewise.
7701         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7702         $(srcdir)/config/rs6000/ppc64-fp.c.
7703         * config/rs6000/t-fprules-fpbit: Remove.
7704         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7705         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7706         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7707         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7708         * config/sparc/t-elf: Likewise.
7709         * config/sparc/t-leon: Likewise.
7710         * config/sparc/t-leon3: Likewise.
7711         * config/spu/t-spu-elf: Likewise.
7712         (DPBIT_FUNCS): Remove.
7713         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7714         * config/v850/t-v850: Likewise.
7715         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7716         (avr-*-*): Likewise.
7717         (h8300-*-rtems*): Set libgcc_tm_file.
7718         (h8300-*-elf*): Likewise.
7719         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7720         tmake_file.
7721         (powerpc-*-eabisim*): Likewise.
7722         (powerpc-*-elf*): Likewise.
7723         (powerpc-*-eabialtivec*): Likewise.
7724         (powerpc-xilinx-eabi*): Likewise.
7725         (powerpc-*-eabi*): Likewise.
7726         (powerpc-*-rtems*): Likewise.
7727         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7728         (powerpcle-*-elf*): Likewise.
7729         (powerpcle-*-eabisim*): Likewise.
7730         (powerpcle-*-eabi*): Likewise.
7731         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7732         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7733         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7734         Remove.
7735
7736 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7737
7738         * Makefile.in (UNWIND_H): Remove.
7739         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7740         ../libgcc/Makefile.in.
7741         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7742         (LIBUNWINDDEP): Remove.
7743         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7744         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7745         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7746         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7747         Don't copy $(UNWIND_H).
7748         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7749         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7750         * aclocal.m4: Regenerate.
7751         * configure: Regenerate.
7752         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7753         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7754         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7755         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7756         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7757         * config/arm/libunwind.S, config/arm/pr-support.c,
7758         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7759         ../libgcc/config/arm.
7760         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7761         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7762         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7763         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7764         ($(T)frvend$(objext)): Likewise.
7765         * config/ia64/t-glibc (LIB2ADDEH): Remove.
7766         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7767         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7768         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7769         ../libgcc/config/ia64.
7770         * config/ia64/t-hpux (LIB2ADDEH): Remove.
7771         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7772         * config/ia64/t-vms (LIB2ADDEH): Remove.
7773         * config/ia64/vms.h (UNW_IVMS_MODE,
7774         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7775         * config/picochip/t-picochip (LIB2ADDEH): Remove.
7776         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
7777         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
7778         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
7779         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
7780         $(srcdir)/../libgcc to refer to unwinder sources.
7781         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7782         * config/t-darwin (LIB2ADDEH): Remove.
7783         * config/t-freebsd (LIB2ADDEH): Remove.
7784         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7785         * config/t-libunwind-elf: Move to ../libgcc/config.
7786         * config/t-linux (LIB2ADDEH): Remove.
7787         * config/t-sol2 (LIB2ADDEH): Remove.
7788         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7789         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7790
7791 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
7792
7793         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7794
7795         * doc/invoke.texi: Document core-avx-i.
7796
7797 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7798
7799         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7800
7801 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
7802
7803         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7804         result of multiple results reduction when extracting the final
7805         value using scalar code.
7806
7807 2011-08-05  Richard Guenther  <rguenther@suse.de>
7808
7809         PR tree-optimization/49984
7810         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7811
7812 2011-08-05  Richard Guenther  <rguenther@suse.de>
7813
7814         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7815         return true for constant integer ranges.
7816         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7817         BIT_IOR_EXPR handling.
7818
7819 2011-08-04  Kai Tietz  <ktietz@redhat.com>
7820
7821         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7822         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7823
7824 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
7825
7826         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7827         pattern def statement, and its access macro.
7828         (NUM_PATTERNS): Set to 5.
7829         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7830         pattern def statement.
7831         (vect_transform_loop): Likewise.
7832         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7833         function vect_recog_over_widening_pattern ().
7834         (vect_operation_fits_smaller_type): New function.
7835         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7836         Likewise.
7837         (vect_pattern_recog_1): Move the code that marks pattern
7838         statements to vect_mark_pattern_stmts (), and call it.  Update
7839         documentation.
7840         * tree-vect-stmts.c (vect_supportable_shift): New function.
7841         (vect_analyze_stmt): Handle pattern def statement.
7842         (new_stmt_vec_info): Initialize pattern def statement.
7843
7844 2011-08-04  Richard Henderson  <rth@redhat.com>
7845
7846         PR target/49964
7847         * config/i386/i386.c (ix86_expand_call): Don't create nested
7848         PARALLELs for TARGET_VZEROUPPER.
7849         (ix86_split_call_vzeroupper): Fix extraction of the original call.
7850         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7851         recognize nested PARALLELs.
7852         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7853         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7854         *sibcall_value_pop_vzeroupper): Likewise.
7855
7856 2011-08-04  Richard Henderson  <rth@redhat.com>
7857
7858         PR middle-end/49968
7859         * calls.c (expand_call): Use fixup_args_size_notes for
7860         emit_stack_restore.
7861         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7862         in non-standard modes.
7863
7864 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7865
7866         * gcc.c (self_spec): New variable.
7867         (static_specs): Add self_spec.
7868         (main): Call do_self_spec on "self_spec" specs after reading
7869         user specs files.  Move compare_debug handling right after that.
7870
7871 2011-08-04  Richard Guenther  <rguenther@suse.de>
7872
7873         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7874         (value_range_nonnegative_p): New function.
7875         (ssa_name_nonnegative_p): Use it.
7876         (value_range_constant_singleton): New function.
7877         (op_with_constant_singleton_value_range): Use it.
7878         (extract_range_from_binary_expr_1): New function, split out from ...
7879         (extract_range_from_binary_expr): ... this.  Remove fallback
7880         constant folding done here.
7881
7882 2011-08-04  Richard Guenther  <rguenther@suse.de>
7883
7884         PR tree-optimization/49806
7885         * tree-vrp.c (op_with_boolean_value_range_p): New function.
7886         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
7887         a new statement for a final conversion to bool.
7888
7889 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
7890
7891         * gengtype-state.c: Include "bconfig.h" if
7892         GENERATOR_FILE is defined, "config.h" otherwise.
7893         * gengtype.c: Likewise.
7894         * gengtype-lex.l: Likewise.
7895         * gengtype-parse.c: Likewise.
7896         * Makefile.in (gengtype-lex.o-warn): New variable.
7897         (plugin_resourcesdir): Likewise.
7898         (plugin_bindir): Likewise.
7899         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7900         (MOSTLYCLEANFILES): Add gengtype$(exeext).
7901         (native): Depend on gengtype$(exeext) is $enable_plugin
7902         is set to "yes".
7903         (gtype.state): Depend on s-gtype. Use temporary file.
7904         (gengtype-lex.o): New rule.
7905         (gengtype-parse.o): Likewise.
7906         (gengtype-state.o): Likewise.
7907         (gengtype$(exeext)): Likewise.
7908         (install-gengtype): Likewise.
7909         (gengtype.o): Likewise.
7910         (build/gengtype.o): Depend on version.h.
7911         (build/gengtype-state): Depend on double-int.h, version.h,
7912         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7913         (install-plugin): Depend on install-gengtype.
7914
7915 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7916
7917         PR middle-end/49905
7918         * tree.h (init_attributes): New prototype.
7919         * attribs.c (init_attributes): No longer static.
7920
7921 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7922
7923         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7924         maybe_suffix.
7925
7926 2011-08-03   David Li  <davidxl@google.com>
7927
7928         * tree-optimize.c (execute_fixup_cfg): Fix up entry
7929         outgoing edge counts after inlining.
7930
7931 2011-08-03   David Li  <davidxl@google.com>
7932
7933         * profile.c (compute_branch_probabilities): Compute
7934         function frequency after profile annotation.
7935
7936 2011-08-04  Alan Modra  <amodra@gmail.com>
7937
7938         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7939         use_backchain_to_restore_sp initialisation.
7940         (rs6000_legitimate_offset_address_p): Simplify offset test.
7941
7942 2011-08-03  Richard Henderson  <rth@redhat.com>
7943
7944         * config/spu/spu.md: Use define_c_enum instead of define_constants.
7945         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7946         (UNSPECV_NOP): New.
7947
7948 2011-08-03  Richard Henderson  <rth@redhat.com>
7949
7950         PR target/34888
7951         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7952
7953 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
7954
7955         PR tree-optimization/49948
7956         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7957
7958 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
7959
7960         * config/m32c/m32c.c (class_sizes): Remove.
7961         (reduce_class): Change arguments and return type to reg_class_t.
7962         Change type cc var to HARD_REG_SET. Change type best var to
7963         reg_class_t. Change type best_size var to unsigned int. Remove
7964         initialization class_sizes var. Use reg_class_size array instead
7965         of class_sizes. Use reg_class_contents array instead
7966         of class_contents.
7967
7968 2011-08-03  Richard Guenther  <rguenther@suse.de>
7969
7970         PR middle-end/49958
7971         * fold-const.c (fold_binary_loc): Only associate
7972         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
7973         overflow wraps.
7974
7975 2011-08-03  Alan Modra  <amodra@gmail.com>
7976
7977         PR rtl-optimization/49941
7978         * jump.c (mark_jump_label): Comment.
7979         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
7980         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
7981         (mark_used_flags): Don't mark RETURN.
7982
7983 2011-08-03  Richard Guenther  <rguenther@suse.de>
7984
7985         PR tree-optimization/49938
7986         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
7987         deal with a POLYNOMIAL_CHREC.
7988
7989 2011-08-03  Revital Eres  <revital.eres@linaro.org>
7990
7991         * modulo-sched.c (calculate_stage_count,
7992         calculate_must_precede_follow, get_sched_window,
7993         try_scheduling_node_in_cycle, remove_node_from_ps): Add
7994         declaration.
7995         (update_node_sched_params, set_must_precede_follow, optimize_sc):
7996         New functions.
7997         (reset_sched_times): Call update_node_sched_params.
7998         (sms_schedule): Call optimize_sc.
7999         (get_sched_window): Change function arguments.
8000         (sms_schedule_by_order): Update call to get_sched_window.
8001         Call set_must_precede_follow.
8002         (calculate_stage_count): Add function argument.
8003
8004 2011-08-02  Richard Henderson  <rth@redhat.com>
8005
8006         PR target/49864
8007         PR target/49879
8008         * reg-notes.def (REG_ARGS_SIZE): New.
8009         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
8010         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
8011         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
8012         different stack levels.
8013         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
8014         (maybe_move_args_size_note): New.
8015         (combine_stack_adjustments_for_block): Use it.
8016         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
8017         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
8018         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
8019         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
8020         (cur_cfa): New.
8021         (queued_args_size): Remove.
8022         (add_cfi_args_size): Assert size is non-negative.
8023         (stack_adjust_offset, dwarf2out_args_size): Remove.
8024         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
8025         (notice_args_size, notice_eh_throw): New.
8026         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
8027         (dwarf2out_frame_debug_adjust_cfa): Likewise.
8028         (dwarf2out_frame_debug_cfa_offset): Likewise.
8029         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
8030         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
8031         (change_cfi_row): Don't emit args_size.
8032         (maybe_record_trace_start_abnormal): Split out from ...
8033         (maybe_record_trace_start): Here.  Set args_size_undefined.
8034         (create_trace_edges): Update to match.
8035         (scan_trace): Handle REG_ARGS_SIZE.
8036         (connect_traces): Connect args_size between EH insns.
8037         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
8038         * explow.c (suppress_reg_args_size): New.
8039         (adjust_stack_1): Split out from ...
8040         (adjust_stack): ... here.
8041         (anti_adjust_stack): Use it.
8042         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
8043         * expr.c (mem_autoinc_base): New.
8044         (fixup_args_size_notes): New.
8045         (emit_single_push_insn_1): Rename from emit_single_push_insn.
8046         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
8047         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8048         * reload1.c (reload_as_needed): Likewise.
8049         * rtl.h (fixup_args_size_notes): Declare.
8050
8051 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
8052
8053         PR bootstrap/49914
8054         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8055         of abs.
8056         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8057         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8058
8059 2011-08-02  Richard Henderson  <rth@redhat.com>
8060
8061         * config/h8300/h8300.c (push, pop): Return the insn.
8062         (h8300_swap_into_er6): Generate correct unwind info.
8063         (h8300_swap_out_of_er6): Likewise.
8064         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8065         complex cfa expression.
8066         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8067
8068 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8069
8070         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8071
8072 2011-08-02  Richard Henderson  <rth@redhat.com>
8073
8074         PR target/49878
8075         * config/h8300/h8300.c (h8300_move_ok): New.
8076         * config/h8300/h8300-protos.h: Declare it.
8077         * config/h8300/h8300.md (P): New mode iterator.
8078         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8079         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8080         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8081         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8082         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8083         and pushqi1_h8300hs_normal; use PRE_MODIFY and
8084         register_no_sp_elim_operand.
8085         (*pushhi1_h8300hs_<P>): Similarly.
8086         (pushqi1, pushhi1, pushhi1_h8300): Remove.
8087         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8088
8089 2011-08-02  Richard Henderson  <rth@redhat.com>
8090
8091         PR target/49881
8092         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8093
8094 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8095
8096         * c-parser.c (enum c_parser_prec): New enum, moved from within
8097         c_parser_binary_expression.
8098         (c_parser_binary_expression): Add PREC argument.  Stop parsing
8099         if operator has lower or equal precedence than PREC.
8100         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8101         callers.
8102         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8103         Adjust c_finish_omp_atomic caller.
8104         (c_parser_omp_taskyield): New function.
8105         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8106         (c_parser_omp_clause_name): Handle final and mergeable clauses.
8107         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8108         functions.
8109         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8110         and PRAGMA_OMP_CLAUSE_MERGEABLE.
8111         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8112         (c_parser_omp_clause_reduction): Handle min and max.
8113         * c-typeck.c (c_finish_omp_clauses): Don't complain about
8114         const qualified predetermined vars in firstprivate clause.
8115         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8116         Handle MIN_EXPR and MAX_EXPR.
8117         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8118         and OMP_CLAUSE_MERGEABLE.
8119         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8120         and OMP_ATOMIC_CAPTURE_NEW.
8121         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8122         OMP_CLAUSE_MERGEABLE.
8123         (omp_clause_code_name): Likewise.
8124         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8125         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8126         and OMP_CLAUSE_MERGEABLE.
8127         (OMP_CLAUSE_FINAL_EXPR): Define.
8128         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8129         OMP_CLAUSE_MERGEABLE.
8130         (expand_task_call): Likewise.
8131         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8132         (expand_omp_atomic_fetch_op): Handle cases where old or new
8133         value is needed afterwards.
8134         (expand_omp_atomic): Call expand_omp_atomic_load resp.
8135         expand_omp_atomic_store.
8136         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8137         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8138         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8139         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8140         * tree-nested.c (convert_nonlocal_omp_clauses,
8141         convert_local_omp_clauses): Likewise.
8142         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8143         OMP_ATOMIC_CAPTURE_NEW): New.
8144         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8145         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8146         New inlines.
8147         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8148         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8149         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8150
8151 2011-08-02  Kai Tietz  <ktietz@redhat.com>
8152
8153         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8154         boolean-type.
8155         (ssa_forward_propagate_and_combine): Interprete result of
8156         forward_propagate_comparison.
8157         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8158         boolean-typed operands for comparisons.
8159
8160 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
8161
8162         * config/avr/libgcc.S: Gather related function in the
8163         same input section.
8164         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8165         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8166         references.
8167         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8168         __udivmodsi4, __divmodsi4, __prologue_saves__,
8169         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8170         __do_copy_data, __do_clear_bss, __do_global_ctors,
8171         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8172
8173 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
8174
8175         PR target/47766
8176         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8177         (stack_protect_test): The pattern compares ptr_mode value.
8178
8179 2011-08-02  Alan Modra  <amodra@gmail.com>
8180
8181         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8182         note for save_LR_around_toc_setup sequence.
8183
8184 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8185
8186         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
8187
8188 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8189             Joseph Myers  <joseph@codesourcery.com>
8190
8191         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
8192         * hwint.c: Include diagnostic-core.h.
8193         (abs_hwi): New.
8194         (gcd): Moved here...
8195         (pos_mul_hwi): New.
8196         (mul_hwi): New.
8197         (least_common_multiple): Moved here...
8198         * hwint.h (gcd): ... from here.
8199         (least_common_multiple): ... from here.
8200         (HOST_WIDE_INT_MIN): New.
8201         (HOST_WIDE_INT_MAX): New.
8202         (abs_hwi): Declared.
8203         (gcd): Declared.
8204         (pos_mul_hwi): Declared.
8205         (mul_hwi): Declared.
8206         (least_common_multiple): Declared.
8207         * omega.c (check_pos_mul): Removed.
8208         (check_mul): Removed.
8209         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
8210         mul_hwi instead of check_mul.
8211
8212 2011-08-01  Richard Henderson  <rth@redhat.com>
8213
8214         PR target/49881
8215         * config/avr/avr.h (PUSH_ROUNDING): New.
8216         * config/avr/avr.md (pushqi1): Rename from *pushqi.
8217         (*pushhi, *pushsi, *pushsf): Remove.
8218         (MPUSH): New mode iterator.
8219         (push<MPUSH>1): New expander.
8220
8221 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
8222
8223         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
8224         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8225         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
8226         mmix_preferred_output_reload_class): Remove.
8227         * config/mmix/mmix.c (mmix_preferred_reload_class,
8228         mmix_preferred_output_reload_class): Make static. Change rclass
8229         argument and return type to reg_class_t.
8230         (TARGET_PREFERRED_RELOAD_CLASS,
8231         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8232
8233 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8234
8235         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
8236         handling.
8237
8238 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8239
8240         PR target/47766
8241         * config/i386/i386.md (PTR): New.
8242         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
8243         (stack_protect_test): Likewise.
8244         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
8245         (stack_tls_protect_set_<mode>): Likewise.
8246         (stack_tls_protect_test_<mode>): Likewise.
8247
8248 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
8249
8250         PR target/49927
8251         * config/i386/i386.c (ix86_address_subreg_operand): New.
8252         (ix86_decompose_address): Use ix86_address_subreg_operand.
8253         (ix86_legitimate_address_p): Do not assert that subregs satisfy
8254         register_no_elim_operand in DImode.
8255
8256 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
8257
8258         PR tree-optimization/49926
8259         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
8260         in a chain doesn't have uses both inside and outside the loop.
8261
8262 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8263
8264         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
8265         * config/avr/avr-devices.c (avr_mcu_types): Use it.
8266         * config/avr/avr-mcus.def (AVR_MCU): Use it.
8267         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
8268         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
8269         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
8270         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
8271         to detect if XJMP must not be skipped.
8272
8273 2011-08-02  Alan Modra  <amodra@gmail.com>
8274
8275         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
8276         Delete.
8277         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
8278         (rs6000_emit_prologue): Don't prematurely return when
8279         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
8280         save_toc_in_prologue case.
8281         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
8282         calls_alloca.
8283
8284 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8285
8286         * config/avr/avr-devices.c: Delete SVN property svn:executable.
8287         * config/avr/predicates.md: Ditto.
8288         * config/avr/driver-avr.c: Ditto.
8289         * config/avr/genopt.sh: Set SVN property svn:executable to *.
8290
8291 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8292
8293         * calls.c (emit_library_call_value_1): Declare size only if
8294         BLOCK_REG_PADDING is defined.
8295
8296 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
8297
8298         PR target/49547
8299         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
8300         (x86_64-*-*): Likewise.
8301         * config/i386/i386.opt (mlzcnt): New.
8302         * config/i386/abmintrin.h: File removed.
8303         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
8304         * config/i386/lzcntintrin.h: ... here.  New file.
8305         (__lzcnt): Rename to ...
8306         (__lzcnt32): ... this.
8307         * config/i386/bmiintrin.h (head): Update copyright year.
8308         (__lzcnt_u16): Removed.
8309         (__lzcnt_u32): Likewise.
8310         (__lzcnt_u64): Likewise.
8311         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
8312         is defined, remove abmintrin.h.
8313         * config/i386/cpuid.h (bit_LZCNT): New.
8314         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8315         LZCNT feature.
8316         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8317         __LZCNT__ if needed.
8318         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
8319         (ix86_option_override_internal): Handle LZCNT option.
8320         (ix86_valid_target_attribute_inner_p): Likewise.
8321         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
8322         * config/i386/i386.h (TARGET_LZCNT): New.
8323         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
8324         * config/i386/i386.md (clz<mode>2): Update insn constraint.
8325         (clz<mode>2_lzcnt): Likewise.
8326         * doc/invoke.texi: Mention -mlzcnt option.
8327         * doc/extend.texi: Likewise.
8328
8329 2011-08-01  Julian Brown  <julian@codesourcery.com>
8330
8331         * configure.ac (fixed-point): Add ARM support.
8332         * configure: Regenerate.
8333         * config/arm/arm.c (arm_fixed_mode_set): New struct.
8334         (arm_set_fixed_optab_libfunc): New.
8335         (arm_set_fixed_conv_libfunc): New.
8336         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8337         ARM-specific names.
8338         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8339         return values in SImode.
8340         (arm_return_in_msb): Return fixed-point types in the msb.
8341         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8342         upwards.
8343         (arm_scalar_mode_supported_p): Support fixed-point modes.
8344         (arm_vector_mode_supported_p): Support vector fixed-point modes.
8345         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8346         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8347         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8348         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8349         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8350         New mode iterators.
8351         (qaddsub_suf): New mode attribute.
8352         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8353         vector modes.
8354         * config/arm/predicates.md (sat_shift_operator): New predicate.
8355         * config/arm/arm-fixed.md: New.
8356         * config/arm/arm.md: Include arm-fixed.md.
8357         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8358
8359 2011-08-01  Julian Brown  <julian@codesourcery.com>
8360
8361         * calls.c (emit_library_call_value_1): Support padding for libcall
8362         arguments and return values.
8363         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8364         downwards in big-endian mode.
8365
8366 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8367
8368         PR debug/49887
8369         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8370         * config/sol2-protos.h: Likewise.
8371         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8372         solaris_code_end.
8373         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8374         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8375         solaris_file_end.
8376         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8377
8378 2011-08-01  Julian Brown  <julian@codesourcery.com>
8379
8380         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8381
8382 2011-08-01  Julian Brown  <julian@codesourcery.com>
8383
8384         * final.c (output_addr_const): Print fixed-point constants as
8385         decimal not hex.
8386
8387 2011-08-01  Richard Guenther  <rguenther@suse.de>
8388
8389         * stor-layout.c (initialize_sizetypes): Properly sign-extend
8390         bitsiztype TYPE_MAX_VALUE.
8391
8392 2011-08-01  Julian Brown  <julian@codesourcery.com>
8393
8394         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8395         comparison helpers.
8396
8397 2011-07-31  Richard Henderson  <rth@redhat.com>
8398
8399         * config/h8300/crti.asm: Add flags to .section directive.
8400         * config/h8300/crtn.asm: Likewise.
8401
8402 2011-07-31  Richard Henderson  <rth@redhat.com>
8403
8404         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8405         * tree.c (build_common_tree_nodes): Likewise.
8406
8407 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8408
8409         PR target/49880
8410         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8411         (divsi3_i1): Likewise.
8412
8413 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8414
8415         PR tree-optimization/49749
8416         * tree-ssa-reassoc.c (get_rank): New forward declaration.
8417         (PHI_LOOP_BIAS): New macro.
8418         (phi_rank): New function.
8419         (loop_carried_phi): Likewise.
8420         (propagate_rank): Likewise.
8421         (get_rank): Add calls to phi_rank and propagate_rank.
8422
8423 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8424
8425         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8426         of TARGET_64BIT.
8427         (PTRDIFF_TYPE): Likewise.
8428
8429 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
8430
8431         PR target/49920
8432         * config/i386/i386.md (strset): Do not expand strset_singleop
8433         when %eax or $edi are fixed.
8434         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8435         (*strsetsi_1): Ditto.
8436         (*strsethi_1): Ditto.
8437         (*strsetqi_1): Ditto.
8438         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8439         (*rep_stossi): Ditto.
8440         (*rep_stosqi): Ditto.
8441         (*strlenqi_1): Ditto.
8442         (cmpstrnsi): Also fail when %ecx is fixed.
8443         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8444         (*cmpstrnqi_1): Ditto.
8445         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8446         (*strmovsi_1): Ditto.
8447         (*strmovhi_1): Ditto.
8448         (*strmovqi_1): Ditto.
8449         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8450         (*rep_movsi): Ditto.
8451         (*rep_movqi): Ditto.
8452
8453 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
8454
8455         PR target/47908
8456         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8457         Disable instruction scheduling for non-ColdFire targets.
8458         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8459
8460 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8461
8462         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8463         of anti-dep edge from a branch.
8464         (add_cross_iteration_register_deps): Create anti-dep edge from
8465         a branch.
8466
8467 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8468
8469         * modulo-sched.c: Change comment.
8470         (reset_sched_times): Fix print message.
8471         (print_partial_schedule): Add print info.
8472
8473 2011-07-31  Tom de Vries  <tom@codesourcery.com>
8474
8475         PR middle-end/43513
8476         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8477         get_object_alignment and TYPE_ALIGN.
8478
8479 2011-07-30  Tom de Vries  <tom@codesourcery.com>
8480
8481         PR middle-end/43513
8482         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8483         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8484
8485 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8486
8487         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8488         <sys/sbd.h>.
8489         (cpu_types): New array.
8490         (cputype): New function.
8491         (host_detect_local_cpu): Only define buf, f if !__sgi__.
8492         Use scaninvent instead of /proc/cpuinfo if __sgi__.
8493         * config.host: Also use driver-native.o, mips/x-native on
8494         mips-sgi-irix*.
8495         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8496         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8497         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8498
8499 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
8500
8501         PR middle-end/49897
8502         PR middle-end/49898
8503         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8504         in nested parallel and outer is a gimple_reg, mark it as addressable
8505         and set its bit in task_shared_vars bitmap too.
8506
8507 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8508
8509         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8510
8511 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8512
8513         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8514         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8515         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8516         AMASK_LOCKPFTCHOK): Define.
8517         (host_detect_local_cpu): Remove buf, f, cpu_names.
8518         Define cpu_types, implver, amask.
8519         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8520         native CPU.
8521         * config.host: Also use driver-alpha.o, alpha/x-alpha on
8522         alpha*-dec-osf*.
8523         * config/alpha/osf5.h [__alpha__ || __alpha]
8524         (host_detect_local_cpu): Declare.
8525         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8526         (DRIVER_SELF_SPECS): Define.
8527
8528 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8529
8530         PR target/47715
8531         * config/i386/i386.md (*load_tp_x32): New.
8532         (*load_tp_x32_zext): Ditto.
8533         (*add_tp_x32): Ditto.
8534         (*add_tp_x32_zext): Ditto.
8535         (*load_tp_<mode>): Disable for TARGET_X32 targets.
8536         (*add_tp_<mode>): Ditto.
8537         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8538         ptr_mode and convert to Pmode if needed.
8539
8540 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8541
8542         PR target/49687
8543         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8544         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8545         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8546         Add X to register footprint: Clobber r26/r27.
8547
8548 2011-07-29  Richard Guenther  <rguenther@suse.de>
8549
8550         * builtins.c (fold_builtin_signbit): Build the comparison
8551         with a proper type.
8552
8553 2011-07-29  Richard Guenther  <rguenther@suse.de>
8554
8555         PR tree-optimization/49893
8556         * tree-predcom.c (suitable_reference_p): Volatile references
8557         are not suitable.
8558
8559 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8560
8561         PR target/49313
8562         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8563         (__ctzsi2): Result for 0 may be undefined.
8564         (__ctzhi2): Result for 0 may be undefined.
8565         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8566         (__popcountsi2): Ditto. And don't clobber r26.
8567         (__popcountdi2): Ditto. And don't clobber r27.
8568         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8569         (parityhi2): New expand.
8570         (paritysi2): New expand.
8571         (popcounthi2): New expand.
8572         (popcountsi2): New expand.
8573         (clzhi2): New expand.
8574         (clzsi2): New expand.
8575         (ctzhi2): New expand.
8576         (ctzsi2): New expand.
8577         (ffshi2): New expand.
8578         (ffssi2): New expand.
8579         (copysignsf3): New insn.
8580         (bswapsi2): New expand.
8581         (*parityhi2.libgcc): New insn.
8582         (*parityqihi2.libgcc): New insn.
8583         (*paritysihi2.libgcc): New insn.
8584         (*popcounthi2.libgcc): New insn.
8585         (*popcountsi2.libgcc): New insn.
8586         (*popcountqi2.libgcc): New insn.
8587         (*popcountqihi2.libgcc): New insn-and-split.
8588         (*clzhi2.libgcc): New insn.
8589         (*clzsihi2.libgcc): New insn.
8590         (*ctzhi2.libgcc): New insn.
8591         (*ctzsihi2.libgcc): New insn.
8592         (*ffshi2.libgcc): New insn.
8593         (*ffssihi2.libgcc): New insn.
8594         (*bswapsi2.libgcc): New insn.
8595
8596 2011-07-29  Richard Guenther  <rguenther@suse.de>
8597
8598         * tree-vrp.c (get_value_range): Only set parameter default
8599         definitions to varying, leave others at undefined.
8600         (extract_range_from_binary_expr): Fix undefined handling.
8601         (vrp_visit_phi_node): Handle merged undefined state.
8602
8603 2011-07-29  Wei Guozhi  <carrot@google.com>
8604
8605         PR rtl-optimization/49799
8606         * combine.c (make_compound_operation): Check if the bit field is valid
8607         before change it to bit field extraction.
8608
8609 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8610
8611         PR rtl-optimization/49891
8612         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8613         newly created returnjumps.
8614
8615 2011-07-28  DJ Delorie  <dj@redhat.com>
8616
8617         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8618         local frame in a naked function, and produce a suitable error for
8619         that specific case.
8620
8621         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8622         registers to be reloaded in HI classes when the target is HI.
8623
8624 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8625
8626         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8627         bound_one, bound_two.
8628
8629 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8630
8631         PR middle-end/48648
8632         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8633         CLAST assignments.
8634         (translate_clast): Same.
8635         (translate_clast_assignment): New.
8636
8637 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8638
8639         PR tree-optimization/49876
8640         * sese.c (rename_uses): Do not return false on gloog_error: set
8641         the new_expr to integer_zero_node and continue code generation.
8642         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8643
8644 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8645
8646         PR debug/49846
8647         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8648         arguments also check if they aren't initialized with a MODE_INT
8649         mode of the same size.
8650
8651 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
8652
8653         * expr.c (get_bit_range): Handle *MEM_REF's.
8654
8655 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
8656
8657         * rtlanal.c (tablejump_p): False for returns.
8658         * reorg.c (first_active_target_insn): New static function.
8659         (find_end_label): Set JUMP_LABEL for a new returnjump.
8660         (optimize_skip, get_jump_flags, rare_destination,
8661         mostly_true_jump, get_branch_condition,
8662         steal_delay_list_from_target, own_thread_p,
8663         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8664         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8665         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8666         * jump.c (delete_related_insns): Likewise.
8667         (jump_to_label_p): New function.
8668         (redirect_target): New static function.
8669         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
8670         (redirect_jump_1): Assert that the new label is nonnull.
8671         (redirect_jump): Likewise.
8672         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8673         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8674         exit block.
8675         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
8676         changed.  Ensure that the right label is passed to redirect_jump.
8677         * function.c (emit_return_into_block,
8678         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8679         ret_rtx in their JUMP_LABEL.
8680         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8681         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8682         pass ret_rtx as label.
8683         * cfglayout.c (fixup_reorder_chain): Use
8684         force_nonfallthru_and_redirect rather than force_nonfallthru.
8685         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8686         * rtl.h (ANY_RETURN_P): New macro.
8687         (jump_to_label_p): Declare.
8688         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8689         JUMP_LABELs.
8690         (mark_target_live_regs): Likewise.
8691         * basic-block.h (force_nonfallthru_and_redirect): Declare.
8692         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8693         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8694         alpha_tablejump_best_label): Remove functions.
8695         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8696         alpha_tablejump_best_label): Remove declarations.
8697         * config/sh/sh.c (barrier_align, split_branches): Adjust for
8698         ret_rtx in JUMP_LABELs.
8699         * config/arm/arm.c (is_jump_table): Likewise.
8700
8701 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8702
8703         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8704         special predicate.  Remove explicit mode checks.
8705
8706 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8707
8708         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8709         DW_AT_data_member_location containing just DW_OP_plus_uconst.
8710
8711         PR debug/49871
8712         * dwarf2out.c (size_of_die, value_format, output_die): Use
8713         DW_FORM_udata instead of DW_FORM_data[48] for
8714         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8715
8716 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8717
8718         * config/i386/i386.md (*tls_global_dynamic_64): Update
8719         length attribute.
8720
8721 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8722
8723         PR target/47715
8724         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8725         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
8726         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8727         (tls_dynamic_gnu2_64): Ditto.
8728         (*tls_dynamic_gnu2_lea_64): Ditto.
8729         (*tls_dynamic_gnu2_call_64): Ditto.
8730         (*tls_dynamic_gnu2_combine_64): Ditto.
8731
8732 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8733
8734         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8735
8736 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8737
8738         PR target/47364
8739         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8740
8741 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8742
8743         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8744         before the core constraints. Adjust attributes.
8745         ("*thumb2_movdf_vfp"): Likewise.
8746
8747 2011-07-28  Kai Tietz  <ktietz@redhat.com>
8748
8749         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8750         (simplify_truth_ops_using_ranges): Likewise.
8751         (build_assert_expr_for): Likewise.
8752         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8753         and handle BIT_NOT_EXPR for truth-operation.
8754
8755 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8756
8757         PR target/49313
8758         Undo r176835 from trunk
8759         2011-07-27  Georg-Johann Lay
8760
8761 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8762
8763         PR target/49687
8764         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8765         Add _muluhisi3, _mulshisi3, _usmulhisi3.
8766         * config/avr/libgcc.S (__mulsi3): Rewrite.
8767         (__mulhisi3): Rewrite.
8768         (__umulhisi3): Rewrite.
8769         (__usmulhisi3): New.
8770         (__muluhisi3): New.
8771         (__mulshisi3): New.
8772         (__mulohisi3): New.
8773         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8774         declare.
8775         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
8776         (pseudo_register_or_const_int_operand): New.
8777         (combine_pseudo_register_operand): New.
8778         (u16_operand): New.
8779         (s16_operand): New.
8780         (o16_operand): New.
8781         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8782         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8783         (any_extend, any_extend2): New code iterators.
8784         (extend_prefix): New code attribute.
8785         (mulsi3): Rewrite. Turn insn to expander.
8786         (mulhisi3): Ditto.
8787         (umulhisi3): Ditto.
8788         (usmulhisi3): New expander.
8789         (*mulsi3): New insn-and-split.
8790         (mulu<mode>si3): New insn-and-split.
8791         (muls<mode>si3): New insn-and-split.
8792         (mulohisi3): New insn-and-split.
8793         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8794         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8795         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8796         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8797         insn-and-split.
8798         (*mulsi3_call): Rewrite.
8799         (*mulhisi3_call): Rewrite.
8800         (*umulhisi3_call): Rewrite.
8801         (*usmulhisi3_call): New insn.
8802         (*muluhisi3_call): New insn.
8803         (*mulshisi3_call): New insn.
8804         (*mulohisi3_call): New insn.
8805         (extendqihi2): Use combine_pseudo_register_operand as predicate
8806         for operand 1.
8807         (extendqisi2): Ditto.
8808         (zero_extendqihi2): Ditto.
8809         (zero_extendqisi2): Ditto.
8810         (zero_extendhisi2): Ditto.
8811         (extendhisi2): Ditto. Don't early-clobber operand 0.
8812
8813 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8814
8815         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8816
8817 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8818
8819         PR tree-optimization/49471
8820         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8821         iv only when the largest type is unsigned.  Do not call
8822         lang_hooks.types.type_for_size.
8823
8824 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8825
8826         PR middle-end/45450
8827         * graphite-poly.c (apply_poly_transforms): Disable legality check
8828         after an openscop read.
8829
8830 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8831
8832         PR middle-end/47691
8833         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8834         copy_bb_and_scalar_dependences.
8835         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
8836         (graphite_copy_stmts_from_block): Update call to rename_uses.
8837         (copy_bb_and_scalar_dependences): Update call to
8838         graphite_copy_stmts_from_block.
8839         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8840
8841 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
8842
8843         PR target/49313
8844         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8845         (__ctzsi2): Result for 0 may be undefined.
8846         (__ctzhi2): Result for 0 may be undefined.
8847         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8848         (__popcountsi2): Ditto. And don't clobber r26.
8849         (__popcountdi2): Ditto. And don't clobber r27.
8850         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8851         (parityhi2): New expand.
8852         (paritysi2): New expand.
8853         (popcounthi2): New expand.
8854         (popcountsi2): New expand.
8855         (clzhi2): New expand.
8856         (clzsi2): New expand.
8857         (ctzhi2): New expand.
8858         (ctzsi2): New expand.
8859         (ffshi2): New expand.
8860         (ffssi2): New expand.
8861         (copysignsf3): New insn.
8862         (bswapsi2): New expand.
8863         (*parityhi2.libgcc): New insn.
8864         (*parityqihi2.libgcc): New insn.
8865         (*paritysihi2.libgcc): New insn.
8866         (*popcounthi2.libgcc): New insn.
8867         (*popcountsi2.libgcc): New insn.
8868         (*popcountqi2.libgcc): New insn.
8869         (*popcountqihi2.libgcc): New insn-and-split.
8870         (*clzhi2.libgcc): New insn.
8871         (*clzsihi2.libgcc): New insn.
8872         (*ctzhi2.libgcc): New insn.
8873         (*ctzsihi2.libgcc): New insn.
8874         (*ffshi2.libgcc): New insn.
8875         (*ffssihi2.libgcc): New insn.
8876         (*bswapsi2.libgcc): New insn.
8877
8878 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8879
8880         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8881         the mode of symbolic_opreand RTXes.
8882
8883 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8884
8885         * config/i386/predicates.md (x86_64_movabs_operand): Return false
8886         for pic_32bit_operand RTXes.
8887         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8888         in DImode.
8889
8890 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8891
8892         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8893         for 32-bit, too.
8894         (ix86_handle_abi_attribute): Allow function attributes
8895         ms_abi/sysv_abi in 32-bit mode, too.
8896         * doc/extend.texi: Adjust attribute documentation.
8897
8898         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8899         expression handling.
8900         (and_var_with_comparison_1): Likewise.
8901
8902 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
8903
8904         * params.h (ALLOW_STORE_DATA_RACES): New.
8905         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8906         * Makefile.in (expr.o): Depend on PARAMS_H.
8907         * machmode.h (get_best_mode): Add argument.
8908         * fold-const.c (optimize_bit_field_compare): Add argument to
8909         get_best_mode.
8910         (fold_truthop): Same.
8911         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8912         * expr.c (emit_group_store): Same.
8913         (copy_blkmode_from_reg): Same.
8914         (write_complex_part): Same.
8915         (optimize_bitfield_assignment_op): Add argument.
8916         Add argument to get_best_mode.
8917         (get_bit_range): New.
8918         (expand_assignment): Calculate maxbits and pass it down accordingly.
8919         (store_field): New argument.
8920         (expand_expr_real_2): New argument to store_field.  Include params.h.
8921         * expr.h (store_bit_field): New argument.
8922         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8923         into account maxbits.
8924         * calls.c (store_unaligned_arguments_into_pseudos): New argument
8925         to store_bit_field.
8926         * expmed.c (store_bit_field_1): New argument.  Use it.
8927         (store_bit_field): Same.
8928         (store_fixed_bit_field): Same.
8929         (store_split_bit_field): Same.
8930         (extract_bit_field_1): Pass new argument to get_best_mode.
8931         (extract_bit_field): Same.
8932         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8933         * doc/invoke.texi: Document parameter allow-store-data-races.
8934
8935 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
8936
8937         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8938
8939 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8940
8941         * tree-vrp.c (extract_range_from_binary_expr): Remove
8942         TRUTH-binary cases and add new bitwise-cases.
8943         (extract_range_from_assignment): Likewise.
8944         (register_edge_assert_for_1): Likeiwise.
8945         (register_edge_assert_for): Likewise.
8946         (simplify_truth_ops_using_ranges): Likewise.
8947         (simplify_stmt_using_ranges): Likewise.
8948
8949 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8950
8951         PR target/47372
8952         * config/i386/i386.c (ix86_delegitimize_address): Call
8953         simplify_gen_subreg for PIC with mode of x only if modes of
8954         x and orig_x are different.
8955
8956 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
8957
8958         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8959         to GC allocated copy of the string.
8960         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
8961         before .debug_line, not after it.
8962
8963 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8964
8965         PR middle-end/47046
8966         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
8967         evolution_function_is_affine_p on CHREC_RIGHT.
8968
8969 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8970
8971         * tree-data-ref.c (max_stmt_executions_tree): Do not call
8972         lang_hooks.types.type_for_size.
8973
8974 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8975
8976         PR middle-end/47653
8977         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
8978         loops using wrapping semantics.
8979
8980 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8981
8982         PR middle-end/48805
8983         * tree-scalar-evolution.c (instantiate_scev_r): Return
8984         chrec_dont_know for ADDR_EXPR.
8985
8986 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8987             H.J. Lu  <hongjiu.lu@intel.com>
8988
8989         PR target/47369
8990         PR target/49853
8991         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
8992         if legitimize_tls_address returned operand in wrong mode. Allow
8993         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
8994         if legitimize_pic_address returned operand in wrong mode.
8995
8996 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8997
8998         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
8999         return false for invariants.
9000
9001 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9002
9003         * config/i386/i386.md (add->lea splitter): Implement using SWI
9004         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
9005         (add->lea zext splitter): Change operand 2 predicate to
9006         x86_64_nonmemory_operand.
9007
9008 2011-07-26  Richard Guenther  <rguenther@suse.de>
9009
9010         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
9011         frequency makes everything hot.
9012
9013 2011-07-26  Richard Guenther  <rguenther@suse.de>
9014
9015         PR tree-optimization/49840
9016         * tree-vrp.c (range_fits_type_p): Properly handle full
9017         double-int precision.
9018
9019 2011-07-26  Martin Jambor  <mjambor@suse.cz>
9020
9021         PR bootstrap/49786
9022         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
9023         counts.
9024         (update_specialized_profile): Likewise.
9025
9026 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9027             H.J. Lu  <hongjiu.lu@intel.com>
9028
9029         PR target/47381
9030         PR target/49832
9031         PR target/49833
9032         * config/i386/i386.md (i): Change SImode attribute to "e".
9033         (g): Change SImode attribute to "rme".
9034         (di): Change SImode attribute to "nF".
9035         (general_operand): Change SImode attribute to x86_64_general_operand.
9036         (general_szext_operand): Change SImode attribute to
9037         x86_64_szext_general_operand.
9038         (immediate_operand): Change SImode attribute to
9039         x86_64_immediate_operand.
9040         (nonmemory_operand): Change SImode attribute to
9041         x86_64_nonmemory_operand.
9042         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
9043         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
9044         (*lea_1): Use SWI48 mode iterator.
9045         (*lea_1_zext): New insn pattern.
9046         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
9047         (*bt<mode>): Ditto.
9048         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9049         Update operand constraints.
9050         (addsi_1_zext): Ditto.
9051         (*add<mode>2): Ditto.
9052         (*addsi_3_zext): Ditto.
9053         (*subsi_1_zext): Ditto.
9054         (*subsi_2_zext): Ditto.
9055         (*subsi_3_zext): Ditto.
9056         (*addsi3_carry_zext): Ditto.
9057         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9058         (*mulsi3_1_zext): Ditto.
9059         (*andsi_1): Ditto.
9060         (*andsi_1_zext): Ditto.
9061         (*andsi_2_zext): Ditto.
9062         (*<any_or:code>si_1_zext): Ditto.
9063         (*<any_or:code>si_2_zext): Ditto.
9064         (*test<mode>_1): Use <general_operand> predicate for operand 1.
9065         (*and<mode>_2): Ditto.
9066         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
9067         (add->lea splitter): Check operand modes in insn constraint.  Extend
9068         operands less than SImode wide to SImode.
9069         (add->lea zext splitter): Do not extend input operands to DImode.
9070         (*lea_general_1): Handle only QImode and HImode operands.
9071         (*lea_general_2): Ditto.
9072         (*lea_general_3): Ditto.
9073         (*lea_general_1_zext): Remove.
9074         (*lea_general_2_zext): Ditto.
9075         (*lea_general_3_zext): Ditto.
9076         (*lea_general_4): Check operand modes in insn constraint.  Extend
9077         operands less than SImode wide to SImode.
9078         (ashift->lea splitter): Ditto.
9079         * config/i386/i386.c (ix86_print_operand_address): Print address
9080         registers with 'q' modifier on 64bit targets.
9081         * config/i386/predicates.md (pic_32bit_opreand): Define as special
9082         predicate.  Reject non-SI and non-DI modes.
9083
9084 2011-07-25  Andrew Pinski  <apinski@cavium.com>
9085
9086         PR tree-opt/49671
9087         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9088         TREE_THIS_NOTRAP into the inner most MEM_REF.
9089         Always copy TREE_THIS_VOLATILE.
9090         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9091         arguments are not volatile references.
9092
9093 2011-07-25  Richard Henderson  <rth@redhat.com>
9094
9095         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9096         * final.c (final_scan_insn): Don't test for it.
9097         (rest_of_clean_state): Likewise.
9098
9099 2011-07-25  Richard Henderson  <rth@redhat.com>
9100
9101         PR debug/49841
9102         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9103         (emit_frame_save): Likewise.
9104         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9105         insn onto a dummy blockage insn after the join label.
9106
9107 2011-07-25  Richard Henderson  <rth@redhat.com>
9108
9109         * dwarf2cfi.c (dw_trace_info): Add ID member.
9110         (get_trace_index): Remove.  Change users to use ID member.
9111         (before_next_cfi_note): New.
9112         (connect_traces): Remove unreachable traces before the main loop.
9113         Look across one trace and generate remember/restore_state if needed.
9114
9115 2011-07-25  Richard Henderson  <rth@redhat.com>
9116
9117         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9118
9119 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
9120
9121         * genattr.c (write_upcase, gen_attr <enum definition writing>):
9122         Move to ...
9123         * genattr-common.c ... here.
9124         (main): Call gen_attr.
9125         * optc-gen.awk: Make generated program include insn-attr-common.h .
9126         * Makefile.in (oprions.o): Depend on insn-attr-common.h
9127
9128 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9129
9130         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9131         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9132         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9133         m32c_print_operand, m32c_print_operand_address): Remove.
9134         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9135         Change return type to bool. Change argument type to bool.
9136         (m32c_print_operand, m32c_print_operand_address): Make static.
9137         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9138         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9139
9140 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9141
9142         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9143         attributes): Document mmap.
9144
9145 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9146
9147         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9148         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9149         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9150         mmix_print_operand, mmix_print_operand_address): Remove.
9151         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9152         Change return type to bool. Change argument type to bool.
9153         (mmix_print_operand, mmix_print_operand_address): Make static.
9154         (mmix_intval, mmix_output_condition): Change 'x' argument type
9155         to const_rtx.
9156         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9157         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9158
9159 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
9160
9161         PR target/39386
9162         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9163         shift counter for x << x and x >> x shifts.
9164
9165 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9166
9167         PR target/47124
9168         * config.gcc: Reject *-*-solaris2 configuration.
9169
9170 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
9171
9172         PR tree-optimization/49809
9173         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9174         gimple_get_lhs instead of gimple_assign_lhs.
9175
9176 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9177
9178         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9179
9180 2011-07-25  Richard Guenther  <rguenther@suse.de>
9181
9182         PR tree-optimization/49822
9183         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9184         more.  Make sure to preserve stmts with side-effects.  Properly
9185         handle virtual defs, follow a longer def chain.
9186
9187 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
9188
9189         PR plugins/45348
9190         PR plugins/48425
9191         PR plugins/46577
9192         * Makefile.in: Do not flatten c-family directory when installing
9193         plugin headers.
9194
9195 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9196
9197         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
9198         original nodes if we are dealing with virtual clones.
9199
9200 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
9201
9202         * common/config/c6x/c6x-common.c: New file.
9203
9204 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
9205
9206         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9207
9208 2011-07-25  Richard Guenther  <rguenther@suse.de>
9209
9210         PR tree-optimization/49715
9211         * tree-vrp.c: Include expr.h and optabs.h.
9212         (range_fits_type_): New function.
9213         (simplify_float_conversion_using_ranges): Likewise.
9214         (simplify_stmt_using_ranges): Call it.
9215         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
9216         * optabs.c (can_float_p): Export.
9217         * optabs.h (can_float_p): Declare.
9218
9219 2011-07-25  Richard Guenther  <rguenther@suse.de>
9220
9221         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
9222         (get_value_range): For out-of-range SSA names or names created
9223         after propagation return a read-only varying range.
9224         (dump_all_value_ranges): Adjust.
9225         (vrp_initialize): Likewise.
9226         (vrp_finalize): Likewise.
9227
9228 2011-07-24  Richard Henderson  <rth@redhat.com>
9229
9230         PR debug/49831
9231         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
9232         them entirely.
9233
9234 2011-07-24  Richard Henderson  <rth@redhat.com>
9235
9236         PR debug/49825
9237         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
9238         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
9239
9240 2011-07-24  Richard Henderson  <rth@redhat.com>
9241
9242         PR debug/49827
9243         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
9244
9245 2011-07-24  Richard Henderson  <rth@redhat.com>
9246
9247         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
9248         Zero args_size for abnormal edges.  Adjust all callers.
9249
9250 2011-07-24  Richard Henderson  <rth@redhat.com>
9251
9252         PR debug/49825
9253         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
9254
9255 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9256
9257         PR bootstrap/49835
9258         * collect2.c (demangle_flag): Removed.
9259
9260 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
9261
9262         * configure.ac (demangler_in_ld): Default to yes.
9263         * configure: Regenerated.
9264         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
9265         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
9266         --no-demangle options straight through to ld.  When
9267         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
9268         way that has the intended effect on Windows.
9269
9270 2011-07-23  Richard Henderson  <rth@redhat.com>
9271
9272         * dwarf2cfi.c: Include basic-block.h.
9273         (dw_label_info): Remove.
9274         (trace_work_list, trace_index): New.
9275         (remember_row, emit_cfa_remember): Remove.
9276         (dw_trace_info_hash, dw_trace_info_eq): New.
9277         (get_trace_index, get_trace_info): New.
9278         (save_point_p): New.
9279         (free_cfi_row): Remove.
9280         (add_cfi): Do not emit DW_CFA_remember_state.
9281         (cfa_row_equal_p): New.
9282         (barrier_args_size): Remove.
9283         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
9284         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
9285         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
9286         (dwarf2out_cfi_begin_epilogue): Remove.
9287         (dwarf2out_frame_debug_restore_state): Remove.
9288         (connect_traces, create_pseudo_cfg): New.
9289         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
9290         * Makefile.in (dwarf2cfi.o): Update.
9291
9292 2011-07-23  Richard Henderson  <rth@redhat.com>
9293
9294         * dwarf2cfi.c (dw_trace_info): New.
9295         (dw_label_info): New.
9296         (cie_return_save): New.
9297         (cur_trace): New.
9298         (queued_args_size): Rename from args_size.  Update all users.
9299         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
9300         (def_cfa_1): Use cur_trace instead of cfa_*.
9301         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
9302         (clobbers_queued_reg_save, reg_saved_in): Likewise.
9303         (dwarf2out_frame_debug_expr): Likewise.
9304         (create_cie_data): Split out from ...
9305         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
9306
9307 2011-07-23  Richard Henderson  <rth@redhat.com>
9308
9309         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
9310         Update all users to match.
9311         (execute_dwarf2_frame): Free reg_saved_in_data.
9312
9313 2011-07-23  Richard Henderson  <rth@redhat.com>
9314
9315         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
9316         (queued_reg_saves): Don't GTY.  Change to a VEC.
9317         (queue_reg_save): Update to match.
9318         (dwarf2out_flush_queued_reg_saves): Likewise.
9319         (clobbers_queued_reg_save): Likewise.
9320         (reg_saved_in): Likewise.
9321         (execute_dwarf2_frame): Free queued_reg_saves.
9322
9323 2011-07-23  Richard Henderson  <rth@redhat.com>
9324
9325         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
9326
9327 2011-07-23  Richard Henderson  <rth@redhat.com>
9328
9329         * dwarf2cfi.c (add_cfi_args_size): Split out from...
9330         (dwarf2out_args_size): ... here.
9331         (add_cfi_restore): Split out from ...
9332         (dwarf2out_frame_debug_cfa_restore): ... here.
9333         (def_cfa_0): Split out from ...
9334         (def_cfa_1): ... here.
9335         (cfi_oprnd_equal_p, cfi_equal_p): New.
9336         (change_cfi_row): New.
9337         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9338         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9339         (output_cfis): Remove.
9340         * dwarf2out.c (output_fde): Simplify output_cfi loop.
9341         (dwarf2out_switch_text_section): Don't call output_cfis.
9342         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9343         * dwarf2out.h: Update decls.
9344         (enum dw_val_class): Add dw_val_class_none.
9345
9346 2011-07-23  Richard Henderson  <rth@redhat.com>
9347
9348         * dwarf2cfi.c (update_row_reg_save): New.
9349         (dwarf2out_frame_debug_cfa_expression): Use it.
9350         (dwarf2out_frame_debug_cfa_restore): Likewise.
9351         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
9352
9353 2011-07-23  Richard Henderson  <rth@redhat.com>
9354
9355         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
9356
9357 2011-07-23  Richard Henderson  <rth@redhat.com>
9358
9359         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9360         (cie_cfi_row): New.
9361         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9362         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9363         (cur_row, remember_row): New.
9364         (def_cfa_1): Use cur_row instead of the old_* variables.
9365         (dwarf2out_frame_debug_restore_state): Similarly.
9366         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9367         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9368         (dwarf2out_frame_debug_adjust_cfa): Likewise.
9369         (dwarf2out_frame_debug_cfa_offset): Likewise.
9370         (dwarf2out_frame_debug_expr): Likewise.
9371         (execute_dwarf2_frame): Set up cur_row.
9372         * dwarf2out.h (struct cfa_loc): Mark for GTY.
9373
9374 2011-07-23  Richard Henderson  <rth@redhat.com>
9375
9376         * basic-block.h (EDGE_PRESERVE): New.
9377         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9378         * bb-reorder.c: Include except.h.
9379         (fix_up_crossing_landing_pad): New.
9380         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9381         landing pads in the right partition.  Duplicate as necessary.
9382         (partition_hot_cold_basic_blocks): Fix up DF info after
9383         duplicating landing pads.
9384         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9385         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9386         is set properly.  Validate that EH edges are not CROSSING.
9387         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9388         (dw2_build_landing_pads): ... here.
9389         (convert_to_eh_region_ranges): Remove code to fixup crossing
9390         landing pads.
9391         * except.h (expand_dw2_landing_pad_for_region): Declare.
9392         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9393
9394 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
9395
9396         PR target/49816
9397         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9398
9399 2011-07-22  Jason Merrill  <jason@redhat.com>
9400
9401         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9402
9403 2011-07-22  Richard Henderson  <rth@redhat.com>
9404
9405         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9406
9407 2011-07-22  Richard Henderson  <rth@redhat.com>
9408
9409         * jump.c (maybe_propagate_label_ref): Split out of...
9410         (mark_all_labels): ... here.  Do not attempt label_ref
9411         propagation while in cfglayout mode.
9412
9413 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9414
9415         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9416         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9417         (dwarf_attr_name): Handle DW_AT_GNU_macros.
9418         (dwarf2out_define): If the vector is empty and
9419         lineno is 0, emit a dummy entry first.
9420         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
9421         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9422         optimize_macinfo_range): New functions.
9423         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
9424         mergeable, optimize longer strings using
9425         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9426         optimize longer sequences of define/undef ops from headers
9427         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
9428         emit a section headers.
9429         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9430         and macinfo_section_label to DEBUG_MACRO_SECTION
9431         resp. DEBUG_MACRO_SECTION_LABEL.
9432         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9433         instead of DW_AT_macro_info.
9434
9435         PR other/32998
9436         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9437         options.
9438         * dwarf2out.c: Include opts.h.
9439         (dchar_p): New typedef.  Define heap VEC for it.
9440         (producer_string): New variable.
9441         (gen_producer_string): New function.
9442         (gen_compile_unit_die): Use it.
9443         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9444         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9445         * doc/invoke.texi: Document -grecord-gcc-switches and
9446         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9447         to -frecord-gcc-switches description.
9448
9449 2011-07-22  Jason Merrill  <jason@redhat.com>
9450
9451         PR c++/30112
9452         * c-decl.c (c_linkage_bindings): Define.
9453
9454 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9455
9456         PR debug/49815
9457         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9458
9459 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
9460
9461         * config/i386/i386.c (ix86_option_override_internal): Disallow
9462         MS ABI in x32 mode.
9463         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9464         only for TARGET_LP64.
9465         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9466
9467 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9468
9469         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9470         avoid warnings when GCC is built with a C++ compiler.
9471
9472 2011-07-22  Martin Jambor  <mjambor@suse.cz>
9473
9474         PR lto/49796
9475         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9476         if decl node is in another partition, call cgraph_get_node only once.
9477
9478 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
9479
9480         * config.gcc (x86_64-*-linux*): Set
9481         default_gnu_indirect_function to yes.
9482
9483 2011-07-22  Richard Guenther  <rguenther@suse.de>
9484
9485         PR tree-optimization/45819
9486         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9487         preserve volatile and notrap flags.
9488
9489 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9490             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9491
9492         PR bootstrap/49794
9493         * configure.ac: Test AM_ICONV with CXX.
9494         * configure: Regenerate.
9495         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9496
9497 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9498
9499         PR bootstrap/49797
9500         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9501         (set_cloog_options): Use it.
9502
9503 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9504
9505         PR c++/49756
9506         * gcc.c (main): Call stack_limit_increase (64MB).
9507         * toplev.c (toplev_main): Likewise.
9508
9509 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9510
9511         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9512         instead of force_reg.
9513
9514 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9515
9516         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9517         needed and use force_reg after convert.
9518         (ix86_expand_call): Likewise.
9519         (ix86_expand_special_args_builtin): Likewise.
9520         (ix86_expand_builtin): Likewise.
9521
9522 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9523
9524         PR middle-end/47654
9525         PR middle-end/49649
9526         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9527         in parameter.  Initialize v1 and v2 based on the values returned
9528         by clast_name_to_lb_ub.
9529         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9530         values.
9531         (type_for_clast_bin): Same.
9532         (type_for_clast_expr): Same.
9533         (type_for_clast_eq): Update calls to type_for_clast_expr.
9534         (type_for_clast_for): Same.
9535         (build_iv_mapping): Same.
9536         * graphite-ppl.h (value_min): New.
9537
9538 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9539
9540         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9541         types whenever possible.
9542
9543 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9544
9545         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9546         and ub fields.
9547         (new_clast_name_index): Add lb and ub parameters.
9548         (free_clast_name_index): New.
9549         (clast_name_to_lb_ub): New.
9550         (save_clast_name_index): Add lb and ub parameters.
9551         (compute_bounds_for_param): New.
9552         (type_for_level): Removed.
9553         (type_for_clast_for): Removed level parameter.  Do not call
9554         type_for_level.
9555         (graphite_create_new_loop): Store the lb and ub for the clast_name
9556         of the iterator of the loop that has been generated.
9557         (graphite_create_new_loop_guard): Remove parameter level.
9558         (create_params_index): Store the lb and ub of each parameter.
9559         (gloog): Use free_clast_name_index.  Pass to create_params_index
9560         the current scop.
9561
9562 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9563
9564         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9565         (max_precision_type): Inline max_signed_precision_type.
9566         (type_for_clast_red): Use max_precision_type.
9567         (type_for_clast_bin): Same.
9568         (type_for_clast_for): Same.
9569
9570 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9571
9572         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9573         type_for_interval.
9574         (gcc_type_for_value): Renamed type_for_value.
9575         (gcc_type_for_clast_term): Renamed type_for_clast_term.
9576         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9577         (gcc_type_for_clast_red): Renamed type_for_clast_red.
9578         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9579         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9580         (graphite_translate_clast_equation): Update calls.
9581         (compute_type_for_level): Renamed type_for_level.
9582         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9583         (build_iv_mapping): Update calls.
9584         (graphite_create_new_loop_guard): Same.
9585
9586 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9587
9588         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9589         comment.
9590
9591 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9592
9593         * graphite-clast-to-gimple.c (struct ivs_params): New.
9594         (clast_name_to_gcc): Use ivs_params to pass around parameters.
9595         (clast_to_gcc_expression): Same.
9596         (clast_to_gcc_expression_red): Same.
9597         (gcc_type_for_clast_term): Same.
9598         (gcc_type_for_clast_expr): Same.
9599         (gcc_type_for_clast_red): Same.
9600         (gcc_type_for_clast_bin): Same.
9601         (gcc_type_for_clast_eq): Same.
9602         (graphite_translate_clast_equation): Same.
9603         (graphite_create_guard_cond_expr): Same.
9604         (graphite_create_new_guard): Same.
9605         (graphite_create_new_loop): Same.
9606         (build_iv_mapping): Same.
9607         (translate_clast_user): Same.
9608         (graphite_create_new_loop_guard): Same.
9609         (translate_clast): Same.
9610         (translate_clast_for_loop): Same.
9611         (translate_clast_for): Same.
9612         (translate_clast_guard): Same.
9613         (initialize_cloog_names): Fix typo.
9614         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9615
9616 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9617
9618         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9619         (new_clast_name_index): Add level parameter.
9620         (clast_name_to_level): New.
9621         (save_clast_name_index): Add level parameter.
9622         (newivs_to_depth_to_newiv): Removed.
9623         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9624         (graphite_create_new_loop): Add level parameter.  Pass level to
9625         save_clast_name_index.
9626         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9627         (create_params_index): Pass level to save_clast_name_index.
9628
9629 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9630
9631         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9632         recompute type, lb, and ub.  Get them from...
9633         (graphite_create_new_loop_guard): ...here.  Pass in parameter
9634         pointers to type, lb, and ub.
9635         (translate_clast_for_loop): Update function calls.
9636         (translate_clast_for): Same.
9637
9638 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9639
9640         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9641         psct_dynamic_dim.
9642         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9643         (gcc_type_for_iv_of_clast_loop): Update use of level.
9644         (gloog): Start counting nesting level from 0.
9645         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9646         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9647         psct_dynamic_dim on level.
9648
9649 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9650
9651         * config/i386/i386.c (ix86_legitimize_address): Convert to
9652         Pmode if needed.
9653
9654 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9655
9656         * config/i386/i386.c (function_value_64): Always return pointers
9657         in Pmode.
9658         (ix86_promote_function_mode): New.
9659         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9660
9661 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9662
9663         PR tree-optimization/49749
9664         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9665         remove no-longer-used maxrank variable.
9666
9667 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9668
9669         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9670
9671 2011-07-21  Jason Merrill  <jason@redhat.com>
9672
9673         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9674         * recog.h (struct insn_data_d): Check it instead of
9675         HAVE_DESIGNATED_INITIALIZERS.
9676         * genoutput.c (output_insn_data): Likewise.
9677
9678 2011-07-21  Richard Guenther  <rguenther@suse.de>
9679
9680         PR tree-optimization/49770
9681         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9682         valueized any operand.  Renamed from ...
9683         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
9684         (valueize_shared_reference_ops_from_ref): Return whether we
9685         valueized any operand.
9686         (vn_reference_lookup): Only when we valueized any operand
9687         use the valueized reference for alias analysis.  Do not preserve
9688         the original reference tree in this case.
9689
9690 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
9691
9692         * config/i386/i386.c (ix86_decompose_address): Reject all but
9693         register operands and subregs of DImode hard registers in index.
9694
9695 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9696
9697         * fold-const.c (fold_unary_loc): Preserve indirect
9698         comparison cast to none-boolean type.
9699         * tree-ssa.c (useless_type_conversion_p): Preserve cast
9700         from/to boolean-type.
9701         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9702         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9703         * tree-cfg.c (verify_gimple_comparison): Check result
9704         type of comparison expression.
9705         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9706         of condition result and disallow type-cast sinking into comparison.
9707
9708 2011-07-21  Richard Guenther  <rguenther@suse.de>
9709
9710         * tree-ssa-forwprop.c (combine_conversions): Return whether
9711         we have to run cfg-cleanup.  Properly remove dead stmts.
9712         (ssa_forward_propagate_and_combine): Adjust.
9713
9714 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
9715
9716         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9717
9718 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9719
9720         * tree-ssa-propagate.c (substitute_and_fold): Use
9721         do_dce flag to deside, if BB's statements are scanned
9722         in last to first, or first to last order.
9723
9724 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9725
9726         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9727
9728 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
9729             Uros Bizjak  <ubizjak@gmail.com>
9730             Richard Henderson  <rth@redhat.com>
9731
9732         * config/i386/constraints.md (w): New.
9733
9734         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9735         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9736
9737         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9738         instead of TARGET_64BIT.
9739
9740         * config/i386/i386.md (indirect_jump): Replace
9741         nonimmediate_operand with indirect_branch_operand.
9742         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
9743         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9744         Convert operand 0 to Pmode for x32 if not PIC.
9745         (*tablejump_1): Replace nonimmediate_operand with
9746         indirect_branch_operand.  Replace constraint "m" with "w".
9747         (*call_vzeroupper): Replace constraint "m" with "w".
9748         (*call): Likewise.
9749         (*call_rex64_ms_sysv_vzeroupper): Likewise.
9750         (*call_rex64_ms_sysv): Likewise.
9751         (*call_value_vzeroupper): Likewise.
9752         (*call_value): Likewise.
9753         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9754         (*call_value_rex64_ms_sysv): Likewise.
9755         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9756
9757         * config/i386/predicates.md (indirect_branch_operand): New.
9758         (call_insn_operand): Support x32.
9759
9760 2011-07-20  Michael Eager  <eager@eagercon.com>
9761
9762         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9763
9764 2011-07-20  Richard Henderson  <rth@redhat.com>
9765
9766         * cfg.c (dump_bb_info): Dump basic_block->flags.
9767         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9768
9769 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9770
9771         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9772         of DImode hard registers in index.
9773         (ix86_legitimate_address_p): Allow subregs of base and index to span
9774         more than a word.  Assert that subregs of base and index satisfy
9775         register_no_elim_operand predicates.  Reject addresses where
9776         base and index have different modes.
9777
9778 2011-07-20  Robert Millan  <rmh@gnu.org>
9779
9780         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
9781
9782 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9783
9784         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9785         removing now-unnecessary assignment.
9786
9787 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9788
9789         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9790         memory address space to the type's address space.
9791
9792 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9793
9794         PR target/36467
9795         PR target/49687
9796         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9797         and expand appropriately if there is a CONST_INT in operand2.
9798         (usmulqihi3): New insn.
9799         (*sumulqihi3): New insn.
9800         (*osmulqihi3): New insn.
9801         (*oumulqihi3): New insn.
9802         (*muluqihi3.uconst): New insn_and_split.
9803         (*muluqihi3.sconst): New insn_and_split.
9804         (*mulsqihi3.sconst): New insn_and_split.
9805         (*mulsqihi3.uconst): New insn_and_split.
9806         (*mulsqihi3.oconst): New insn_and_split.
9807         (*ashifthi3.signx.const): New insn_and_split.
9808         (*ashifthi3.signx.const7): New insn_and_split.
9809         (*ashifthi3.zerox.const): New insn_and_split.
9810         (mulsqihi3): New insn.
9811         (muluqihi3): New insn.
9812         (muloqihi3): New insn.
9813         * config/avr/predicates.md (const_2_to_7_operand): New.
9814         (const_2_to_6_operand): New.
9815         (u8_operand): New.
9816         (s8_operand): New.
9817         (o8_operand): New.
9818         (s9_operand): New.
9819         (register_or_s9_operand): New.
9820
9821 2011-07-20  Kai Tietz  <ktietz@redhat.com>
9822
9823         * builtins.c (fold_builtin_expect): See through the cast
9824         from truthvalue_type_node to long.
9825
9826 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9827
9828         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9829         where we can use them from the standard and altivec instruction
9830         sets, instead of always using the 3 operand VSX forms that require
9831         the destination to overlap one of the inputs.
9832         (vsx_fms*): Ditto.
9833         (vsx_fnma*): Ditto.
9834         (vsx_fnms*): Ditto.
9835
9836         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9837         for DF types.
9838         (fmsdf4_fpr): Ditto.
9839         (nfmadf4_fpr): Ditto.
9840         (nfmsdf4_fpr): Ditto.
9841
9842 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
9843
9844         * genrecog.c (make_insn_sequence): Correct position numbering
9845         when filtering out match_scratch and match_dup.
9846
9847 2011-07-20  Richard Guenther  <rguenther@suse.de>
9848
9849         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9850         against already removed statements.
9851         (forward_propagate_into_comparison): Remove dead defining stmts.
9852         (forward_propagate_into_gimple_cond): Likewise.
9853         (forward_propagate_into_cond): Simplify.
9854         (ssa_forward_propagate_and_combine): Handle changed cfg from
9855         forward_propagate_into_comparison.
9856         * tree-ssa-phiopt.c (conditional_replacement): Use proper
9857         locations for newly built statements.
9858
9859 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9860
9861         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9862
9863 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9864
9865         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9866         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9867
9868 2011-07-20  Richard Guenther  <rguenther@suse.de>
9869
9870         PR middle-end/18908
9871         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9872         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9873         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
9874
9875 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
9876
9877         * config/frv/frv.c (frv_register_move_cost): Define explicitly
9878         costs for subclasses of GR_REGS.
9879
9880 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9881
9882         PR target/49780
9883         * config/i386/predicates.md (no_seg_addres_operand): No more special.
9884         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9885         of DImode hard registers in base.
9886         (ix86_legitimate_address_p): Allow SImode and DImode base and index
9887         registers.
9888
9889 2011-07-20  Richard Guenther  <rguenther@suse.de>
9890
9891         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9892         (unify_nodes): Deal with that.
9893         (solve_graph): Likewise.
9894
9895 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
9896
9897         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9898         canonicalize left operand from ZERO_EXTEND to AND.
9899
9900 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
9901
9902         * target.def (class_max_nregs): New hook.
9903         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9904         * doc/tm.texi: Regenerate.
9905         * targhooks.c (default_class_max_nregs): New function.
9906         * targhooks.h (default_class_max_nregs): Declare.
9907         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9908         x_ira_reg_class_min_nregs arrays to unsigned char.
9909         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9910         hook instead of CLASS_MAX_NREGS macro.
9911         * reginfo.c (restore_register_info): Ditto.
9912         * ira-conflicts.c (process_regs_for_copy): Use
9913         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9914         Change type rclass and aclass vars to reg_class_t.
9915         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9916         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9917         reg_class_t.
9918         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9919         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9920
9921         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9922         * config/i386/i386.c (ix86_class_max_nregs): New function.
9923         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9924         instead of CLASS_MAX_NREGS macro.
9925         (TARGET_CLASS_MAX_NREGS): Define.
9926         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9927         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9928         * config/avr/avr.c (class_max_nregs): Remove function.
9929         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9930         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9931         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9932         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9933         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9934         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9935         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9936         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9937         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9938         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9939         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9940         * config/score/score.h (CLASS_MAX_NREGS): Remove.
9941         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9942         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9943         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9944
9945 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9946
9947         * cif-code.def (OVERWRITABLE): Fix typo and move around.
9948         (TARGET_OPTIMIZATION_MISMATCH): Delete.
9949         (EH_PERSONALITY): Fix typo.
9950         (NON_CALL_EXCEPTIONS): Fix message.
9951         (OPTIMIZATION_MISMATCH): Adjust message.
9952         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9953
9954 2011-07-19  Ian Lance Taylor  <iant@google.com>
9955
9956         * doc/install.texi (Configuration): Document
9957         --enable-build-poststage1-with-cxx.
9958
9959 2011-07-19  Robert Millan  <rmh@gnu.org>
9960
9961         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
9962         (GLIBC_DYNAMIC_LINKER): Remove.
9963
9964         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
9965         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9966         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9967         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
9968         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
9969         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
9970
9971         * config/mips/linux.h: Remove everything except for ...
9972         (GLIBC_DYNAMIC_LINKER): ... this macro.
9973
9974         * config/mips/linux64.h: Remove everything except for ...
9975         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9976         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9977         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
9978         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
9979         (GNU_USER_LINK_EMULATIONN32): New macros.
9980
9981         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
9982         Use the new headers.
9983
9984 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9985
9986         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
9987         Add offset_known_p and size_known_p fields.
9988         (MEM_OFFSET_KNOWN_P): Update accordingly.
9989         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
9990         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
9991         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
9992         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
9993         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
9994         (init_emit_regs): Likewise.
9995
9996 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9997
9998         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
9999         (MEM_OFFSET): Change from returning an rtx to returning a
10000         HOST_WIDE_INT.
10001         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
10002         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
10003         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10004         (clear_mem_offset): Declare.
10005         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
10006         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
10007         MEM_OFFSET to get a HOST_WIDE_INT offset.
10008         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
10009         (adjust_offset_for_component_ref): Take a bool "known_p"
10010         parameter and a HOST_WIDE_INT "offset" parameter.
10011         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
10012         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
10013         than an rtx.  Use clear_mem_offset to clear the offset.
10014         * cfgcleanup.c (merge_memattrs): Likewise.
10015         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
10016         * function.c (assign_parm_find_stack_rtl): Likewise.
10017         (assign_parm_setup_stack): Likewise.
10018         * print-rtl.c (print_rtx): Likewise.
10019         * reload.c (find_reloads_subreg_address): Likewise.
10020         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10021         * var-tracking.c (INT_MEM_OFFSET): Likewise.
10022         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10023         (get_mem_align_offset): Likewise.
10024         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10025         (clear_mem_offset): New function.
10026         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
10027         offset rather than an rtx.  Assume both the expressio and offset
10028         are available.
10029         (r10k_needs_protection_p_1): Update accordingly, checking the
10030         expression and offset availability here instead.
10031
10032 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10033
10034         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
10035         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
10036         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
10037         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
10038         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10039         (clear_mem_size): Declare.
10040         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10041         (clear_mem_size): New function.
10042         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
10043         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
10044         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
10045         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
10046         to clear the size.
10047         (nonoverlapping_memrefs_p): Likewise.
10048         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10049         (expand_builtin_init_trampoline): Likewise.
10050         * calls.c (compute_argument_addresses): Likewise.
10051         * cfgcleanup.c (merge_memattrs): Likewise.
10052         * dce.c (find_call_stack_args): Likewise.
10053         * dse.c (record_store, scan_insn): Likewise.
10054         * dwarf2out.c (dw_sra_loc_expr): Likewise.
10055         * expr.c (emit_block_move_hints): Likewise.
10056         * function.c (assign_parm_find_stack_rtl): Likewise.
10057         * print-rtl.c (print_rtx): Likewise.
10058         * reload.c (find_reloads_subreg_address): Likewise.
10059         * rtlanal.c (may_trap_p_1): Likewise.
10060         * var-tracking.c (track_expr_p): Likewise.
10061         * varasm.c (assemble_trampoline_template): Likewise.
10062         * config/arm/arm.c (arm_print_operand): Likewise.
10063         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10064         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10065         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10066         (expand_constant_setmem_prologue): Likewise.
10067         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10068         * config/rs6000/rs6000.c (expand_block_move): Likewise.
10069         (adjacent_mem_locations): Likewise.
10070         * config/s390/s390.c (s390_expand_setmem): Likewise.
10071         (s390_expand_insv): Likewise.
10072         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10073         (*extendqi<mode>2_short_displ): Likewise.
10074         * config/sh/sh.c (expand_block_move): Likewise.
10075         * config/sh/sh.md (extv, extzv): Likewise.
10076
10077 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10078
10079         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10080         (mem_attrs_htab_eq): ...here.
10081         (find_mem_attrs): Replace with...
10082         (set_mem_attrs): ...this function.  Take a mem_attrs structure
10083         rather than individual fields.
10084         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10085         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10086         (set_mem_size, change_address, adjust_address_1, offset_address)
10087         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10088         Update accordingly.
10089
10090 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10091
10092         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10093         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10094         Provide a dummy definition of MEM_ADDR_SPACE for generators.
10095         (target_rtl): Add x_mode_mem_attrs.
10096         (mode_mem_attrs): New macro.
10097         (get_mem_attrs): New function.
10098         * emit-rtl.c (get_mem_attrs): Rename to...
10099         (find_mem_attrs): ...this.
10100         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10101         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10102         (set_mem_size, change_address, adjust_address_1, offset_address)
10103         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10104         Update accordingly.
10105         (init_emit_regs): Initialize mode_mem_attrs.
10106
10107 2011-07-19  Richard Guenther  <rguenther@suse.de>
10108
10109         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10110         TRUTH_*_EXPR handling.
10111         * tree-ssa-operands.c (get_expr_operands): Likewise.
10112         * tree-ssa-pre.c (fully_constant_expression): Likewise.
10113         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10114         Likewise.
10115         (is_and_or_or): Likewise.
10116         (is_norm_cond_subset_of): Likewise.
10117
10118 2011-07-19  Richard Guenther  <rguenther@suse.de>
10119
10120         * tree.h (fold_build_pointer_plus_loc): New helper function.
10121         (fold_build_pointer_plus_hwi_loc): Likewise.
10122         (fold_build_pointer_plus): Define.
10123         (fold_build_pointer_plus_hwi): Likewise.
10124         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10125         (fold_builtin_memory_op): Likewise.
10126         (fold_builtin_stpcpy): Likewise.
10127         (fold_builtin_memchr): Likewise.
10128         (fold_builtin_strstr): Likewise.
10129         (fold_builtin_strchr): Likewise.
10130         (fold_builtin_strrchr): Likewise.
10131         (fold_builtin_strpbrk): Likewise.
10132         (fold_builtin_strcat): Likewise.
10133         (expand_builtin_memory_chk): Likewise.
10134         (fold_builtin_memory_chk): Likewise.
10135         * c-typeck.c (build_unary_op): Likewise.
10136         * cgraphunit.c (thunk_adjust): Likewise.
10137         * fold-const.c (build_range_check): Likewise.
10138         (fold_binary_loc): Likewise.
10139         * omp-low.c (extract_omp_for_data): Likewise.
10140         (expand_omp_for_generic): Likewise.
10141         (expand_omp_for_static_nochunk): Likewise.
10142         (expand_omp_for_static_chunk): Likewise.
10143         * tree-affine.c (add_elt_to_tree): Likewise.
10144         * tree-data-ref.c (split_constant_offset_1): Likewise.
10145         * tree-loop-distribution.c (generate_memset_zero): Likewise.
10146         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10147         * tree-predcom.c (ref_at_iteration): Likewise.
10148         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10149         (add_to_parts): Likewise.
10150         (create_mem_ref): Likewise.
10151         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10152         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10153         (number_of_iterations_le): Likewise.
10154         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10155         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10156         (vect_create_addr_base_for_vector_ref): Likewise.
10157         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10158         (vect_create_cond_for_alias_checks): Likewise.
10159         * tree-vrp.c (extract_range_from_assert): Likewise.
10160         * config/alpha/alpha.c (alpha_va_start): Likewise.
10161         (alpha_gimplify_va_arg_1): Likewise.
10162         * config/i386/i386.c (ix86_va_start): Likewise.
10163         (ix86_gimplify_va_arg): Likewise.
10164         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10165         * config/mep/mep.c (mep_expand_va_start): Likewise.
10166         (mep_gimplify_va_arg_expr): Likewise.
10167         * config/mips/mips.c (mips_va_start): Likewise.
10168         (mips_gimplify_va_arg_expr): Likewise.
10169         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10170         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10171         (rs6000_gimplify_va_arg): Likewise.
10172         * config/s390/s390.c (s390_va_start): Likewise.
10173         (s390_gimplify_va_arg): Likewise.
10174         * config/sh/sh.c (sh_va_start): Likewise.
10175         (sh_gimplify_va_arg_expr): Likewise.
10176         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10177         * config/spu/spu.c (spu_va_start): Likewise.
10178         (spu_gimplify_va_arg_expr): Likewise.
10179         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10180         Likewise.
10181         (xstormy16_gimplify_va_arg_expr): Likewise.
10182         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10183         (xtensa_gimplify_va_arg_expr): Likewise.
10184
10185 2011-07-19  Richard Guenther  <rguenther@suse.de>
10186
10187         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
10188         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
10189         handling.
10190
10191         PR middle-end/18908
10192         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
10193         result of BIT_*_EXPR to bitfield precision.
10194
10195 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
10196
10197         PR tree-optimization/49742
10198         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
10199         as a potential write.
10200
10201 2011-07-19  Richard Guenther  <rguenther@suse.de>
10202
10203         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
10204         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
10205         (forward_propagate_comparison): Simplify, remove obsolete code.
10206
10207 2011-07-19  Richard Guenther  <rguenther@suse.de>
10208
10209         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
10210         BIT_XOR_EXPR, same as the RTL expander does.
10211         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
10212         (verify_gimple_assign_unary): Likewise.
10213         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
10214         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
10215         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
10216
10217 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
10218
10219         PR tree-optimization/49768
10220         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
10221         if offset is smaller than bitoffset, but offset+size is bigger
10222         than bitoffset.
10223
10224 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
10225
10226         PR tree-optimization/49771
10227         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
10228         zero step, set segment length to the size of the data-ref's type.
10229
10230 2011-07-18  Martin Jambor  <mjambor@suse.cz>
10231
10232         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
10233         comments.
10234         (ipcp_values_pool): Declare.
10235         (ipcp_sources_pool): Likewise.
10236         (ipcp_lattice): Changed to forward declaration.
10237         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
10238         cannot_devirtualize.
10239         (ipa_node_params): New fields descriptors, lattices, known_vals,
10240         clone_for_all_contexts and node dead, removed fields params and
10241         count_scale.
10242         (ipa_set_param_count): Removed.
10243         (ipa_get_param_count): Made to work with descriptors vector.
10244         (ipa_get_param): Updated.
10245         (ipa_param_cannot_devirtualize_p): Removed.
10246         (ipa_param_types_vec_empty): Likewise.
10247         (ipa_set_param_used): New function.
10248         (ipa_get_param_used): Updated to use descriptors vector.
10249         (ipa_func_list): Removed.
10250         (ipa_init_func_list): Removed declaration.
10251         (ipa_push_func_to_list_1): Likewise.
10252         (ipa_pop_func_from_list): Likewise.
10253         (ipa_push_func_to_list): Removed.
10254         (ipa_lattice_from_jfunc): Remove declaration.
10255         (ipa_get_jf_pass_through_result): Declare.
10256         (ipa_get_jf_ancestor_result): Likewise.
10257         (ipa_value_from_jfunc): Likewise.
10258         (ipa_get_lattice): Update.
10259         (ipa_lat_is_single_const): New function.
10260         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
10261         (ipa_init_func_list): Likewise.
10262         (ipa_pop_func_from_list): Likewise.
10263         (ipa_get_param_decl_index): Fix coding style.
10264         (count_formal_params): Removed.
10265         (count_formal_params_1): Renamed to count_formal_params.
10266         (ipa_populate_param_decls): Update to use descriptors vector.
10267         (ipa_initialize_node_params): Likewise.
10268         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
10269         (ipa_analyze_params_uses): Likewise.
10270         (ipa_free_node_params_substructures): Likewise and free also lattices
10271         and known values.
10272         (duplicate_array): Removed.
10273         (ipa_edge_duplication_hook): Add the new edge to the list of edge
10274         clones.
10275         (ipa_node_duplication_hook): Update to use new lattices.
10276         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
10277         (ipa_free_all_structures_after_iinln): Likewise.
10278         (ipa_write_node_info): Update to use new lattices.
10279         (ipa_read_node_info): Likewise.
10280         (ipa_get_jf_pass_through_result): New function.
10281         (ipa_get_jf_ancestor_result): Likewise.
10282         (ipa_value_from_jfunc): Likewise.
10283         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
10284         * ipa-cp.c: Reimplemented.
10285         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
10286         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
10287         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
10288         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
10289         * doc/invoke.texi (devirt-type-list-size): Removed description.
10290         (ipa-cp-value-list-size): Added description.
10291
10292 2011-07-18  Richard Henderson  <rth@redhat.com>
10293
10294         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
10295         before calling create_basic_block.
10296
10297 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
10298
10299         PR middle-end/49675
10300         * tree.c (build_common_builtin_nodes): Register
10301         __builtin_return_address, __cyg_profile_func_enter
10302         and __cyg_profile_func_exit.
10303
10304 2011-07-18  Richard Henderson  <rth@redhat.com>
10305
10306         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
10307         (add_labels_and_missing_jumps): ... here.
10308         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
10309
10310 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
10311
10312         PR target/47744
10313         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10314         of DImode hard registers in PLUS address chains.
10315
10316 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10317
10318         PR bootstrap/49769
10319         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
10320         (alpha*-*-freebsd*): Likewise.
10321         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10322         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10323         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
10324         crtprec80.o, crtfastmath.o to extra_parts for all targets.
10325         (ia64*-*-elf*): Remove extra_parts.
10326         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
10327         (sparc64-*-linux*): Likewise.
10328         (sparc64-*-freebsd*): Likewise.
10329
10330         Revert:
10331         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10332         (ia64*-*-linux*): Likewise.
10333         (mips64*-*-linux*): Likewise.
10334         (mips*-*-linux*): Likewise.
10335
10336 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
10337
10338         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10339
10340 2011-07-18  Richard Guenther  <rguenther@suse.de>
10341
10342         * gimplify.c (gimplify_expr): Use input_location, not saved_location
10343         when building new trees.
10344
10345 2011-07-18  Richard Guenther  <rguenther@suse.de>
10346
10347         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10348         expansion result to bitfield precision if required.
10349
10350 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10351
10352         * config.gcc (i[3456x]86-*-netware*): Remove.
10353
10354         * gthr-nks.h: Remove.
10355         * configure.ac (enable_threads): Remove nks.
10356         * configure: Regenerate.
10357
10358         * config/i386/i386.c (ix86_encode_section_info): Remove netware
10359         reference.
10360         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10361         <netware.h> reference.
10362
10363         * config/i386/netware-libgcc.c,
10364         gcc/config/i386/netware-libgcc.def,
10365         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10366         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10367         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10368         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10369
10370         * doc/extend.texi (Function Attributes,
10371         callee_pop_aggregate_return): Remove i?86-netware reference.
10372         * doc/install.texi (Configuration, --enable-threads): Remove nks.
10373
10374 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10375
10376         PR target/49746
10377         Revert:
10378         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10379
10380         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10381         patterns.
10382
10383 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
10384
10385         PR middle-end/49732
10386         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10387
10388 2011-07-16  Matthias Klose  <doko@ubuntu.com>
10389
10390         * doc/install.texi: Document --enable-static-libjava.
10391
10392 2011-07-15  Richard Henderson  <rth@redhat.com>
10393
10394         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10395         Replace all three arguments by returning a VEC of edges.
10396         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10397         pointers and counts.
10398         (fix_edges_for_rarely_executed_code): Merge ...
10399         (rest_of_handle_partition_blocks): ... into...
10400         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
10401         any work was performed.
10402         (pass_partition_blocks): Clear todo_flags_finish.
10403
10404 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
10405             Jakub Jelinek  <jakub@redhat.com>
10406             Jonathan Wakely  <jwakely.gcc@gmail.com>
10407
10408         PR libstdc++/49745
10409         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10410         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10411
10412 2011-07-15  Jason Merrill  <jason@redhat.com>
10413
10414         PR testsuite/49741
10415         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10416         rather than --tool_opts.
10417
10418 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
10419
10420         * doc/plugins.texi (Building GCC plugins): gengtype needs its
10421         corresponding gtype.state.
10422
10423 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10424
10425         PR target/49723
10426         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10427
10428 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10429
10430         PR target/48220
10431         * doc/md.texi (Standard Names): Document window_save.
10432         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10433         expand_debug_expr and expand_debug_source_expr.  If the target has
10434         a window_save instruction, adjust the ENTRY_VALUE_EXP.
10435         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10436         SSA_NAME_VAR is a parameter.
10437         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10438         * var-tracking.c (parm_reg_t): New type and associated vector type.
10439         (windowed_parm_regs): New variable.
10440         (adjust_insn): If the target has a window_save instruction and this
10441         is the instruction, make its effect on parameter registers explicit.
10442         (next_non_note_insn_var_location): New function.
10443         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10444         (vt_add_function_parameter): If the target has a window_save insn,
10445         adjust the incoming RTL and record that in windowed_parm_regs.
10446         (vt_finalize): Free windowed_parm_regs.
10447
10448 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10449
10450         * doc/invoke.texi (C6X Options): New section.
10451         * doc/md.texi (TI C6X family): New section.
10452         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10453         tic6x-*-uclinux.
10454         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10455         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10456         Provide C6X definitions.
10457         * config/c6x/c6x.md: New file.
10458         * config/c6x/constraints.md: New file.
10459         * config/c6x/predicates.md: New file.
10460         * config/c6x/c6x-sched.md.in: New file.
10461         * config/c6x/c6x-sched.md: New file.
10462         * config/c6x/gensched.sh: New file.
10463         * config/c6x/c6x-mult.md.in: New file.
10464         * config/c6x/genmult.sh: New file.
10465         * config/c6x/c6x-mult.md: New file.
10466         * config/c6x/sync.md: New file.
10467         * config/c6x/c6x-protos.h: New file.
10468         * config/c6x/sfp-machine.h: New file.
10469         * config/c6x/c6x.c: New file.
10470         * config/c6x/c6x.h: New file.
10471         * config/c6x/crti.s: New file.
10472         * config/c6x/crtn.s: New file.
10473         * config/c6x/lib1funcs.asm: New file.
10474         * config/c6x/c6x-modes.def: New file.
10475         * config/c6x/genopt.sh: New file.
10476         * config/c6x/c6x.opt: New file.
10477         * config/c6x/c6x-tables.opt: New file.
10478         * config/c6x/c6x-opts.h: New file.
10479         * config/c6x/c6x-isas.def: New file.
10480         * config/c6x/elf.h: New file.
10481         * config/c6x/elf-common.h: New file.
10482         * config/c6x/uclinux-elf.h: New file.
10483         * config/c6x/t-c6x: New file.
10484         * config/c6x/t-c6x-elf: New file.
10485         * config/c6x/t-c6x-uclinux: New file.
10486         * config/c6x/t-c6x-softfp: New file.
10487         * config/c6x/gtd.c: New file.
10488         * config/c6x/gtf.c: New file.
10489         * config/c6x/ltd.c: New file.
10490         * config/c6x/ltf.c: New file.
10491         * config/c6x/ged.c: New file.
10492         * config/c6x/gef.c: New file.
10493         * config/c6x/led.c: New file.
10494         * config/c6x/lef.c: New file.
10495         * config/c6x/eqd.c: New file.
10496         * config/c6x/eqf.c: New file.
10497         * config/c6x/libgcc-c6xeabi.ver: New file.
10498
10499         Revert
10500         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10501         PR rtl-optimization/11320
10502         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10503         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10504         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10505         current_sched_info->compute_jump_reg_dependencies. Record which
10506         registers are used and which registers are set by the jump.
10507         Clear deps->reg_conditional_sets after a barrier.
10508         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10509         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10510         (init_deps): Initialize reg_conditional_sets.
10511         (free_deps): Clear reg_conditional_sets.
10512         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10513         Mark registers live on entry of the fallthrough block and conditionally
10514         set as set by the jump. Mark registers live on entry of non-fallthrough
10515         blocks as used by the jump.
10516         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10517         Mark new parameters as unused.
10518
10519 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
10520
10521         PR tree-opt/49309
10522         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10523         Use fold_build2_loc instead of build2.
10524         Use the correct type for the new tree.
10525
10526 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10527
10528         PR rtl-optimization/11320
10529         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10530         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10531
10532 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10533
10534         PR target/49487
10535         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10536         of REG.
10537         (*rotw<mode>): Use const_int_operand for operand2.
10538         Use match_scatch for operand3.
10539         (*rotb<mode>): Ditto
10540         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10541
10542 2011-07-14  Richard Guenther  <rguenther@suse.de>
10543
10544         PR tree-optimization/49651
10545         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10546         handle dereferences with subvariables.
10547
10548 2011-07-14  Richard Guenther  <rguenther@suse.de>
10549
10550         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10551         (fold_stmt_1): Do it here directly on gimple and as a first thing.
10552
10553 2011-07-14  Richard Guenther  <rguenther@suse.de>
10554
10555         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10556         not bool_var when folding bool_var != 1 or bool_var == 0.
10557
10558 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10559
10560         * haifa-sched.c (schedule_insns): Remove outdated comment.
10561         (schedule_block): When computing a known value for TODO_SPEC,
10562         just set it rather than using logical operations.
10563         (try_ready): Likewise.  Use a local variable rather than a
10564         pointer to TODO_SPEC.  Reorder an if statement to move the
10565         easy case to the then block.
10566         * sched-deps.c (dep_spec_p): New static function.
10567         (update_dep): Use it to decide whether to call
10568         change_spec_dep_to_hard.
10569         (get_back_and_forw_lists): Use it.
10570         (sd_resolve_dep): Likewise.
10571         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10572         (haifa_note_mem_dep): Likewise.
10573         (check_dep): Likewise.
10574         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10575         (sched_free_deps): Free in two passes.
10576
10577 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
10578
10579         PR middle-end/49736
10580         * expr.c (all_zeros_p): Undo bogus part of last change.
10581
10582 2011-07-14  Matthias Klose <doko@ubuntu.com>
10583
10584         * doc/extend.texi (optimize attribute): Fix typo.
10585
10586 2011-07-14  Richard Guenther  <rguenther@suse.de>
10587
10588         * gimplify.c (gimplify_expr): Only do required conversions.
10589
10590 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10591
10592         PR target/43746
10593         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10594         i.e. use default_elf_select_section.
10595         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10596         (READONLY_DATA_SECTION_ASM_OP): Remove.
10597         (TARGET_ASM_NAMED_SECTION): Move from here...
10598         * config/avr/avr.c: ...to here.
10599         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10600         (avr_asm_named_section): Make static.
10601
10602 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10603
10604         PR bootstrap/49739
10605         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10606         and crtfastmath.o for Linux/x86.
10607
10608 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10609
10610         * haifa-sched.c: Include "hashtab.h"
10611         (sched_no_dce): New global variable.
10612         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10613         SHADOW_P): New macros.
10614         (last_clock_var, cycle_issued_insns): Move declarations.
10615         (must_backtrack): New static variable.
10616         (struct delay_pair): New structure.
10617         (delay_htab, delay_htab_i2): New static variables.
10618         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10619         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10620         functions.
10621         (dep_cost_1): If delay pairs exist, try to look up the insns and
10622         use the correct pair delay if we find them.
10623         (rank-for_schedule): Tweak priority for insns that must be scheduled
10624         soon to avoid backtracking.
10625         (queue_insn): Detect conditions which force backtracking.
10626         (ready_add): Likewise.
10627         (struct sched_block_state): Add member shadows_only_p.
10628         (struct haifa_save_data): New structure.
10629         (backtrack_queue): New static variable.
10630         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10631         unschedule_insns_until, restore_last_backtrack_point,
10632         free_topmost_backtrack_point, free_backtrack_queue,
10633         estimate_insn_tick, estimate_shadow_tick): New functions.
10634         (prune_ready_list): New arg shadows_only_p.  All callers changed.
10635         If true, remove everything that isn't SHADOW_P.  Look up delay
10636         pairs and estimate ticks to avoid scheduling the first insn too early.
10637         (verify_shadows): New function.
10638         (schedule_block): Add machinery to enable backtracking.
10639         (sched_init): Take sched_no_dce into account when setting
10640         DF_LR_RUN_DCE.
10641         (free_delay_pairs): New function.
10642         (init_h_i_d): Initialize INSN_EXACT_TICK.
10643         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10644         * sched-deps.c (sd_unresolve_dep): New function.
10645         * sched-int. (struct haifa_sched_info): New fields save_state
10646         and restore_state.
10647         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10648         feeds_backtrack_insn and shadow_p.
10649         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10650         (sched_no_dce): Declare variable.
10651         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10652         sd_unresolve_dep): Declare functions.
10653         * modulo-sched.c (sms_sched_info): Clear the two new fields.
10654         * sched-rgn.c (rgn_const_sched_info): Likewise.
10655         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10656         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10657         (ebb_sched_info): Add them for the two new fields.
10658         (add_deps_for_risky_insns): Call add_delay_dependencies.
10659
10660 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10661
10662         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10663         Rename -mr11.
10664         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10665         (rs6000_call_indirect_aix): Ditto.
10666         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10667         (call_indirect_aix<ptrsize>_internal): Ditto.
10668         (call_indirect_aix<ptrsize>_nor11): Ditto.
10669         (call_indirect_aix<ptrsize>_internal2): Ditto.
10670         (call_value_indirect_aix<ptrsize>): Ditto.
10671         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10672         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10673         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10674         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10675
10676 2011-07-13  Jason Merrill  <jason@redhat.com>
10677
10678         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10679
10680 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10681
10682         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10683         * config/spu/spu.md ("clrsb<mode>2"): New expander.
10684
10685 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
10686
10687         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10688         * configure: Regenerate.
10689
10690 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10691
10692         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10693         (asm_file_start): Remove.
10694         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10695         free_bb_for_insn around code that modifies insns before
10696         restarting df analysis.
10697
10698 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10699
10700         PR target/49541
10701         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
10702         (LINK_SPEC): ... here.
10703
10704 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10705
10706         * haifa-sched.c (struct sched_block_state): New.
10707         (schedule_block): Move some local variables into such a structure.
10708
10709 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10710
10711         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10712         * config/i386/t-crtpc: Remove.
10713         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10714         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10715         tmake_file.
10716         (x86_64-*-darwin*): Likewise.
10717         (i[34567]86-*-linux*): Likewise.
10718         (x86_64-*-linux*): Likewise.
10719
10720         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10721         Handle -mpc32, -mpc64, -mpc80.
10722
10723 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10724
10725         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10726         * config/alpha/t-crtfm: Remove.
10727         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10728         * config/i386/t-crtfm: Remove.
10729         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10730         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10731         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10732         * config/sparc/t-crtfm: Remove.
10733
10734         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10735         (alpha*-*-freebsd*): Likewise.
10736         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10737         (x86_64-*-darwin*): Likewise.
10738         (i[34567]86-*-linux*): Likewise.
10739         (x86_64-*-linux*): Likewise.
10740         (x86_64-*-mingw*): Likewise.
10741         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10742         (ia64*-*-freebsd*): Likewise.
10743         (ia64*-*-linux*): Likewise.
10744         (mips64*-*-linux*): Likewise.
10745         (mips*-*-linux*): Likewise.
10746         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10747         (sparc64-*-linux*): Likewise.
10748         (sparc64-*-freebsd*): Likewise.
10749
10750 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10751
10752         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10753         * config/darwin-crt3.c: Move to ../libgcc/config.
10754         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10755         ($(T)crt3$(objext)): Remove.
10756         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10757         ($(T)crt2$(objext)): Remove.
10758         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10759         (powerpc64-*-darwin*): Likewise.
10760
10761 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10762
10763         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10764
10765         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10766         (addsi_1_zext): This.
10767
10768 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10769
10770         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10771         * doc/tm.texi: Regenerate.
10772         * target.def (mergeable_rodata_prefix): New defhookpod.
10773         * varasm.c (mergeable_string_section, mergeable_constant_section):
10774         Use it. Allocate name with alloca.
10775
10776 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10777
10778         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
10779
10780 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10781
10782         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10783         overlap check.
10784
10785 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10786
10787         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
10788         (count_type_elements): Delete.
10789         (complete_ctor_at_level_p): Declare.
10790         * expr.c (flexible_array_member_p): New function, split out from...
10791         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
10792         parameter with for_ctor_p.  When for_ctor_p is true, return the
10793         number of elements that should appear in the top-level constructor,
10794         otherwise return an estimate of the number of scalars.
10795         (categorize_ctor_elements): Replace p_must_clear with p_complete.
10796         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
10797         (complete_ctor_at_level_p): New function, borrowing union logic
10798         from old categorize_ctor_elements_1.
10799         (mostly_zeros_p): Return true if the constructor is not complete.
10800         (all_zeros_p): Update call to categorize_ctor_elements.
10801         * gimplify.c (gimplify_init_constructor): Update call to
10802         categorize_ctor_elements.  Don't call count_type_elements.
10803         Unconditionally prevent clearing for variable-sized types,
10804         otherwise rely on categorize_ctor_elements to detect
10805         incomplete initializers.
10806
10807 2011-07-13  Richard Guenther  <rguenther@suse.de>
10808
10809         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10810         the final type is integral.
10811
10812 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10813
10814         * sched-int.h (struct _dep): Add member cost.
10815         (DEP_COST, UNKNOWN_DEP_COST): New macros.
10816         * sched-deps.c (init_dep_1): Initialize DEP_COST.
10817         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10818         (sched_change_pattern): Reset it for dependent insns.
10819
10820 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10821
10822         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10823         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10824         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10825         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10826         (CRT0_S, MCRT0_S): Remove.
10827         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10828         Remove.
10829         (s-crt0): Remove.
10830         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10831
10832 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10833
10834         * cse.c (insert_with_costs): Put semi-colon after empty loop body
10835         on the next line.
10836         * emit-rtl.c (push_to_sequence): Likewise.
10837         * haifa-sched.c (max_issue): Likewise.
10838         * matrix-reorg.c (add_allocation_site): Likewise.
10839         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10840         * reload.c (alternative_allows_const_pool_ref): Likewise.
10841         * sched-rgn.c (rgn_add_block): Likewise.
10842         (rgn_fix_recovery_cfg): Likewise.
10843         * tree.c (attribute_list_contained): Likewise.
10844
10845 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
10846
10847         * config/i386/i386.c: Tidy processor feature bitmasks.
10848         (m_P4_NOCONA): New.
10849
10850 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
10851
10852         PR rtl-opt/49474
10853         * cprop.c (find_implicit_sets): Correct the condition.
10854
10855 2011-07-12  Richard Henderson  <rth@redhat.com>
10856
10857         PR target/49713
10858         * dwarf2out.h (dwarf_frame_regnum): Remove.
10859         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
10860         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
10861         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10862         (execute_dwarf2_frame): Initialize them.
10863         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10864         users of the macros with the variables.
10865         (expand_builtin_dwarf_sp_column): Revert last change.
10866         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
10867         result of DWARF_FRAME_REGNUM into a local variable.
10868
10869 2011-07-12  Richard Henderson  <rth@redhat.com>
10870
10871         PR target/49714
10872         * config/i386/i386.c (x86_output_mi_thunk): Use
10873         machopic_indirect_call_target instead of machopic_indirection_name
10874         directly.
10875
10876 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
10877             Eric Botcazou  <ebotcazou@adacore.com>
10878
10879         * prefix.h: Wrap up in extern "C" block.
10880
10881 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
10882
10883         AMD bdver2 Enablement
10884         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10885         (case ${target}): Add bdver2.
10886         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10887         -march=native recognize bdver2 processors.
10888         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10889         bdver2 def_and_undef
10890         * config/i386/i386.c (struct processor_costs bdver2_cost): New
10891         bdver2 cost table.
10892         (m_BDVER2): New definition.
10893         (m_AMD_MULTIPLE): Includes m_BDVER2.
10894         (initial_ix86_tune_features): Add bdver2 tuning.
10895         (processor_target_table): Add bdver2 entry.
10896         (static const char *const cpu_names): Add bdver2 entry.
10897         (ix86_option_override_internal): Add bdver2 instruction sets.
10898         (ix86_issue_rate): Add bdver2.
10899         (ix86_adjust_cost): Add bdver2.
10900         (has_dispatch): Add bdver2.
10901         * config/i386/i386.h (TARGET_BDVER2): New definition.
10902         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10903         (enum processor_type): Add PROCESSOR_BDVER2.
10904         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10905         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10906         description.
10907
10908 2011-07-12  Richard Henderson  <rth@redhat.com>
10909
10910         PR target/49714
10911         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10912         destination address in memory on some paths.
10913
10914 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
10915
10916         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10917         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10918         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10919         * function.c (locate_and_pad_parm): Take it into account.
10920         * target.def (function_arg_round_boundary): New hook.
10921         * targhooks.c (default_function_arg_round_boundary): New function.
10922         * targhooks.h (default_function_arg_round_boundary): Declare.
10923         * doc/tm.texi: Regenerate.
10924
10925 2011-07-12  Richard Guenther  <rguenther@suse.de>
10926
10927         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10928         Do not perform no-op changes.
10929
10930 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
10931
10932         * config/arm/predicates.md (neon_struct_operand): Make a normal
10933         predicate.
10934         (neon_struct_or_register_operand): New predicate.
10935         * config/arm/neon.md (movmisalign<mode>): Replace predicates
10936         with neon_struct_or_register_operand.
10937         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10938         neon_struct_operand instead of memory_operand.
10939
10940 2011-07-12  Martin Jambor  <mjambor@suse.cz>
10941
10942         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10943         * cgraph.c (cgraph_get_node_or_alias): Removed.
10944         (change_decl_assembler_name): Changed all calls to
10945         cgraph_get_node_or_alias to a call to cgraph_get_node.
10946         (cgraph_make_decl_local): Likewise.
10947         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10948         * varasm.c (default_binds_local_p_1): Likewise.
10949         (decl_binds_to_current_def_p): Likewise.
10950
10951 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
10952
10953         PR tree-optimization/49712
10954         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10955
10956 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
10957
10958         * genautomata.c (add_arc): Return void.  All callers changed.
10959         (make_automaton): Remove dead code.
10960
10961 2011-07-11  Richard Henderson  <rth@redhat.com>
10962
10963         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
10964         (DW_FRAME_POINTER_REGNUM): New.
10965         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
10966         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
10967         (dwf_regno): New.
10968         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
10969         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
10970         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
10971         Use it.
10972         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
10973         * dwarf2out.h (dwarf_frame_regnum): New.
10974         (struct cfa_loc): Document the domain of the reg member.
10975
10976 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
10977
10978         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
10979         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
10980
10981 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
10982
10983         PR debug/49676
10984         * dwarf2out.c (int_shift_loc_descriptor): New function.
10985         (int_loc_descriptor): If shorter, emit i as
10986         (i >> shift), shift, DW_OP_shl for suitable shift value.
10987         Similarly, try to optimize large negative values using
10988         DW_OP_neg of a positive value if shorter.
10989         (size_of_int_shift_loc_descriptor): New function.
10990         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
10991         changes.
10992         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
10993         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
10994         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
10995         is shorter.
10996         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
10997         addend as added DW_OP_plus if it is shorter.
10998
10999 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11000
11001         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
11002         (DTORS_SECTION_ASM_OP): Define.
11003
11004 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11005
11006         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
11007         * config/t-dfprules: Move to ../libgcc/config.
11008         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11009         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11010         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
11011         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
11012         Likewise.
11013         (i[34567]86-*-cygwin*): Likewise.
11014         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
11015         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
11016         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
11017         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
11018         D64PBIT_FUNCS, D128PBIT_FUNCS.
11019
11020 2011-07-11  Richard Guenther  <rguenther@suse.de>
11021
11022         * tree-vrp.c (simplify_conversion_using_ranges): Manually
11023         translate the source value-range through the conversion chain.
11024
11025 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
11026
11027         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
11028
11029 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11030
11031         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
11032         a bi-arch compiler defaulting to 31-bit. In this case:
11033         (tmake_file): Add s390/t-linux64.
11034         * doc/install.texi: Add s390-linux to the list of targets supporting
11035         --enable-targets=all.
11036
11037 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11038             Matthias Klose <doko@debian.org>
11039
11040         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
11041         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
11042         (tm_file): Add mips/linux64.h.
11043         (tmake_file): Add mips/t-linux64.
11044         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11045         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
11046         instead of hardcoded mabi=n32.
11047         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11048         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11049         convention.
11050
11051 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11052
11053         * passes.c (init_optimization_passes): Add invariant motion pass
11054         after induction variable optimization.
11055
11056 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
11057
11058         PR target/39633
11059         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11060         offsets 1..5 set cc0 in a usable way.
11061
11062 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
11063
11064         * tree.h (call_expr_arg): Remove.
11065         (call_expr_argp): Likewise.
11066
11067 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
11068
11069         * config/sparc/sparc.md (save_register_window_1): Rename to...
11070         (window_save): ...this.
11071         * config/sparc/sparc.c (emit_save_register_window): Rename to...
11072         (emit_window_save): ...this.
11073         (sparc_expand_prologue): Adjust to above renaming.
11074
11075 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11076
11077         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11078         of movabs for x32.
11079
11080 2011-07-10  Richard Henderson  <rth@redhat.com>
11081
11082         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11083         run final, instead of emitting text directly.
11084
11085 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11086
11087         * config/i386/i386.c (ix86_option_override_internal): Turn on
11088         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
11089         small PIC models for TARGET_X32.
11090
11091 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
11092
11093         PR target/49684
11094         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11095         $(LIBGCC2_CFLAGS).
11096
11097         PR bootstrap/49680
11098         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11099         stray notes and debug insns by using prev_nonnote_nondebug_insn
11100         instead of PREV_INSN.
11101
11102 2011-07-09  Richard Henderson  <rth@redhat.com>
11103
11104         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11105         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11106         * dwarf2out.c: ... here.
11107         (output_all_cfis): Remove.
11108         (dwarf2out_switch_text_section): Use output_cfis directly.
11109         (size_of_locs): Export.
11110         (output_loc_sequence, output_loc_sequence_raw): Export.
11111         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11112         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11113         output_cfa_loc_raw): Move to ...
11114         * dwarfcfi.c: ... here.
11115         * dwarf2out.h: Update decls.
11116
11117 2011-07-09  Richard Henderson  <rth@redhat.com>
11118
11119         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11120         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11121         * dwarf2cfi.c: ... here.
11122         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11123         (DWARF_ROUND, DWARF_CIE_ID): Remove.
11124         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11125         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11126         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11127
11128 2011-07-09  Richard Henderson  <rth@redhat.com>
11129
11130         * dwarf2cfi.c (cie_return_save): New.
11131         (queue_reg_save): Use compare_reg_or_pc.
11132         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11133         (dwarf2out_frame_debug_expr): Likewise.
11134         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11135         (initial_return_save): Likewise.
11136         (execute_dwarf2_frame): Save and restore initial return save from
11137         the cie to the fde.
11138         * config/mips/mips.c (mips_frame_set): Remove special case for
11139         DWARF_FRAME_RETURN_COLUMN.
11140
11141 2011-07-09  Richard Henderson  <rth@redhat.com>
11142
11143         * dwarf2cfi.c (lookup_cfa): Remove.
11144         (execute_dwarf2_frame): Assert queues are empty on entry.
11145         Setup initial cfa directly, not via lookup_cfa.
11146         Don't clear args_size state here.
11147
11148 2011-07-09  Richard Henderson  <rth@redhat.com>
11149
11150         * dwarf2cfi.c (add_cfi_vec): New.
11151         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
11152         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
11153         (execute_dwarf2_frame): Set add_cfi_vec.
11154
11155 2011-07-09  Richard Henderson  <rth@redhat.com>
11156
11157         * defaults.h (ASM_COMMENT_START): Move here...
11158         * dwarf2asm.c: ... from here.
11159         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11160         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11161         * varasm.c: Likewise.
11162
11163 2011-07-09  Richard Henderson  <rth@redhat.com>
11164
11165         PR debug/49686
11166         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11167         (create_cfi_notes): ... do it here instead.
11168
11169 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
11170
11171         PR debug/49676
11172         * dwarf2out.c (size_of_int_loc_descriptor): New function.
11173         (address_of_int_loc_descriptor): Use it.
11174         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11175
11176 2011-07-09  Richard Henderson  <rth@redhat.com>
11177
11178         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11179         (prologue, epilogue): New.
11180         (return, *rts): New.
11181         (blockage, setd, seti): New.
11182         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11183         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11184         (pdp11_saved_regno): New.
11185         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
11186         generate rtl instead of text.
11187         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
11188         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
11189         * config/pdp11/pdp11-protos.h: Update.
11190
11191 2011-07-09  Richard Henderson  <rth@redhat.com>
11192
11193         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
11194         try to insert an rtl prologue here.
11195         (rs6000_output_function_epilogue): Similarly.
11196         * config/rs6000/rs6000.md (prologue): Emit a barrier to
11197         satisfy !TARGET_SCHED_PROLOG.
11198         (epilogue, sibcall_epilogue): Likewise.
11199
11200 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
11201
11202         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
11203         (FP_REG_P): Delete.
11204         (IN_OR_GLOBAL_P): Likewise.
11205
11206 2011-07-08  Jason Merrill  <jason@redhat.com>
11207
11208         PR c++/45437
11209         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
11210         compound assignment.
11211
11212         * cgraph.c (cgraph_add_to_same_comdat_group): New.
11213         * cgraph.h: Declare it.
11214         * ipa.c (function_and_variable_visibility): Make sure thunks
11215         have the right visibility.
11216
11217 2011-07-08  Richard Henderson  <rth@redhat.com>
11218
11219         PR bootstrap/49680
11220         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
11221         any tablejump vector.
11222
11223         PR bootstrap/49680
11224         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11225         end of the prologue.
11226
11227 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
11228
11229         PR target/49621
11230         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
11231         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
11232         * config/rs6000/vector.md (vector_select_<mode>,
11233         vector_select_<mode>_uns): Change second operand of NE to
11234         CONST0_RTX (<MODE>mode) instead of const0_rtx.
11235         * config/rs6000/altivec.md (*altivec_vsel<mode>,
11236         *altivec_vsel<mode>_uns): Expect second operand of NE to be
11237         zero_constant of the corresponding vector mode.
11238         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
11239         Likewise.
11240
11241 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
11242
11243         * graphite-dependences.c (build_alias_set_powerset): Remove
11244         continue from loop, add one more assert.
11245
11246 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11247
11248         PR target/46779
11249         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11250         In particular, allow 8-bit values in r28 and r29.
11251         (avr_hard_regno_scratch_ok): Disallow any register that might be
11252         part of the frame pointer.
11253         (avr_hard_regno_rename_ok): Same.
11254         (avr_legitimate_address_p): Don't allow SUBREGs.
11255
11256 2011-07-08  Julian Brown  <julian@codesourcery.com>
11257
11258         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
11259         big-endian mode.
11260         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
11261         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
11262         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
11263         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
11264         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
11265         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
11266         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
11267         registers in big-endian mode.
11268
11269 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11270
11271         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
11272         in terms of another.
11273         (write_attr_value): Write a cast if necessary.
11274
11275         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
11276         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
11277         (REG_WORDS_BIG_ENDIAN): Document.
11278         * doc/tm.texi: Regenerate.
11279         * reload.c (operands_match_p): Take it into account.
11280         (reload_adjust_reg_for_mode): Likewise.
11281         * rtlanal.c (subreg_get_info): Likewise.
11282
11283 2011-07-08  Richard Guenther  <rguenther@suse.de>
11284
11285         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
11286         folding.
11287
11288 2011-07-08  Kai Tietz  <ktietz@redhat.com>
11289
11290         * fold-const.c (fold_truth_andor): Factored out truth_andor
11291         label from fold_binary as function.
11292         (fold_binary_loc): Replace truth_andor lable
11293         by function fold_truth_andor.
11294
11295 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
11296
11297         PR middle-end/49519
11298         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
11299         check if address is stored in register. If so - give up.
11300         (check_sibcall_argument_overlap_1): Do not perform check of
11301         overlapping when it is call to address.
11302
11303 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11304
11305         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
11306         of magic '31'.
11307
11308 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11309
11310         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
11311         GET_MODE_BITSIZE where appropriate.
11312         (widen_leading, expand_parity, expand_ctz, expand_ffs,
11313         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
11314         expand_float, expand_fix): Likewise.
11315         * expr.c (convert_move, convert_modes, expand_expr_real_2,
11316         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11317         * stor-layout.c (get_mode_bounds): Likewise.
11318         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
11319         Likewise.
11320         * convert.c (convert_to_integer): Likewise.
11321         * expmed.c (expand_shift_1): Likewise.
11322
11323         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
11324         a bitsize.
11325
11326         * optabs.c (expand_binop): Tighten conditions for doubleword
11327         expansions.
11328         (widen_bswap): Assert that mode bitsize and precision are the same.
11329         * stor-layout.c (get_best_mode): Skip modes that have lower
11330         precision than bitsize.
11331         * recog.c (simplify_while_replacing): Assert that bitsize and
11332         precision are the same.
11333
11334 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11335
11336         * Makefile.in (LIBGCOV): Remove.
11337         (libgcc.mvars): Remove LIBGCOV.
11338         * libgov.c: Move to ../libgcc.
11339
11340 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11341
11342         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11343
11344 2011-07-08  Martin Jambor  <mjambor@suse.cz>
11345
11346         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11347         is too big for total scalarization.
11348
11349 2011-07-07  Richard Henderson  <rth@redhat.com>
11350
11351         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11352         (DBX_DEBUGGING_INFO): Undef.
11353
11354 2011-07-07  Richard Henderson  <rth@redhat.com>
11355
11356         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
11357         Handle some opcodes specially for debugging.
11358         * print-rtl.c: Include dwarf2out.h
11359         (print_rtx): Handle NOTE_INSN_CFI.
11360         * Makefile.in (print-rtl.o): Update.
11361
11362 2011-07-07  Richard Henderson  <rth@redhat.com>
11363
11364         * tree-pass.h (pass_dwarf2_frame): Declare.
11365         * passes.c (init_optimization_passes): Add it.
11366         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11367         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11368         make static, do not call add_cfis_to_fde.
11369         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11370         dwarf2out_frame_init): Merge into...
11371         (execute_dwarf2_frame): ... here.  New function.
11372         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
11373         saved_do_cfi_asm to a tri-state variable.
11374         (gate_dwarf2_frame, pass_dwarf2_frame): New.
11375         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11376         if it has yet to be done.  Don't call dwarf2cfi_function_init.
11377         * dwarf2out.h, debug.h: Update decls.
11378         * final.c (final_start_function): Don't call
11379         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11380         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11381         * toplev.c (lang_dependent_init): Likewise.
11382
11383 2011-07-07  Richard Henderson  <rth@redhat.com>
11384
11385         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11386         FDE_TABLE_INCREMENT): Replace with...
11387         (fde_vec): ... this, a new vector.
11388         (current_fde): Remove.  Replace all users with cfun->fde.
11389         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11390         (size_of_aranges, dwarf2out_finish): Likewise.
11391         (dwarf2out_alloc_current_fde): Break out from ...
11392         (dwarf2out_begin_prologue): ... here.
11393         (dwarf2out_frame_init): Remove.
11394         * dwarf2cfi.c: Update all users of current_fde.
11395         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11396         * dwarf2out.h: Update decls.
11397         (dw_fde_node): Add fde_index member.
11398         * function.h (struct function): Add fde member.
11399
11400 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11401             Richard Henderson  <rth@redhat.com>
11402
11403         * dwarf2cfi.c (add_cfi): Remove.
11404         (dwarf2out_cfi_label): Remove force argument.  Only generate the
11405         label name.
11406         (add_fde_cfi): Simplify the different code paths.
11407         (add_cie_cfi): New.
11408         (old_cfa, old_cfa_remember): New.
11409         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11410         (last_reg_save_label): Remove.
11411         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11412         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11413         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11414         dwarf2out_frame_debug_cfa_expression,
11415         dwarf2out_frame_debug_cfa_restore,
11416         dwarf2out_frame_debug_cfa_window_save,
11417         dwarf2out_frame_debug_expr): Remove label parameter.
11418         (cfi_label_required_p, add_cfis_to_fde): New.
11419         (dwarf2out_frame_debug_after_prologue): New.
11420         (dwarf2cfi_frame_init): Initialize old_cfa.
11421         (dwarf2out_frame_debug_restore_state): Likewise.
11422         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11423         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11424         * final.c (final_start_function): Call
11425         dwarf2out_frame_debug_after_prologue.
11426
11427 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11428             Richard Henderson  <rth@redhat.com>
11429
11430         * dwarf2cfi.c (cfi_insn): New.
11431         (dwarf2out_cfi_label): Don't emit cfi label here.
11432         (add_fde_cfi): Create a NOTE_INSN_CFI.
11433         (dwarf2out_frame_debug): Setup cfi_insn.
11434         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11435         (dwarf2out_cfi_begin_epilogue): Make static.
11436         (dwarf2out_frame_debug_restore_state): Make static.
11437         * dwarf2out.c (output_cfi_directive): Make static.
11438         (dwarf2out_emit_cfi): New.
11439         * dwarf2out.h: Update.
11440         * final.c (final): Remove CFI notes.
11441         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11442         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11443         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11444         * insn-notes.def (NOTE_INSN_CFI): New.
11445         (NOTE_INSN_CFI_LABEL): New.
11446         * rtl.h (union rtunion_def): Add rt_cfi member.
11447         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11448
11449 2011-07-07  Richard Henderson  <rth@redhat.com>
11450
11451         * dwarf2cfi.c: New file.
11452         * Makefile.in (OBJS): Add it.
11453         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11454         * gengtype.c (open_base_files): Include dwarf2out.h.
11455         * coretypes.h (enum var_init_status): Move from ...
11456         * rtl.h: ... here.
11457         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11458         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11459         expand_builtin_dwarf_sp_column, init_return_column_size,
11460         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11461         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11462         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11463         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11464         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11465         compute_barrier_args_size, dwarf2out_args_size,
11466         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11467         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11468         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11469         queue_reg_save, dwarf2out_flush_queued_reg_saves,
11470         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11471         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11472         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11473         dwarf2out_frame_debug_cfa_expression,
11474         dwarf2out_frame_debug_cfa_restore,
11475         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11476         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11477         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11478         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11479         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11480         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11481         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11482         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11483         dw_loc_descr_node): Move to dwarf2out.h.
11484         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11485         mem_loc_descriptor): Export.
11486         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
11487         (dwarf2out_frame_init): Extract CIE generation code to
11488         dwarf2cfi_frame_init.
11489
11490 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
11491
11492         PR target/49660
11493         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11494         MASK_V8PLUS, remove commented out flag and reorder.
11495
11496 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11497
11498         PR c/49644
11499         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11500         one non-complex and one complex argument, call c_save_expr on both
11501         operands.
11502
11503 2011-07-07  Martin Jambor  <mjambor@suse.cz>
11504
11505         PR middle-end/49495
11506         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11507         (verify_cgraph_node): Some functinality moved to
11508         verify_edge_corresponds_to_fndecl, call it.
11509
11510 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11511
11512         * config.gcc (*local*): Remove.
11513         * doc/install-old.texi: Don't mention local configurations.
11514
11515 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11516
11517         PR debug/49522
11518         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11519         referencing debug insns that have been reset.
11520         (dead_debug_insert_before): Don't assert reg is non-NULL,
11521         instead return immediately if it is NULL.
11522
11523 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11524
11525         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11526
11527 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11528
11529         * hw-doloop.c: New file.
11530         * hw-doloop.h: New file.
11531         * Makefile.in (OBJS): Add hw-doloop.o.
11532         (hw-doloop.o): New rule.
11533         ($(obj_out_file)): Add hw-doloop.h dependency.
11534         * config/bfin/bfin.c: Include "hw-doloop.h".
11535         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11536         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11537         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
11538         type changed to hwloop_info.  Return bool, true if the loop was
11539         successfully optimized.  Remove code that was moved to
11540         hw-doloop.c, and adjust other parts.
11541         (hwloop_fail): New static function, containing parts that used
11542         to be in bfin_optimize_loop.
11543         (bfin_discover_loop, bfin_discover_loops, free_loops,
11544         bfin_reorder_loops): Remove.
11545         (hwloop_pattern_reg): New static function.
11546         (bfin_doloop_hooks): New variable.
11547         (bfin_reorg_loops): Remove most code, call reorg_loops.
11548         * config/bfin/bfin.md (doloop_end splitter): Also enable if
11549         loop counter is a memory_operand.
11550
11551 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11552
11553         * config.gcc: Support --with-multilib-list for x86 Linux targets.
11554
11555         * configure.ac: Mention x86-64 for --with-multilib-list.
11556         * configure: Regenerated.
11557
11558         * config/i386/gnu-user64.h (SPEC_64): Support x32.
11559         (SPEC_32): Likewise.
11560         (ASM_SPEC): Likewise.
11561         (LINK_SPEC): Likewise.
11562         (TARGET_THREAD_SSP_OFFSET): Likewise.
11563         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11564         (SPEC_X32): New.
11565
11566         * config/i386/i386.h (TARGET_X32): New.
11567         (TARGET_LP64): New.
11568         (LONG_TYPE_SIZE): Likewise.
11569         (POINTER_SIZE): Likewise.
11570         (POINTERS_EXTEND_UNSIGNED): Likewise.
11571         (OPT_ARCH64): Support x32.
11572         (OPT_ARCH32): Likewise.
11573
11574         * config/i386/i386.opt (mx32): New.
11575
11576         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11577         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11578         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11579         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11580
11581         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11582         (BIONIC_DYNAMIC_LINKERX32): Likewise.
11583         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11584
11585         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11586
11587         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11588
11589         * doc/invoke.texi: Document -mx32.
11590
11591 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11592
11593         * doc/invoke.texi (mwords-little-endian): Deprecate.
11594         * config/arm/arm.opt (mwords-little-endian): Likewise.
11595         * config/arm/arm.c (arm_option_override): Warn about the deprecation
11596         of -mwords-little-endian.
11597
11598 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11599
11600         * reload1.c (choose_reload_regs): Use mode sizes to check whether
11601         an old reload register completely defines the required value.
11602
11603 2011-07-07  Richard Guenther  <rguenther@suse.de>
11604
11605         * fold-const.c (fold_unary_loc): Do not strip sign-changes
11606         for NEGATE_EXPR.
11607
11608 2011-07-07  Richard Guenther  <rguenther@suse.de>
11609
11610         * tree-vrp.c (simplify_conversion_using_ranges): New function.
11611         (simplify_stmt_using_ranges): Call it.
11612
11613 2011-07-07  Kai Tietz  <ktietz@redhat.com>
11614
11615         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11616         (lookup_logical_inverted_value): Likewise.
11617         (simplify_bitwise_binary_1): Likewise.
11618         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11619
11620 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11621
11622         * gcc.c (%[Spec]): Don't document.
11623         (struct spec_list): Update comment.
11624         (do_spec_1): Don't handle %[Spec].
11625         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11626
11627 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11628
11629         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11630         default based on TARGET_ASM_NAMED_SECTION.
11631         * common/common-target.def (have_named_sections): Default to true.
11632         * common/config/default-common.c: Don't include tm.h.
11633         * common/config/picochip/picochip-common.c
11634         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11635         * common/config/m32c/m32c-common.c: Remove.
11636         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11637         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11638         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11639         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11640         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11641         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11642         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11643
11644 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11645
11646         PR middle-end/49640
11647         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11648         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11649
11650 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11651
11652         PR libmudflap/49550
11653         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11654
11655 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11656
11657         PR target/39150
11658         * configure.ac (gcc_cv_as_hidden): Also accept
11659         x86_64-*-solaris2.1[0-9]*.
11660         (gcc_cv_as_cfi_directive): Likewise.
11661         (gcc_cv_as_comdat_group_group): Likewise.
11662         (set_have_as_tls): Likewise.
11663         * configure: Regenerate.
11664         * config.gcc (i[34567]86-*-solaris2*): Also handle
11665         x86_64-*-solaris2.1[0-9]*.
11666         * config.host (i[34567]86-*-solaris2*): Likewise.
11667         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11668         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11669         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11670         (TARGET_LD_EMULATION): Use it.
11671         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11672         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11673         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11674         (ASM_CPU64_DEFAULT_SPEC): Define.
11675         (ASM_CPU_SPEC): Use %(asm_cpu_default).
11676         (ASM_SPEC): Redefine.
11677         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11678         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11679         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11680         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11681         configuration.
11682         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11683
11684 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11685
11686         * config/sol2.h (ASM_SPEC): Split into ...
11687         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11688         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11689         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11690         (ASM_SPEC): Use ASM_SPEC_BASE.
11691         * config/sparc/sol2.h (ASM_SPEC): Redefine.
11692
11693 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
11694
11695         * config/avr/avr.md (*reload_insi): Change predicate #1 to
11696         const_int_operand.  Ditto for peep2 producing this insn.
11697         Add argument to output_reload_insisf call.
11698         (*movsi,*movsf): Add argument to output_movsisf call.
11699         (*reload_insf): New insn and new peep2 to produce it.
11700         * config/avr/avr-protos.h (output_movsisf): Change prototype.
11701         (output_reload_insisf): Change prototype.
11702         * config/avr/avr.c (avr_asm_len): New function.
11703         (output_reload_insisf): Rewrite.
11704         (output_movsisf): Change prototype.  output_reload_insisf for
11705         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
11706         (adjust_insn_length): Add argument to output_movsisf and
11707         output_reload_insisf call.
11708
11709 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11710
11711         * emit-rtl.c (paradoxical_subreg_p): New function.
11712         * rtl.h (paradoxical_subreg_p): Declare.
11713         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11714         apply_distributive_law, simplify_comparison, simplify_set): Use it.
11715         * cse.c (record_jump_cond, cse_insn): Likewise.
11716         * expr.c (force_operand): Likewise.
11717         * rtlanal.c (num_sign_bit_copies1): Likewise.
11718         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11719         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11720         (push_reload): Use precision to check for paradoxical subregs.
11721         * expmed.c (extract_bit_field_1): Likewise.
11722
11723         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11724         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11725         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11726         simplify_set, simplify_logical, expand_compound_operation,
11727         make_extraction, force_to_mode, if_then_else_cond, extended_count,
11728         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11729         record_value_for_reg): Likewise.
11730         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11731         * simplify-rtx. c (simplify_unary_operation_1,
11732         simplify_binary_operation_1, simplify_const_relational_operation):
11733         Likewise.
11734
11735         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11736         instead of GET_MODE_BITSIZE where appropriate.
11737         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11738         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11739         init_num_sign_bit_copies_in_rep): Likewise.
11740         * cse.c (fold_rtx, cse_insn): Likewise.
11741         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11742         * simplify-rtx.c (simplify_unary_operation_1,
11743         simplify_const_unary_operation, simplify_binary_operation_1,
11744         simplify_const_binary_operation, simplify_ternary_operation,
11745         simplify_const_relational_operation, simplify_subreg): Likewise.
11746         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11747         simplify_if_then_else, simplify_set, expand_compound_operation,
11748         expand_field_assignment, make_extraction, if_then_else_cond,
11749         make_compound_operation, force_to_mode, make_field_assignment,
11750         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11751         extended_count, try_widen_shift_mode, simplify_shift_const_1,
11752         simplify_comparison, record_promoted_value, simplify_compare_const,
11753         record_dead_and_set_regs_1): Likewise.
11754
11755         Revert:
11756         * simplify-rtx.c (simplify_const_binary_operation): Use the
11757         shift_truncation_mask hook instead of performing modulo by width.
11758         Compare against mode precision, not bitsize.
11759         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11760         Use shift_truncation_mask instead of constructing the value manually.
11761
11762 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11763
11764         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11765         declaration.
11766         (rs6000_save_toc_in_prologue_p): Ditto.
11767
11768         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11769         up the static chain (r11) during indirect function calls.
11770         (-msave-toc-indirect): New undocumented debug switch.
11771
11772         * config/rs6000/rs6000.c (struct machine_function): Add
11773         save_toc_in_prologue field to note whether the prologue needs to
11774         save the TOC value in the reserved stack location.
11775         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
11776         to save the TOC in the prologue, do so.
11777         (rs6000_trampoline_init): Don't allow creating AIX style
11778         trampolines if -mno-r11 is in effect.
11779         (rs6000_call_indirect_aix): New function to create AIX style
11780         indirect calls, adding support for -mno-r11 to suppress loading
11781         the static chain, and saving the TOC in the prologue instead of
11782         the call body.
11783         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11784         TOC in the prologue.
11785
11786         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11787         register numbers.
11788         (TOC_REGNUM): Ditto.
11789         (STATIC_CHAIN_REGNUM): Ditto.
11790         (ARG_POINTER_REGNUM): Ditto.
11791         (SFP_REGNO): Delete, unused.
11792         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11793         function descriptor offsets.
11794         (TOC_SAVE_OFFSET_64BIT): Ditto.
11795         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11796         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11797         (AIX_FUNC_DESC_SC_32BIT): Ditto.
11798         (AIX_FUNC_DESC_SC_64BIT): Ditto.
11799         (ptrload): New mode attribute for the appropriate load of a pointer.
11800         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11801         (call_indirect_aix64): Ditto.
11802         (call_value_indirect_aix32): Ditto.
11803         (call_value_indirect_aix64): Ditto.
11804         (call_indirect_nonlocal_aix32_internal): Ditto.
11805         (call_indirect_nonlocal_aix32): Ditto.
11806         (call_indirect_nonlocal_aix64_internal): Ditto.
11807         (call_indirect_nonlocal_aix64): Ditto.
11808         (call): Rewrite AIX indirect function calls.  Add support for
11809         eliminating the static chain, and for moving the save of the TOC
11810         to the function prologue.
11811         (call_value): Ditto.
11812         (call_indirect_aix<ptrsize>): Ditto.
11813         (call_indirect_aix<ptrsize>_internal): Ditto.
11814         (call_indirect_aix<ptrsize>_internal2): Ditto.
11815         (call_indirect_aix<ptrsize>_nor11): Ditto.
11816         (call_value_indirect_aix<ptrsize>): Ditto.
11817         (call_value_indirect_aix<ptrsize>_internal): Ditto.
11818         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11819         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11820         (call_nonlocal_aix32): Relocate in the rs6000.md file.
11821         (call_nonlocal_aix64): Ditto.
11822
11823         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11824         -mno-r11 documentation.
11825
11826 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11827
11828         PR other/49658
11829         * doc/extend.texi (Compound Literals): Fix typo.
11830
11831 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
11832
11833         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11834
11835 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
11836
11837         * configure.ac (plugin-version.h): Generate
11838         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11839         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11840         macros.
11841
11842         * configure: Regenerate.
11843
11844         * doc/plugins.texi (Building GCC plugins): Mention
11845         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11846
11847 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11848
11849         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11850         * combine.c (make_extraction, gen_lowpart_or_truncate,
11851         apply_distributive_law, simplify_comparison,
11852         reg_truncated_to_mode, record_truncated_value): Use it.
11853         * cse.c (notreg_cost): Likewise.
11854         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11855         * expr.c (convert_move, convert_modes): Likewise.
11856         * optabs.c (expand_binop, expand_unop): Likewise.
11857         * postreload.c (move2add_last_label): Likewise.
11858         * regmove.c (optimize_reg_copy_3): Likewise.
11859         * rtlhooks.c (gen_lowpart_general): Likewise.
11860         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11861
11862 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
11863
11864         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11865
11866 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11867
11868         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11869         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11870         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11871         (simplify_const_unary_operation, simplify_binary_operation_1,
11872         simplify_const_binary_operation, simplify_const_relational_operation):
11873         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
11874         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11875         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11876         simplify_shift_const_1, simplify_comparison): Likewise.
11877         * expr.c (convert_modes): Likewise.
11878         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11879         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11880         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11881
11882         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11883
11884 2011-07-06  Richard Guenther  <rguenther@suse.de>
11885
11886         PR tree-optimization/49645
11887         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11888         register variables.
11889         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11890         in type qualification here ...
11891         (copy_reference_ops_from_ref): ... not here.
11892         (vn_reference_lookup_3): ... or here.
11893         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11894         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11895
11896 2011-07-06  Ian Lance Taylor  <iant@google.com>
11897
11898         * doc/install.texi (Configuration): It's
11899         --enable-gnu-indirect-function, not --enable-indirect-function.
11900
11901 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11902
11903         * simplify-rtx.c (simplify_const_binary_operation): Use the
11904         shift_truncation_mask hook instead of performing modulo by width.
11905         Compare against mode precision, not bitsize.
11906         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11907         Use shift_truncation_mask instead of constructing the value manually.
11908
11909 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11910
11911         PR middle-end/47383
11912         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11913         address computation and convert to address_mode if needed.
11914
11915 2011-07-06  Richard Guenther  <rguenther@suse.de>
11916
11917         * tree.c (build_common_tree_nodes_2): Merge with
11918         build_common_tree_nodes.
11919         * tree.h (build_common_tree_nodes): Adjust prototype.
11920         (build_common_tree_nodes_2): Remove.
11921         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11922         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11923
11924 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11925
11926         PR tree-optimization/49618
11927         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11928         t recurse on the decl.
11929         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11930         return true if expr isn't known to be defined in current
11931         TU or some other LTO partition.
11932
11933 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11934
11935         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11936         override CASE_VALUES_THRESHOLD.
11937
11938         * stmt.c (toplevel): Include params.h.
11939         (case_values_threshold): Use the --param case-values-threshold
11940         value if non-zero, otherwise use machine dependent value.
11941         (expand_case): Use case_values_threshold.
11942
11943         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11944
11945         * doc/invoke.texi (--param case-values-threshold): Document.
11946
11947 2011-07-05  Richard Henderson  <rth@redhat.com>
11948
11949         * dwarf2out.c (dwarf2out_cfi_label): Make static.
11950         (dwarf2out_flush_queued_reg_saves): Make static.
11951         (dwarf2out_reg_save): Remove.
11952         (dwarf2out_return_save): Remove.
11953         (dwarf2out_return_reg): Remove.
11954         (dwarf2out_reg_save_reg): Remove.
11955         (dwarf2out_def_cfa): Merge into ...
11956         (dwarf2out_frame_init): ... here.
11957         * dwarf2out.h, tree.h: Remove declarations as necessary.
11958
11959 2011-07-05  Richard Henderson  <rth@redhat.com>
11960
11961         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
11962         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11963         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
11964         the alloc insn.
11965
11966         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
11967         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
11968         (process_epilogue): Don't call dwarf2out_def_cfa.
11969
11970         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
11971         indicate the return address save.
11972         (process_cfa_register): Likewise.
11973
11974         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
11975         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
11976
11977         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
11978         for ar.pfs save at alloc insn.
11979
11980 2011-07-05  Richard Henderson  <rth@redhat.com>
11981
11982         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
11983         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11984         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
11985         stack pointer save.
11986         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
11987         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
11988         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
11989         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
11990
11991 2011-07-05  Richard Henderson  <rth@redhat.com>
11992
11993         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
11994         VUNSPEC_* constants here instead of via define_constants.
11995         (VUNSPEC_PEM): New constant.
11996         (procedure_entry_mask): New insn.
11997         (prologue): New expander.
11998         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
11999         (vax_expand_prologue): Rename from vax_output_function_prologue;
12000         emit rtl instead of text.
12001         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12002         (print_operand): Add 'x' prefix.
12003
12004 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12005
12006         PR middle-end/47715
12007         * calls.c (precompute_register_parameters): Promote the function
12008         argument before checking non-legitimate constant.
12009
12010 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12011
12012         PR tree-optimization/47654
12013         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
12014         (lst_do_strip_mine_loop): Return an int.
12015         (lst_do_strip_mine): Same.
12016         (scop_do_strip_mine): Same.
12017         (scop_do_block): Loop blocking should strip-mine at least two loops.
12018         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
12019         (scop_do_interchange): Same.
12020         * graphite-poly.h (scop_do_interchange): Update declaration.
12021         (scop_do_strip_mine): Same.
12022
12023 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12024
12025         * graphite-clast-to-gimple.c (precision_for_value): Removed.
12026         (precision_for_interval): Removed.
12027         (gcc_type_for_interval): Use mpz_sizeinbase.
12028
12029 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12030
12031         * graphite-ppl.h (value_max): Correct computation of max.
12032
12033 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12034
12035         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
12036
12037 2011-07-05  Richard Guenther  <rguenther@suse.de>
12038
12039         * c-decl.c (c_init_decl_processing): Defer building common
12040         tree nodes to c_common_nodes_and_builtins.
12041
12042 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
12043
12044         PR tree-optimization/49580
12045         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12046         the loop's number of iterations.
12047         * tree-parloops.c (transform_to_exit_first_loop): Add the
12048         handling of the loop's number of iterations before the call
12049         to gimple_duplicate_sese_tail.
12050         Insert the stmt caclculating the new rhs of the loop's
12051         condition stmt to the preheader instead of iters_bb.
12052
12053 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12054
12055         PR rtl-optimization/47449
12056         * fwprop.c (forward_propagate_subreg): Don't propagate hard
12057         register nor zero/sign extended hard register.
12058
12059 2011-07-05  Richard Guenther  <rguenther@suse.de>
12060
12061         PR tree-optimization/49518
12062         PR tree-optimization/49628
12063         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12064         irrelevant and invariant data-references.
12065         (vect_analyze_data_ref_access): For invariant loads clear the
12066         group association.
12067
12068 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
12069
12070         PR rtl-optimization/49619
12071         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12072         pass VOIDmode as op0_mode to recursive call, and return temp even
12073         when different from tor, just if it is not IOR of the original
12074         PLUS arguments.
12075
12076         PR rtl-optimization/49472
12077         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12078         negating MULT, negate the second operand instead of first.
12079         (simplify_binary_operation_1) <case MULT>: If one operand is
12080         a NEG and the other is MULT, don't attempt to optimize by negation
12081         of the MULT operand if it only moves the NEG operation around.
12082
12083         PR debug/49602
12084         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12085         get_current_def return value if it can't be trusted to be
12086         the current value of the variable in the current bb.
12087
12088 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
12089
12090         PR target/49600
12091         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12092         general register to memory for !TARGET_INTER_UNIT_MOVES.
12093
12094 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12095
12096         PR target/44643
12097         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12098         instead of TREE_READONLY.
12099
12100 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12101
12102         * doc/extend.texi (AVR Built-in Functions): Update documentation
12103         of __builtin_avr_fmul*.
12104         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12105         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12106         * config/avr/avr.md (fmul): Rename to fmul_insn.
12107         (fmuls): Rename to fmuls_insn.
12108         (fmulsu): Rename to fmulsu_insn.
12109         (fmul,fmuls,fmulsu): New expander.
12110         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12111         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12112         * config/avr/libgcc.S (__fmul): New function.
12113         (__fmuls): New function.
12114         (__fmulsu,__fmulsu_exit): New function.
12115
12116 2011-07-04  Richard Guenther  <rguenther@suse.de>
12117
12118         PR tree-optimization/49615
12119         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12120         basic-block index check.
12121
12122 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12123
12124         * longlong.h (count_leading_zeros, count_trailing_zeros,
12125         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12126         resp. 64.
12127
12128 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
12129
12130         PR tree-optimization/49610
12131         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12132         a basic block.
12133
12134 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12135             Olivier Hainque  <hainque@adacore.com>
12136             Nicolas Setton  <setton@adacore.com>
12137
12138         * tree.h (TYPE_ARTIFICIAL): New flag.
12139         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12140         the DIE of the type if it is artificial.
12141         (gen_array_type_die): Likewise.
12142         (gen_enumeration_type_die): Likewise.
12143         (gen_struct_or_union_type_die): Likewise.
12144         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12145         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12146
12147 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12148
12149         * tree-object-size.c (pass_through_call): Handle
12150         BUILT_IN_ASSUME_ALIGNED.
12151
12152 2011-07-01  Martin Jambor  <mjambor@suse.cz>
12153
12154         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12155
12156 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
12157
12158         PR middle-end/48016
12159         * explow.c (update_nonlocal_goto_save_area): Use proper mode
12160         for stack save area.
12161         * function.c (expand_function_start): Likewise.
12162
12163 2011-07-01  Richard Guenther  <rguenther@suse.de>
12164
12165         PR middle-end/49596
12166         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12167         may have unknown refs.
12168
12169 2011-07-01  Kai Tietz  <ktietz@redhat.com>
12170
12171         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12172
12173 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12174
12175         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12176         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12177         (Specific, mips-sgi-irix6): Likewise.
12178
12179 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12180
12181         PR libmudflap/49549
12182         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12183
12184 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12185
12186         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
12187         [idx]= and [idx1 ... idx2]= before initializers if needed for
12188         array initializers.
12189
12190 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
12191
12192         * config.gcc (score-*-elf): Remove score7.o.
12193         * config/score/t-score-elf: Likewise.
12194         * config/score/score.c: Merge score7 to score.c and
12195         remove forwarding functions.
12196         * config/score/score7.c: Deleted.
12197         * config/score/score7.h: Deleted.
12198
12199 2011-07-01  Richard Guenther  <rguenther@suse.de>
12200
12201         PR tree-optimization/49603
12202         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
12203
12204 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12205
12206         * tree-sra.c (struct access): Rename total_scalarization to
12207         grp_total_scalarization
12208         (completely_scalarize_var): New function.
12209         (sort_and_splice_var_accesses): Set total_scalarization in the
12210         representative access.
12211         (analyze_access_subtree): Propagate total scalarization accross the
12212         tree, no holes in totally scalarized trees, simplify coverage
12213         computation.
12214         (analyze_all_variable_accesses): Call completely_scalarize_var instead
12215         of completely_scalarize_record.
12216
12217 2011-06-30  Richard Henderson  <rth@redhat.com>
12218
12219         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
12220         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
12221         * config/i386/i386.c: Don't include dwarf2out.h.
12222         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
12223         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
12224         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
12225         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
12226         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
12227
12228 2011-06-30  Richard Henderson  <rth@redhat.com>
12229
12230         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
12231         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12232         * final.c (final_scan_insn): Look for it, and invoke
12233         dwarf2out_frame_debug before the insn if found.
12234
12235 2011-06-30  Richard Henderson  <rth@redhat.com>
12236
12237         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
12238         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
12239
12240 2011-06-30  Richard Henderson  <rth@redhat.com>
12241
12242         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
12243         Define a vector of this type.
12244         (regs_saved_in_regs): Use a VEC.
12245         (num_regs_saved_in_regs): Remove.
12246         (compare_reg_or_pc): New.
12247         (record_reg_saved_in_reg): Split out from...
12248         (dwarf2out_flush_queued_reg_saves): ... here.
12249         (clobbers_queued_reg_save): Update for VEC.
12250         (reg_saved_in): Likewise.
12251         (dwarf2out_frame_debug_init): Likewise.
12252         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
12253         (dwarf2out_frame_debug_cfa_register): Likewise.
12254
12255 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12256
12257         PR tree-optimization/49572
12258         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
12259         type of the RHS instead of that of the LHS for the expression type.
12260
12261 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12262
12263         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
12264         unconditionally.
12265
12266 2011-06-30  Richard Guenther  <rguenther@suse.de>
12267
12268         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
12269         * tree-ssa-structalias.c (create_variable_info_for): Do not
12270         add initial constraints for non-var-decls.  Properly handle
12271         globals in other ltrans partitions.
12272         (intra_create_variable_infos): Manually create constraints for
12273         the fake no-alias parameter.
12274         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
12275         and assert there are no clones.
12276
12277 2011-06-30  Richard Guenther  <rguenther@suse.de>
12278
12279         PR tree-optimization/46787
12280         * tree-data-ref.c (dr_address_invariant_p): Remove.
12281         (find_data_references_in_stmt): Invariant accesses are ok now.
12282         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
12283         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12284         invariant loads.
12285
12286 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12287
12288         PR tree-optimization/49094
12289         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
12290         (build_accesses_from_assign): Use it.
12291
12292 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12293
12294         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12295         handling of BUILT_IN_ASSUME_ALIGNED.
12296
12297         PR debug/49364
12298         * dwarf2out.c (output_abbrev_section): Don't return early
12299         if abbrev_die_table_in_use is 1.
12300         (dwarf2out_finish): Instead don't call output_abbrev_section
12301         nor emit abbrev_section_label in that case.
12302
12303 2011-06-30  Nick Clifton  <nickc@redhat.com>
12304
12305         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
12306         for the V850E.
12307
12308 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12309
12310         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12311         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
12312
12313 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
12314
12315         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12316         both pattern and original statements if necessary.
12317         (vect_transform_loop): Likewise.
12318         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
12319         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
12320         Mark the pattern statement only if the original statement doesn't
12321         have its own uses.
12322         (process_use): Call vect_mark_relevant with additional parameter.
12323         (vect_mark_stmts_to_be_vectorized): Likewise.
12324         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
12325         (vect_analyze_stmt): Handle both pattern and original statements
12326         if necessary.
12327         (vect_transform_stmt): Don't store vectorized pattern statement
12328         in the original statement.
12329         (vect_is_simple_use_1): Use related pattern statement only if the
12330         original statement is irrelevant.
12331         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12332
12333 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
12334
12335         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12336         option.
12337         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12338         entry.
12339         (TARGET_AVX128_OPTIMAL): New definition.
12340         * config/i386/i386.c (initial_ix86_tune_features): Initialize
12341         X86_TUNE_AVX128_OPTIMAL entry.
12342         (ix86_option_override_internal): Enable the generation
12343         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12344         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12345         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12346
12347 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12348
12349         PR tree-optimization/49539
12350         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12351         names by means of stmt_references_abnormal_ssa_name.
12352         (associate_plusminus): Call can_propagate_from before propagating
12353         from definition statements.
12354         (ssa_forward_propagate_and_combine): Remove superfluous newline.
12355
12356 2011-06-29  Richard Guenther  <rguenther@suse.de>
12357
12358         * doc/invoke.texi: Document -scev dump modifier.
12359         * tree-pass.h (TDF_SCEV): New dump flag.
12360         * tree-dump.c (dump_option_value_in): Add scev.
12361         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12362         * tree-scalar-evolution.c: Likewise.
12363
12364 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
12365
12366         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12367         (cxa_type_match): Correct declaration.
12368         (__gnu_unwind_pr_common): Reconstruct additional indirection
12369         when __cxa_type_match returns succeeded_with_ptr_to_base.
12370
12371 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12372
12373         PR rtl-optimization/49114
12374         * reload.c (struct replacement): Remove SUBREG_LOC member.
12375         (push_reload): Do not set it.
12376         (push_replacement): Likewise.
12377         (subst_reload): Remove dead code.
12378         (copy_replacements): Remove assertion.
12379         (copy_replacements_1): Do not handle SUBREG_LOC.
12380         (move_replacements): Likewise.
12381         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
12382         Detect subregs via recursive descent instead of via SUBREG_LOC.
12383
12384 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12385
12386         * config/avr/avr.c (avr_encode_section_info): Dispatch to
12387         default_encode_section_info.
12388
12389 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
12390
12391         PR tree-optimization/49545
12392         * builtins.c (get_object_alignment_1): Update function comment.
12393         Do not use DECL_ALIGN for functions, but test
12394         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12395         * fold-const.c (get_pointer_modulus_and_residue): Don't check
12396         for functions here.
12397         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12398
12399 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
12400
12401         PR debug/49567
12402         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12403         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12404
12405 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12406
12407         PR target/34734
12408         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12409         about uninitialized data attributed 'progmem' from here...
12410         (avr_encode_section_info): ...to this new function.
12411         (TARGET_ENCODE_SECTION_INFO): New define.
12412         (avr_section_type_flags): For data in ".progmem.data", remove
12413         section flag SECTION_WRITE.
12414
12415 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12416
12417         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12418         _xmulhisi3_exit.
12419         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12420         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
12421         (__umulhisi3): Ditto.
12422         * config/avr/avr.md (mulhisi3): New insn expender.
12423         (umulhisi3): New insn expender.
12424         (*mulhisi3_call): New insn.
12425         (*umulhisi3_call): New insn.
12426
12427 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12428
12429         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12430
12431 2011-06-28  Richard Henderson  <rth@redhat.com>
12432
12433         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
12434         all code and arguments that handled pushes.  Update all callers.
12435
12436 2011-06-28  Richard Henderson  <rth@redhat.com>
12437
12438         * config/arm/arm.c (arm_output_function_prologue): Don't call
12439         thumb1_output_function_prologue.
12440         (arm_expand_prologue): Avoid dead store.
12441         (number_of_first_bit_set): Use ctz_hwi.
12442         (thumb1_emit_multi_reg_push): New.
12443         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12444         to emit the entire prologue as rtl.
12445         (thumb1_output_interwork): Split out from
12446         thumb1_output_function_prologue.
12447         (thumb1_output_function_prologue): Remove.
12448         (arm_attr_length_push_multi): Handle thumb1.
12449         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12450         (prologue_thumb1_interwork): New.
12451         (*push_multi): Allow thumb1; use push_mult_memory_operand.
12452         * config/arm/predicates.md (push_mult_memory_operand): New.
12453
12454 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12455
12456         * config/sparc/sync.md (*stbar): Delete.
12457         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12458
12459 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12460
12461         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12462
12463 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12464
12465         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12466         (TARGET_64BIT_DEFAULT): Define.
12467         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12468         of tm_file.
12469         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12470
12471 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12472
12473         * common.opt (in_lto_p): New Variable entry.
12474         * flags.h (in_lto_p): Move to common.opt.
12475         * gcc.c: Include params.h.
12476         (set_option_handlers): Also use common_handle_option and
12477         target_handle_option.
12478         (main): Call global_init_params, finish_params and init_options_struct.
12479         * opts.c (debug_type_names): Move from toplev.c.
12480         (print_filtered_help): Access quiet_flag through opts pointer.
12481         (common_handle_option): Return early in the driver for some options.
12482         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12483         opts pointer.
12484         * toplev.c (in_lto_p): Move to common.opt.
12485         (debug_type_names): Move to opts.c.
12486         * Makefile.in (OBJS): Remove opts.o.
12487         (OBJS-libcommon-target): Add opts.o.
12488         (gcc.o): Update dependencies.
12489
12490 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12491
12492         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12493
12494 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12495
12496         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12497         with '=' constraint modifier.
12498         (*divdf3_vfp): Likewise.
12499         ("*mulsf3_vfp"): Likewise.
12500         ("*muldf3_vfp"): Likewise.
12501         ("*mulsf3negsf_vfp"): Likewise.
12502         ("*muldf3negdf_vfp"): Likewise.
12503
12504 2011-06-28  Nick Clifton  <nickc@redhat.com>
12505
12506         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12507         relaxation when performing an incremental link.
12508
12509 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12510
12511         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12512         within BB from last to first.
12513
12514 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12515
12516         * genattr-common.c: New.  Based on genattr.c.
12517         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12518         (MOSTLYCLEANFILES): Add insn-attr-common.h.
12519         (opts.o): Update dependencies.
12520         (.PRECIOUS): Add insn-attr-common.h.
12521         (simple_rtl_generated_h): Add insn-attr-common.h.
12522         (build/genattr-common.o): New.
12523         (genprogrtl): Add attr-common.
12524         * genattr.c (main): Include insn-attr-common.h.  Don't generate
12525         definitions of DELAY_SLOTS or INSN_SCHEDULING.
12526         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12527
12528 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
12529
12530         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12531         avr-*-* and avr-*-rtems* targets.
12532
12533         * config/avr/elf.h: New file.
12534         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12535         (TARGET_ASM_SELECT_SECTION): Define.
12536         (INIT_SECTION_ASM_OP): Undefine.
12537         (FINI_SECTION_ASM_OP): Undefine.
12538         (READONLY_DATA_SECTION_ASM_OP): Undefine.
12539         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12540         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12541         * config/avr/avr.h:
12542         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12543         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12544         (MAX_OFILE_ALIGNMENT): Move to elf.h.
12545         (STRING_LIMIT): Move to elf.h.
12546         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12547         (ASM_DECLARE_OBJECT_NAME): Remove.
12548         (ESCAPES): Remove.
12549         (ASM_OUTPUT_SKIP): Remove.
12550         (DWARF2_DEBUGGING_INFO): Remove.
12551         (OBJECT_FORMAT_ELF): Remove.
12552         (USER_LABEL_PREFIX): Remove.
12553         (ASM_OUTPUT_EXTERNAL): Remove.
12554         (ASM_OUTPUT_ASCII): Remove.
12555         (TYPE_ASM_OP): Remove.
12556         (SIZE_ASM_OP): Remove.
12557         (WEAK_ASM_OP): Remove.
12558         (STRING_ASM_OP): Remove.
12559         (SET_ASM_OP): Remove.
12560         (ASM_WEAKEN_LABEL): Remove.
12561         (TYPE_OPERAND_FMT): Remove.
12562         (ASM_DECLARE_FUNCTION_SIZE): Remove.
12563         (ASM_FINISH_DECLARE_OBJECT): Remove.
12564         (NO_DOLLAR_IN_LABEL): Remove.
12565         (ASM_GENERATE_INTERNAL_LABEL): Remove.
12566         (ASM_OUTPUT_CASE_LABEL): Remove.
12567         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12568         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12569         (gas_output_ascii): Remove.
12570         (gas_output_limited_string): Remove.
12571         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12572         * config/avr/avr-protos.h
12573         (gas_output_ascii): Remove prototye.
12574         (gas_output_limited_string): Remove prototype.
12575
12576 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
12577
12578         PR target/48637
12579         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
12580         asm operands.
12581
12582 2011-06-27  Jan Hubicka  <jh@suse.cz>
12583
12584         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12585         node instead of references in node.
12586
12587 2011-06-27  Richard Henderson  <rth@redhat.com>
12588
12589         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12590         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12591         inside ifdef.
12592
12593 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
12594
12595         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12596
12597         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12598         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12599         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12600         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12601         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12602         (evaluate_stmt, execute_fold_all_builtins): Handle
12603         BUILT_IN_ASSUME_ALIGNED.
12604         * tree-ssa-dce.c (propagate_necessity): Likewise.
12605         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12606         call_may_clobber_ref_p_1): Likewise.
12607         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12608         (expand_builtin_assume_aligned): New function.
12609         * doc/extend.texi (__builtin_assume_aligned): Document.
12610
12611         PR debug/49544
12612         * cselib.c (promote_debug_loc): If cselib_preserve_constants
12613         and l has two DEBUG_INSN owned locs instead of just one, adjust
12614         the second location's setting_insn too.
12615
12616 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12617
12618         PR libmudflap/38738
12619         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12620
12621 2011-06-27  Nick Clifton  <nickc@redhat.com>
12622
12623         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12624         bit position of highest bit set into a count of the high zero bits.
12625
12626 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12627
12628         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12629
12630 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12631
12632         PR lto/48492
12633         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12634         to a NULL parent.
12635
12636 2011-06-27  Richard Guenther  <rguenther@suse.de>
12637
12638         PR tree-optimization/49394
12639         * passes.c (execute_one_pass): Restore current_pass after
12640         applying IPA transforms.
12641
12642 2011-06-27  Kai Tietz  <ktietz@redhat.com>
12643
12644         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12645         out of type precision after operation.
12646         (find_bswap): Take for limit value the integer auto-promotion
12647         into account.
12648
12649 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12650
12651         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12652         forward scan as well.
12653
12654 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12655
12656         PR target/44241
12657         * config/vms/vms-protos.h: New file.
12658         * config/vms/vms-crtlmap.map: New file.
12659         * config/vms/vms.c: New file.
12660         * config/vms/make-crtlmap.awk: New file.
12661         * config/vms/vms-crtl.h: File removed.
12662         * config/vms/vms-crtl-64.h: File removed.
12663         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12664         * config/alpha/vms64.h: Do not include vms-crtl-64.h
12665         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12666         clear some builtins on VMS.  Calls vms_patch_builtins.
12667         (avms_asm_output_external): Remove.
12668         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12669         (struct crtl_name_spec): Remove
12670         (DO_CTRL_NAMES): Remove.
12671         * config/ia64/vms.h (struct crtl_name_spec): Remove
12672         (DO_CTRL_NAMES): Remove.
12673         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12674         clear some builtins on VMS.  Calls vms_patch_builtins.
12675         (ia64_asm_output_external): Remove DO_CRTL_NAME.
12676         * config/ia64/vms64.h: Do not include vms-crtl-64.h
12677         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12678
12679 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12680
12681         * config/alpha/alpha.c (alpha_end_function): Always generate .end
12682         directive on VMS.
12683
12684 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12685
12686         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12687         the function receives nonlocal gotos.
12688
12689 2011-06-27  Richard Guenther  <rguenther@suse.de>
12690
12691         PR tree-optimization/49536
12692         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12693         For non-scalar inner types use a scalar type according to
12694         the scalar inner mode.
12695
12696 2011-06-27  Richard Guenther  <rguenther@suse.de>
12697
12698         PR tree-optimization/49365
12699         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12700
12701 2011-06-27  Richard Guenther  <rguenther@suse.de>
12702
12703         PR tree-optimization/49169
12704         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12705         the alignment of function decls.
12706
12707 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
12708
12709         PR target/47997
12710         * config/darwin.c (darwin_mergeable_string_section): Place string
12711         constants in '.cstring' rather than '.const' when CF/NSStrings are
12712         active.
12713
12714 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12715
12716         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12717         (emit_save_register_window): Likewise.
12718         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12719         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
12720         Swap back %o7/%i7 in register naming.
12721
12722 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
12723
12724         PR driver/49371
12725         * config/darwin.c (darwin_override_options): Improve warning when
12726         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12727         is given with fpie/fPIE.
12728         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12729         * config/darwin9.h (PIE_SPEC): New.
12730
12731 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
12732
12733         * timevar.c (timevar_print): Increase width for display of timevar
12734         name.
12735
12736 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
12737
12738         PR c++/46400
12739         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12740         instead of TYPE_CHAIN for chain_next for types.
12741
12742 2011-06-24  Richard Henderson  <rth@redhat.com>
12743
12744         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12745         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12746         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12747         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12748         (sparc_flat_expand_prologue): Emit individual instructions
12749         instead of one of the above.
12750
12751 2011-06-24  Easwaran Raman  <eraman@google.com>
12752
12753         PR rtl-optimization/49429
12754         PR target/49454
12755         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
12756         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12757         used to copy y into x.
12758         * calls.c (initialize_argument_information): Mark
12759         an argument addressable if it is passed by invisible reference.
12760         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
12761         if it is passed by reference.
12762
12763 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12764
12765         PR rtl-optimization/49504
12766         * rtlanal.c (nonzero_bits1): Properly handle addition or
12767         subtraction of a pointer in Pmode if pointers extend unsigned.
12768         (num_sign_bit_copies1): Likewise.
12769
12770 2011-06-24  Martin Jambor  <mjambor@suse.cz>
12771
12772         PR tree-optimizations/49516
12773         * tree-sra.c (sra_modify_assign): Choose the safe path for
12774         aggregate copies if we also did scalar replacements.
12775
12776 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12777
12778         PR target/49335
12779         * config/arm/predicates.md (add_operator): New.
12780         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
12781
12782 2011-06-24  Andi Kleen  <ak@linux.intel.com>
12783
12784         * tree-sra.c (type_internals_preclude_sra_p): Add msg
12785         parameter. Split up ifs and report reason in *msg.
12786         (reject): Add.
12787         (find_var_candiate): Add msg variable.
12788         Split up ifs and report reason to reject.
12789         (find_param_candidates): Add msg variable.
12790         Pass msg to type_internals_preclude_sra_p.
12791
12792 2011-06-23  Jeff Law  <law@redhat.com>
12793
12794         PR middle-end/48770
12795         * reload.h (reload): Change to return a bool.
12796         * ira.c (ira): If requested by reload, run a fast DCE pass after
12797         reload has completed.  Fix comment typo.
12798         * reload1.c (need_dce): New file scoped static.
12799         (reload): Set reload_completed here.  Return whether or not a DCE
12800         pass after reload is needed.
12801         (delete_dead_insn): Set need_dce as needed.
12802
12803         PR middle-end/49465
12804         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12805         to detect threading through joiner block.  If there was already
12806         an edge to the new target, then do not change the PHI nodes.
12807
12808 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
12809
12810         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12811         get_pointer_alignment to see if base isn't sufficiently aligned.
12812
12813 2011-06-23  Jan Hubicka  <jh@suse.cz>
12814
12815         PR tree-optimize/49373
12816         * tree-pass.h (all_late_ipa_passes): Declare.
12817         * cgraphunit.c (init_lowered_empty_function): Fix properties.
12818         (cgraph_optimize): Execute late passes; remove unreachable funcions
12819         after materialization.
12820         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12821         LTOing.
12822         * passes.c (all_late_ipa_passes): Declare.
12823         (dump_passes, register_pass): Handle late ipa passes.
12824         (init_optimization_passes): Move ipa_pta to late passes; schedule
12825         fixup_cfg at beggining of all_passes.
12826         (apply_ipa_transforms): New function.
12827         (execute_one_pass): When doing simple ipa pass, apply all transforms.
12828
12829 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
12830
12831         * params.c: Include common/common-target.h.  Don't include tm.h.
12832         (lang_independent_params): Move from toplev.c.
12833         (global_init_params): New.
12834         * params.h (global_init_params): Declare.
12835         * target.def (default_params): Move to common-target.def.
12836         * toplev.c (lang_independent_options): Remove.
12837         (lang_independent_params): Move to params.c.
12838         (general_init): Use global_init_params.
12839         * common/common-target.def (option_default_params): Move from
12840         target.def.
12841         * common/config/ia64/ia64-common.c: Include params.h.
12842         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12843         from ia64.c.
12844         * common/config/rs6000/rs6000-common.c: Include params.h.
12845         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12846         from rs6000.c.
12847         * common/config/sh/sh-common.c: Include params.h.
12848         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12849         from sh.c.
12850         * common/config/spu/spu-common.c: Include params.h.
12851         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12852         from spu.c.
12853         * config/ia64/ia64.c (ia64_option_default_params,
12854         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12855         * config/rs6000/rs6000.c (rs6000_option_default_params,
12856         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12857         * config/sh/sh.c (sh_option_default_params,
12858         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12859         * config/spu/spu.c (spu_option_default_params,
12860         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12861         * Makefile.in (OBJS): Remove params.o.
12862         (OBJS-libcommon-target): Add params.o.
12863         (params.o, $(common_out_object_file)): Update dependencies.
12864         * doc/tm.texi: Regenerate.
12865
12866 2011-06-23  Alan Modra  <amodra@gmail.com>
12867
12868         PR bootstrap/49383
12869         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12870         invocation for 2011-06-09 changes.
12871
12872 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12873
12874         PR libgomp/49490
12875         * omp-low.c (expand_omp_for_static_nochunk): Only
12876         use n ceil/ nthreads size for the first n % nthreads threads in the
12877         team instead of all threads except for the last few ones which
12878         get less work or none at all.
12879
12880         PR debug/49496
12881         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12882         uses.
12883
12884 2011-06-22  Richard Guenther  <rguenther@suse.de>
12885
12886         PR tree-optimization/49493
12887         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12888         Refer to the alias target of variables.
12889         (associate_varinfo_to_alias_1): Remove.
12890         (ipa_pta_execute): Do not associate aliases with anything.
12891         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12892         (cgraph_function_node): Likewise.
12893         (cgraph_function_or_thunk_node): Likewise.
12894         (varpool_variable_node): Likewise.
12895
12896 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12897
12898         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12899         * config.gcc (arm*-*-linux*): Default to gnu tls.
12900         (arm*-*-*): Add --with-tls option.
12901         (all_defaults): Add 'tls'.
12902
12903 2011-06-22  Richard Henderson  <rth@redhat.com>
12904
12905         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12906         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12907         (dwarf2out_frame_debug_cfa_window_save): Rename from
12908         dwarf2out_window_save; make static.
12909         * tree.h (dwarf2out_window_save): Don't declare.
12910
12911         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12912         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12913         (emit_save_register_window): Rename from gen_save_register_window;
12914         emit the insn and add REG_CFA_* notes.
12915         (sparc_expand_prologue): Update to match.
12916         * config/sparc/sparc.md (save_register_window_1): Simplify from
12917         save_register_window<P:mode>.
12918
12919 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12920
12921         PR target/49497
12922         * config/i386/i386.md (*lea_general_2): Always allow SImode.
12923         (*lea_general_2_zext): Likewise.
12924         (imul to lea peepholes): Use const359_operand and check
12925         TARGET_PARTIAL_REG_STALL.
12926
12927         * config/i386/predicates.md (const359_operand): New.
12928
12929 2011-06-22  Michael Matz  <matz@suse.de>
12930
12931         * cgraphunit.c (assemble_thunk): Use correct return type.
12932
12933 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
12934             Dmitry Melnik  <dm@ispras.ru>
12935
12936         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12937         (neon_output_shift_immediate): Ditto.
12938         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12939         prototype.
12940         (neon_output_shift_immediate): Ditto.
12941         * config/arm/neon.md (vashl<mode>3): Modified constraint.
12942         (vashr<mode>3_imm): New insn pattern.
12943         (vlshr<mode>3_imm): Ditto.
12944         (vashr<mode>3): Modified constraint.
12945         (vlshr<mode>3): Ditto.
12946         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12947         predicate.
12948         (imm_for_neon_rshift_operand): Ditto.
12949         (imm_lshift_or_reg_neon): Ditto.
12950         (imm_rshift_or_reg_neon): Ditto.
12951
12952         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12953
12954 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12955
12956         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12957         builtin calls even if likelyvalue is not CONSTANT.
12958         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12959         Return get_value_for_expr of first operand
12960         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
12961         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12962         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
12963         their non-checking counterparts.
12964         (call_may_clobber_ref_p_1): Likewise.
12965         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
12966         like their non-checking counterparts.
12967         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12968         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
12969         like their non-checking counterparts.
12970         (find_func_clobbers): Likewise.
12971         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
12972         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
12973
12974         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
12975         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
12976         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
12977         of base type reference as argument.
12978         (resolve_addr_in_expr): Likewise.  Fix keep computation.
12979         (convert_descriptor_to_signed): Renamed to...
12980         (convert_descriptor_to_mode): ... this.  For wider types convert to
12981         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
12982         (typed_binop): New function.
12983         (scompare_loc_descriptor, ucompare_loc_descriptor,
12984         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
12985         default to unsigned type instead of signed.
12986
12987         PR debug/47858
12988         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
12989         (gimple_build_debug_source_bind_stat): New prototype.
12990         (gimple_build_debug_source_bind): Define.
12991         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
12992         gimple_debug_source_bind_get_value,
12993         gimple_debug_source_bind_get_value_ptr,
12994         gimple_debug_source_bind_set_var,
12995         gimple_debug_source_bind_set_value): New inlines.
12996         * gimple.c (gimple_build_debug_source_bind_stat): New function.
12997         * gimple-pretty-print.c (dump_gimple_debug): Handle
12998         GIMPLE_DEBUG_SOURCE_BIND.
12999         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
13000         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13001         * tree-parloops.c (eliminate_local_variables,
13002         separate_decls_in_region): Likewise.
13003         (separate_decls_in_region_debug): Renamed from
13004         separate_decls_in_region_debug_bind.  Handle
13005         gimple_debug_source_bind_p.
13006         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
13007         prototypes.
13008         (DECL_HAS_DEBUG_ARGS_P): Define.
13009         (struct tree_function_decl): Add has_debug_args_flag field.
13010         * tree.c (debug_args_for_decl): New variable.
13011         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
13012         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
13013         (rewrite_debug_stmt_uses): New function.
13014         (rewrite_stmt): Use it to rewrite debug stmt uses.
13015         * rtl.def (DEBUG_PARAMETER_REF): New.
13016         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
13017         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
13018         DEBUG_PARAMETER_REF.
13019         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
13020         * print-rtl.c (print_rtx): Likewise.
13021         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
13022         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
13023         debug stmts in the first bb.
13024         * tree-inline.c (remap_ssa_name): If remapping default def
13025         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
13026         a source bind debug stmt.
13027         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
13028         (maybe_move_debug_stmts_to_successors): Likewise.
13029         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
13030         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
13031         debug args vector from old_decl to new_decl.
13032         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
13033         or modified parameters, add debug bind stmts before call
13034         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
13035         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
13036         on DECL_DEBUG_EXPRs from debug args vector.
13037         (expand_debug_source_expr): New function.
13038         (expand_debug_locations): Use it for source bind insns.
13039         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
13040         * var-tracking.c (prepare_call_arguments): Add debug args
13041         to call_arguments if any.
13042         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
13043         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
13044         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
13045         (get_ref_die_offset, parameter_ref_descriptor): New functions.
13046         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
13047         (gen_subprogram_die): Handle parameters identified by
13048         DEBUG_PARAMETER_REF.
13049
13050 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
13051
13052         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13053         * doc/install.texi (Configuration): Document --with-tls.
13054         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13055         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13056         (arm_tls_descseq_addr): New.
13057         (legitimize_tls_address): Add tlsdesc support.
13058         (arm_cannot_copy_insn_p): Check for tlscall.
13059         (arm_emit_tls_decoration): Likewise.
13060         * config/arm/arm.h (TARGET_GNU2_TLS): New.
13061         (OPTION_DEFAULT_SPECS): Add with-tls support.
13062         * config/arm/arm.md (R1_REGNUM): Define.
13063         (tlscall): New.
13064         * config/arm/arm.opt (tls_type): New enumeration type and values.
13065         (mtls-dialect): New switch.
13066         * config/arm/arm-opts.h (enum tls_type): New.
13067
13068 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13069
13070         * attribs.c (register_attribute): Added assert to check that all
13071         attribute specs are registered with a name that is not empty and
13072         does not start with '_'.
13073         (decl_attributes): Avoid the lookup of the "naked" attribute spec
13074         if the function has no attributes.
13075         * tree.c (is_attribute_with_length_p): Removed.
13076         (is_attribute_p): Removed.
13077         (private_is_attribute_p): New.
13078         (private_lookup_attribute): New.
13079         (lookup_attribute): Removed.
13080         (lookup_ident_attribute): New.
13081         (remove_attribute): Require the first argument to be in the form
13082         'text', not '__text__'.  Updated asserts.
13083         (merge_attributes): Use lookup_ident_attributes instead of
13084         lookup_attribute.
13085         (merge_dllimport_decl_attributes): Use remove_attribute.
13086         (attribute_list_contained): Likewise.
13087         (attribute_list_equal): Immediately return 1 if the arguments are
13088         identical pointers.
13089         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
13090         'int'.  Require the first argument to be in the form 'text', not
13091         '__text__'.  Require the second argument to be an identifier.
13092         (lookup_attribute): Made inline.  Require the first argument to be
13093         in the form 'text', not '__text__'.
13094         (private_is_attribute_p, private_lookup_attribute): New.
13095         Updated comments.
13096
13097 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13098
13099         * builtins.c: Add sync_ or SYNC__ to builtin names.
13100         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13101         * omp-low.c: Add sync_ or SYNC__ to builtin names.
13102
13103 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13104
13105         PR target/33049
13106         * config/avr/avr.md (extzv): New expander.
13107         (*extzv): New insn.
13108         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13109         * config/avr/constraints.md (C04): New constraint.
13110         * doc/md.texi (Machine Constraints): Document it.
13111
13112 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13113
13114         PR middle-end/49489
13115         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13116         unsignedp argument instead of 1 for clrsb_optab.
13117         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13118         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
13119         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13120         * optabs.c (widen_leading): Call widen_operand and expand_unop
13121         with 0 as unsignedp argument instead of 1 for clrsb_optab.
13122         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13123
13124 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13125
13126         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13127
13128 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
13129
13130         * gensupport.c (add_define_attr): New static function.
13131         (is_predicable): Allow multi-alternative lists for the "predicable"
13132         attribute.
13133         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13134         (process_one_cond_exec): Call alter_attrs_for_insn.
13135         * doc/md.texi (Defining Attributes): Mention some standard names.
13136         (Conditional Execution): Update documentation for "predicable".
13137
13138         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13139         __builtin_clrsbll): Document.
13140         * doc/rtl.texi (clrsb): New entry.
13141         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
13142         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
13143         (expand_unop): Handle clrsb_optab.
13144         (init_optabs): Initialize it.
13145         * optabs.h (enum optab_index): New entry OTI_clrsb.
13146         (clrsb_optab): Define.
13147         * genopinit.c (optabs): Add an entry for it.
13148         * builtins.c (expand_builtin): Handle clrsb builtin functions.
13149         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13150         BUILT_IN_CLRSBLL): New.
13151         * rtl.def (CLRSB): New code.
13152         * dwarf2out.c (mem_loc_descriptor): Handle it.
13153         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13154         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13155         and popcount.
13156         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13157         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13158         (__ctzDI2): Move declaration.
13159         * config/bfin/bfin.md (clrsbsi2): New expander.
13160         (signbitssi2): Use the CLRSB rtx.
13161         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
13162         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13163
13164 2011-06-21  Richard Guenther  <rguenther@suse.de>
13165
13166         * ipa-inline-transform.c (inline_transform): Fix previous change.
13167
13168 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
13169
13170         PR tree-optimization/49478
13171         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13172         with constant operand.
13173
13174 2011-06-21  Richard Guenther  <rguenther@suse.de>
13175
13176         * ipa-inline-transform.c (inline_transform): Fix typo.
13177
13178 2011-06-21  Richard Guenther  <rguenther@suse.de>
13179
13180         PR tree-optimization/49483
13181         * tree-vect-stmts.c (vectorizable_assignment): Also handle
13182         VIEW_CONVERT_EXPR conversions.
13183
13184 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
13185
13186         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
13187         * config/avr/avr-tables.opt: New file (generated).
13188         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
13189         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
13190         avr-mcus.def.
13191         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
13192         (avr_option_override): Don't process -mmcu= argument here.  Set
13193         avr_current_device using avr_mcu_index.
13194         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
13195         * config/avr/avr.opt (mmcu=): Use Enum.
13196         * config/avr/t-avr (avr-devices.o): Update dependencies.
13197         ($(srcdir)/config/avr/avr-tables.opt): New.
13198         * target.def (help): Remove.
13199         * doc/tm.texi.in (TARGET_HELP): Remove.
13200         * doc/tm.texi: Regenerate.
13201         * opts.c: Don't include target.h.
13202         (common_handle_option): Don't call targetm.help.
13203         * system.h (TARGET_HELP): Poison.
13204         * Makefile.in (opts.o): Update dependencies.
13205
13206 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13207
13208         * config/usegld.h: New file.
13209         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
13210         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
13211         (LIB_SPEC): Likewise.  Search /lib.
13212         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
13213         (RDYNAMIC_SPEC): Handle GNU ld.
13214         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
13215         Define.
13216         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
13217         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
13218         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
13219         (STACK_CHECK_STATIC_BUILTIN): Define.
13220         * config/sol2.opt (compat-bsd): Remove.
13221         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
13222         * config/sol2-bi.h: New file.
13223         * config/sol2-gld.h: Remove.
13224         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
13225         (NO_DBX_BNSYM_ENSYM): Remove.
13226         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13227         (STACK_CHECK_STATIC_BUILTIN): Remove.
13228         Test USE_GLD instead of TARGET_GNU_LD.
13229         * config/i386/sol2-10.h: Rename to ...
13230         * config/i386/sol2-bi.h .. this.
13231         (SUBTARGET_EXTRA_SPECS): Redefine.
13232         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
13233         (MULTILIB_DEFAULTS): Remove.
13234         (DEFAULT_ARCH32_P): Define.
13235         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
13236         (ARCH64_SUBDIR): Define.
13237         Test USE_GLD instead of TARGET_GNU_LD.
13238         (I386_EMULATION): Rename to ...
13239         (ARCH32_EMULATION): ... this.
13240         (X86_64_EMULATION): Rename to ...
13241         (ARCH64_EMULATION): ... this.
13242         (TARGET_LD_EMULATION): Remove.
13243         (LINK_ARCH_SPEC): Remove.
13244         * config/i386/sol2-gas.h: Remove.
13245         * config/i386/t-sol2-10: Rename to ...
13246         * config/i386/t-sol2-64: ... this.
13247         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
13248         (AS_SPARC64_FLAG): Define.
13249         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
13250         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
13251         depending on TARGET_CPU_DEFAULT.
13252         (CPP_CPU_SPEC): Redefine.
13253         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
13254         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
13255         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
13256         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
13257         ASM_ARCH_DEFAULT_SPEC): Redefine.
13258         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13259         LINK_ARCH_DEFAULT_SPEC.
13260         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
13261         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
13262         (ARCH64_SUBDIR): Define.
13263         (LINK_ARCH64_SPEC): Redefine.
13264         (CC1_SPEC): Redefine.
13265         (OPTION_DEFAULT_SPECS): Redefine.
13266         (MULTILIB_DEFAULTS): Define.
13267         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
13268         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
13269         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
13270         (NO_DBX_BNSYM_ENSYM): Remove.
13271         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13272         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
13273         (TARGET_ASM_NAMED_SECTION): Likewise.
13274         (STACK_CHECK_STATIC_BUILTIN): Remove.
13275         * config/sparc/sol2-bi.h: Remove.
13276         * config/sparc/sol2-gas-bi.h: Remove.
13277         * config/sparc/sol2-gas.h: Remove.
13278         * config/sparc/sol2-gld-bi.h: Remove.
13279         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
13280         common parts ...
13281         (*-*-solaris2*): ... here.
13282
13283 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13284
13285         PR other/43564
13286         * ipa-inline.c (can_inline_edge_p): Check
13287         !DECL_DISREGARD_INLINE_LIMITS.
13288
13289 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13290
13291         PR middle-end/49139
13292         * cgraphunit.c (process_function_and_variable_attributes): warn when
13293         always_inline functions that are not inline.
13294         * ipa-inline-transform.c (inline_transform): Always call
13295         optimize_inline.
13296         * tree-inline.c (tree_inlinable_function_p): Use error instead
13297         of sorry.
13298         (expand_call_inline): Likewise.
13299
13300 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13301
13302         * Makefile.in (dg_target_exps): Set.
13303         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
13304         instead of 7, try to divide it more evenly.
13305
13306 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
13307
13308         PR target/49089
13309         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
13310         (avx256_split_unaligned_store): New definition.
13311         (ix86_option_override_internal): Enable avx256 unaligned load/store
13312         splitting only when avx256_split_unaligned_load/store is set.
13313
13314 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13315
13316         * regrename.c (scan_rtx_reg): Handle the case where we write to an
13317         open chain in a smaller mode without failing the entire block.
13318
13319 2011-06-21  Alan Modra  <amodra@gmail.com>
13320
13321         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
13322         CONST high part large-toc address.
13323         (rs6000_tls_referenced_p): Make static.
13324         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
13325
13326 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13327
13328         PR target/49385
13329         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
13330         one of the operands is a register.
13331
13332 2011-06-20  Kai Tietz  <ktietz@redhat.com>
13333
13334         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13335         operations in combination with binary and.
13336
13337 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13338
13339         * regrename.c (do_replace): Don't update notes.
13340
13341 2011-06-20  Alan Modra  <amodra@gmail.com>
13342
13343         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13344         of toc-relative address in CONST.
13345         (rs6000_delegitimize_address): Recognize changed address.
13346         (rs6000_legitimize_reload_address): Likewise.
13347         (rs6000_emit_move): Don't force these constants to memory.
13348         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13349         toc-relative address in CONST.
13350         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13351         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13352
13353 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13354
13355         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13356         (count_trailing_zeros): Likewise.
13357
13358 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13359
13360         PR other/49325
13361         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13362         .init_array can be used with .ctors on targets.
13363         * configure: Regenerated.
13364
13365 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13366
13367         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13368         if the element type is volatile.
13369
13370 2011-06-18  Jan Hubicka  <jh@suse.cz>
13371
13372         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13373         extra name aliases.
13374         (lto_symtab_resolve_can_prevail_p): Likewise.
13375         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13376         * cgraphbuild.c (record_reference): Remove extra body alias code.
13377         (mark_load): Likewise.
13378         (mark_store): Likewise.
13379         * cgraph.h (varpool_node): Remove extra_name filed;
13380         add alias_of and extraname_alias.
13381         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13382         (varpool_alias_aliased_node): New inline function.
13383         (varpool_variable_node): New function.
13384         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13385         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13386         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13387         (input_varpool_node): Likewise.
13388         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13389         (varpool_externally_visible_p): Remove extra body alias code.
13390         (function_and_variable_visibility): Likewise.
13391         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13392         (ipa_pta_execute): Use it.
13393         * varpool.c (varpool_remove_node): Remove extra name alias code.
13394         (varpool_mark_needed_node): Likewise.
13395         (varpool_analyze_pending_decls): Analyze aliases.
13396         (assemble_aliases): New functoin.
13397         (varpool_assemble_decl): Use it.
13398         (varpool_create_variable_alias): New function.
13399         (varpool_extra_name_alias): Rewrite.
13400         (varpool_for_node_and_aliases): New function.
13401
13402 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
13403
13404         PR target/49411
13405         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13406         last_arg_constant and last argument doesn't match its predicate,
13407         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13408         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13409         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13410         spelling of error message.
13411         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13412         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13413         const_0_to_255_operand instead of const_int_operand.
13414
13415         Revert:
13416         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13417
13418         * config/i386/sse.md (blendbits): Remove mode attribute.
13419         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13420         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13421         Check integer value of operand 3 in insn constraint.
13422
13423 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
13424
13425         PR rtl-optimization/48542
13426         * reload.c (find_equiv_reg): Stop looking when finding a
13427         setjmp-type call.
13428         * reload1.c (reload_as_needed): Invalidate all reload
13429         registers when crossing a setjmp-type call.
13430
13431 2011-06-16  Jeff Law  <law@redhat.com>
13432
13433         * tree-ssa-threadupdate.c (struct redirection_data): New field
13434         intermediate_edge.
13435         (THREAD_TARGET2): Define.
13436         (redirection_data_eq): Also check that the intermediate edge is equal.
13437         (lookup_redirection_data): Drop useless argument.  Extract the
13438         outgoing_edge and intermediate edge from E.  Callers updated.
13439         (copy_phi_args, update_destination_phis): New functions.
13440         (fix_duplicate_block_edges): Likewise.
13441         (create_edge_and_update_destination_phis): Duplicate all the edges
13442         hung off e->aux.  Use copy_phi_args.
13443         (create_duplicates): Use fix_duplicate_block_edges.
13444         (fixup_template_block): Likewise.
13445         (redirect_edges): If necessary, redirect the joiner block's incoming
13446         edge to the duplicate of the joiner block.
13447         (thread_block): Don't muck up loops when threading through a joiner
13448         block.
13449         (thread_through_loop_header): Handle threading through a joiner block.
13450         (mark_threaded_blocks, register_jump_thread): Likewise.
13451         * tree-flow.h (register_jump_thread): Add new argument.  Callers
13452         updated.
13453         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13454         (thread_across_edge): Handle threading through a joiner block.
13455
13456 2011-06-16  Martin Jambor  <mjambor@suse.cz>
13457
13458         PR tree-optimization/49343
13459         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13460         calculate offset, provide 2nd operand for the new COMPONENT_REF.
13461
13462 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
13463
13464         * config/darwin-protos.h (machopic_select_rtx_section): Move to
13465         inside RTX_CODE ifdef.
13466
13467 2011-06-16  Tom de Vries  <tom@codesourcery.com>
13468
13469         PR target/45098
13470         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13471         Disallow NULL pointer for pointer arithmetic.
13472
13473 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13474
13475         PR target/49398
13476         Revert.
13477         2011-06-10  Wei Guozhi  <carrot@google.com>
13478
13479         PR target/45335
13480         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13481         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13482         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13483         related peephole2.
13484         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13485         related peephole2.
13486         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13487         (arm_legitimate_ldrd_p): New prototype.
13488         (arm_output_ldrd): New prototype.
13489         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13490         (arm_legitimate_ldrd_p): New function.
13491         (arm_output_ldrd): New function.
13492
13493 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
13494
13495         PR middle-end/46500
13496         * doc/tm.texi.in: Update Copyright date.
13497         * doc/tm.texi: Regenerate.
13498         * targhooks.c (default_setup_incoming_varargs): Replace
13499         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13500         (default_pretend_outgoing_varargs_named): Likewise.
13501         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13502         (hook_callee_copies_named): Likewise.
13503         (default_function_arg_advance): Likewise.
13504         (default_function_arg): Likewise.
13505         (default_function_incoming_arg): Likewise.
13506         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13507         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13508         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13509         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13510         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13511         * targhooks.h (default_setup_incoming_varargs): Likewise.
13512         (default_pretend_outgoing_varargs_named): Likewise.
13513         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13514         (hook_callee_copies_named): Likewise.
13515         (default_function_arg_advance): Likewise.
13516         (default_function_arg): Likewise.
13517         (default_function_incoming_arg): Likewise.
13518         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13519         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13520         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13521         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13522         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13523         * target.def (pass_by_reference): Likewise.
13524         (setup_incoming_varargs, strict_argument_naming): Likewise.
13525         (pretend_outgoing_varargs_named, callee_copies): Likewise.
13526         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13527         (function_incoming_arg): Likewise.
13528         * target.h: Don't include "tm.h" .
13529         (cumulative_args_t): New typedef.
13530         [GCC_TM_H] (get_cumulative_args): New static inline function.
13531         [GCC_TM_H] (pack_cumulative_args): Likewise.
13532         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13533         argument type with cumulative_args_t.
13534         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13535         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13536         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13537         (frv_arg_partial_bytes, frv_function_arg): Likewise.
13538         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13539         (frv_function_arg_1): Likewise.
13540         * config/s390/s390.c (s390_pass_by_reference): Likewise.
13541         (s390_function_arg_advance, s390_function_arg): Likewise.
13542         * config/m32c/m32c.c (m32c_function_arg): Likewise.
13543         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13544         (m32c_strict_argument_naming): Likewise.
13545         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13546         (spu_function_arg_advance): Likewise.
13547         (spu_setup_incoming_varargs): Likewise.  Make static.
13548         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13549         Remove prototype.
13550         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13551         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13552         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13553         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13554         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13555         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13556         (mep_pass_by_reference, mep_function_arg): Likewise.
13557         (mep_function_arg_advance): Likewise.
13558         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13559         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13560         (m32r_function_arg, m32r_function_arg_advance): Likewise.
13561         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13562         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13563         (ix86_function_arg, ix86_pass_by_reference): Likewise.
13564         (ix86_setup_incoming_varargs): Likewise.
13565         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13566         (sh_strict_argument_naming): Likewise.
13567         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13568         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13569         (sh_function_arg_advance, sh_function_arg): Likewise.
13570         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13571         (pdp11_function_arg_advance): Likewise.
13572         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13573         Likewise.
13574         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13575         * config/avr/avr.c (avr_function_arg): Likewise.
13576         (avr_function_arg_advance): Likewise.
13577         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13578         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13579         (xtensa_function_arg_1): Likewise.
13580         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13581         Likewise.
13582         (xstormy16_function_arg): Likewise.
13583         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13584         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13585         (fr30_function_arg_advance): Likewise.
13586         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13587         (lm32_function_arg, lm32_function_arg_advance): Likewise.
13588         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13589         (moxie_function_arg, moxie_function_arg_advance): Likewise.
13590         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13591         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13592         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13593         (cris_function_arg, cris_function_incoming_arg): Likewise.
13594         (cris_function_arg_advance, cris_function_arg_1): Likewise.
13595         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13596         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13597         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13598         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13599         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13600         (mn10300_arg_partial_bytes): Likewise.
13601         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13602         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13603         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13604         (ia64_function_arg_1): Likewise.
13605         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13606         (m68k_function_arg): Likewise.
13607         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13608         (rs6000_function_arg, setup_incoming_varargs): Likewise.
13609         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13610         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13611         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13612         (picochip_arg_advance): Likewise.
13613         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13614         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13615         (mcore_function_arg_advance): Likewise.
13616         * config/score/score.c (score_pass_by_reference): Likewise.
13617         (score_function_arg_advance): Likewise.
13618         (score_arg_partial_bytes): Likewise.  Make static.
13619         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13620         * config/arm/arm.c (arm_arg_partial_bytes): Replace
13621         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13622         (arm_function_arg, arm_function_arg_advance): Likewise.
13623         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13624         * config/pa/pa.c (pa_pass_by_reference): Likewise.
13625         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13626         (pa_function_arg): Likewise.
13627         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13628         (mips_function_arg, mips_function_arg_advance): Likewise.
13629         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13630         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13631         * config/vax/vax.c (vax_function_arg): Likewise.
13632         (vax_function_arg_advance): Likewise.
13633         * config/h8300/h8300.c (h8300_function_arg): Likewise.
13634         (h8300_function_arg_advance): Likewise.
13635         * config/v850/v850.c (v850_pass_by_reference): Likewise.
13636         (v850_strict_argument_naming, v850_function_arg): Likewise.
13637         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13638         (v850_setup_incoming_varargs): Likewise.
13639         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13640         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13641         (mmix_function_arg, mmix_pass_by_reference): Likewise.
13642         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13643         with const void *.
13644         * config/bfin/bfin.c (setup_incoming_varargs): Replace
13645         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13646         (bfin_function_arg_advance, bfin_function_arg): Likewise.
13647         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13648         * calls.c (emit_call_1): Change type of args_so_far to
13649         cumulative_args_t.  Changed all callers.
13650         (initialize_argument_information): Likewise.
13651         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13652         * dse.c (get_call_args): Likewise.
13653         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13654         * function.c (pass_by_reference, reference_callee_copied): Likewise.
13655         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13656         New member args_so_far_v.  Changed all users.
13657         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13658         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13659         * config/mips/mips.c (mips_output_args_xfer): Likewise.
13660         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13661         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13662         * config/microblaze/microblaze.c (microblaze_expand_prologue):
13663         Likewise.
13664         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13665         m32r_pass_by_reference.
13666
13667 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
13668
13669         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13670         argument to be a VEC of statements.
13671         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13672         assert that pattern statements have to have their vector type set.
13673         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13674         Change the first argument to be a VEC of statements.  Update
13675         documentation.
13676         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13677         (vect_handle_widen_mult_by_const): New function.
13678         (vect_recog_widen_mult_pattern):  Change the first argument to be a
13679         VEC of statements.  Update documentation.  Check that the constant is
13680         INTEGER_CST.  Support multiplication by a constant that fits an
13681         intermediate type - call vect_handle_widen_mult_by_const.
13682         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13683         call.  Handle additional pattern statements if necessary.
13684
13685 2011-06-16  Nick Clifton  <nickc@redhat.com>
13686
13687         PR target/49427
13688         * config.gcc: Set cpu_type to v850 for any V850 architecture.
13689         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13690         md_file, extra_modes, out_file and extra_options are these are all
13691         deduced from cpu_type.
13692
13693 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13694
13695         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13696         truncation mask to 63.
13697
13698 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13699
13700         PR target/49313
13701         PR target/29524
13702         * longlong.h: Add AVR support:
13703         (count_leading_zeros): New macro.
13704         (count_trailing_zeros): New macro.
13705         (COUNT_LEADING_ZEROS_0): New macro.
13706         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13707         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13708         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13709         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13710         (LIB2FUNCS_EXCLUDE): Add _clz.
13711         * config/avr/libgcc.S (XCALL): Move up in file.
13712         (XJMP): New C Macro.
13713         (DEFUN): New asm macro.
13714         (ENDF): New asm macro.
13715         (__ffssi2): New function.
13716         (__ffshi2): New function.
13717         (__loop_ffsqi2): New function.
13718         (__ctzsi2): New function.
13719         (__ctzhi2): New function.
13720         (__clzdi2): New function.
13721         (__clzsi2): New function.
13722         (__clzhi2): New function.
13723         (__paritydi2): New function.
13724         (__paritysi2): New function.
13725         (__parityhi2): New function.
13726         (__parityqi2): New function.
13727         (__popcounthi2): New function.
13728         (__popcountsi2): New function.
13729         (__popcountdi2): New function.
13730         (__popcountqi2): New function.
13731         (__bswapsi2): New function.
13732         (__bswapdi2): New function.
13733         (__ashldi3): New function.
13734         (__ashrdi3): New function.
13735         (__lshrdi3): New function.
13736         Fix suspicous lines.
13737
13738 2011-06-16  Richard Guenther  <rguenther@suse.de>
13739
13740         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13741         the same as x != 0.
13742         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13743         to (bool) X & 1.
13744         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13745         equality compares against zero for the lower bit.
13746
13747 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
13748
13749         PR tree-optimization/49419
13750         * tree-vrp.c (execute_vrp): Call init_range_assertions
13751         before estimate_numbers_of_iterations, call
13752         free_number_of_iterations_estimates before calling
13753         remove_range_assertions.
13754
13755 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13756
13757         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13758         (struct partial_schedule): Add rows_length field.
13759         (verify_partial_schedule): Check rows_length.
13760         (ps_insert_empty_row): Handle rows_length.
13761         (create_partial_schedule): Likewise.
13762         (free_partial_schedule): Likewise.
13763         (reset_partial_schedule): Likewise.
13764         (create_ps_insn): Remove rest_count argument.
13765         (remove_node_from_ps): Update rows_length.
13766         (add_node_to_ps): Update rows_length and call create_ps_insn
13767         without passing row_rest_count.
13768         (rotate_partial_schedule): Update rows_length.
13769
13770 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13771
13772         * ddg.c (add_intra_loop_mem_dep): New function.
13773         (build_intra_loop_deps): Call it.
13774
13775 2011-06-13  Jeff Law  <law@redhat.com>
13776
13777         * df-problems.c (df_lr_local_compute): Manually CSE
13778         PIC_OFFSET_TABLE_REGNUM.
13779         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
13780         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
13781
13782 2011-06-13  Jan Hubicka  <jh@suse.cz>
13783
13784         * cgraphunit.c (handle_alias_pairs): New function.
13785         (cgraph_finalize_compilation_unit): Use it.
13786         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13787         as externally visible.
13788
13789 2011-06-15  Richard Guenther  <rguenther@suse.de>
13790
13791         * expr.c (expand_expr_real_2): Reduce all integral types to
13792         bitfield precision.
13793         (expand_expr_real_1): Likewise.
13794
13795 2011-06-15  Martin Jambor  <mjambor@suse.cz>
13796
13797         PR tree-optimization/48613
13798         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13799         ipa_node_params_vector is NULL.
13800
13801 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
13802
13803         PR debug/49382
13804         * dwarf2out.c (dw_loc_list_node): Add force field.
13805         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13806         location in the list, even if it is modified before first real insn.
13807         (output_loc_list): Emit empty ranges with force flag set.
13808         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13809
13810 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
13811
13812         PR target/49349
13813         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13814         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
13815         above a fence.  Update comments.
13816         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13817         placed just above it.  Do not allow NULL place_to_insert.
13818
13819 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
13820
13821         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13822         (slpeel_tree_peel_loop_to_edge): Don't call
13823         remove_dead_stmts_from_loop.
13824         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13825         remove irrelevant pattern statements.  For irrelevant statements
13826         check if it is the last statement of a detected pattern, use
13827         corresponding pattern statement instead.
13828         (destroy_loop_vec_info): No need to remove pattern statements,
13829         only free stmt_vec_info.
13830         (vect_transform_loop): For irrelevant statements check if it is
13831         the last statement of a detected pattern, use corresponding
13832         pattern statement instead.
13833         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13834         pattern statements.  Set basic block for the new statement.
13835         (vect_pattern_recog): Update documentation.
13836         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13837         operands of pattern statements.
13838         (vectorizable_call): Fix printing.  In case of a pattern statement
13839         use the lhs of the original statement when creating a dummy
13840         statement to replace the original call.
13841         (vect_analyze_stmt): For irrelevant statements check if it is
13842         the last statement of a detected pattern, use corresponding
13843         pattern statement instead.
13844         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13845         statements use gsi of the original statement.
13846
13847 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13848
13849         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13850         common/common-target-def.h.
13851         * target.def (default_target_flags, handle_option,
13852         supports_split_stack, optimization_table, init_struct,
13853         except_unwind_info, unwind_tables_default, have_named_sections):
13854         Move to common/common-target.def.
13855         * target.h (enum opt_levels, struct default_options): Move to
13856         common/common-target.h.
13857         * targhooks.c (default_except_unwind_info,
13858         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13859         default_target_handle_option, empty_optimization_table): Move to
13860         common/common-targhooks.c.
13861         * targhooks.h (default_except_unwind_info,
13862         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13863         default_target_handle_option, empty_optimization_table): Move to
13864         common/common-targhooks.h.
13865         * common/common-target-def.h: Include common/common-targhooks.h.
13866         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13867         defined.
13868         * common/common-target.def (handle_option, option_init_struct,
13869         option_optimization_table, default_target_flags,
13870         except_unwind_info, supports_split_stack, unwind_tables_default,
13871         have_named_sections): Move from target.def.
13872         (HOOK_PREFIX): Undefine at end of file.
13873         * common/common-target.h: Include input.h.
13874         (enum opt_levels, struct default_options): Move from target.h.
13875         * common/common-targhooks.c, common/common-targhooks.h: New.
13876         * config.gcc (target_has_targetm_common): Default to yes.
13877         (moxie*): Set target_has_targetm_common=no.
13878         (hppa*-*-*): Don't set target_has_targetm_common=yes.
13879         * doc/tm.texi: Regenerate.
13880         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13881         (C_TARGET_DEF_H): Add common/common-targhooks.h.
13882         (GCC_OBJS): Remove vec.o.
13883         (OBJS): Remove hooks.o and vec.o.
13884         (OBJS-libcommon-target): Add vec.o, hooks.o and
13885         common/common-targhooks.o.
13886         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13887         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13888         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13889         cfglayout.o, $(out_object_file), $(common_out_object_file)):
13890         Update dependencies.
13891         (common/common-targhooks.o): New.
13892         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
13893         * common/config/pa/pa-common.c: Include more headers.  Take
13894         copyright dates from pa.c.
13895         (pa_option_optimization_table, pa_handle_option,
13896         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13897         TARGET_HANDLE_OPTION): Move from pa.c.
13898         * common/config/alpha/alpha-common.c,
13899         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13900         common/config/bfin/bfin-common.c,
13901         common/config/cris/cris-common.c,
13902         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13903         common/config/h8300/h8300-common.c,
13904         common/config/i386/i386-common.c,
13905         common/config/ia64/ia64-common.c,
13906         common/config/iq2000/iq2000-common.c,
13907         common/config/lm32/lm32-common.c,
13908         common/config/m32c/m32c-common.c,
13909         common/config/m32r/m32r-common.c,
13910         common/config/m68k/m68k-common.c,
13911         common/config/mcore/mcore-common.c,
13912         common/config/mep/mep-common.c,
13913         common/config/microblaze/microblaze-common.c,
13914         common/config/mips/mips-common.c,
13915         common/config/mmix/mmix-common.c,
13916         common/config/mn10300/mn10300-common.c,
13917         common/config/pdp11/pdp11-common.c,
13918         common/config/picochip/picochip-common.c,
13919         common/config/rs6000/rs6000-common.c,
13920         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13921         common/config/score/score-common.c, common/config/sh/sh-common.c,
13922         common/config/sparc/sparc-common.c,
13923         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13924         common/config/vax/vax-common.c,
13925         common/config/xstormy16/xstormy16-common.c,
13926         common/config/xtensa/xtensa-common.c: New.
13927         * config/alpha/alpha.c: Include common/common-target.h.
13928         (alpha_option_optimization_table, alpha_handle_option,
13929         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13930         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13931         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13932         * config/arm/arm.c (arm_option_optimization_table,
13933         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13934         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13935         arm-common.c.
13936         * config/avr/avr.c (avr_option_optimization_table,
13937         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13938         to avr-common.c.
13939         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13940         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13941         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13942         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13943         * config/cris/cris.c (cris_option_optimization_table,
13944         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13945         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13946         cris-common.c.
13947         * config/fr30/fr30.c (fr30_option_optimization_table,
13948         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13949         to fr30-common.c.
13950         * config/frv/frv.c (frv_option_optimization_table,
13951         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13952         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13953         * config/h8300/h8300.c (h8300_option_optimization_table,
13954         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13955         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13956         * config/i386/i386-protos.h (ix86_handle_option): Declare.
13957         * config/i386/i386.c: Include common/common-target.h.
13958         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13959         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13960         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
13961         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
13962         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
13963         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
13964         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
13965         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
13966         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
13967         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
13968         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
13969         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
13970         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
13971         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
13972         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
13973         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
13974         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
13975         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
13976         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
13977         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
13978         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
13979         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
13980         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
13981         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
13982         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
13983         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
13984         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
13985         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
13986         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
13987         ix86_option_optimization_table, ix86_option_init_struct,
13988         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
13989         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13990         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
13991         i386-common.c.
13992         * config/i386/t-i386 (i386.o): Update dependencies.
13993         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
13994         * config/ia64/ia64.c (ia64_option_optimization_table,
13995         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13996         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13997         ia64_handle_option): Move to ia64-common.c.
13998         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
13999         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
14000         * config/lm32/lm32.c (lm32_option_optimization_table,
14001         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14002         to lm32-common.c.
14003         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
14004         m32c-common.c.
14005         * config/m32r/m32r.c (m32r_option_optimization_table,
14006         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14007         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14008         m32r_handle_option): Move to m32r-common.c.
14009         (m32r_memory_move_cost): Remove comment referring to
14010         TARGET_HANDLE_OPTION.
14011         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
14012         Move to m68k-common.c.
14013         * config/mcore/mcore.c (mcore_option_optimization_table,
14014         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14015         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
14016         * config/mep/mep.c (mep_option_optimization_table,
14017         mep_handle_option, TARGET_HANDLE_OPTION,
14018         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
14019         Move to mep-common.c.
14020         * config/microblaze/microblaze.c
14021         (microblaze_option_optimization_table,
14022         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14023         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
14024         * config/mips/mips.c (mips_handle_option,
14025         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14026         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
14027         mips-common.c.
14028         * config/mmix/mmix.c (mmix_option_optimization_table,
14029         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14030         Move to mmix-common.c.
14031         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
14032         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
14033         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14034         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
14035         * config/pa/pa.c: Include common/common-target.h.
14036         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14037         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14038         pa_handle_option): Move to pa-common.c.
14039         (pa_option_override): Use targetm_common.except_unwind_info.
14040         (pa_asm_output_mi_thunk, pa_function_section): Use
14041         targetm_common.have_named_sections.
14042         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
14043         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14044         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14045         pdp11_handle_option, pdp11_option_init_struct): Move to
14046         pdp11-common.c.
14047         * config/picochip/picochip.c (picochip_option_optimization_table,
14048         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14049         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14050         * config/rs6000/rs6000.c: Include common/common-target.h.
14051         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14052         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14053         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14054         rs6000_handle_option): Move to rs6000-common.c.
14055         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14056         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14057         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14058         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14059         * config/s390/s390.c (processor_flags_table,
14060         s390_option_optimization_table, s390_option_init_struct,
14061         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14062         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14063         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14064         * config/s390/s390.h (processor_flags_table): Declare.
14065         * config/score/score.c (score_option_optimization_table,
14066         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14067         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14068         score_handle_option): Move to score-common.c.
14069         * config/sh/sh.c (sh_option_optimization_table,
14070         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14071         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14072         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14073         * config/sparc/sparc.c: Include common/common-target.h.
14074         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14075         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14076         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14077         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14078         spu_option_init_struct): Move to spu-common.c.
14079         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14080         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14081         * config/v850/v850.c (small_memory_physical_max,
14082         v850_handle_memory_optionn v850_handle_option,
14083         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14084         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14085         v850-common.c.
14086         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14087         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14088         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14089         Move to xtensa-common.c.
14090         * cfglayout.c: Include common/common-target.h.
14091         (fixup_reorder_chain): Use targetm_common.have_named_sections.
14092         * cfgrtl.c: Include common/common-target.h.
14093         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14094         targetm_common.have_named_sections.
14095         * dbxout.c: Include common/common-target.h.
14096         (dbxout_function_end): Use targetm_common.have_named_sections.
14097         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14098         targetm_common.except_unwind_info.
14099         * dwarf2out.c: Include common/common-target.h.
14100         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14101         dwarf2out_begin_prologue, dwarf2out_frame_init,
14102         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14103         targetm_common.except_unwind_info.
14104         * except.c: Include common/common-target.h.
14105         (init_eh, finish_eh_generation,
14106         output_one_function_exception_table): Use
14107         targetm_common.except_unwind_info.
14108         (switch_to_exception_section): Use targetm_common.have_named_sections.
14109         * explow.c: Include common/common-target.h.
14110         * expr.c: Include common/common-target.h.
14111         (build_personality_function): Use targetm_common.except_unwind_info.
14112         * function.c: Include common/common-target.h.
14113         (expand_function_end): Use targetm_common.except_unwind_info.
14114         * haifa-sched.c: Include common/common-target.h.
14115         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14116         * lto-opts.c: Include common/common-target.h instead of target.h.
14117         (lto_reissue_options): Use targetm_common.handle_option.
14118         * opts.c: Include common/common-target.h.
14119         (target_handle_option): Use targetm_common.handle_option.
14120         (init_options_struct): Update comment referring to
14121         targetm.target_option.optimization.  Use
14122         targetm_common.default_target_flags,
14123         targetm_common.unwind_tables_default and
14124         targetm_common.option_init_struct.
14125         (default_options_optimization): Use
14126         targetm_common.option_optimization_table.
14127         (finish_options): Use targetm_common.except_unwind_info,
14128         targetm_common.unwind_tables_default,
14129         targetm_common.have_named_sections and
14130         targetm_common.supports_split_stack.
14131         * toplev.c: Include common/common-target.h.
14132         (process_options): Use targetm_common.have_named_sections.
14133         * tree-tailcall.c: Include common/common-target.h.
14134         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14135         * tree.c: Include common/common-target.h.
14136         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14137         * varasm.c: Include common/common-target.h.
14138         (resolve_unique_section, hot_function_section,
14139         default_function_section): Use targetm_common.have_named_sections.
14140
14141 2011-06-14  Easwaran Raman  <eraman@google.com>
14142
14143         PR rtl-optimization/44194
14144         * dse.c: Include tree-flow.h
14145         (insn_info): Add new field non_frame_wild_read.
14146         (group_info): Add new fields escaped_n and escaped_p.
14147         (kill_on_calls): New variable.
14148         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14149         (dse_step0): Initialize kill_on_calls.
14150         (can_escape): New function.
14151         (set_usage_bits): Add additional parameter; record information
14152         about escaped locations.
14153         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14154         (dse_step2_nospill): Set kill_on_calls based on
14155         group->escaped_n and group->escaped_n.
14156         (add_wild_read): Refactor into...
14157         (reset_active_stores): ... New function, and
14158         (free_read_records): ... New function.
14159         (add_non_frame_wild_read): New function.
14160         (scan_insn): Call add_non_frame_wild_read on non-const calls.
14161         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14162         (dse_step5_nospill): Call scan_reads_nospill for instructions
14163         marked as non_frame_wild_read.
14164         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14165
14166 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
14167
14168         * common/common-target-def.h, common/common-target.def,
14169         common/common-target.h, common/config/default-common.c,
14170         common/config/pa/pa-common.c: New files.
14171         * Makefile.in (common_out_file, common_out_object_file,
14172         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14173         (OBJS-libcommon-target): Include $(common_out_object_file).
14174         (prefix.o): Update dependencies.
14175         ($(common_out_object_file), common/common-target-hooks-def.h,
14176         s-common-target-hooks-def-h): New.
14177         (s-tm-texi): Also check timestamp on common-target.def.
14178         (build/genhooks.o): Update dependencies.
14179         * config.gcc (common_out_file, target_has_targetm_common): Define.
14180         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14181         TARGET_ALWAYS_STRIP_DOTDOT.
14182         * configure.ac (common_out_object_file): Define.
14183         (common_out_file, common_out_object_file): Substitute.
14184         (common): Create directory.
14185         * configure: Regenerate.
14186         * doc/tm.texi.in (targetm_common): Document.
14187         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
14188         * doc/tm.texi: Regenerate.
14189         * genhooks.c (hook_array): Also include common/common-target.def.
14190         * prefix.c (tm.h): Don't include.
14191         (common/common-target.h): Include.
14192         (ALWAYS_STRIP_DOTDOT): Don't define.
14193         (update_path): Use targetm_common.always_strip_dotdot instead of
14194         ALWAYS_STRIP_DOTDOT.
14195         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
14196
14197 2011-06-14  David Li  <davidxl@google.com>
14198
14199         * passes.c (execute_function_todo): Remove TODO_dump_func.
14200         (execute_one_pass): Remove TODO_dump_func.
14201         (execute_function_dump): New function.
14202         * tree-vrp.c: Remove TODO_dump_func.
14203         * regrename.c: Remove TODO_dump_func.
14204         * fwprop.c: Remove TODO_dump_func.
14205         * tree-into-ssa.c: Remove TODO_dump_func.
14206         * tree-complex.c: Remove TODO_dump_func.
14207         * tracer.c: Remove TODO_dump_func.
14208         * tree-loop-distribution.c: Remove TODO_dump_func.
14209         * postreload-gcse.c: Remove TODO_dump_func.
14210         * postreload.c: Remove TODO_dump_func.
14211         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
14212         * tree-tailcall.c: Remove TODO_dump_func.
14213         * ipa-cp.c: Remove TODO_dump_func.
14214         * final.c: Remove TODO_dump_func.
14215         * tree-emutls.c: Remove TODO_dump_func.
14216         * omp-low.c: Remove TODO_dump_func.
14217         * tree-ssa-dse.c: Remove TODO_dump_func.
14218         * tree-ssa-uncprop.c: Remove TODO_dump_func.
14219         * auto-inc-dec.c: Remove TODO_dump_func.
14220         * reorg.c: Remove TODO_dump_func.
14221         * tree-ssa-copyrename.c: Remove TODO_dump_func.
14222         * tree-ssa-ccp.c: Remove TODO_dump_func.
14223         * compare-elim.c: Remove TODO_dump_func.
14224         * mode-switching.c: Remove TODO_dump_func.
14225         * modulo-sched.c: Remove TODO_dump_func.
14226         * tree-call-cdce.c: Remove TODO_dump_func.
14227         * cse.c: Remove TODO_dump_func.
14228         * web.c: Remove TODO_dump_func.
14229         * tree-stdarg.c: Remove TODO_dump_func.
14230         * lto-streamer-out.c: Remove TODO_dump_func.
14231         * tree-ssa-math-opts.c: Remove TODO_dump_func.
14232         * tree-ssa-dom.c: Remove TODO_dump_func.
14233         * tree-nrv.c: Remove TODO_dump_func.
14234         * loop-init.c: Remove TODO_dump_func.
14235         * gimple-low.c: Remove TODO_dump_func.
14236         * ipa-inline.c: Remove TODO_dump_func.
14237         * tree-ssa-sink.c: Remove TODO_dump_func.
14238         * jump.c: Remove TODO_dump_func.
14239         * ifcvt.c: Remove TODO_dump_func.
14240         * tree-ssa-loop.c: Remove TODO_dump_func.
14241         * recog.c: Remove TODO_dump_func.
14242         * dse.c: Remove TODO_dump_func.
14243         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
14244         * matrix-reorg.c: Remove TODO_dump_func.
14245         * tree-eh.c: Remove TODO_dump_func.
14246         * regmove.c: Remove TODO_dump_func.
14247         * function.c: Remove TODO_dump_func.
14248         * tree-vectorizer.c: Remove TODO_dump_func.
14249         * ipa-split.c: Remove TODO_dump_func.
14250         * gcse.c: Remove TODO_dump_func.
14251         * tree-if-conv.c: Remove TODO_dump_func.
14252         * init-regs.c: Remove TODO_dump_func.
14253         * tree-ssa-phiopt.c: Remove TODO_dump_func.
14254         * implicit-zee.c: Remove TODO_dump_func.
14255         * lower-subreg.c: Remove TODO_dump_func.
14256         * bt-load.c: Remove TODO_dump_func.
14257         * tree-dfa.c: Remove TODO_dump_func.
14258         * except.c: Remove TODO_dump_func.
14259         * emit-rtl.c: Remove TODO_dump_func.
14260         * store-motion.c: Remove TODO_dump_func.
14261         * cfgexpand.c: Remove TODO_dump_func.
14262         * tree-cfgcleanup.c: Remove TODO_dump_func.
14263         * cfgcleanup.c: Remove TODO_dump_func.
14264         * tree-ssa-pre.c: Remove TODO_dump_func.
14265         * tree-sra.c: Remove TODO_dump_func.
14266         * tree-mudflap.c: Remove TODO_dump_func.
14267         * tree-ssa-copy.c: Remove TODO_dump_func.
14268         * cfglayout.c: Remove TODO_dump_func.
14269         * tree-ssa-forwprop.c: Remove TODO_dump_func.
14270         * tree-ssa-dce.c: Remove TODO_dump_func.
14271         * ira.c: Remove TODO_dump_func.
14272         * tree-ssa.c: Remove TODO_dump_func.
14273         * integrate.c: Remove TODO_dump_func.
14274         * tree-optimize.c: Remove TODO_dump_func.
14275         * tree-ssa-phiprop.c: Remove TODO_dump_func.
14276         * tree-object-size.c: Remove TODO_dump_func.
14277         * combine.c: Remove TODO_dump_func.
14278         * bb-reorder.c: Remove TODO_dump_func.
14279         * cprop.c: Remove TODO_dump_func.
14280         * var-tracking.c: Remove TODO_dump_func.
14281         * tree-profile.c: Remove TODO_dump_func.
14282         * tree-vect-generic.c: Remove TODO_dump_func.
14283         * reg-stack.c: Remove TODO_dump_func.
14284         * sched-rgn.c: Remove TODO_dump_func.
14285         * tree-ssa-structalias.c: Remove TODO_dump_func.
14286         * tree-switch-conversion.c: Remove TODO_dump_func.
14287         * tree-cfg.c: Remove TODO_dump_func.
14288         * tree-ssa-reassoc.c: Remove TODO_dump_func.
14289         * combine-stack-adj.c: Remove TODO_dump_func.
14290         * dce.c: Remove TODO_dump_func.
14291         * tree-ssanames.c: Remove TODO_dump_func.
14292         * regcprop.c: Remove TODO_dump_func.
14293
14294 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14295
14296         PR middle-end/47364
14297         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
14298         and properly handle result not in Pmode.
14299
14300 2011-06-14  Robert Millan  <rmh@gnu.org>
14301
14302         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
14303         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
14304         `config/linux.h'.
14305
14306         * config/i386/kfreebsd-gnu64.h: New file.
14307         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
14308         with `i386/kfreebsd-gnu64.h'.
14309
14310         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
14311         (GNU_USER_LINK_EMULATION64): New macros.
14312         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
14313         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
14314         of hardcoding `elf_i386' and `elf_x86_64'.
14315
14316 2011-06-14  Nick Clifton  <nickc@redhat.com>
14317
14318         PR target/49403
14319         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
14320
14321         PR target/49402
14322         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
14323
14324 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
14325
14326         PR fortran/49103
14327         * tree.h (DECL_NONSHAREABLE): Define.
14328         (struct tree_decl_common): Change decl_common_unused to
14329         decl_nonshareable_flag.
14330         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
14331         Ignore vars with DECL_NONSHAREABLE bit set.
14332         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14333         on stores to automatic aggregate vars.
14334
14335         PR rtl-optimization/49390
14336         Revert:
14337         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
14338
14339         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14340         MEM_ALIAS_SET.
14341
14342 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
14343             Tom de Vries  <tom@codesourcery.com>
14344
14345         PR target/45098
14346         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14347         Document changed semantics.
14348         (max_stmt_executions, max_stmt_executions_int): Declare.
14349         * tree-data-ref.c (estimated_loop_iterations)
14350         (estimated_loop_iterations_int): Move functions...
14351         * tree-ssa-loop-niter.c (estimated_loop_iterations)
14352         (estimated_loop_iterations_int): here.
14353         (record_estimate): Change nb_iterations_upper_bound and
14354         nb_iterations_estimate semantics.
14355         (max_stmt_executions, max_stmt_executions_int): New function.
14356         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14357         (max_stmt_executions_tree): this.
14358         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14359         estimated_loop_iterations_tree.
14360         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14361         max_stmt_executions_int instead of estimated_loop_iterations_int.
14362         * predict.c (predict_loops): Idem.
14363         * tree-parloops.c (parallelize_loops): Idem.
14364         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14365         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14366         (init_omega_for_ddr_1): Idem.
14367         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14368         (loop_prefetch_arrays): Idem
14369         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14370         max_stmt_executions instead of estimated_loop_iterations.
14371         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14372         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14373         instead of nb_iterations_upper_bound.
14374
14375 2011-06-13  Jan Hubicka  <jh@suse.cz>
14376
14377         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14378
14379 2011-06-14  Richard Henderson  <rth@redhat.com>
14380
14381         PR debug/48459
14382         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14383         (based_loc_descr): Assert it's true.
14384         (compute_frame_pointer_to_fb_displacement): Set it, rather than
14385         aborting immediately.
14386
14387 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
14388             Mingfeng Wu  <mingfeng@faraday-tech.com>
14389
14390         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14391
14392 2011-06-13  Jan Hubicka  <jh@suse.cz>
14393
14394         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14395
14396 2011-06-13  Jan Hubicka  <jh@suse.cz>
14397
14398         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14399         similarly to DECL_COMDAT.
14400         * cgraphunit.c (cgraph_analyze_function): Likewise.
14401         * ipa.c (function_and_variable_visibility): Likewise.
14402
14403 2011-06-13  Jan Hubicka  <jh@suse.cz>
14404
14405         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14406         BINFO_VIRTUALS when streaming for ltrans unit.
14407
14408 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
14409
14410         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14411         (movdi_internal64): Same.
14412
14413 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
14414
14415         PR target/44618
14416         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14417         a set of similar patterns, where the MATCH_OPERAND for the function
14418         argument is replaced with individual references to hardware registers.
14419         (save_fpregs_<mode>): Ditto
14420         (restore_gpregs_<mode>): Ditto
14421         (return_and_restore_gpregs_<mode>): Ditto
14422         (return_and_restore_fpregs_<mode>): Ditto
14423         (return_and_restore_fpregs_aix_<mode>): Ditto
14424
14425 2011-06-13  Jan Hubicka  <jh@suse.cz>
14426
14427         * ipa-utils.c (postorder_stack): New structure.
14428         (ipa_reverse_postorder): Handle aliases.
14429
14430 2011-06-13  Jan Hubicka  <jh@suse.cz>
14431
14432         * ipa-inline.c (reset_edge_caches): Walk aliases.
14433         (update_caller_keys): Do not test inlinability of aliases.
14434         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14435         (do_estimate_growth): Fix typo.
14436
14437 2011-06-13  Jan Hubicka  <jh@suse.cz>
14438
14439         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14440         (can_remove_node_now_p): ... here; handle same comdat groups.
14441         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14442         (inline_call): Update use of can_remove_node_now_p.
14443
14444 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14445
14446         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14447         condition to disallow non-identical memory locations.
14448         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14449         preference to bit manipulation instructions.
14450
14451 2011-06-13  Jan Hubicka  <jh@suse.cz>
14452
14453         * cgraph.c (cgraph_for_node_thunks_and_aliases,
14454         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14455         (nonremovable_p): New function.
14456         (cgraph_can_remove_if_no_direct_calls_p): New function.
14457         (used_from_object_file_p): New functoin.
14458         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14459         references from aliases.
14460         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14461         * ipa-inline.c (check_caller_edge): New function.
14462         (want_inline_function_called_once_p): Use it; accept aliases called
14463         once, too.
14464         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14465
14466 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14467
14468         PR target/48454
14469         * config/arm/neon.md (vec_pack_trunc): Set the lengths
14470         correctly for the case with Quad vectors.
14471
14472 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
14473            Ira Rosen  <ira.rosen@linaro.org>
14474
14475         PR tree-optimization/49352
14476         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14477         all, make sure loop_use_stmt after the loop is a def stmt of a used
14478         SSA_NAME that is the only one defined inside of the loop.  Don't
14479         check for COND_EXPR and GIMPLE_BINARY_RHS.
14480         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14481         check_reduction is true.
14482
14483 2011-06-11  Jan Hubicka  <jh@suse.cz>
14484
14485         PR middle-end/49373
14486         * ipa.c (cgraph_externally_visible_p): Check resolution info.
14487
14488 2011-06-11  Jan Hubicka  <jh@suse.cz>
14489
14490         PR middle-end/48836
14491         * ipa-inline-transform.c: Include tree-pass.h
14492         (inline_transform): Set TODO_update_ssa_only_virtuals.
14493         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14494
14495 2011-06-11  Jan Hubicka  <jh@suse.cz>
14496
14497         PR middle-end/49378
14498         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14499         aliases and thunks.
14500
14501 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
14502
14503         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14504         Take number of iterations to peel into account for equally frequent
14505         misalignment values.
14506
14507 2011-06-11  Jan Hubicka  <jh@suse.cz>
14508
14509         * lto-streamer-out.c (produce_symtab): Stream out the newly
14510         represented aliases.
14511
14512 2011-06-11  Jan Hubicka  <jh@suse.cz>
14513
14514         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14515         varying args.
14516         (ipa_update_after_lto_read): Likewise.
14517         (ipa_write_node_info): Do not sream call_with_var_arguments.
14518         (ipa_read_node_info): Likewise.
14519
14520 2011-06-11  Jan Hubicka  <jh@suse.cz>
14521
14522         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14523
14524 2011-06-11  Jan Hubicka  <jh@suse.cz>
14525
14526         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14527         (lto_symtab_resolve_can_prevail_p): Likewise.
14528         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14529         * cgraph.c (same_body_aliases_done): New global var.
14530         (cgraph_same_body_alias_1): Rename to ...
14531         (cgraph_create_function_alias): ... this one; reorg to new
14532         representation.
14533         (cgraph_same_body_alias): Use cgraph_create_function_alias;
14534         record references when asked to.
14535         (cgraph_add_thunk): Fix formating.
14536         (cgraph_get_node): Kill same body alias code.
14537         (cgraph_node_for_asm): Likewise.
14538         (cgraph_remove_same_body_alias): Remove.
14539         (cgraph_remove_node): Kill same body alias code.
14540         (cgraph_mark_address_taken_node): Mark also the aliased function
14541         as having address taken.
14542         (dump_cgraph_node): Dump same body aliases.
14543         (cgraph_for_node_thunks_and_aliases): Update for new alias
14544         representation.
14545         (cgraph_for_node_and_aliases): Likewise.
14546         * cgraph.h (same_body): Kll pointer.
14547         (same_body_alias): Update comment.
14548         (same_body_aliases_done): Declare.
14549         (cgraph_remove_same_body_alias): Remove declaration.
14550         (cgraph_create_function_alias): Declare.
14551         (cgraph_process_same_body_aliases): Declare.
14552         (cgraph_function_with_gimple_body_p): Check for alias.
14553         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14554         (cgraph_alias_aliased_node): New function.
14555         (cgraph_function_node): Update for new aliases.
14556         (cgraph_function_or_thunk_node): Likewise.
14557         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14558         (inline_call): Remove dead aliases.
14559         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14560         name hack for same body aliases.
14561         (clone_of_p): Look through aliases.
14562         (verify_cgraph_node): Verify aliases.
14563         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14564         (cgraph_process_same_body_aliases): New function.
14565         (process_function_and_variable_attributes): Disable weakref warning on
14566         alias.
14567         (cgraph_analyze_functions): Handle aliases.
14568         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14569         (assemble_thunks): Rename to ...
14570         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14571         (cgraph_expand_function): Remove alias output code.
14572         (cgraph_output_in_order): Skip aliases.
14573         (cgraph_preserve_function_body_p): Aliases don't need preserving.
14574         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14575         (ipa_record_reference): Do not assert on alias references.
14576         (ipa_ref_has_aliases_p): New function.
14577         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14578         (ipa_ref_has_aliases_p): Declare.
14579         * lto-cgraph.c (lto_output_node): Handle aliases.
14580         (input_node): Likewise.
14581         * lto-streamer-out.c (lto_output): Skip aliases.
14582         (produce_symtab): Kill same_body_alias code.
14583         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14584         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14585         * ipa-inline.c (update_caller_keys): Walk aliases.
14586         (inline_small_functions): Fix thinko in previous patch.
14587         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14588         (function_and_variable_visibility): Do not walk same body aliases.
14589         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14590         (ipa_pta_execute): Use it.
14591
14592 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14593
14594         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14595         (*vec_dupv2df): Rename from vec_dupv2df.
14596         (vec_dupv2df): New expander.
14597
14598 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14599
14600         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14601
14602 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14603
14604         * config/i386/i386.md: Use default value in "isa" attribute.
14605         * config/i386/sse.md: Ditto.
14606         * config/i386/mmx.md: Ditto.
14607
14608 2011-06-10  Wei Guozhi  <carrot@google.com>
14609
14610         PR target/45335
14611         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14612         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14613         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14614         related peephole2.
14615         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14616         related peephole2.
14617         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14618         (arm_legitimate_ldrd_p): New prototype.
14619         (arm_output_ldrd): New prototype.
14620         * config/arm/arm.c (arm_check_ldrd_operands): New function.
14621         (arm_legitimate_ldrd_p): New function.
14622         (arm_output_ldrd): New function.
14623
14624 2011-06-10  David Li  <davidxl@google.com>
14625
14626         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14627         * passes.c (passr_eq): New function.
14628         (create_pass_tab): New function.
14629         (pass_traverse): New function.
14630         (dump_one_pass): New function.
14631         (dump_pass_list): New function.
14632         (dump_passes): New function.
14633
14634 2011-06-10  Jan Hubicka  <jh@suse.cz>
14635
14636         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14637         setting the nothrow flag.
14638         * ipa-reference.c (propagate): Skip aliases.
14639         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14640         (propagate_nothrow): Skip aliases; do not update cgraph.
14641         (local_pure_const): Do not update cgraph.
14642         * tree-profile.c (tree_profiling): Do fixup_cfg.
14643
14644 2011-06-10  Jan Hubicka  <jh@suse.cz>
14645
14646         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14647         (cgraph_local_node_p): ... here; handle aliases.
14648         (has_addr_references_p): Break out from ...;
14649         (cgraph_remove_unreachable_nodes) ... here.
14650
14651 2011-06-10  Jan Hubicka  <jh@suse.cz>
14652
14653         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14654         * common.opt (flag_inline_functions_called_once): Do not
14655         initialize to 1.
14656
14657 2011-06-10  Jan Hubicka  <jh@suse.cz>
14658
14659         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14660         (ipcp_initialize_node_lattices): Do not deal with aliases;
14661         Do not try to propagate through thunks.
14662         (ipcp_change_tops_to_bottom): Do not deal with aliases.
14663
14664 2011-06-10  Jan Hubicka  <jh@suse.cz>
14665
14666         * ipa-prop.c (ipa_write_node_info): Stream jump functions
14667         for indirect calls.
14668         (ipa_read_node_info): Likewise.
14669
14670 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14671
14672         PR lto/49302
14673         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14674         (build_and_insert_call): Likewise.
14675         (build_and_insert_ref): New.
14676         (gimple_expand_builtin_pow): Minor cleanup.
14677         (gimple_expand_builtin_cabs): New.
14678         (execute_cse_sincos): Add case for BUILT_IN_CABS.
14679
14680 2011-06-10  Jan Hubicka  <jh@suse.cz>
14681
14682         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14683         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14684         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14685         (ipcp_propagate_stage): Skip aliases when propagating.
14686         (ipcp_need_redirect_p): Skip aliases.
14687         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14688         collect_callers_of_node.
14689         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14690         for aliases.
14691         (ipa_compute_jump_functions): Look through aliases.
14692
14693 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14694
14695         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14696
14697 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14698
14699         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14700         Adjust comments.
14701         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14702
14703 2011-06-10  Jan Hubicka  <jh@suse.cz>
14704
14705         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14706         Update call of gimple_get_virt_method_for_binfo.
14707         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14708         refuse_thunks parameter.
14709         (gimple_fold_call): Update.
14710         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14711
14712 2011-06-10  Jan Hubicka  <jh@suse.cz>
14713
14714         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14715         (not_all_callers_have_enough_arguments_p): ... this one; turn into
14716         worker for cgraph_for_node_and_aliases.
14717         (convert_callers_for_node): Break out from ...
14718         (convert_callers): ... here.
14719         (modify_function): Use collect_callers_of_node.
14720         (ipa_early_sra): Use cgraph_for_node_and_aliases.
14721
14722 2011-06-10  Richard Guenther  <rguenther@suse.de>
14723
14724         PR tree-optimization/49361
14725         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14726         when not already in gimple form.
14727
14728 2011-06-10  Richard Guenther  <rguenther@suse.de>
14729
14730         PR bootstrap/49344
14731         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14732         FOR_EACH_PHI_OR_STMT_USE.
14733
14734 2011-06-10  Jan Hubicka  <jh@suse.cz>
14735
14736         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14737         (clone_inlined_nodes): ... here.
14738         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14739         to real destination prior inlining.
14740         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14741         can_early_inline_edge_p, want_early_inline_function_p,
14742         want_early_inline_function_p, want_inline_small_function_p,
14743         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14744         edge_badness, update_all_callee_keys, lookup_recursive_calls,
14745         add_new_edges_to_heap, inline_small_functions, flatten_function,
14746         inline_always_inline_functions, early_inline_small_functions): Use
14747         cgraph_function_or_thunk_node.
14748         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14749         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14750         (do_estimate_edge_growth_1): Break out from ...
14751         (do_estimate_growth) ... here; walk aliases.
14752         (inline_generate_summary): Skip aliases.
14753
14754 2011-06-10  Richard Guenther  <rguenther@suse.de>
14755
14756         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14757         forward when combining, visit inserted stmts when a stmt was changed.
14758
14759 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
14760
14761         * tree.h (error_operand_p): Add.
14762         * dbxout.c (dbxout_type_fields): Use the latter.
14763         * c-decl.c (add_stmt): Likewise.
14764         * gimplify.c (omp_add_variable, omp_notice_variable,
14765         gimplify_scan_omp_clauses): Likewise.
14766
14767 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
14768
14769         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14770         when a value is actually passed in regs.
14771
14772 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
14773             Laurent Rougé  <laurent.rouge@menta.fr>
14774
14775         * doc/invoke.texi (SPARC options): Add -mflat.
14776         * config/sparc/sparc.opt: Likewise.
14777         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
14778         (sparc_flat_expand_prologue): Declare.
14779         (sparc_flat_expand_epilogue): Likewise.
14780         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
14781         (CPP_ENDIAN_SPEC): Replace with...
14782         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
14783         (CPP_SPEC): Adjust to above change.
14784         (EXTRA_SPECS): Likewise.
14785         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14786         (INCOMING_REGNO): Likewise.
14787         (OUTGOING_REGNO): Likewise.
14788         (LOCAL_REGNO): Likewise.
14789         (SETUP_FRAME_ADDRESSES): Likewise.
14790         (FIXED_REGISTERS): Set 0 for %fp.
14791         (CALL_USED_REGISTERS): Likewise.
14792         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14793         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14794         (RETURN_ADDR_REGNUM): Define.
14795         (RETURN_ADDR_RTX): Use it.
14796         (INCOMING_RETURN_ADDR_REGNUM): Define.
14797         (INCOMING_RETURN_ADDR_RTX): Use it.
14798         (DWARF_FRAME_RETURN_COLUMN): Likewise.
14799         (EH_RETURN_REGNUM): Define.
14800         (EH_RETURN_STACKADJ_RTX): Use it.
14801         (EH_RETURN_HANDLER_RTX): Delete.
14802         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14803         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14804         Delete.
14805         (struct machine_function): Add frame_size, apparent_frame_size,
14806         frame_base_reg, frame_base_offset, n_global_fp_regs and
14807         save_local_in_regs_p fields.
14808         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14809         sparc_frame_base_offset, sparc_n_global_fp_regs,
14810         sparc_save_local_in_regs_p): New macros.
14811         (sparc_option_override): Error out if -fcall-saved-REG is specified
14812         for Out registers.
14813         (eligible_for_restore_insn): Fix formatting.
14814         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
14815         (eligible_for_sibcall_delay): Likewise.
14816         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14817         (sparc_legitimate_address_p): Adjust to above change.
14818         (save_global_or_fp_reg_p): New predicate.
14819         (return_addr_reg_needed_p): Likewise.
14820         (save_local_or_in_reg_p): Likewise.
14821         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
14822         (SORR_SAVE, SORR_RESTORE): Delete.
14823         (sorr_pred_t): New typedef.
14824         (sorr_act_t): New enum.
14825         (save_or_restore_regs): Rename to...
14826         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
14827         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14828         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
14829         mechanism.  Add CFI information for double-word saves in 32-bit mode.
14830         (emit_adjust_base_to_offset): New function extracted from...
14831         (emit_save_or_restore_regs): ...this.  Rename the rest to...
14832         (emit_save_or_restore_regs_global_fp_regs): ...this.
14833         (emit_save_or_restore_regs_local_in_regs): New function.
14834         (gen_create_flat_frame_[123]): New functions.
14835         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
14836         (sparc_flat_expand_prologue): New function.
14837         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14838         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
14839         (sparc_flat_expand_epilogue): New function.
14840         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14841         (output_return): Likewise.
14842         (output_sibcall): Likewise.
14843         (sparc_output_mi_thunk): Likewise.
14844         (sparc_frame_pointer_required): Likewise.
14845         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14846         function optimization.
14847         * config/sparc/sparc.md (flat): New attribute.
14848         (prologue): Add TARGET_FLAT handling.
14849         (save_register_window): Disable if TARGET_FLAT.
14850         (create_flat_frame_[123]): New patterns.
14851         (epilogue): Add TARGET_FLAT handling.
14852         (sibcall_epilogue): Likewise.
14853         (eh_return): New expander.
14854         (eh_return_internal): New insn and splitter.
14855         (return_internal): Add TARGET_FLAT handling.
14856         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14857         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14858         (nonlocal_goto): Add TARGET_FLAT handling.
14859         * config/sparc/t-elf: Add -mflat multilib.
14860         * config/sparc/t-leon: Likewise.
14861
14862 2011-06-10  Jan Hubicka  <jh@suse.cz>
14863
14864         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14865         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14866         (self_recursive_p): Use cgraph_function_node.
14867         (propagate_pure_const): Likewise.
14868         (propagate_nothrow): Likewise.
14869         * ipa-reference.c (ipa_reference_get_not_read_global): Use
14870         cgraph_function_node.
14871         (propagate_bits): Likewise.
14872         (propagate): Likewise.
14873
14874 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14875             Richard Earnshaw  <rearnsha@arm.com>
14876
14877         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14878         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14879         (*thumb2_movdi_vfp): Delete.
14880         (*arm_movdi_vfp_cortexa8): Delete.
14881         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14882         (*movdi_vfp_cortexa8): Likewise.
14883
14884 2011-06-10  Richard Guenther  <rguenther@suse.de>
14885
14886         * stor-layout.c (initialize_sizetypes): Give names to all
14887         sizetype kinds.
14888
14889 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
14890
14891         PR tree-optimization/49318
14892         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14893         irrelevant pattern statements.
14894
14895 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14896
14897         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14898
14899         PR bootstrap/49354
14900         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14901         to last assignment.
14902
14903 2011-06-09  Jan Hubicka  <jh@suse.cz>
14904
14905         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14906         do not recompute reachable flag.
14907         (cgraph_finalize_function, cgraph_analyze_functions): Set
14908         redefined_extern_inline here.
14909
14910 2011-06-09  Jan Hubicka  <jh@suse.cz>
14911
14912         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14913         (cgraph_only_called_directly_p): ... this one; bring offline.
14914         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14915         varpool_used_from_object_file_p): Drop names from the declaratoin.
14916         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14917         collect_callers_of_node): New.
14918         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14919         (cgraph_edge_recursive_p): Use cgraph_function_node.
14920         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14921         (cgraph_node_cannot_be_local_p_1): Break out from ...
14922         (cgraph_node_can_be_local_p): ... here; walk aliases.
14923         (cgraph_for_node_thunks_and_aliases): New function.
14924         (cgraph_for_node_and_aliases): New function.
14925         (cgraph_make_node_local_1): Break out from ...
14926         (cgraph_make_node_local) ... here; use
14927         cgraph_for_node_thunks_and_aliases.
14928         (cgraph_set_nothrow_flag_1): Break out from ...
14929         (cgraph_set_nothrow_flag) ... here;
14930         use cgraph_for_node_thunks_and_aliases.
14931         (cgraph_set_const_flag_1): Break out from ...
14932         (cgraph_set_const_flag) ... here;
14933         use cgraph_for_node_thunks_and_aliases.
14934         (cgraph_set_pure_flag_1): Break out from ...
14935         (cgraph_set_pure_flag) ... here;
14936         use cgraph_for_node_thunks_and_aliases.
14937         (cgraph_propagate_frequency_1): Break out from ...
14938         (cgraph_propagate_frequency) ... here; use
14939         cgraph_for_node_thunks_and_aliases.
14940         (cgraph_used_from_object_file_p): Do not care about aliases.
14941         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14942         New functions.
14943         (collect_callers_of_node_1, collect_callers_of_node): New functions.
14944
14945 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14946
14947         PR rtl-optimization/49154
14948         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14949         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14950         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14951         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14952         * config/cris/cris.h (cris_register_move_cost): Remove
14953         !TARGET_V32 code.  Tweak comments.
14954
14955 2011-06-09  Jan Hubicka  <jh@suse.cz>
14956
14957         * cgraphbuild.c (record_eh_tables): Mark personality function as having
14958         address taken.
14959
14960 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14961
14962         PR rtl-optimization/49154
14963         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
14964         is a matching slot in the hashtable, assign it to classes_ptr.
14965
14966         PR rtl-optimization/49154
14967         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
14968         register classes.
14969         * doc/tm.texi: Regenerate.
14970
14971 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14972
14973         PR target/49307
14974         * config/sh/sh.md (UNSPEC_CHKADD): New.
14975         (chk_guard_add): New define_insn_and_split.
14976         (symGOT_load): Use chk_guard_add instead of blockage.
14977
14978 2011-06-09  Kai Tietz  <ktietz@redhat.com>
14979
14980         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
14981
14982 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14983
14984         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
14985
14986 2011-06-09  Wei Guozhi  <carrot@google.com>
14987
14988         PR target/46975
14989         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
14990         (peephole2 for conditional move): Generate 16 bit instructions.
14991
14992 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
14993
14994         * config/i386/i386.md (*movdi_internal_rex64): Merge
14995         alternatives 6 and 8.
14996
14997 2011-06-09  David Li  <davidxl@google.com>
14998
14999         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15000         * passes.c (passr_eq): New function.
15001         (create_pass_tab): New function.
15002         (pass_traverse): New function.
15003         (dump_one_pass): New function.
15004         (dump_pass_list): New function.
15005         (dump_passes): New function.
15006
15007 2011-06-09  David Li  <davidxl@google.com>
15008
15009         * tree-complex.c (tree_lower_complex): Gate cleanup.
15010         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
15011         (execute_optimize_stdarg): Ditto.
15012         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
15013         (execute_cleanup_eh_1): Ditto.
15014         (execute_cleanup_eh): Ditto.
15015         * gcse.c (gate_rtl_pre): Ditto.
15016         (execute_rtl_pre): Ditto.
15017         * except.c (finish_eh_generation): Ditto.
15018         (convert_to_eh_region_ranges): Ditto.
15019         * cprop.c (one_cprop_pass): Ditto.
15020
15021 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15022
15023         PR target/48673
15024         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
15025         in all basic blocks.
15026
15027 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15028
15029         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
15030         (HAVE_ENABLE_EXECUTE_STACK): Define.
15031         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
15032         (HAVE_ENABLE_EXECUTE_STACK): Define.
15033         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
15034         (HAVE_ENABLE_EXECUTE_STACK): Define.
15035         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
15036         (ENABLE_EXECUTE_STACK): Remove.
15037         (HAVE_ENABLE_EXECUTE_STACK): Define.
15038         [IN_LIBGCC2]: Don't include <windows.h>.
15039         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15040         (HAVE_ENABLE_EXECUTE_STACK): Define.
15041         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
15042         (HAVE_ENABLE_EXECUTE_STACK): Define.
15043         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
15044         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
15045         (HAVE_ENABLE_EXECUTE_STACK): Define.
15046         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
15047         (HAVE_ENABLE_EXECUTE_STACK): Define.
15048         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15049         (HAVE_ENABLE_EXECUTE_STACK): Define.
15050         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15051         (HAVE_ENABLE_EXECUTE_STACK): Define.
15052         * config/alpha/alpha.c (alpha_trampoline_init): Test
15053         HAVE_ENABLE_EXECUTE_STACK.
15054         * config/i386/i386.c (ix86_trampoline_init): Likewise.
15055         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15056         (sparc64_initialize_trampoline): Likewise.
15057         * libgcc2.c [L_enable_execute_stack]: Remove.
15058         * system.h (ENABLE_EXECUTE_STACK): Poison.
15059         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15060         * doc/tm.texi: Regenerate.
15061         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15062
15063 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
15064
15065         PR middle-end/49308
15066         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15067         variable.  After resetting and rescanning insn continue with previous
15068         statement.
15069
15070 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15071
15072         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15073         (gcc_cv_ld_hidden): Likewise.
15074         * configure: Regenerate.
15075         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15076         (ix86_stack_protect_fail): Mark unused.
15077         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15078         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15079         [TARGET_MACHO]: Don't define.
15080         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15081         (TARGET_STACK_PROTECT_FAIL): Likewise.
15082         (rs6000_stack_protect_fail): Mark unused.
15083         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15084         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
15085
15086 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15087
15088         * varasm.c (get_section): Print location of other conflict
15089         for section conflicts.
15090
15091 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15092
15093         * config/i386/driver-i386.c (host_detect_local_cpu):
15094         Add model 0x2d Intel CPU.
15095
15096 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15097
15098         * reginfo.c (global_regs_decl): Add.
15099         (globalize_reg): Add decl parameter. Compute location.  Pass location
15100         to warnings and add inform. Store decl in global_regs_decl.
15101         * rtl.h (globalize_reg): Update prototype.
15102         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15103
15104 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
15105
15106         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15107
15108 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15109
15110         PR target/49305
15111         * config/sh/predicates.md (general_movsrc_operand): Check
15112         mode for memory with indexed address for QI and HImode.
15113         (general_movdst_operand): Likewise.
15114
15115 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15116
15117         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15118
15119 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
15120
15121         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15122         (num_ssa_operands): Likewise.
15123         (op_iter_init_phiuse): Forward-declare.
15124         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15125
15126 2011-06-08  Nick Clifton  <nickc@redhat.com>
15127
15128         * doc/invoke.texi (ARM Options): Update description of
15129         -mthumb-interwork.
15130
15131 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
15132
15133         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15134         unknown Intel family 0x6 CPUs.
15135
15136 2011-06-08  Martin Jambor  <mjambor@suse.cz>
15137
15138         * tree-sra.c (mark_rw_status): Removed.
15139         (analyze_access_subtree): New parameter parent instead of
15140         mark_read and mark_write, propagate from that.
15141
15142 2011-06-08  Julian Brown  <julian@codesourcery.com>
15143
15144         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15145         for double-precision helper functions in hard-float mode if only
15146         single-precision arithmetic is supported in hardware.
15147
15148 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
15149
15150         PR rtl-optimization/49303
15151         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
15152         code_motion_path_driver returned 0 or 1.
15153         (sel_region_finish): Clear h_d_i_d.
15154
15155 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15156
15157         * config/sh/sh.c (prepare_move_operands): Set pic register
15158         appropriately for global and local dynamic tls models even
15159         if flag_pic is unset.
15160
15161 2011-06-07  Jason Merrill  <jason@redhat.com>
15162
15163         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15164
15165 2011-06-07  Xinliang David Li  <davidxl@google.com>
15166         * passes.c (enable_disable_pass): Handle assembler name.
15167         (is_pass_explicitly_enabled_or_disabled): Ditto.
15168
15169 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15170
15171         PR tree-optimization/48497
15172         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15173
15174 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15175
15176         PR tree-optimization/46728
15177         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15178         to use gimple_val_nonnegative_real_p.
15179         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15180         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15181
15182 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
15183
15184         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15185
15186 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
15187
15188         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
15189         constant vectors.
15190
15191 2011-06-07  Richard Guenther  <rguenther@suse.de>
15192
15193         * stor-layout.c (initialize_sizetypes): Initialize all
15194         sizetypes based on target definitions.
15195         (set_sizetype): Remove.
15196         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
15197         * tree.h (set_sizetype): Remove.
15198
15199 2011-06-07  Nick Clifton  <nickc@redhat.com>
15200
15201         * config.gcc: Unify V850 architecture options and add support for
15202         newer V850 architectures.
15203         * config/v850/t-v850e: Delete.
15204
15205 2011-06-07  Richard Guenther  <rguenther@suse.de>
15206
15207         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
15208         Call set_sizetype from here.
15209
15210 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
15211
15212         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15213         (*maddhisi4tb, *maddhisi4tt): New define_insns.
15214
15215 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
15216             Andrew Stubbs  <ams@codesourcery.com>
15217
15218         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15219         multiplies.
15220         * doc/md.texi (Canonicalization of Instructions): Document widening
15221         multiply canonicalization.
15222
15223 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
15224
15225         PR gcov-profile/49299
15226         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
15227
15228 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
15229
15230         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
15231         a pointer.
15232         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
15233         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
15234         vect_recog_pow_pattern): Likewise.
15235         (vect_pattern_recog_1): Remove declaration.
15236         (widened_name_p): Remove declaration.  Add new argument to specify
15237         whether to check that both types are either signed or unsigned.
15238         (vect_recog_widen_mult_pattern): Update documentation.  Handle
15239         unsigned patterns and multiplication by constants.
15240         (vect_pattern_recog_1): Update vect_recog_func references.  Use
15241         statement information from the statement returned from pattern
15242         detection functions.
15243         (vect_pattern_recog): Update vect_recog_func reference.
15244         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
15245         multiplication by a constant use the type of the other operand.
15246
15247 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15248
15249         PR rtl-optimization/49145
15250         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
15251
15252 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
15253
15254         PR debug/49262
15255         * dwarf2out.c (native_encode_initializer): Decrement count in each
15256         iteration.
15257
15258         PR debug/49294
15259         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
15260         non-MODE_INT modes.
15261
15262         PR c++/49264
15263         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
15264         if stmt folded into nothing.
15265         * tree-inline.c (fold_marked_statements): If a builtin at the end of
15266         a bb folded into nothing, just update cgraph edges and move to next bb.
15267         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
15268         to be NULL.  Don't compute count and frequency if new_call is NULL.
15269
15270 2011-06-04  Diego Novillo  <dnovillo@google.com>
15271
15272         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
15273         (cgraph.o): Likewise.
15274         (cgraphunit.o): Likewise.
15275         * cgraphunit.c: Include lto-streamer.h
15276         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
15277         if LTO is enabled.
15278         * lto-streamer-in.c (unpack_value_fields): Call
15279         streamer_hooks.unpack_value_fields if set.
15280         (lto_materialize_tree): For unhandled nodes, first try to
15281         call lto_streamer_hooks.alloc_tree, if it exists.
15282         (lto_input_ts_decl_common_tree_pointers): Move reading of
15283         DECL_INITIAL to lto_streamer_read_tree.
15284         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
15285         (lto_streamer_read_tree): New.
15286         (lto_reader_init): Rename from lto_init_reader.
15287         Move initialization code to lto/lto.c.
15288         * lto-streamer-out.c (pack_value_fields): Call
15289         streamer_hooks.pack_value_fields if set.
15290         (lto_output_tree_ref): For tree nodes that are not normally indexable,
15291         call streamer_hooks.indexable_with_decls_p before giving up.
15292         (lto_output_ts_decl_common_tree_pointers): Move handling
15293         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
15294         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
15295         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
15296         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
15297         (lto_streamer_write_tree): New.
15298         (lto_output): Call lto_streamer_init directly.
15299         (lto_writer_init): Remove.
15300         * lto-streamer.c (streamer_hooks): New.
15301         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
15302         instead of lto_preload_common_nodes.
15303         (lto_is_streamable): Move from lto-streamer.h
15304         (lto_streamer_hooks_init): New.
15305         (streamer_hooks): New.
15306         (streamer_hooks_init): New.
15307         * lto-streamer.h (struct output_block): Forward declare.
15308         (struct lto_input_block): Likewise.
15309         (struct data_in): Likewise.
15310         (struct bitpack_d): Likewise.
15311         (struct streamer_hooks): Declare.
15312         (streamer_hooks): Declare.
15313         (lto_streamer_hooks_init): Declare.
15314         (lto_streamer_write_tree): Declare.
15315         (lto_streamer_read_tree): Declare.
15316         (streamer_hooks_init): Declare.
15317         (lto_is_streamable): Move to lto-streamer.c
15318
15319 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15320
15321         * longlong.h (smul_ppmm): The resulting register pair contains the
15322         higher order word first.
15323
15324 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15325
15326         PR tree-optimization/46728
15327         * builtins.c (powi_table): Remove.
15328         (powi_lookup_cost): Remove.
15329         (powi_cost): Remove.
15330         (expand_powi_1): Remove.
15331         (expand_powi): Remove.
15332         (expand_builtin_pow_root): Remove.
15333         (expand_builtin_pow): Remove.
15334         (expand_builtin_powi): Eliminate handling of constant exponent.
15335         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15336
15337 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15338
15339         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15340
15341 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15342
15343         * dce.c (reset_unmarked_insns_debug_uses): New.
15344         (delete_unmarked_insns): Skip debug insns.
15345         (prescan_insns_for_dce): Likewise.
15346         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15347         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15348         active reg can be found.
15349         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
15350         (convert_regs_1): Use it.
15351
15352 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15353
15354         * tree-pretty-print.c (dump_function_header): Add flags.
15355         Don't dump decl_uid with nouid.
15356         * tree-pretty-print.h (dump_function_header): Adjust.
15357         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15358         * passes.c (pass_init_dump_file): Pass dump_flags on.
15359         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15360
15361 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15362
15363         PR bootstrap/49270
15364         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15365
15366 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
15367
15368         PR tree-optimization/49243
15369         * calls.c (setjmp_call_p): Also check if fndecl has the
15370         returns_twice attribute.
15371
15372 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15373
15374         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15375         -ffast-math etc.
15376
15377 2011-06-06  Richard Henderson  <rth@redhat.com>
15378             Georg-Johann Lay  <avr@gjlay.de>
15379
15380         PR target/42210
15381         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15382         New predicates.
15383         * config/avr/avr.md ("insv"): New insn expander.
15384         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15385         "*insv.not.io", "*insv.reg"): New insns.
15386
15387 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
15388
15389         PR target/49285
15390         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15391         to nonimmediate_operand from memory_operand for the operand that is to
15392         be forced to memory by the expander.  Lose the constraints.
15393
15394 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15395
15396         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15397         EH return when delayed branches are disabled.
15398
15399 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
15400
15401         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15402         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
15403         calculation.
15404         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15405         Simplify MODE_V1DF and MODE_V2SF handling.
15406         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15407         Simplify MODE_SF handling.
15408
15409 2011-06-04  Jan Hubicka  <jh@suse.cz>
15410
15411         PR tree-optimization/48893
15412         PR tree-optimization/49091
15413         PR tree-optimization/49179
15414         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15415         Bounds check.
15416
15417 2011-06-04  Jan Hubicka  <jh@suse.cz>
15418
15419         PR lto/48954
15420         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15421         bitmaps.
15422
15423 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
15424
15425         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15426
15427 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15428
15429         PR target/49281
15430         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15431         to be strictly smaller than 1 << shiftcount.
15432
15433 2011-06-04  Jan Hubicka  <jh@suse.cz>
15434
15435         PR tree-optimize/48929
15436         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15437         of empty predicate.
15438
15439 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
15440
15441         PR debug/48333
15442         * calls.c (emit_call_1): Prefer the __builtin declaration of
15443         builtin functions.
15444
15445 2011-06-03   Diego Novillo  <dnovillo@google.com>
15446
15447         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15448         (lto_input_tree_pointers): Likewise.
15449         * lto-streamer-out.c (pack_value_fields): Likewise.
15450         (lto_output_tree_pointers): Likewise.
15451         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15452         and OPTIMIZATION_NODE.
15453
15454 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15455
15456         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15457         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15458         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15459         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15460         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15461         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15462         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15463         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15464         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15465         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15466         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15467         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15468         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15469         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15470         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15471         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15472         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15473         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15474         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15475         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15476         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15477         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15478         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15479         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15480         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15481         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15482         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15483         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15484         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15485         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15486         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15487         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15488         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15489         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15490         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15491         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15492         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15493         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15494         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15495         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15496         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15497         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15498         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15499         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15500         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15501         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15502         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15503         * system.h (MD_UNWIND_SUPPORT): Poison.
15504         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15505         * doc/tm.texi: Regenerate.
15506         * unwind-dw2.c: Include md-unwind-support.h instead of
15507         MD_UNWIND_SUPPORT.
15508         * config/ia64/unwind-ia64.c: Likewise.
15509         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15510
15511 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
15512
15513         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15514
15515 2011-06-03  Richard Henderson  <rth@redhat.com>
15516             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15517
15518         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15519         (sigill_hdlr): Correct insn, insn size.
15520         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15521
15522 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15523
15524         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15525         t-slibgcc-dummy.
15526         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15527         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15528         * config/mips/t-iris: Remove.
15529         * config/mips/t-irix6: New file.
15530         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15531
15532 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15533
15534         * Makefile.in (LIB2ADDEHDEP): Remove.
15535         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15536         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15537         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15538         * config/t-darwin (LIB2ADDEHDEP): Remove.
15539         * config/t-freebsd (LIB2ADDEHDEP): Remove.
15540         * config/t-linux (LIB2ADDEHDEP): Remove.
15541
15542 2011-06-03  Diego Novillo  <dnovillo@google.com>
15543
15544         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15545         (lto_register_var_decl_in_symtab): Likewise.
15546         (lto_register_function_decl_in_symtab): Likewise.
15547         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15548         logic to uniquify_nodes.
15549
15550 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15551
15552         * config/alpha/t-osf5: Remove.
15553         * config/alpha/t-osf-pthread: Remove.
15554         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15555         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15556
15557 2011-06-03  Julian Brown  <julian@codesourcery.com>
15558
15559         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15560         (strongarm1110): Use strongarm tuning.
15561         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15562         * config/arm/arm.c (arm_strongarm_tune): New.
15563         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15564         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15565         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15566         setting, using previous defaults or 1 for Cortex-A5.
15567         (arm_option_override): Set max_insns_skipped from current tuning.
15568
15569 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
15570
15571         * doc/install.texi (Options specification): Document --with-specs.
15572
15573 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15574
15575         * config/arm/neon.md (orndi3_neon): Actually split it.
15576
15577 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15578
15579         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15580         * var-tracking.c (reverse_op): Limite recurse depth to 5.
15581
15582 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15583
15584         PR debug/47590
15585         * target.def (delay_sched2, delay_vartrack): New.
15586         * doc/tm.texi.in: Update.
15587         * doc/tm.texi: Rebuild.
15588         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15589         * var-tracking.c (gate_handle_var_tracking): Likewise.
15590         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15591         (bfin_flag_var_tracking): Drop.
15592         (output_file_start): Don't save and override flag_var_tracking.
15593         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15594         (bfin_reorg): Test original variables.
15595         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15596         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15597         (ia64_flag_var_tracking): Drop.
15598         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15599         (ia64_file_start): Don't save and override flag_var_tracking.
15600         (ia64_override_options_after_change): Ditto
15601         flag_schedule_insns_after_reload.
15602         (ia64_reorg): Test original variables.
15603         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15604         (picochip_flag_var_tracking): Drop.
15605         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15606         (picochip_option_override): Don't save and override
15607         flag_schedule_insns_after_reload.
15608         (picochip_asm_file_start): Ditto flag_var_tracking.
15609         (picochip_reorg): Test original variables.
15610         * config/spu/spu.c (spu_flag_var_tracking): Drop.
15611         (TARGET_DELAY_VARTRACK): Define.
15612         (spu_var_tracking): New.
15613         (spu_machine_dependent_reorg): Call it.
15614         (asm_file_start): Don't save and override flag_var_tracking.
15615
15616 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
15617
15618         PR target/49163
15619         * config/sh/predicates.md (general_movsrc_operand): Return 0
15620         for memory and memory subreg of which address is an invalid
15621         indexed address for QI and HImode.
15622         (general_movdst_operand): Likewise.
15623
15624 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15625
15626         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15627         edges only, when there is a non-local label in the function.
15628         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15629
15630 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15631
15632         * config/i386/constraints.md (Y3): New register constraint.
15633         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15634         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15635         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15636         *sse2_interleave_lowv2df.
15637
15638 2011-06-02  Julian Brown  <julian@codesourcery.com>
15639
15640         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15641         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15642         (arm_cortex_a5_tune): New.
15643
15644 2011-06-02  Julian Brown  <julian@codesourcery.com>
15645
15646         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15647         * config/arm/arm.c (arm_default_branch_cost): New.
15648         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15649         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15650         (arm_fa726_tune): Set branch_cost field using
15651         arm_default_branch_cost.
15652         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15653         current_tune structure.
15654         * dojump.c (tm_p.h): Include file.
15655
15656 2011-06-02  Julian Brown  <julian@codesourcery.com>
15657
15658         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15659         tuning.
15660         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15661         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15662         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15663         field.
15664         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15665         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15666         (arm_fa726te_tune): Add prefer_constant_pool setting.
15667         (arm_v6t2_tune, arm_cortex_tune): New.
15668         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15669         prefer_constant_pool setting.
15670
15671 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15672
15673         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15674         switch statement.
15675         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15676         (*movdf_internal) <case 6,7,8>: Ditto.
15677
15678         * config/i386/constraints.md (Y4): New register constraint.
15679         * config/i386/sse.md (vec_set<mode>_0): Merge with
15680         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15681         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15682         *vec_extractv2di_1_sse.
15683         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15684         and *vec_concatv2di_rex64_sse.
15685
15686 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
15687
15688         PR target/48807
15689         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15690         of cgraph_local_info for null before attempting to use it.
15691
15692 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15693
15694         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15695         (current_function_dynamic_alloc_count): Delete.
15696         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15697         (expand_builtin_nonlocal_goto): Remove obsolete comment.
15698         (expand_builtin_update_setjmp_buf): Remove dead code.
15699         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15700         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15701         support.
15702         * function.c (instantiate_virtual_regs): Likewise.
15703         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15704         for a block with a single abnormal incoming edge.
15705         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15706         (SETJMP_VIA_SAVE_AREA): Delete.
15707         * config/sparc/sparc-protos.h (load_got_register): Declare.
15708         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15709         (load_got_register): Make global.
15710         (sparc_frame_pointer_required): Add 'static'.
15711         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
15712         (sparc_builtin_setjmp_frame_value): New function.
15713         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15714         (save_stack_nonlocal): New expander.
15715         (restore_stack_nonlocal): Likewise.
15716         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15717         (nonlocal_goto_internal): New insn.
15718         (goto_handler_and_restore): Delete.
15719         (builtin_setjmp_setup): Likewise.
15720         (do_builtin_setjmp_setup): Likewise.
15721         (setjmp): Likewise.
15722         (builtin_setjmp_receiver): New expander.
15723
15724 2011-06-01  David Li  <davidxl@google.com>
15725
15726         PR middle-end/49261
15727         * tree-pretty-print.c (dump_function_header): Format cleanup.
15728
15729 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
15730
15731         PR target/49238
15732         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15733         needed when original operands are used for msw_skip comparison.
15734
15735 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15736
15737         PR debug/49250
15738         * var-tracking.c (add_uses, add_stores): Don't call
15739         cselib_subst_to_values on ENTRY_VALUE.
15740
15741 2011-06-01  Diego Novillo  <dnovillo@google.com>
15742
15743         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15744         output_record_start with LTO_null instead of output_zero.
15745         (lto_output_ts_binfo_tree_pointers): Likewise.
15746         (lto_output_tree): Likewise.
15747         (output_eh_try_list): Likewise.
15748         (output_eh_region): Likewise.
15749         (output_eh_lp): Likewise.
15750         (output_eh_regions): Likewise.
15751         (output_bb): Likewise.
15752         (output_function): Likewise.
15753         (output_unreferenced_globals): Likewise.
15754         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15755         instead of NUM_TREE_CODES.
15756         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15757         (lto_output_int_in_range): Change << to >> when shifting VAL.
15758
15759 2011-06-01  Diego Novillo  <dnovillo@google.com>
15760
15761         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15762         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15763
15764 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15765
15766         PR target/45074
15767         * optabs.h (valid_multiword_target_p): Declare.
15768         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15769         doing multi-word operations.
15770         * optabs.c (expand_binop): Likewise.
15771         (expand_doubleword_bswap): Likewise.
15772         (expand_absneg_bit): Likewise.
15773         (expand_unop): Likewise.
15774         (expand_copysign_bit): Likewise.
15775         (multiword_target_p): New function.
15776
15777 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15778
15779         PR rtl-optimization/48830
15780         PR rtl-optimization/48808
15781         PR rtl-optimization/48792
15782         * reload.c (push_reload): Check contains_reg_of_mode.
15783         * reload1.c (strip_paradoxical_subreg): New function.
15784         (gen_reload_chain_without_interm_reg_p): Use it to handle
15785         paradoxical subregs.
15786         (emit_output_reload_insns, gen_reload): Likewise.
15787
15788 2011-06-01  David Li  <davidxl@google.com>
15789
15790         * predict.c : Change pass name
15791         * ipa.c: Ditto.
15792         * dce.c: Ditto.
15793         * tree-profile.c: Ditto.
15794         * except.c: Ditto.
15795
15796 2011-06-01  David Li  <davidxl@google.com>
15797
15798         * tree-pretty-print.c (dump_function_header): New function.
15799         * final.c (rest_of_clean_state): Use header dumper.
15800         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15801         * passes.c (pass_init_dump_file): Use header dumper.
15802
15803 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15804
15805         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15806         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15807         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15808         New functions.
15809         (mem_loc_descriptor): Use them.
15810
15811         * var-tracking.c (create_entry_value): New function.
15812         (vt_add_function_parameter): Use it.
15813
15814 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15815
15816         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15817         Include <signal.h>, <ucontext.h>.
15818         (sigill_caught): Define.
15819         (sigill_hdlr): New function.
15820         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15821         insns can be executed.
15822         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15823         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15824
15825 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15826
15827         * config/t-slibgcc-darwin: Move to ...
15828         * config/t-slibgcc-dummy: ... this.  Clarify comments.
15829         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15830         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15831         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15832         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
15833         Remove i386/t-crtstuff from tmake_file.
15834         (i[34567]86-*-solaris2*): Remove t-svr4,
15835         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15836         t-slibgcc-dummy.
15837         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15838         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15839         sparc/t-crtfm from tmake_file.
15840         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15841         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15842         Remove extra_parts.
15843         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15844         * config/i386/t-nwld (SHLIB_LINK): Remove.
15845         * config/i386/t-rtems-i386: Rename to ...
15846         * config/i386/t-rtems: ... this.
15847         ($(T)crti.o, $(T)crtn.o): Remove.
15848         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15849         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15850         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15851         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15852         EXTRA_MULTILIB_PARTS): Remove.
15853         * config/sparc/t-sol2-64: Likewise.
15854         * config/sparc/t-sol2: Remove.
15855         * config/sparc/t-crtin: Remove.
15856         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15857         * config/i386/gmon-sol2.c: Remove.
15858         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15859         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15860         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15861         * config/i386/sol2-gc1.asm: Remove.
15862         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15863         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15864         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15865         * config/t-slibgcc-sld: Remove.
15866
15867 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15868
15869         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15870         base_type_for_mode with op_mode instead of mode.
15871
15872 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
15873
15874         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
15875         Cortex-A15.
15876         * config/arm/arm-tune.md: Regenerate.
15877         * config/arm/arm-tables.opt: Regenerate.
15878         * config/arm/arm.c (FL_DIV): Rename...
15879         (FL_THUMB_DIV): ... to this.
15880         (FL_ARM_DIV): Define.
15881         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15882         (arm_arch_hwdiv): Remove.
15883         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15884         (arm_issue_rate): Add cortexr5.
15885         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15886         __ARM_ARCH_EXT_IDIV__.
15887         (TARGET_IDIV): Define.
15888         (arm_arch_hwdiv): Remove.
15889         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15890         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15891         (divsi3, udivsi3): New patterns.
15892         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15893         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15894
15895 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15896
15897         * ipa-utils.c (ipa_dfs_info): New field scc_no.
15898         * ipa-utils.c (searchc): Set scc_no.
15899
15900 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15901
15902         * ipa-utils.c (searchc_env): New field allow_overwritable.
15903         (searchc): do not ignore edges to overwritable nodes if indicated
15904         by env->allow_overwritable.
15905         (ipa_reduced_postorder): Set env.allow_overwritable.
15906
15907 2011-06-01  Richard Guenther  <rguenther@suse.de>
15908
15909         * tree.c (free_lang_data): Do not reset boolean_type_node nor
15910         char_type_node.
15911         * lto-streamer.c (lto_record_common_node): Take node pointer,
15912         do not register types.
15913         (lto_preload_common_nodes): Explicitly skip preloading nodes
15914         that differ between frontends.
15915
15916 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15917
15918         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15919         NON_FLOAT_REGS.
15920
15921 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15922
15923         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15924         parameter value for dump. Dump cost on outermost call only.
15925         (rs6000_memory_move_cost): Dump cost on outermost call only.
15926
15927 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15928
15929         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15930         DW_OP_GNU_convert ops.
15931
15932         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15933         cselib_preserve_constants.
15934         (cselib_lookup_1): If cselib_preserve_constants,
15935         a new VALUE is being created for REG and there is a VALUE for the
15936         same register in wider mode, add another loc with lowpart SUBREG of
15937         the wider VALUE.
15938         (cselib_subst_to_values): Handle ENTRY_VALUE.
15939         * var-tracking.c  (replace_expr_with_values): Return NULL for
15940         ENTRY_VALUE too.
15941         * dwarf2out.c (convert_descriptor_to_signed): New function.
15942         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15943         instead of two shifts.
15944         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15945         the right mode if needed.
15946         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15947         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15948         convert_descriptor_to_signed.
15949         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15950         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15951
15952         PR target/48688
15953         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15954
15955 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15956
15957         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15958         of X87MODEI12 and SWI48x instead of SSEMODEI24.
15959         (SWI248x): New mode iterator, rename from X87MODEI.
15960         (X87MODEI): Remove mode iterator.
15961         (X87MODEI12): Ditto.
15962         (SSEMODEI24): Ditto.
15963
15964 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15965
15966         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
15967         * doc/invoke.texi: Document max-vartrack-expr-depth.
15968         * var-tracking.c (EXPR_DEPTH): New.
15969         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
15970
15971 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15972
15973         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
15974         * config/i386/sse.md: Add n to negated FMA pattern names.
15975
15976 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15977
15978         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
15979
15980 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15981
15982         * gengtype-state.c (read_state_params_structs): Initialize previous.
15983
15984 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15985
15986         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
15987         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
15988
15989 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15990
15991         * config/i386/i386.md (*movtf_internal): Avoid allocating general
15992         registers.  Penalize F*r->o alternative to prevent partial memory
15993         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
15994         CONST_DOUBLE immediates when optimizing function for size.  Do not move
15995         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15996         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
15997         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
15998         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
15999         alternatives.
16000         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
16001
16002         (fp_register_operand splitters): Use fp_register_operand
16003         constraint.  Do not use FP_REG_P in insn condition.
16004         (any_fp_register_operand splitters): Use any_fp_register_operand
16005         constraint.  Do not use ANY_FP_REG_P in insn condition.
16006
16007 2011-05-31  Jan Hubicka  <jh@suse.cz>
16008
16009         * cgraph.h (cgraph_inline_failed_t): Give enum a name
16010         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
16011         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
16012         (lto_output_edge): Use output_enum and var_len_unsigned.
16013         (lto_output_varpool_node): Likewise.
16014         (input_overwrite_node): Do not take resolution parameter;
16015         extract it from a bitpack.
16016         (input_node): Do not read resolution; use input_enum and
16017         var_len_unsigned.
16018         (input_varpool_node): Likewise.
16019         (input_edge): Likewise.
16020         (input_cgraph_1): Likewise.
16021
16022 2011-05-31  Richard Guenther  <rguenther@suse.de>
16023
16024         * gimple.c (gimple_register_canonical_type): Do not register
16025         any types via gimple_register_type.
16026
16027 2011-05-31  Jan Hubicka  <jh@suse.cz>
16028
16029         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
16030         of thunks.
16031
16032 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
16033
16034         PR rtl-optimization/49235
16035         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
16036         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
16037
16038 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
16039
16040         PR tree-optimization/49093
16041         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
16042         data references.
16043
16044 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
16045
16046         PR debug/49047
16047         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16048         for concrete functions containing the code of cloned functions.
16049
16050 2011-05-31  Richard Guenther  <rguenther@suse.de>
16051
16052         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16053         to ...
16054         (forward_propagate_into_comparison_1): ... this.
16055         (forward_propagate_comparison): Rename to ...
16056         (forward_propagate_into_comparison): ... this.  Split out
16057         real forward propagation code to ...
16058         (forward_propagate_comparison): ... this.
16059         (forward_propagate_into_gimple_cond): Remove looping.
16060         (forward_propagate_into_cond): Likewise.
16061         (simplify_not_neg_expr): Return whether we have done something.
16062         (simplify_gimple_switch): Likewise.
16063         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16064         (ssa_forward_propagate_and_combine): ... this.  Re-structure
16065         to do a forward forward-propagation walk on BBs and a backward
16066         stmt combining walk on BBs.  Consistently re-scan changed statements.
16067         (pass_forwprop): Adjust.
16068
16069 2011-05-30  Ian Lance Taylor  <iant@google.com>
16070
16071         * godump.c (go_format_type): Correct length of name added to
16072         obstack for anonymous field.
16073
16074 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
16075
16076         PR target/49186
16077         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16078         part of the second operand is 0.
16079
16080 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
16081
16082         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16083         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
16084         to memory for !TARGET_MEMORY_MISMATCH_STALL.
16085         (*movdf_internal_rex64): Do not penalize F->r alternative.
16086         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16087         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
16088         when optimizing function for size.  Do not move CONST_DOUBLEs
16089         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16090         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
16091         SUBREGs.  Do not check for MEM_P operands in the insn condition,
16092         check for ANY_FP_REGNO_P instead.
16093         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16094         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16095         function for speed.
16096         * config/i386/i386.c (ix86_option_override_internal): Do not
16097         set TARGET_INTEGER_DFMODE_MOVES here.
16098
16099 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16100
16101         PR target/49168
16102         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16103
16104 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16105
16106         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16107         DW_TAG_rvalue_reference_type even for
16108         -gdwarf-4 -fno-debug-types-section.
16109
16110 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16111
16112         PR tree-optimization/46728
16113         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16114         (build_and_insert_binop): New.
16115         (gimple_expand_builtin_pow): Reorder args for
16116         build_and_insert_call; use build_and_insert_binop; add more
16117         optimizations for fractional exponents.
16118
16119 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
16120
16121         PR bootstrap/49190
16122
16123         Revert:
16124         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16125
16126         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16127         tree_common.
16128         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16129         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16130         TS_BASE instead of TS_COMMON.
16131         * varasm.c (assemble_name): Remove assert.
16132
16133 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16134
16135         * config.gcc: Keep obselete list sorted.
16136
16137 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16138             Eric Botcazou  <ebotcazou@adacore.com>
16139
16140         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16141         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16142         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16143         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16144         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16145
16146 2011-05-30  Richard Guenther  <rguenther@suse.de>
16147
16148         * gimple.c (gimple_types_compatible_p_1): Compare record
16149         and union type members properly.
16150
16151 2011-05-30  Richard Guenther  <rguenther@suse.de>
16152
16153         PR tree-optimization/49210
16154         * ipa-split.c (split_function): Care for the case where the call
16155         result is not trivially convertible to the result holding variable.
16156
16157 2011-05-30  Richard Guenther  <rguenther@suse.de>
16158
16159         PR tree-optimization/49218
16160         * tree-vrp.c (adjust_range_with_scev): Properly check whether
16161         overflow occured.
16162
16163 2011-05-30  Richard Guenther  <rguenther@suse.de>
16164
16165         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16166         New function split out from ...
16167         (forward_propagate_into_gimple_cond): ... here.  Adjust.
16168         (forward_propagate_into_cond): Likewise.
16169         (forward_propagate_comparison): Also propagate into
16170         comparisons on assignment RHS.  Change return value to
16171         behave similar to forward_propagate_into_cond.
16172         (tree_ssa_forward_propagate_single_use_vars): Handle
16173         strict-overflow warnings properly for forward_propagate_comparison.
16174
16175 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16176
16177         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16178         from plugin linker.
16179         * configure: Regenerate.
16180
16181 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
16182
16183         PR tree-optimization/49199
16184         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16185         non-reduction operands are either defined in the loop or by induction.
16186
16187 2011-05-29  Xinliang David Li  <davidxl@google.com>
16188
16189         * opts-global.c (handle_common_deferred_options): Handle new options.
16190         * passes.c (register_one_dump_file): Call register_pass_name.
16191         (execute_one_pass): Check explicit enable/disable flag.
16192         (passr_hash): New function.
16193         (passr_eq): Ditto.
16194         (register_pass_name): Ditto.
16195         (get_pass_by_name): Ditto.
16196         (pass_hash): Ditto.
16197         (pass_eq): Ditto.
16198         (enable_pass): Ditto.
16199         (disable_pass): Ditto.
16200         (is_pass_explicitly_enabled_or_disabled): Ditto.
16201
16202 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
16203
16204         * config/i386/i386.md (*movoi_internal_avx): Use
16205         standard_sse_constant_opcode for alternative 0.
16206         (*movti_internal_sse): Ditto.
16207         (*movti_internal_rex64): Use standard_sse_constant_opcode for
16208         alternative 2.
16209         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
16210         sselog1 type moves.
16211         (*movsi_internal): Ditto.
16212         (*movdi_internal): Ditto.  Add ssecvt type moves.
16213
16214 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16215
16216         PR target/48830
16217         * rtlanal.c (simplify_subreg_regno): Adjust comment.
16218
16219 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
16220
16221         PR rtl-optimization/49095
16222         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
16223         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
16224
16225 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16226
16227         PR target/43995
16228         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
16229         recurse_p argument.  Only follow register copies if it is set,
16230         and prevent mips_find_pic_call_symbol from recursing.
16231         (mips_find_pic_call_symbol): Add a recurse_p argument.
16232         Pass it to mips_pic_call_symbol_from_set.
16233         (mips_annotate_pic_calls): Update accordingly.
16234
16235 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16236
16237         * emit-rtl.c (try_split): Use a loop to search for
16238         NOTE_INSN_CALL_ARG_LOCATIONs.
16239
16240 2011-05-29  Richard Guenther  <rguenther@suse.de>
16241
16242         PR tree-optimization/49217
16243         * ipa-pure-const.c (propagate_pure_const): Fix typos.
16244
16245 2011-05-28  Jan Hubicka  <jh@suse.cz>
16246
16247         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
16248         length.
16249         (string_slot_free): Remove
16250         (create_output_block): Initialize obstack.
16251         (destroy_output_block): Free obstack.
16252         (lto_string_index): Add PERSISTENT parameter; do not duplicate
16253         the string unless it needs to be added into the hash.
16254         (lto_output_string_with_length): Add persistent attribute;
16255         handle NULL strings.
16256         (lto_output_string): Add PERSISTENT parameter.
16257         (output_string_cst, output_identifier): Simplify.
16258         (lto_output_location_bitpack): Update.
16259         (lto_output_builtin_tree): Update.
16260         * lto-streamer.h (struct output_block): Add obstack.
16261         (lto_output_string, lto_output_string_with_length): Remove
16262         declarations; functions are static now.
16263
16264 2011-05-28  Jan Hubicka  <jh@suse.cz>
16265
16266         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
16267         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
16268         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
16269         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
16270         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
16271         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
16272         unpack_ts_decl_with_vis_value_fields,
16273         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
16274         lto_get_builtin_tree): Use enum and variable length i/o.
16275         * basic-block.h (profile_status_d): Add PROFILE_LAST.
16276         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
16277         New functions.
16278         (bp_pack_enum, bp_unpack_enum): New macros.
16279
16280 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16281
16282         * genrecog.c: Remove redundant forward declarations.
16283
16284 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16285
16286         * config.gcc: Deprecate mips*-*-openbsd*.
16287
16288 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16289
16290         PR bootstrap/49195
16291         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
16292         for match_op_dup.
16293
16294 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
16295
16296         PR middle-end/48981
16297         * gengtype.c (vec_prefix_type): New function.
16298         (note_def_vec): Use vec_prefix_type and change the length
16299         attribute to be based on the prefix.
16300         * vec.c: Include coretypes.h before vec.h.
16301         (struct vec_prefix): Remove.
16302         (vec_gc_p_reserve): Change the offsetof to sizeof.
16303         (vec_gc_p_reserve_exact): Likewise.
16304         (vec_heap_p_reserve): Likewise.
16305         (vec_heap_p_reserve_exact): Likewise.
16306         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
16307         (vec_stack_p_reserve): Change the offsetof to sizeof.
16308         (vec_stack_p_reserve_exact): Likewise.
16309         * vec.h (struct vec_prefix): New struct definition.
16310         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
16311         (VEC_T_GTY(T,B)): Likewise.
16312         (DEF_VEC_FUNC_P(T)): Use prefix field.
16313         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
16314         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
16315
16316 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16317
16318         PR tree-optimization/46728
16319         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
16320         (powi_as_mults): Add gimple_set_location.
16321         (build_and_insert_call): New.
16322         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
16323         0.5, 0.25, 0.75, 1./3., or 1./6.
16324
16325 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
16326
16327         * doc/contrib.texi: Update copyright years.
16328         (Contributors): Add Zdenek Sojka.
16329
16330 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
16331
16332         * c-decl.c (c_push_function_context): Copy the current statement
16333         list stack.
16334         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16335         (finish_struct): Call building_stmt_list_p instead of checking
16336         cur_stmt_list.
16337         * c-parser.c (c_parser_postfix_expression): Likewise.
16338         * c-typeck.c (c_end_compound_stmt): Likewise.
16339         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16340         * tree-iterator.c (stmt_list_cache): Change to a VEC.
16341         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16342         (free_stmt_list): Likewise.
16343         * tree.h (struct tree_statement_list): Include typed_tree instead
16344         of tree_common.
16345         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16346         as TS_TYPED instead of TS_COMMON.
16347
16348 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16349             Uros Bizjak  <ubizjak@gmail.com>
16350
16351         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16352         (HAVE_AS_IX86_TLSGDPTL): Define.
16353         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16354         (HAVE_AS_IX86_TLSLDMPLT): Define.
16355         * configure: Regenerate.
16356         * config.in: Regenerate.
16357         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16358         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16359         TARGET_SUN_TLS, use @tlsgdplt or @plt.
16360         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16361         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16362         @tlsldmplt or @plt.
16363         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16364
16365 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16366
16367         * sched-int.h (struct _haifa_deps_insn_data): New members cond
16368         and reverse_cond.
16369         (INSN_COND, INSN_REVERSE_COND): New macros.
16370         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16371         once.
16372         (sched_get_condition_with_rev): Cache the results, and look them up
16373         if possible.
16374         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16375         are clobbered by the current insn.
16376         * target.def (exposed_pipline): New sched data hook.
16377         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16378         * doc/tm.texi: Regenerate.
16379
16380 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16381
16382         PR tree-optimization/49170
16383         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
16384         sincos or cexp.
16385
16386 2011-05-27  Richard Guenther  <rguenther@suse.de>
16387
16388         PR middle-end/49189
16389         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16390         of comparisons.
16391
16392 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16393
16394         * haifa-sched.c (sched_scan_info): Remove.
16395         (schedule_block): Call sched_extend_luids rather than sched_init_luids
16396         with NULL args.
16397         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16398         Remove functions.
16399         (sched_scan): Remove.
16400         (sched_extend_luids): Renamed from luids_extend_insn and no longer
16401         static.  All callers changed.
16402         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16403         static.  All callers changed.
16404         (sched_init_luids): Remove all arguments except the first.  All
16405         callers changed.  Don't use sched_scan.
16406         (haifa_init_h_i_d): Likewise.
16407         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16408         manually rather than using sched_init_luids.  Likewise with
16409         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16410         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16411         rather than sched_init_luids with NULL args.
16412         * sel-sched-ir.c (new_insns): Remove variable.
16413         (sched_scan): New static function, previously in haifa-sched.c.  Remove
16414         all arguments but the first two; all callers changed.
16415         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16416         rather than sched_init_luids.
16417         (sel_init_bbs): Remove second argument.  All callers changed.
16418         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16419         with NULL arguments.
16420         (create_insn_rtx_from_pattern): Likewise.
16421         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16422         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16423         (sched_init_insn_luid, sched_extend_luids): Declare.
16424         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16425         declarations.
16426
16427 2011-05-27  Richard Guenther  <rguenther@suse.de>
16428
16429         PR middle-end/49177
16430         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16431         A CMP B ? (T) true : (T) false for non-integral types T again.
16432
16433 2011-05-27  Jan Hubicka  <jh@suse.cz>
16434
16435         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16436         so 0 means NULL string.
16437         (lto_output_string_with_length): ... here.
16438         (lto_output_string, output_string_cst, output_identifier): Update
16439         handling of NULL strings.
16440         (lto_output_location_bitpack): New function.
16441         (lto_output_location): Use it.
16442         (lto_output_tree_ref): Use output_record_start.
16443         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16444         len values.
16445         * lto-streamer-in.c (string_for_index): Break out from ...; offset
16446         values by 1.
16447         (input_string_internal): ... here;
16448         (input_string_cst, input_identifier, lto_input_string): Update handling
16449         of NULL strings.
16450         (lto_input_location_bitpack): New function
16451         (lto_input_location): Use it.
16452         (unpack_ts_type_common_value_fields): Pack align & alias in var len
16453         values.
16454         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16455         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16456         (bp_pack_value): Sanity check the value range.
16457         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16458         New functions.
16459         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16460         New functions.
16461
16462 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
16463
16464         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16465         call_arg_location instructions down the floor.
16466
16467 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
16468
16469         PR rtl-optimization/49154
16470         * ira.c (setup_pressure_classes): Process class without sublcasses
16471         as a candidate for pressure classes.
16472
16473 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
16474
16475         PR rtl-optimization/48575
16476         * genrecog.c (position_type): New enum.
16477         (position): New structure.
16478         (decision): Use position structure instead of a string.
16479         (root_pos, peep2_insn_pos_list): New variables.
16480         (next_position, compare_positions): New functions.
16481         (new_decision): Use position structures instead of strings.
16482         (maybe_both_true): Likewise.
16483         (change_state): Likewise.
16484         (write_tree): Likewise.
16485         (make_insn_sequence): Likewise.
16486
16487 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16488
16489         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16490         TS_BASE instead of TS_COMMON.
16491         (find_decls_types_r): Check for TS_TYPED structure before looking at
16492         TREE_TYPE.
16493         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16494         Add chain field.
16495         (BLOCK_CHAIN): Use new chain field.
16496
16497 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
16498
16499         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16500         moves expensive on Power7 also.
16501
16502 2011-05-26  Richard Guenther  <rguenther@suse.de>
16503
16504         * fold-const.c (fold_unary_loc): Remove bogus code.
16505
16506 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16507
16508         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16509         tree_common.
16510         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16511         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16512         TS_BASE instead of TS_COMMON.
16513         * varasm.c (assemble_name): Remove assert.
16514
16515 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16516
16517         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16518         substituted first.
16519         * libgcc-std.ver: Delete file.
16520
16521 2011-05-26  Richard Guenther  <rguenther@suse.de>
16522
16523         PR tree-optimization/48702
16524         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16525         only when we know the base address is within bounds.
16526         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16527         assume the base address of TARGET_MEM_REFs is in bounds.
16528
16529 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16530
16531         PR target/49099
16532         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16533         declaration in TARGET_SOLARIS.
16534
16535 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
16536
16537         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16538         The instruction is then expanded explicitly.
16539         (supported_compare): Callable instruction.
16540         (compare): Likewise.
16541
16542 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16543
16544         PR c++/49165
16545         * gimplify.c (shortcut_cond_r): Don't special case
16546         COND_EXPRs if they have void type on one of their arms.
16547
16548 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16549
16550         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16551         to reduce duplication, and to achieve a slightly more logical order
16552         of operations.
16553
16554 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16555
16556         PR tree-optimization/49161
16557         * tree-vrp.c (struct case_info): New type.
16558         (compare_case_labels): Sort case_info structs instead of
16559         trees, and not primarily by CASE_LABEL uids but by
16560         label_for_block indexes.
16561         (find_switch_asserts): Put case labels into struct case_info
16562         array instead of TREE_VEC, adjust sorting, compare label_for_block
16563         values instead of CASE_LABELs.
16564
16565 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16566
16567         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16568         ("orndi3_neon"): Likewise.
16569         ("bic<mode>3_neon"): Likewise.
16570
16571 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
16572
16573         PR tree-optimization/49038
16574         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16575         Ensure at least one epilogue iteration if required by data
16576         accesses with gaps.
16577         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16578         to mark loops that require peeling for gaps.
16579         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16580         (vect_get_known_peeling_cost): Take peeling for gaps into
16581         account.
16582         (vect_transform_loop): Generate epilogue if required by data
16583         access with gaps.
16584         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16585         loop as requiring an epilogue if there are gaps in the end of
16586         the strided group.
16587
16588 2011-05-25  Ian Lance Taylor  <iant@google.com>
16589
16590         * godump.c (go_format_type): Output the first field with a usable
16591         Go type, if any.
16592
16593 2011-05-25  Ian Lance Taylor  <iant@google.com>
16594
16595         * godump.c (go_format_type): Check for invalid type names, pointer
16596         target types, and struct field types.
16597
16598 2011-05-25  Jason Merrill  <jason@redhat.com>
16599
16600         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16601
16602 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
16603
16604         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16605
16606 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16607
16608         * config/i386/i386.md (*movqi_extv_1)): Put back
16609         "register_operand" check in "type" calculation.
16610         (*movqi_extzv_2): Likewise.
16611
16612 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16613
16614         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16615
16616 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16617
16618         PR bootstrap/49160
16619         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16620         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16621         __divxc3, __divtc3): Wrap definitions in #ifndef.
16622
16623 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16624
16625         PR target/49142
16626         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16627         "register_operand" check and replace q_regs_operand with
16628         QIreg_operand in "type" calculation.
16629         (*movqi_extv_1): Likewise.
16630         (*movqi_extzv_2_rex64): Likewise.
16631         (*movqi_extzv_2): Likewise.
16632
16633         * config/i386/predicates.md (QIreg_operand): New.
16634
16635 2011-05-25  Richard Guenther  <rguenther@suse.de>
16636
16637         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16638         type-based offset disambiguation, streamline MEM_REF and
16639         TARGET_MEM_REF handling.
16640
16641 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16642
16643         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16644         (bdesc_special_args): Add pause intrinsic.
16645
16646         * config/i386/i386.md (UNSPEC_PAUSE): New.
16647         (pause): Likewise.
16648         (*pause): Likewise.
16649         * config/i386/ia32intrin.h (__pause): Likewise.
16650
16651         * doc/extend.texi (X86 Built-in Functions): Add documentation for
16652         pause intrinsic.
16653
16654 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16655
16656         PR tree-optimization/46728
16657         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16658         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16659
16660 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
16661
16662         * tree.h (struct tree_exp): Inherit from struct tree_typed.
16663         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16664         instead of TS_COMMON.
16665
16666 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16667
16668         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16669         LIBGCC2_GNU_PREFIX is defined.
16670         (__N): New macro.
16671         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16672         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16673         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16674         __clz_tab): Define using __N.
16675         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16676         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16677         * target.def (libfunc_gnu_prefix): New hook.
16678         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16679         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16680         * doc/tm.texi: Regenerate.
16681         * system.h (LIBGCC2_GNU_PREFIX): Poison.
16682         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16683         account.
16684         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16685         (init_optabs): Likewise for the bswap libfuncs.
16686         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16687         and divide.
16688         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16689         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16690         * libgcc-std.ver: Remove.
16691         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16692         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16693         libgcc-std.ver.
16694         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16695         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16696         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16697         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16698         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16699         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16700         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16701         * config/fixed-bit.h (FIXED_OP): Define differently depending on
16702         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16703         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16704
16705 2011-05-25  Jan Hubicka  <jh@suse.cz>
16706
16707         * lto-streamer-out.c (output_record_start): Use lto_output_enum
16708         (lto_output_tree): Use output_record_start.
16709         * lto-streamer-in.c (input_record_start): Use lto_input_enum
16710         (lto_get_pickled_tree): Use input_record_start.
16711         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16712         (lto_value_range_error): New function.
16713         * lto-streamer.h (lto_value_range_error): Declare.
16714         (lto_output_int_in_range, lto_input_int_in_range): New functions.
16715         (lto_output_enum, lto_input_enum): New macros.
16716
16717 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
16718
16719         * common.opt (flag_stack_usage_info): New variable.
16720         (-Wstack-usage): New option.
16721         * doc/invoke.texi (Warning options): Document -Wstack-usage.
16722         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16723         <OPT_fstack_usage>: Likewise.
16724         * toplev.c (output_stack_usage): Handle -Wstack-usage.
16725         * calls.c (expand_call): Test flag_stack_usage_info variable instead
16726         of flag_stack_usage.
16727         (emit_library_call_value_1): Likewise.
16728         * explow.c (allocate_dynamic_stack_space): Likewise.
16729         * function.c (instantiate_virtual_regs ): Likewise.
16730         (prepare_function_start): Likewise.
16731         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16732         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16733         * config/arm/arm.c (arm_expand_prologue): Likewise.
16734         (thumb1_expand_prologue): Likewise.
16735         * config/avr/avr.c (expand_prologue): Likewise.
16736         * config/i386/i386.c (ix86_expand_prologue): Likewise.
16737         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16738         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16739         * config/mips/mips.c (mips_expand_prologue): Likewise.
16740         * config/pa/pa.c (hppa_expand_prologue): Likewise.
16741         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16742         * config/s390/s390.c (s390_emit_prologue): Likewise.
16743         * config/sh/sh.c (sh_expand_prologue): Likewise.
16744         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16745         * config/spu/spu.c (spu_expand_prologue): Likewise.
16746
16747 2011-05-25  Richard Guenther  <rguenther@suse.de>
16748
16749         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16750         (gimple_canonical_types_compatible_p): Likewise.
16751
16752 2011-05-25  Jan Hubicka  <jh@suse.cz>
16753
16754         PR middle-end/49062
16755         * ipa.c (function_and_variable_visibility): Only add to same
16756         comdat group list if DECL_ONE_ONLY.
16757
16758 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
16759
16760         PR rtl-optimization/49014
16761         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16762
16763 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16764
16765         PR target/49128
16766         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16767
16768 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16769
16770         PR rtl-optimization/48757
16771         * ira-build.c (loop_with_eh_edge_p): Rename to
16772         loop_with_complex_edge_p, check edges on complexity, make function
16773         conditional.
16774         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16775         conditional.
16776
16777 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16778
16779         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
16780         force flag_ira_share_save_slots to 0.
16781
16782 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16783
16784         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16785         (vt_initialize): Set PROLOGUE_BB unconditionally.
16786         Add block comment about CFA_BASE_RTX machinery.
16787         Reset FP_CFA_OFFSET to -1 on all invalid paths.
16788         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16789
16790 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
16791
16792         PR objc/48187
16793         * c-parser.c (c_parser_objc_class_instance_variables): More robust
16794         parsing of syntax error in ObjC instance variable lists.  In
16795         particular, avoid an infinite loop if there is a stray ']'.
16796         Updated error message.
16797
16798 2011-05-24  Ian Lance Taylor  <iant@google.com>
16799
16800         * godump.c (go_define): Don't accept a string immediately after
16801         another operand.
16802
16803 2011-05-24  Ian Lance Taylor  <iant@google.com>
16804
16805         * godump.c (struct godump_container): Add invalid_hash field.
16806         (go_format_type): Return false if type is found in invalid_hash.
16807         (go_output_typedef): Add invalid type to invalid_hash.
16808         (go_finish): Create and delete invalid_hash.
16809
16810 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16811
16812         PR tree-optimization/46728
16813         * tree-ssa-math-opts.c (powi_table): New.
16814         (powi_lookup_cost): New.
16815         (powi_cost): New.
16816         (powi_as_mults_1): New.
16817         (powi_as_mults): New.
16818         (gimple_expand_builtin_powi): New.
16819         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16820         (gate_cse_sincos): Remove sincos/cexp restriction.
16821
16822 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16823
16824         PR target/3746
16825         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16826         mips-tdump native.
16827         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16828         * mips-tdump.c: Likewise.
16829
16830 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16831
16832         PR target/49128
16833         * config/i386/driver-i386.c (host_detect_local_cpu): Always
16834         add -mno-XXX.  Handle FMA.
16835
16836 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16837
16838         PR rtl-optimization/48633
16839         * ira-build.c (loop_with_eh_edge_p): New function.
16840         (mark_loops_for_removal): Use it.
16841
16842 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16843
16844         PR rtl-optimization/48971
16845         * ira.c (setup_pressure_classes): Don't check register move cost
16846         for classes with one registers.  Don't add pressure class if there
16847         is a pressure class with the same available hard registers.
16848         Check contains_reg_of_mode.  Fix a typo in collecting
16849         temp_hard_regset.  Ignore hard registers not belonging to a class.
16850
16851 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
16852
16853         PR target/49133
16854         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16855
16856 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16857             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16858
16859         PR gcov-profile/48845
16860         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16861
16862 2011-05-24  Richard Guenther  <rguenther@suse.de>
16863
16864         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16865         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16866         (gimple_types_compatible_p_1): Adjust.
16867         (iterative_hash_canonical_type): Do not bother about complete vs.
16868         incomplete types.
16869         (gimple_canonical_types_compatible_p): Likewise.
16870
16871 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16872
16873         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16874
16875 2011-05-24  Richard Guenther  <rguenther@suse.de>
16876
16877         PR bootstrap/49078
16878         * gimple.c (gimple_register_canonical_type): Revert
16879         previous change.
16880         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16881         does not for a tree for the case where it matters.  Cache
16882         pointer-type alias-sets.
16883
16884 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
16885
16886         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16887         (OBJS): Remove options.o, opts-common.o and prefix.o.
16888         (OBJS-libcommon-target): New.
16889         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16890         (BACKEND): Include libcommon-target.a.
16891         (MOSTLYCLEANFILES): Include libcommon-target.a.
16892         (libcommon-target.a): New.
16893         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16894         prefix.o.
16895
16896 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
16897
16898         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
16899         parts of output shared with the driver.
16900         * optc-gen.awk: Don't generate parts of output not shared with the
16901         driver.
16902         * opth-gen.awk: Remove GCC_DRIVER conditionals.
16903         * doc/options.texi (SourcerInclude): Mention options-save.c.
16904         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16905         (OBJS): Add options-save.o.
16906         (options-save.c, options-save.o): New.
16907         (options.o): Update dependencies.
16908         (gcc-options.o): Remove.
16909         (mostlyclean): Remove options-save.c.
16910
16911 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16912
16913         PR debug/49032
16914         * dbxout.c: Include cgraph.h.
16915         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16916         and without value expr, return NULL if no varpool node exists for
16917         it or if it is not needed.
16918         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16919
16920         PR c/49120
16921         * c-decl.c (start_decl): Convert expr to void_type_node.
16922
16923 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
16924
16925         PR rtl-optimization/48826
16926         * emit-rtl.c (try_split): When splitting a call that is followed
16927         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16928
16929 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16930
16931         * cfgexpand.c (expand_debug_expr): For unused non-addressable
16932         parameters passed in memory prefer using DECL_INCOMING_RTL over
16933         the pseudos it will be copied into.
16934
16935 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16936
16937         PR target/47315
16938         * config/i386/i386.c (ix86_option_override_internal): Save the
16939         initial options after checking vzeroupper.
16940
16941 2011-05-23  David Li  <davidxl@google.com>
16942
16943         PR tree-optimization/48988
16944         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16945         Initialize has_valid_pred for each pred chain.
16946
16947 2011-05-23  Richard Guenther  <rguenther@suse.de>
16948
16949         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16950         (iterative_hash_gimple_type): Always hash type names.
16951
16952 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
16953
16954         * c-typeck.c (build_function_call_vec): Tweak call to
16955         check_function_arguments.
16956
16957 2011-05-23  Richard Guenther  <rguenther@suse.de>
16958
16959         PR tree-optimization/49115
16960         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
16961         is not necessarily carried out, do not claim it kills the ref.
16962         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
16963
16964 2011-05-23  Richard Guenther  <rguenther@suse.de>
16965
16966         PR middle-end/15419
16967         * builtins.c (fold_builtin_memory_op): Be less restrictive about
16968         what pointer types we accept for folding.
16969
16970 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16971
16972         * gthr-gnat.c: Remove.
16973         * gthr-gnat.h: Remove.
16974         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
16975         * config/t-freebsd (LIB2ADDEH): Likewise.
16976         * config/t-linux (LIB2ADDEH): Likewise.
16977         * config/t-sol2 (LIB2ADDEH): Likewise.
16978         * config/ia64/t-vms (LIB2ADDEH): Likewise.
16979         * configure.ac (target_thread_file): Remove gnat handling.
16980         * configure: Regenerate.
16981         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
16982
16983 2011-05-23  Tristan Gingold  <gingold@adacore.com>
16984             Eric Botcazou  <ebotcazou@adacore.com>
16985
16986         * gcov.c (create_file_names): If no object directory is specified,
16987         keep the directory of the file.
16988
16989 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16990
16991         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
16992         * configure: Regenerate.
16993
16994 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16995
16996         PR middle-end/48973
16997         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
16998         failed and the comparison has a single bit signed type, use
16999         constm1_rtx instead of const1_rtx for true value.
17000         (do_store_flag): If ops->type is single bit signed type, disable
17001         signel bit test optimization and pass -1 instead of 1 as last
17002         parameter to emit_store_flag_force.
17003
17004 2011-05-23  Tom de Vries  <tom@codesourcery.com>
17005
17006         PR target/45098
17007         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
17008         function.
17009         (infer_loop_bounds_from_undefined): Use new function.
17010
17011 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17012
17013         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
17014         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
17015         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
17016         and -O0 otherwise.
17017         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
17018
17019 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17020
17021         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
17022         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
17023         returns true.
17024
17025 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17026
17027         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
17028
17029 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17030
17031         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
17032         UNSPEC_MOVE_PIC pattern.
17033
17034 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17035
17036         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
17037         (sparc-*-rtems*): Likewise.
17038         (sparc64-*-elf*): Likewise.
17039         (sparc64-*-rtems*): Likewise.
17040         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
17041         * config/sparc/t-crtin: New file.
17042         * config/sparc/t-sol2 (crti.o): Delete rule.
17043         (crtn.o): Likewise.
17044         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
17045         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
17046         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
17047         (ENDFILE_SPEC): Add crtn.o.
17048
17049 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17050
17051         PR middle-end/48689
17052         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17053         CODE_CONTAINS_STRUCT (TS_COMMON).
17054
17055 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
17056
17057         PR middle-end/49029
17058         * expmed.c (extract_fixed_bit_field): Test whether target can be used
17059         only after deciding which mode to use.
17060
17061 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17062
17063         PR target/45098
17064         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17065         for call to get_shiftadd_cost.
17066
17067 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
17068
17069         PR target/49104
17070         * config/i386/cpuid.h (bit_MMXEXT): New define.
17071
17072 2011-05-22  Nick Clifton  <nickc@redhat.com>
17073
17074         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17075         initialisation of non-existant args[2] element.  Use args[] array
17076         not arg[] array to pass arguments to build_function_type_list.
17077
17078 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
17079
17080         PR tree-optimization/49087
17081         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17082
17083 2011-05-21  Jason Merrill  <jason@redhat.com>
17084
17085         PR c++/49092
17086         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17087         static storage duration.
17088
17089 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17090
17091         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17092         frame pointer.
17093
17094 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17095
17096         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17097         false if there are call-saved registers here...
17098         (sparc_can_use_return_insn_p): ...but here instead.
17099         (save_or_restore_regs): Fix thinko.
17100         (sparc_expand_prologue): Use current_function_is_leaf.
17101         (sparc_frame_pointer_required): Likewise.
17102
17103 2011-05-21  Nick Clifton  <nickc@redhat.com>
17104
17105         PR target/49098
17106         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17107
17108 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17109
17110         * gengtype.c (walk_type): Implemented "atomic" GTY option.
17111         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17112
17113 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
17114
17115         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
17116         * optc-gen.awk: Move common code to opt-read.awk.
17117         * opth-gen.awk: Likewise.
17118         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17119
17120 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
17121
17122         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17123
17124 2011-05-20  Tom de Vries  <tom@codesourcery.com>
17125
17126         PR target/45098
17127         * tree-ssa-loop-ivopts.c: Include expmed.h.
17128         (get_shiftadd_cost): New function.
17129         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
17130
17131 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17132
17133         PR bootstrap/49086
17134         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17135         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17136
17137 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17138
17139         * Makefile.in: Update comment referring to $(OBJS-common).
17140
17141 2011-05-20  Ian Lance Taylor  <iant@google.com>
17142
17143         * godump.c (go_output_typedef): Put enum constants in the macro
17144         hash table to avoid duplicate Go const definitions.
17145
17146 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17147
17148         * Makefile.in (LIBDEPS): Add libcommon.a.
17149         (LIBS): Likewise.
17150         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17151         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17152         pretty-print.o and version.o.
17153         (OBJS-libcommon): New.
17154         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17155         (BACKEND): Add libcommon.a.
17156         (MOSTLYCLEANFILES): Likewise.
17157         (libcommon.a): New.
17158         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17159         (cpp$(exeext)): Likewise.
17160         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17161         pretty-print.o and input.o.
17162         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17163         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17164         (errors.o): Remove.
17165         (mips-tfile): Don't explicitly use version.o.
17166         (mips-tdump): Likewise.
17167         (gcov.o): Depend on $(DIAGNOSTIC_H).
17168         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17169         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17170         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17171         * gcov-dump.c: Include intl.h and diagnostic.h.
17172         (main): Initialize diagnostics.
17173         * gcov.c: Include diagnostic.h.
17174         (fnotice): Remove.
17175         (main): Initialize diagnostics.
17176         * lto-wrapper.c: Include diagnostic.h.
17177         (main): Initialize diagnostics.
17178
17179 2011-05-20  Michael Matz  <matz@suse.de>
17180
17181         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17182
17183 2011-05-20  Michael Matz  <matz@suse.de>
17184             Richard Guenther  <rguenther@suse.de>
17185
17186         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
17187         use lto_streamer_cache_append directly instead of returning a VEC.
17188         (preload_common_node): Remove.
17189         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
17190         track seen nodes.
17191         (lto_streamer_cache_create): Call lto_preload_common_nodes.
17192
17193 2011-05-20  Richard Guenther  <rguenther@suse.de>
17194
17195         PR tree-optimization/49079
17196         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
17197         MEM_REFs correctly for the trailing array access detection.
17198         Special case constants the same way as decls for overall size
17199         constraining.
17200
17201 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
17202
17203         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
17204         argument expansion.
17205
17206 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17207
17208         PR tree-optimization/49073
17209         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
17210         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
17211         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
17212
17213 2011-05-20  Richard Guenther  <rguenther@suse.de>
17214
17215         PR middle-end/48849
17216         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
17217         of pointer types the same way the middle-end does.
17218
17219 2011-05-20  Richard Guenther  <rguenther@suse.de>
17220
17221         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
17222         or pointer-to chains.  Delay all fixup to uniquify_nodes.
17223
17224 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
17225
17226         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
17227         (fma4_fmaddsub): Likewise
17228
17229 2011-05-19  Jan Hubicka  <jh@suse.cz>
17230
17231         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
17232         (GIMPLE_TYPE_PAIR_SIZE): New macro.
17233         (type_pair_cache): New static var.
17234         (lookup_type_pair): Use fixed sized custom hash; make inline.
17235         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
17236         calls of lookup_type_pair.
17237         (print_gimple_types_stats): Remove cache stats.
17238         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
17239         and gtc_ob.
17240
17241 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
17242
17243         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
17244         when TARGET_RDRND is active.
17245         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
17246         Generate dummy SImode target register when target is NULL.
17247
17248 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17249
17250         * config/arm/arm-fpus.def: New.
17251         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
17252         arm-fpus.def.
17253         * config/arm/arm-tables.opt: Regenerate.
17254         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
17255         (arm_option_override): Don't decode FPU name to string here.
17256         * config/arm/arm.opt (mfpu=): Use Enum.
17257         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
17258         Update dependencies.
17259
17260 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17261
17262         * collect2.c: Include diagnostic.h.
17263         (fatal_perror, fatal, error, fancy_abort): Remove.
17264         (main): Set progname.  Call xmalloc_set_program_name and
17265         diagnostic_initialize.
17266         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
17267         scan_libraries, resolve_lib_name): Call fatal_error instead of
17268         fatal and fatal_perror.
17269         * collect2.h (error, fatal, fatal_perror): Don't declare.
17270         * tlink.c: Include diagnostic-core.h.
17271         (recompile_files): Call fatal_error instead of fatal_perror.
17272         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
17273         pretty-print.o and input.o.
17274         (collect2.o, tlink.o): Update dependencies.
17275
17276 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17277
17278         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
17279
17280 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17281
17282         PR target/40483
17283         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
17284         COMDAT group syntax, both SPARC and x86 variants.
17285         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
17286         * configure: Regenerate.
17287         * config/sol2.h (TARGET_SOLARIS): Define.
17288         (PUSHSECTION_FORMAT): Remove.
17289         (SECTION_NAME_FORMAT): Define.
17290         * config/sol2.c: Include hashtab.h.
17291         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17292         expansion, using SECTION_NAME_FORMAT.
17293         (solaris_comdat_htab): New variable.
17294         (struct comdat_entry): Define.
17295         (comdat_hash): New function.
17296         (comdat_eq): New function.
17297         (solaris_elf_asm_comdat_section): New function.
17298         (solaris_define_comdat_signature): New function.
17299         (solaris_code_end): New function.
17300         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
17301         (solaris_code_end): Declare.
17302         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
17303         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
17304         solaris_code_end.
17305         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
17306         Remove ATTRIBUTE_UNUSED.
17307         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
17308         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
17309         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
17310         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
17311         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
17312         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
17313         (PUSHSECTION_FORMAT): Remove.
17314         (SECTION_NAME_FORMAT): Redefine.
17315
17316 2011-05-19  Kai Tietz  <ktietz@redhat.com>
17317
17318         * tree-cfg.c (verify_gimple_assign_binary): Barf on
17319         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
17320         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
17321
17322 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
17323             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17324
17325         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
17326
17327 2011-05-19  Richard Guenther  <rguenther@suse.de>
17328
17329         PR middle-end/48985
17330         * tree-object-size.c (addr_object_size): If the pointed-to
17331         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17332
17333 2011-05-19  Richard Guenther  <rguenther@suse.de>
17334
17335         * gimple.c (gimple_types_compatible_p_1): Compare names of
17336         the types themselves.
17337         (iterative_hash_gimple_type): And hash them that way.
17338         (gimple_register_type_1): If we register a main variant properly
17339         initialize the leader to ourselves.
17340
17341 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17342
17343         PR target/45098
17344         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17345         get_loop_invariant_expr_id.
17346         (get_loop_invariant_expr_id): Use get_expr_id.
17347         (parm_decl_cost): New function.
17348         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17349         Improve bound cost estimation.  Use different inv_expr_id for elim and
17350         express cases.
17351
17352 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17353
17354         PR target/45098
17355         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17356         cost_base.cost == 0.
17357
17358 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17359
17360         PR target/49002
17361         * config/i386/sse.md
17362         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17363         load cast.
17364
17365 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17366
17367         PR tree-optimization/49039
17368         * tree-vrp.c (extract_range_from_binary_expr): For
17369         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17370         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17371
17372 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17373
17374         PR target/45098
17375         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17376
17377 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
17378
17379         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17380         (*tls_global_dynamic_64): Ditto.
17381         (*tls_local_dynamic_base_32_gnu): Ditto.
17382         (*tls_local_dynamic_base_64): Ditto.
17383         (tls_initial_exec_64_sun): Ditto.
17384
17385 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
17386
17387         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17388         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17389         bf592-none.
17390         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17391         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17392         * config/bfin/bfin.c (bfin_cpus): Add bf592.
17393         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17394         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17395         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17396         * config/bfin/elf.h (LIB_SPEC): Add bf592.
17397
17398 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
17399
17400         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17401         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17402         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17403         target_thread_pointer, arm_structure_size_boundary, struct
17404         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17405         struct abi_name, arm_all_abis): Remove.
17406         (arm_option_override) Don't process most enumerated option values here.
17407         Don't process target_fpe_name here.  Work with integer not string for
17408         structure size boundary; use separate diagnostics for each case.
17409         * config/arm/arm.h (enum float_abi_type, enum
17410         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17411         to arm-opts.h.
17412         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17413         arm_structure_size_boundary): Remove.
17414         * config/arm/arm.opt (mabi=): Use Enum and Init.
17415         (arm_abi_type): New Enum and EnumValue entries.
17416         (mfloat-abi=): Use Enum and Init.
17417         (float_abi_type): New Enum and EnumValue entries.
17418         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17419         (mfp16-format=): Use Enum and Init.
17420         (arm_fp16_format_type): New Enum and EnumValue entries.
17421         (mstructure-size-boundary=): Use UInteger and Init.
17422         (mtp=): Use Enum and Init.
17423         (arm_tp_type): New Enum and EnumValue entries.
17424
17425 2011-05-18  Richard Guenther  <rguenther@suse.de>
17426
17427         PR tree-optimization/49018
17428         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17429         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17430         gimple_has_side_effects.
17431
17432 2011-05-18  Richard Guenther  <rguenther@suse.de>
17433
17434         * gimple.c (gimple_register_type_1): New function, split out from ...
17435         (gimple_register_type): ... here.  Avoid infinite recursion.
17436
17437 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17438
17439         PR tree-optimization/41881
17440         * tree-vectorizer.h (struct _loop_vec_info): Add new field
17441         reduction_chains along with a macro for its access.
17442         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17443         (destroy_loop_vec_info): Free reduction chains.
17444         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17445         (vect_is_slp_reduction): New function.
17446         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17447         (vect_create_epilog_for_reduction): Support SLP reduction chains.
17448         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17449         definition types for reduction chains.
17450         (vect_supported_load_permutation_p): Don't allow permutations for
17451         reduction chains.
17452         (vect_analyze_slp_instance): Support reduction chains.
17453         (vect_analyze_slp): Try to build SLP instance from reduction chains.
17454         (vect_get_constant_vectors):  Handle reduction chains.
17455         (vect_schedule_slp_instance): Mark the first statement of the
17456         reduction chain as reduction.
17457
17458 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17459
17460         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17461         names for group elements access.
17462         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17463         reduction chains as well.  Remove data reference and interleaving
17464         related words from the fields names.
17465         * tree-vect-loop.c (vect_transform_loop): Use new names for group
17466         elements access.
17467         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17468         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17469         vect_update_interleaving_chain, vect_same_range_drs,
17470         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17471         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17472         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17473         vect_analyze_group_access, vect_analyze_data_ref_access,
17474         vect_create_data_ref_ptr, vect_transform_strided_load,
17475         vect_record_strided_load_vectors): Likewise.
17476         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17477         vect_model_load_cost, vectorizable_store, vectorizable_load,
17478         vect_remove_stores, new_stmt_vec_info): Likewise.
17479         * tree-vect-slp.c (vect_build_slp_tree,
17480         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17481
17482 2011-05-18  Richard Guenther  <rguenther@suse.de>
17483
17484         PR middle-end/48989
17485         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17486         operand verification.
17487         (verify_gimple_assign_binary): Likewise.
17488         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17489         to non-1-precision BOOLEAN_TYPEs.
17490
17491 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17492
17493         PR target/45098
17494         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17495
17496 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17497
17498         PR tree-optimization/49000
17499         * tree-ssa.c (execute_update_addresses_taken): Call
17500         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
17501         be rewritten and decl has been marked for renaming, reset
17502         the debug stmt.
17503
17504 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
17505
17506         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17507         enum_opts_set when testing if attributes have set -mfpmath=.
17508
17509 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17510
17511         * config/mips/mips.c (mips_handle_option): Remove unused variable.
17512
17513 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17514
17515         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17516         info->entry with 0
17517         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
17518         id.transform_lang_insert_block with NULL.
17519
17520 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17521
17522         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17523         (output_fp_compare): Change args 3 and 4 to bool.
17524         (ix86_expand_call): Change arg 6 to bool.
17525         (ix86_attr_length_immediate_default): Change arg 2 to bool.
17526         (ix86_attr_length_vex_default): Change arg 3 to bool.
17527         * config/i386/i386.md: Update all uses.
17528         * config/i386/i386.c: Ditto.
17529         (ix86_flags_dependent): Change return type to bool.
17530
17531 2011-05-17  Richard Guenther  <rguenther@suse.de>
17532
17533         * gimple.c (type_hash_pair_compare): Fix comparison.
17534
17535 2011-05-17  Richard Guenther  <rguenther@suse.de>
17536
17537         * gimple.c (iterative_hash_gimple_type): Simplify singleton
17538         case some more, fix final hash value of the non-singleton case.
17539
17540 2011-05-17  Richard Guenther  <rguenther@suse.de>
17541
17542         PR bootstrap/49013
17543         Revert
17544         2011-05-16  Richard Guenther  <rguenther@suse.de>
17545
17546         * gimple.c (gimple_types_compatible_p_1): Use names of the
17547         type itself, not its main variant.
17548         (iterative_hash_gimple_type): Likewise.
17549
17550 2011-05-17  Richard Guenther  <rguenther@suse.de>
17551
17552         * gimple.c (gimple_register_canonical_type): Use the main-variant
17553         leader for computing the canonical type.
17554
17555 2011-05-17  Nick Clifton  <nickc@redhat.com>
17556
17557         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17558         moves.
17559
17560         * config/rx/rx.md: Add peephole to remove redundant extensions
17561         after loads.
17562         (bitset_in_memory): Use rx_restricted_mem_operand.
17563         (bitinvert_in_memory): Likewise.
17564         (bitclr_in_memory): Likewise.
17565
17566 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
17567             Nick Clifton  <nickc@redhat.com>
17568
17569         * config/rx/rx.md: Add peepholes to match a register move followed
17570         by a comparison of the moved register.  Replace these with an
17571         addition of zero that does both actions in one instruction.
17572
17573 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
17574
17575         PR target/48986
17576         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17577         predicate to allow CONST_INT.
17578         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17579
17580 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17581
17582         * opts-common.c (opt_enum_arg_to_value): New.
17583         * opts.h (opt_enum_arg_to_value): Declare.
17584         * config/i386/i386.opt (fpmath): Remove.
17585         (mfpmath=): Use Enum, Init and Save.
17586         (fpmath_unit): New Enum and EnumValue entries.
17587         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17588         name for function fpmath state.
17589         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17590         * config/i386/i386.c: Include diagnostic.h.
17591         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17592         (ix86_target_string): Take enum fpmath_unit value instead of string.
17593         (ix86_debug_options): Update call to ix86_target_string.
17594         (ix86_option_override_internal): Don't process fpmath strings here.
17595         (x86_function_specific_save, ix86_function_specific_restore):
17596         Don't handle fpmath state specially.
17597         (ix86_function_specific_print): Pass fpmath state to
17598         ix86_target_string instead of printing in this function.
17599         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17600         Handle enum attributes.
17601         (IX86_ATTR_ENUM, ix86_opt_enum): New.
17602         (ix86_valid_target_attribute_tree): Update option_strings
17603         handling.  Handle fpmath as enum option.
17604         (ix86_can_inline_p): Update field names for function fpmath state.
17605         (ix86_expand_builtin): Update call to ix86_target_string.
17606         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17607         (ix86_fpmath): Remove.
17608         * config/i386/t-i386 (i386.o): Update dependencies.
17609
17610 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17611
17612         PR preprocessor/48677
17613         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17614         from decoded_options[0], not from itself.
17615
17616 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
17617
17618         * config/i386/constraints.md (z): New constraint.
17619         * config/i386/i386.c (c): New mode attribute.
17620         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17621         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17622         constraint for operand 0.
17623         (*call_vzeroupper): Ditto.
17624         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
17625         (*call_rex64_ms_sysv_vzeroupper): Ditto.
17626         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17627         Use "lzm" constraint for operand 0.
17628         (*call_pop_vzeroupper): Ditto.
17629         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17630         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
17631         constraint for operand 0.
17632         (*sibcall_vzeroupper): Ditto.
17633         (*sibcall_rex64_ms_sysv): Ditto.
17634         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17635         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17636         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
17637         (*sibcall_pop_vzeroupper): Ditto.
17638         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17639         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17640         mode iterator.  Use "<c>zm" constraint for operand 1.
17641         (*call_value_vzeroupper): Ditto.
17642         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
17643         for operand 1.
17644         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17645         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17646         *call_value_pop_1.  Use "lzm" constraint for operand 1.
17647         (*call_value_pop_vzeroupper): Ditto.
17648         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17649         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17650         mode iterator.  Use "Uz" constraint for operand 1.
17651         (*sibcall_value_vzeroupper): Ditto.
17652         (*sibcall_value_rex64_ms_sysv): Ditto.
17653         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17654         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
17655         constraint for operand 1.
17656         (*sibcall_value_pop_vzeroupper): Ditto.
17657         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17658         and "z" constraint for operand 2.
17659         (*tls_global_dynamic_32_gnu): Ditto.
17660         (*tls_local_dynamic_base_32_gnu): Ditto.
17661         (*tls_local_dynamic_base_64): Ditto.
17662         (*tls_local_dynamic_32_once): Ditto.
17663         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17664         Update all callers.
17665         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17666
17667 2011-05-16  Richard Guenther  <rguenther@suse.de>
17668
17669         * gimple.c (gimple_types_compatible_p_1): Use names of the
17670         type itself, not its main variant.
17671         (iterative_hash_gimple_type): Likewise.
17672
17673 2011-05-16  Richard Guenther  <rguenther@suse.de>
17674
17675         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17676         always visit pointer target and function result and argument types.
17677
17678 2011-05-16  Jason Merrill  <jason@redhat.com>
17679
17680         PR c++/48999
17681         * tree-inline.c (copy_statement_list): Put back recursion.
17682
17683 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17684
17685         PR target/27663
17686         PR target/41076
17687         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17688         * config/avr/avr.md ("*ior<mode>qi.byte0",
17689         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17690
17691 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17692
17693         PR target/45099
17694         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17695         register is needed for a function argument.
17696
17697 2011-05-16  Richard Guenther  <rguenther@suse.de>
17698
17699         * gimple.c (struct type_hash_pair): New type.
17700         (type_hash_pair_compare): New function.
17701         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17702
17703 2011-05-16  Revital Eres  <revital.eres@linaro.org>
17704
17705         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17706
17707 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17708
17709         * config/i386/i386.md (floating point move splitters): Fix
17710         usage of standard_80387_constant_p.
17711         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17712
17713 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17714
17715         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17716
17717 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17718
17719         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17720         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17721         (tree_ssa_lim_finalize): Likewise.
17722
17723 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
17724
17725         * config/i386/constraint.md (Yd, Yx): New register constraints.
17726         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
17727         Yd conditional register constraint.
17728         (*movtf_internal): Use standard_sse_constant_opcode.
17729         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
17730         Yx conditional register constraint.
17731         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
17732         Yd conditional register constraint.  Use standard_sse_constant_p to
17733         check for valid SSE constants and call standard_sse_constant_opcode to
17734         output SSE insn.
17735         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17736         constants and call standard_sse_constant_opcode to output SSE insn.
17737         * config/i386/i386.c (ix86_option_ovverride_internal): Set
17738         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
17739         optimize_size is set.
17740         (standard_sse_constant_opcode): Output conditional AVX insn templates.
17741
17742 2011-05-14  Tobias Burnus  <burnus@net-b.de>
17743
17744         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17745
17746 2011-05-13  Martin Jambor  <mjambor@suse.cz>
17747
17748         * ipa-prop.c (ipa_cst_from_jfunc): New function.
17749         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17750         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17751         (evaluate_conditions_for_ipcp_clone): Removed.
17752         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17753         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17754         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17755
17756 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17757
17758         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17759         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17760         lieu of MAY_HAVE_DEBUG_STMTS.
17761         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17762         debug statements if !MAY_HAVE_DEBUG_STMTS.
17763
17764 2011-05-13  Martin Thuresson  <martint@google.com>
17765
17766         PR gcov-profile/47793
17767         * libgcov.c (gcov_exit): Support relative profile paths.
17768         * doc/invoke.texi (-fprofile-dir): Update for above change.
17769
17770 2011-05-13  Richard Guenther  <rguenther@suse.de>
17771
17772         * gimple.c (gimple_canonical_types_compatible_p): Do not use
17773         type-pair caching, do not compare hashes.
17774
17775 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
17776
17777         PR middle-end/48965
17778         * tree-cfg.c (edge_to_cases_cleanup): Return true.
17779         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
17780
17781 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17782
17783         * gimplify.c (gimplify_expr): Make sure operand is boolified.
17784         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17785         compatible type for TRUTH_NOT_EXPR.
17786
17787 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17788
17789         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17790         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
17791         can_create_pseudo_p ().
17792
17793 2011-05-13  Richard Guenther  <rguenther@suse.de>
17794
17795         PR lto/48978
17796         * gimple.c (iterative_hash_gimple_type): Revert change in
17797         pointer target and function result and argument hashing.
17798
17799 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
17800
17801         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17802         (*movxf_internal_nointeger): Ditto.
17803         (*movdf_internal_rex64): Ditto.
17804         (*movdf_internal): Ditto.
17805         (*movdf_internal_nointeger): Ditto.
17806         (*movsf_internal): Ditto.
17807         (sincos splitters): Use can_create_pseudo ().
17808
17809 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
17810
17811         * config/i386/i386-opts.h: New.
17812         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17813         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17814         ix86_section_threshold): Remove.
17815         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
17816         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17817         OPT_mbranch_cost_.
17818         (ix86_option_override_internal): Don't decode strings for options
17819         other than -march=, -mtune= and -mfpmath=.  Don't allow for
17820         __attribute__ uses in remaining diagnostics for options with
17821         string arguments.  Don't check for integer arguments being negative.
17822         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17823         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17824         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17825         ix86_branch_cost, ix86_section_threshold): Remove.
17826         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17827         HeaderInclude.
17828         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17829         but not Var.
17830         (masm=): Use Enum and Init.
17831         (asm_dialect): New Enum and EnumValue entries.
17832         (mbranch-cost=): Use UInteger.
17833         (mlarge-data-threshold=): Use UInteger and Init.
17834         (mcmodel=): Use Enum and Init.
17835         (cmodel): New Enum and EnumValue entries.
17836         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17837         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17838         mregparm=): Use UInteger.
17839         (mstringop-strategy=): Use Enum and Init.
17840         (stringop_alg): New Enum and EnumValue entries.
17841         (mtls-dialect=): Use Enum and Init.
17842         (tls_dialect): New Enum and EnumValue entries.
17843         (mabi=): Use Enum and Init.
17844         (calling_abi): New Enum and EnumValue entries.
17845         (mveclibabi=): Use Enum and Init.
17846         (ix86_veclibabi): New Enum and EnumValue entries.
17847
17848 2011-05-13  Nick Clifton  <nickc@redhat.com>
17849
17850         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17851         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17852
17853 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17854
17855         PR middle-end/48984
17856         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17857         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17858         (gimple_boolify): Check for cast for boolean_type_node instead for
17859         BOOLEAN_TYPE.
17860
17861 2011-05-13  Richard Guenther  <rguenther@suse.de>
17862
17863         PR tree-optimization/48172
17864         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17865         multiplying by number of iterations for equal step.
17866         (vect_create_cond_for_alias_checks): Likewise.
17867
17868 2011-05-13  Andreas Schwab  <schwab@redhat.com>
17869
17870         * configure.ac: Use AS_HELP_STRING throughout.
17871         * configure: Regenerate.
17872
17873 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17874
17875         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17876         (ix86_emit_restore_regs_using_mov): Likewise.
17877         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17878
17879 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
17880
17881         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17882         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17883         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17884         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17885         RTX_OK_FOR_OLO10_P): ...here.
17886         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17887         SYMBOLIC_CONST.
17888
17889 2011-05-12  Kai Tietz  <ktietz@redhat.com>
17890
17891         * gimplify.c (gimple_boolify): Re-boolify expression
17892         arguments even if expression type is of kind BOOLEAN_TYPE.
17893         (gimplify_boolean_expr): Removed.
17894         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17895         and XOR. Additional take care that we keep expression's type.
17896         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17897         of TRUTH_AND|OR|XOR_EXPR.
17898
17899 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17900
17901         PR tree-optimization/48975
17902         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17903         on all bbs here and free and clear ifc_bbs at the end.
17904
17905 2011-05-12  Richard Guenther  <rguenther@suse.de>
17906
17907         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17908         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
17909         until after simple checks.
17910         (gimple_types_compatible_p): Likewise.
17911         (iterative_hash_gimple_type): Always hash pointer targets
17912         and function return and argument types.
17913         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17914         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
17915         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17916         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
17917         completely in the simple compare section.
17918         (gimple_register_canonical_type): Query the cache again after
17919         registering.
17920
17921 2011-05-12  Richard Guenther  <rguenther@suse.de>
17922
17923         PR tree-optimization/48172
17924         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17925         the number of iterations from the segment size calculation.
17926         (vect_create_cond_for_alias_checks): Adjust.
17927
17928 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17929
17930         PR debug/48967
17931         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17932         if validate_subreg fails.
17933
17934 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
17935
17936         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17937         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17938         early.
17939
17940 2011-05-12  DJ Delorie  <dj@redhat.com>
17941
17942         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17943         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17944         created builtin into rx_builtins array.
17945         (rx_builtin_decl): New function.
17946         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
17947
17948 2011-05-12  DJ Delorie  <dj@redhat.com>
17949             Nick Clifton  <nickc@redhat.com>
17950
17951         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17952         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17953         (rx_is_legitimate_address): Add pre-decrement and post-increment
17954         addressing in HImode and QImode.  Fix test for out of range
17955         REG+INT addressing.
17956         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17957         (rx_align_for_label): Test label before extracting its usage count.
17958         (rx_adjust_insn_lengths): Fix selection of insn codes.
17959         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17960
17961 2011-05-11  Jason Merrill  <jason@redhat.com>
17962
17963         * tree.c (type_hash_canon): Use struct tree_type_non_common.
17964
17965 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17966
17967         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
17968         reindent the subsequent block.
17969
17970 2011-05-11  Satoru Takabayashi  <satorux@google.com>
17971             Paul Pluzhnikov  <ppluzhnikov@google.com>
17972
17973         * doc/install.texi (Configuration): Document --with-linker-hash-style.
17974         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
17975         * config.in: Add LINKER_HASH_STYLE.
17976         * configure.ac: Add --with-linker-hash-style.
17977         * configure: Regenerate.
17978
17979 2011-05-11  Richard Guenther  <rguenther@suse.de>
17980
17981         PR middle-end/48964
17982         * gimple.c (iterative_hash_canonical_type): Fix typo.
17983
17984 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
17985
17986         * config/i386/i386.c (legitimize_tls_address)
17987         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17988         expanders directly for TARGET_GNU2_TLS.  Determine pic and
17989         __tls_get_addr symbol reference here.  Update call to
17990         gen_tls_global_dynamic_{32,64} for added arguments.
17991         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17992         expanders directly for TARGET_GNU2_TLS.  Determine
17993         __tls_get_addr symbol reference here.  Update call to
17994         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
17995         unique UNSPEC REG_EQUIV to libcall block.
17996         (ix86_tls_get_addr): Declare static.
17997         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
17998         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
17999         Do not determine pic and __tls_get_addr symbol reference here. Do not
18000         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
18001         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
18002         (tls_global_dynamic_64): Add operand 2.  Do not determine
18003         __tls_get_addr symbol reference here.  Do not call
18004         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
18005         (tls_local_dynamic_base64): Ditto for operand 1.
18006
18007 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18008
18009         * function.c (expand_function_start): Initialize stack_check_probe_note
18010         only if the generic stack checking mechanism is used.
18011
18012 2011-05-11  Richard Guenther  <rguenther@suse.de>
18013
18014         PR tree-optimization/15256
18015         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
18016         (A & B) | C, combine (A op CST1) op CST2.
18017         (tree_ssa_forward_propagate_single_use_vars): Only bother to
18018         visit assigns that have uses.
18019
18020 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
18021
18022         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
18023         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
18024         (unpack_ts_type_common_value_fields): ...this.  Update comment.
18025         (unpack_value_fields): Adjust for renaming.
18026         (lto_input_ts_type_tree_pointers): Split into...
18027         (lto_input_ts_type_common_tree_pointer): ...this and...
18028         (lto_input_ts_type_non_common_tree_pointers): ...this.
18029         (lto_input_tree_pointers): Adjust for above split.
18030         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
18031         (pack_ts_type_common_value_fields): ...this.  Update comment.
18032         (lto_output_ts_type_tree_pointers): Split into...
18033         (lto_output_ts_type_common_tree_pointers): ...this and...
18034         (lto_output_ts_type_non_common_tree_pointers): ...this.
18035         (lto_output_tree_pointers): Adjust for above split.
18036         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
18037         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
18038         * stor-layout.c (vector_type_mode): Adjust location of mode field.
18039         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
18040         Define.
18041         (struct tree_type): Split into...
18042         (struct tree_type_common: ...this and...
18043         (struct tree_type_with_lang_specific): ...this and...
18044         (struct tree_type_non_common): ...this.  Adjust accessor macros
18045         accordingly.
18046         (TYPE_VALUES_RAW): Define.
18047         (union tree_node): Update for above changes.
18048         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18049         TS_TYPE_NON_COMMON.
18050         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18051         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18052         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18053         * treestructu.def (TS_TYPE): Remove.
18054         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18055         Define.
18056
18057 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
18058
18059         PR debug/48159
18060         * tree-ssa.c (reset_debug_uses): New function.
18061         * tree-flow.h (reset_debug_uses): New prototype.
18062         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18063         * tree-loop-distribution.c (generate_loops_for_partition): Call
18064         reset_debug_uses on the stmts that will be removed.  Keep around
18065         all debug stmts, don't count them as bits in partition bitmap.
18066         (generate_builtin): Don't count debug stmts or labels as bits in
18067         partition bitmap.
18068
18069 2011-05-11  Richard Guenther  <rguenther@suse.de>
18070
18071         * gimple.c (gimple_type_hash_1): Merge with ...
18072         (gimple_type_hash): ... this.
18073         (gtc_visit): Remove mode parameter and simplify accordingly.
18074         (gimple_types_compatible_p_1): Likewise.
18075         (gimple_types_compatible_p): Likewise.
18076         (iterative_hash_gimple_type): Likewise.
18077         (visit): Likewise.
18078         (gimple_type_eq): Adjust.
18079
18080 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18081
18082         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18083         enters the branch create an anti edge in the opposite direction
18084         to prevent the creation of reg-moves.
18085         * modulo-sched.c: Adjust comment to reflect the fact we are
18086         scheduling closing branch.
18087         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18088         (stage_count): New field in struct partial_schedule.
18089         (calculate_stage_count): New function.
18090         (normalize_sched_times): Rename to reset_sched_times and handle
18091         incrementing the sched time of the nodes by a constant value
18092         passed as parameter.
18093         (duplicate_insns_of_cycles): Skip closing branch.
18094         (sms_schedule_by_order): Schedule closing branch.
18095         (ps_insn_find_column): Handle closing branch.
18096         (sms_schedule): Call reset_sched_times and adjust the code to
18097         support scheduling of the closing branch.
18098         (ps_insert_empty_row): Update calls to normalize_sched_times
18099         and rotate_partial_schedule functions.
18100
18101 2011-05-11  Richard Guenther  <rguenther@suse.de>
18102
18103         PR middle-end/48953
18104         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18105
18106 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
18107
18108         * opts.c (finish_options): Move warning settings from process_options.
18109         * toplev.c (process_options): Move warning settings to finish_options.
18110
18111 2011-05-11  Richard Guenther  <rguenther@suse.de>
18112
18113         PR tree-optimization/18041
18114         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18115         (simplify_bitwise_binary): ... this.  Handle operand conversions
18116         by applying them to the result instead.
18117         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
18118
18119 2011-05-11  Richard Guenther  <rguenther@suse.de>
18120
18121         * gimple.c (gimple_canonical_types_compatible_p): Split out
18122         from gimple_types_compatible_p and friends.  Do not recurse
18123         to pointed-to types.
18124         (gimple_canonical_type_eq): Use it.
18125         (iterative_hash_canonical_type): Split out from
18126         iterative_hash_gimple_type and friends.  Do not recurse
18127         to pointed-to types.
18128         (gimple_canonical_type_hash): Use it, allocate the hash here.
18129
18130 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18131
18132         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18133         recognizing doloop.
18134
18135 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18136
18137         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18138         instead of PREV_INSN.
18139
18140 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18141
18142         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18143         * loop-doloop.c (doloop_condition_get): Likewise.
18144         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18145         (doloop_end): New.
18146         * config/arm/arm.md (*addsi3_compare0): Remove "*".
18147
18148 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
18149
18150         * tree.def (CASE_LABEL_EXPR): Add an operand.
18151         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18152
18153 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18154
18155         * c-decl.c (c_override_global_bindings_to_false): Remove.
18156         (global_bindings_p): Don't check
18157         c_override_global_bindings_to_false.
18158         * c-tree.h (c_override_global_bindings_to_false): Remove.
18159         * c-typeck.c (composite_type): Don't set
18160         c_override_global_bindings_to_false.
18161
18162 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
18163
18164         PR target/48857, 48495
18165         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18166         (VSX_MODE): Ditto.
18167         (VSX_MOVE_MODE): Ditto.
18168         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18169         VSX vector types.  Add V2DImode.
18170         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18171         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18172         (MODES_TIEABLE_P): Ditto.
18173
18174         * config/rs6000/rs6000.c (rs6000_emit_move): Use
18175         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18176         VSX_VECTOR_MODE.
18177         (init_cumulative_args): Ditto.
18178         (rs6000_function_arg_boundary): Ditto.
18179         (rs6000_function_arg_advance_1): Ditto.
18180         (rs6000_function_arg): Ditto.
18181         (rs6000_function_ok_for_sibcall): Ditto.
18182         (emit_frame_save): Ditto.
18183         (rs6000_function_value): Ditto.
18184         (rs6000_libcall_value): Ditto.
18185
18186 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18187
18188         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18189         i386/darwin-lib.h to $libgcc_tm_file.
18190         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
18191
18192 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18193
18194         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
18195
18196 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18197
18198         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
18199         * config/rs6000/rs6000-tables.opt: New file (generated).
18200         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
18201         rs6000/rs6000-tables.opt to extra_options.
18202         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
18203         * config/rs6000/rs6000.c (rs6000_select): Remove.
18204         (processor_target_table): Move contents to rs6000-cpus.def.
18205         (darwin_rs6000_override_options): Check
18206         global_options_set.x_rs6000_cpu_index instead of
18207         rs6000_select[1].string.
18208         (rs6000_option_override_internal): Likewise.
18209         (rs6000_handle_option): Don't assert that global structures are in
18210         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
18211         (rs6000_default_cpu): New variable.
18212         (rs6000_file_start): Set it instead of local default_cpu.  Check
18213         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
18214         global_options_set.x_rs6000_tune_index instead of rs6000_select.
18215         (rs6000_darwin_file_start): Check rs6000_default_cpu and
18216         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
18217         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
18218         rs6000_select): Remove.
18219         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
18220         Remove.
18221         (mcpu=, mtune=): Use Var, Init, Enum and Save.
18222         * config/rs6000/t-rs6000
18223         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
18224         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18225         global_options_set.x_rs6000_cpu_index instead of
18226         rs6000_select[1].string.
18227         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18228         global_options_set.x_rs6000_cpu_index instead of
18229         rs6000_select[1].string.
18230
18231 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18232
18233         * config.gcc (libgcc_tm_file): Define instead of including files
18234         from ../../libgcc/config/ in tm_file.
18235         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
18236         * configure: Regenerate.
18237         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
18238         libgcc_tm.h, cs-libgcc_tm.h): New.
18239         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
18240         (clean): Remove libgcc_tm.h.
18241         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
18242         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
18243         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
18244
18245 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
18246
18247         PR target/48896
18248         * config/avr/avr.c (avr_ret_register): Return unsigned int
18249         instead of int.
18250         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
18251         it to avr_libcall_value.
18252         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
18253         expand_expr.
18254         (avr_expand_binop_builtin): Ditto.
18255         (avr_expand_unop_builtin): Ditto.
18256
18257 2011-05-10  DJ Delorie  <dj@redhat.com>
18258
18259         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
18260         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
18261         * config/rx/rx.c (rx_align_for_label): Add label and
18262         uses_threshold parameters.  Do not align when the label is not
18263         used enough.
18264         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
18265
18266 2011-05-10  Richard Guenther  <rguenther@suse.de>
18267
18268         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
18269         a series of conversions and apply foldings similar to what
18270         fold-const does.
18271         (tree_ssa_forward_propagate_single_use_vars): Call it.
18272
18273 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
18274
18275         PR tree-optimization/48611
18276         PR tree-optimization/48794
18277         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
18278         referenced from RESX or EH_DISPATCH arguments.
18279
18280         PR debug/48928
18281         * dfp.c (decimal_to_decnumber): Handle conversion from
18282         dconst{1,2,m1,half}.
18283
18284 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18285
18286         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
18287         for !flag_prefer_avx128.
18288         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18289
18290 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18291
18292         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
18293         (fold_ternary_loc): Use expr_location_or.
18294
18295 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18296
18297         PR debug/48853
18298         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
18299         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
18300         Pmode and mem_mode is not VOIDmode.
18301
18302 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
18303
18304         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
18305         TYPE_QUAL_RESTRICT): Convert to enum.
18306
18307 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18308
18309         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
18310         (const_pow2_1_to_8_operand): Ditto.
18311         (const_pow2_1_to_128_operand): Ditto.
18312         (const_pow2_1_to_32768_operand): Ditto.
18313         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
18314         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
18315         in insn constraint to check integer value of operand 3.
18316         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
18317
18318         (PINSR_MODE): New mode iterator.
18319         (sse2p4_1): New mode attribute.
18320         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
18321         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
18322         iterator.  Use const_int_operand instead of
18323         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
18324         exact_log2 in insn constraint to check integer value of operand 3.
18325
18326 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18327
18328         * config/i386/sse.md (blendbits): Remove mode attribute.
18329         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18330         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18331         Check integer value of operand 3 in insn constraint.
18332
18333 2011-05-09  Richard Guenther  <rguenther@suse.de>
18334
18335         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18336         for diagnostics.
18337         (lto_symtab_merge): Likewise.  Do not register types here.
18338         (lto_symtab_merge_decls_2): Likewise.
18339         (lto_symtab_merge_decls_1): Likewise.
18340         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18341         * gimple.c (enum gtc_mode): Declare.
18342         (gimple_types_compatible_p): Make static.
18343
18344 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18345
18346         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18347         temporary register to match Pmode.
18348
18349 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18350
18351         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18352         and *vec_concatv4si_1_avx.
18353
18354 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18355
18356         PR rtl-optimization/48927
18357         * ira-conflicts.c (commutative_constraint_p): Use
18358         recog_data.alternative_enabled_p to disable alternatives where
18359         "enabled" attribute is false.
18360         (get_dup_num): Ditto.
18361         * ira-lives.c (single_reg_class): Ditto.
18362         (ira_implicitly_set_insn_hard_regs): Ditto.
18363
18364 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18365
18366         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18367         (dataflow_set_preserve_mem_locs): Likewise.
18368
18369 2011-05-09  Philipp Thomas  <pth@suse.de>
18370
18371         * config/mep/mep.c (mep_validate_vliw): Syntax description
18372         should not be translated.
18373
18374 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
18375
18376         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18377         * config/mips/mips-tables.opt: New file (generated).
18378         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18379         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18380         MIPS_ARCH_OPTION_NATIVE): Define.
18381         * config/mips/mips.c (mips_cpu_info_table): Move contents to
18382         mips-cpus.def.
18383         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18384         mips_parse_cpu): Remove.
18385         (mips_cpu_info_from_opt, mips_default_arch): New.
18386         (mips_handle_option): Don't assert that global structures are in
18387         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18388         (mips_option_override): Use new variables and functions to set
18389         state of these options.  Use strcmp to check for individual CPU names.
18390         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18391         definition.
18392         * config/mips/mips.opt (march=): Use ToLower and Enum.
18393         (mips): Use ToLower, Enum and Var.
18394         (mtune=): Use ToLower and Enum.
18395         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18396
18397 2011-05-08  Jan Hubicka  <jh@suse.cz>
18398
18399         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18400         Arrange type pairs to be UID ordered.
18401         (gimple_lookup_type_leader): Make inline.
18402
18403 2011-05-09  Nick Clifton  <nickc@redhat.com>
18404
18405         PR target/48899
18406         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18407         PROCESSOR_DEFAULT.
18408
18409         PR target/48897
18410         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18411         variable 's'.
18412
18413 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
18414
18415         * combine.c (simplify_comparison): Abstract out parts into...
18416         (simplify_compare_const): ... new function.
18417         (try_combine): Generalize parallel arithmetic/compare combining
18418         to call simplify_compare_const() and CANONICALIZE_COMPARE().
18419
18420 2011-05-08  Jan Hubicka  <jh@suse.cz>
18421
18422         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18423         (cgraph_create_virtual_clone): Call hooks once virtual clone
18424         is finished.
18425         * cgraph.h (cgraph_clone_node): Update prototype.
18426         * ipa-cp.c (ipcp_estimate_growth): Use
18427         estimate_ipcp_clone_size_and_time.
18428         * ipa-inline-transform.c (clone_inlined_nodes): Update.
18429         * lto-cgraph.c (input_node): Update.
18430         * ipa-inline.c (recursive_inlining): Update.
18431         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18432         (evaluate_conditions_for_known_args): Break out from ...
18433         (evaluate_conditions_for_edge): ... here.
18434         (evaluate_conditions_for_ipcp_clone): New function.
18435         (inline_node_duplication_hook): Update clone summary based
18436         on parameter map.
18437         (estimate_callee_size_and_time): Rename to ...
18438         (estimate_node_size_and_time): take NODE instead of EDGE;
18439         take POSSIBLE_TRUTHS as argument.
18440         (estimate_callee_size_and_time): Update.
18441         (estimate_ipcp_clone_size_and_time): New function.
18442         (do_estimate_edge_time): Update.
18443
18444 2011-05-08  Richard Guenther  <rguenther@suse.de>
18445
18446         PR middle-end/48908
18447         PR middle-end/48905
18448         * expmed.c (expand_shift_1): Compute adjusted constant shift
18449         amount manually.
18450
18451 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18452
18453         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18454
18455 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18456
18457         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18458
18459 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
18460
18461         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18462
18463 2011-05-07  Jan Hubicka  <jh@suse.cz>
18464
18465         * ipa-inline-transform.c (inline_call): Account when program size
18466         decreases.
18467         * ipa-inline.c (relative_time_benefit): New function.
18468         (edge_badness): Reorganize to be power 2 based; fix thinko when
18469         computing badness for negative growth; update comments to match
18470         reality; better dumps.
18471
18472 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
18473
18474         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18475         type to bool and adjust comment.
18476         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18477         (fold_mathfn_compare): Remove calls to global_bindings_p.
18478         (fold_inf_compare): Likewise.
18479         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18480         * c-tree.h (global_bindings_p): Adjust prototype.
18481         * c-decl.c (global_bindings_p): Return bool and simplify.
18482
18483 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
18484
18485         PR tree-optimization/48837
18486         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18487         when accumulator transformation is performed.
18488
18489 2011-05-06  Jan Hubicka  <jh@suse.cz>
18490
18491         * i386.h (ix86_tune_indices): Add
18492         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18493         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18494         * i386.c (initial_ix86_tune_features): Add
18495         X86_SOFTARE_PREFETCHING_BENEFICIAL.
18496         (software_prefetching_beneficial_p): Remove predicate.
18497         (ix86_option_override_internal): Use new macro.
18498
18499 2011-05-06  Jan Hubicka  <jh@suse.cz>
18500
18501         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18502
18503 2011-05-06  Jan Hubicka  <jh@suse.cz>
18504
18505         * cgraph.c (cgraph_add_thunk): Create real function node instead
18506         of alias node; finalize it and mark needed/reachale; arrange visibility
18507         to be right and add it into the corresponding same comdat group list.
18508         (dump_cgraph_node): Dump thunks.
18509         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18510         cgraph_function_with_gimple_body_p,
18511         cgraph_first_function_with_gimple_body,
18512         cgraph_next_function_with_gimple_body): New functions.
18513         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18514         New macros.
18515         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18516         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18517         * cgraphunit.c (cgraph_finalize_function): Only look into possible
18518         devirtualization when optimizing.
18519         (verify_cgraph_node): Verify thunks.
18520         (cgraph_analyze_function): Analyze thunks.
18521         (cgraph_mark_functions_to_output): Output thunks only in combination
18522         with function they are assigned to.
18523         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18524         alias into normal node.
18525         (assemble_thunks): New functoin.
18526         (cgraph_expand_function): Use it.
18527         * lto-cgraph.c (lto_output_node): Stream thunks.
18528         (input_overwrite_node): Stream in thunks.
18529         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18530         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18531         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18532         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18533         (inline_analyze_function): Do not care about thunk jump functions.
18534         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18535         * ipa-prop.c (ipa_prop_write_jump_functions): Use
18536         cgraph_function_with_gimple_body_p.
18537         * passes.c (do_per_function_toporder): Use
18538         cgraph_function_with_gimple_body_p.
18539         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18540         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18541         (function_called_by_processed_nodes_p): Likewise.
18542
18543 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18544
18545         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18546         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18547         entries.
18548         (mabi=): Replace with separate entries for mabi=altivec,
18549         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18550         mabi=ieeelongdouble and mabi=ibmlongdouble.
18551         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18552         check for -mabi=spe without SPE ABI support here.
18553         (rs6000_handle_option): Replace OPT_mabi_ handling with
18554         OPT_mabi_altivec and OPT_mabi_spe handling.
18555
18556 2011-05-06  Cary Coutant  <ccoutant@google.com>
18557
18558         * dwarf2out.c (contains_subprogram_definition): New function.
18559         (should_move_die_to_comdat): Call it.
18560
18561 2011-05-06  Jeff Law  <law@redhat.com>
18562
18563         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18564         remove_ctrl_stmt_and_useless_edges.
18565         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18566         (fixup_template_block, thread_single_edge): Likewise.
18567         (mark_threaded_blocks): Use THREAD_TARGET.
18568
18569 2011-05-06  Alan Modra  <amodra@gmail.com>
18570
18571         PR target/48900
18572         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18573         const0_rtx as the arg to the dummy __tls_get_addr libcall.
18574
18575 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18576
18577         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18578         constraint modifier to "r".
18579
18580 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18581
18582         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18583         fall through for OPT_mcmodel_.
18584
18585 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18586
18587         * config/s390/s390.c (s390_asm_trampoline_template): Comment
18588         instruction sizes.
18589         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18590
18591 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18592
18593         PR target/47930
18594         * config/arm/arm.opt (marm): Document it.
18595         (mthumb): Reject negative variant.
18596
18597 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18598
18599         PR target/48898
18600         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18601         Fix typo in "ccvt" variable name.
18602
18603 2011-05-06  Tristan Gingold  <gingold@adacore.com>
18604
18605         PR target/48895
18606         * config/vms/vms-ar.c (main): Remove cwd variable.
18607
18608 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18609
18610         PR debug/48902
18611         * var-tracking.c (prepare_call_arguments): Move else before #endif.
18612
18613 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
18614
18615         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18616         * gimplify.c (gimplify_switch_expr): Likewise.
18617         * omp-low.c (expand_omp_sections): Likewise.
18618         * tree-eh.c (lower_try_finally_switch): Likewise.
18619         (lower_eh_dispatch): Likewise.
18620         * tree.h (build_case_label): Declare.
18621         * tree.c (build_case_label): Define.
18622
18623 2011-05-05  Jason Merrill  <jason@redhat.com>
18624
18625         PR c++/40975
18626         * tree-inline.c (copy_tree_r): Use copy_statement_list.
18627         (copy_statement_list): Don't recurse.
18628         * stor-layout.c (copy_self_referential_tree_r): Don't allow
18629         STATEMENT_LIST.
18630
18631 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18632
18633         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18634         through from -mfpu= handling.
18635         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18636
18637 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
18638
18639         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18640         POST_MODIFY.
18641
18642 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
18643
18644         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18645         for 11.31.
18646         (hppa[12]*-*-hpux11*): Ditto.
18647         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18648         * config/ia64/hpux-unix2003.h: New.
18649         * config/pa/pa-hpux1131.opt: New.
18650         * config/pa/pa-hpux1131.h: New.
18651         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18652         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18653         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18654
18655 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18656
18657         PR debug/48853
18658         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18659         instead of mode as 3rd argument to recursive call.
18660         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18661         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18662         VOIDmode.
18663         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18664         don't give up if mode is Pmode and mem_mode is not VOIDmode.
18665         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18666         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18667
18668 2011-05-05  Julian Brown  <julian@codesourcery.com>
18669
18670         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18671         parenthesis in D-register case.
18672
18673 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18674
18675         * opt-functions.awk (var_type_struct): Handle Enum options.
18676         * optc-gen.awk: Don't check range of variables of character type.
18677         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18678         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18679         rs6000_sdata_name, rs6000_explicit_options): Remove.
18680         (rs6000_option_override_internal): Check for -malign-power here.
18681         Use global_options_set instead of rs6000_explicit_options.
18682         (rs6000_parse_fpu_option): Remove.
18683         (rs6000_handle_option): Access variables via opts and opts_set
18684         pointers.  Use error_at and warning_at.  Add fall-through
18685         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18686         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18687         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18688         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18689         here.  Don't use rs6000_parse_fpu_option.
18690         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18691         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18692         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18693         (mrecip=): Use Var.
18694         (mspe): Use Var and Save.
18695         (mtraceback=): Use Enum and Var.
18696         (rs6000_traceback_type): New Enum and EnumValue entries.
18697         (mfloat-gprs=): Use Enum, Var and Save.
18698         (rs6000_float_gprs): New Enum and EnumValue entries.
18699         (mlong-double-): use Var and Save.
18700         (msched-costly-dep=, minsert-sched-nops=): Use Var.
18701         (malign-): Use Enum and Var.
18702         (rs6000_alignment_flags): New Enum and EnumValue entries.
18703         (mfpu=): Use Enum.
18704         (fpu_type_t): New Enum and EnumValue entries.
18705         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18706         global_options_set instead of rs6000_explicit_options.
18707         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18708         global_options_set instead of rs6000_explicit_options.
18709         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18710         global_options_set instead of rs6000_explicit_options.
18711         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18712         global_options_set instead of rs6000_explicit_options.
18713         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18714         global_options_set instead of rs6000_explicit_options.
18715         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18716         global_options_set instead of rs6000_explicit_options.
18717         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18718         definition.
18719         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18720         global_options_set instead of rs6000_explicit_options.
18721         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18722         (rs6000_cmodel): New Enum and EnumValue entries.
18723         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18724         global_options_set instead of rs6000_explicit_options.
18725         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18726         (mtls-size=): Use Enum and Var.
18727         (rs6000_tls_size): New Enum and EnumValue entries.
18728
18729 2011-05-05  Michael Matz  <matz@suse.de>
18730
18731         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18732         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18733         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18734         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18735         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18736         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18737         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18738         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18739         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18740         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18741         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18742         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18743         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18744         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18745         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18746         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18747
18748 2011-05-05  Richard Guenther  <rguenther@suse.de>
18749
18750         * expmed.c (expand_variable_shift): Rename to ...
18751         (expand_shift_1): ... this.  Take an expanded shift amount.
18752         For rotates recurse directly not building trees for the shift amount.
18753         (expand_variable_shift): Wrap around expand_shift_1.
18754         (expand_shift): Adjust.
18755
18756 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18757
18758         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18759
18760 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18761
18762         * tree.h (get_pending_sizes): Remove prototype.
18763         (put_pending_size): Likewise.
18764         (put_pending_sizes): Likewise.
18765         * stor-layout.c (pending_sizes): Delete.
18766         (get_pending_sizes): Likewise.
18767         (put_pending_size): Likewise.
18768         (put_pending_sizes): Likewise.
18769         (variable_size): Do not call put_pending_size and tidy up.
18770         * function.h (struct function): Remove dont_save_pending_sizes_p.
18771         * lto-streamer-in.c (input_function): Do not stream it.
18772         * lto-streamer-out.c (output_function): Likewise.
18773         * tree-inline.c (initialize_cfun): Do not copy it.
18774         * c-decl.c (store_parm_decls): Do not set it.
18775         * omp-low.c (create_task_copyfn): Likewise.
18776         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18777
18778 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
18779
18780         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
18781         conditions.
18782         (*movdf_internal): Ditto.
18783         (*movdf_internal_nointeger): Ditto.
18784         (*movsf_internal): Ditto.
18785
18786 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18787
18788         * c-decl.c (finish_decl): Don't call get_pending_sizes.
18789         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
18790         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
18791         (c_variable_size): Remove.
18792         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
18793         call put_pending_sizes.
18794         (get_parm_info): Add parameter expr.  Use it to set
18795         arg_info->pending_sizes.
18796         (store_parm_decls): Use arg_info->pending_sizes instead or calling
18797         get_pending_sizes.
18798         * c-parser.c (c_parser_parms_declarator): Update call to
18799         c_parser_parms_list_declarator.
18800         (c_parser_parms_list_declarator): Take parameter expr.  Update
18801         call to push_parm_decl.  Update recursive call.  Don't call
18802         get_pending_sizes.  Update calls to get_parm_info.
18803         (c_parser_objc_method_definition): Update calls to
18804         c_parser_objc_method_decl and objc_start_method_definition.
18805         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18806         (c_parser_objc_method_decl): Add parameter expr.  Update call to
18807         grokparm.
18808         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18809         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18810         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18811
18812 2011-05-05  Michael Hope  <michael.hope@linaro.org>
18813
18814         PR pch/45979
18815         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18816         __ARM_EABI__ hosts.
18817
18818 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18819
18820         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18821         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18822         (spu_output_mi_thunk): New function.
18823
18824 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18825
18826         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18827         targetm.asm_out.print_operand.
18828         * config/sol2.c: Include target.h.
18829
18830 2011-05-04  Jan Hubicka  <jh@suse.cz>
18831
18832         * ipa-inline.c (reset_edge_caches): New function.
18833         (update_caller_keys): Add check_inlinablity_for; do not
18834         reset edge caches; remove now unnecesary loop.
18835         (update_callee_keys): Add comments; reset node_growth_cache of callee.
18836         (update_all_callee_keys): Likewise.
18837         (inline_small_functions): Sanity check cache; update code
18838         recomputing it.
18839
18840 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
18841
18842         PR rtl-optimization/47612
18843         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18844         as the last insn of the sequence to be moved.
18845
18846 2011-05-04  Tobias Burnus  <burnus@net-b.de>
18847
18848         PR fortran/48864
18849         * doc/invoke.texi (Ofast): Document that it
18850         enables Fortran's -fno-protect-parens.
18851
18852 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18853
18854         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18855
18856 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18857
18858         * stor-layout.c (variable_size): Do not issue errors.
18859
18860 2011-05-04  Richard Guenther  <rguenther@suse.de>
18861
18862         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18863         for array-ref indices.
18864         (tree_coverage_counter_addr): Likewise.
18865         (build_fn_info_type): Use size_int for index types.
18866         (build_gcov_info): Likewise.
18867
18868 2011-05-04  Richard Guenther  <rguenther@suse.de>
18869
18870         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18871         to build_int_cst.
18872         * c-typeck.c (really_start_incremental_init): Use bitsize_int
18873         for constructor indices.
18874         (push_init_level): Likewise.
18875
18876 2011-05-04  Richard Guenther  <rguenther@suse.de>
18877
18878         * explow.c (promote_mode): Move variable declarations before code.
18879
18880 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
18881
18882         * tree.h (build_function_type_array): Declare.
18883         (build_varargs_function_type_array): Declare.
18884         (build_function_type_vec, build_varargs_function_type_vec): Define.
18885         * tree.c (build_function_type_array_1): New function.
18886         (build_function_type_array): New function.
18887         (build_varargs_function_type_array): New function.
18888
18889 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
18890
18891         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18892         before setting STMT_VINFO_TYPE.
18893
18894 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18895
18896         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18897         instead of spu_pass_by_reference.
18898
18899 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18900
18901         * calls.c (emit_library_call_value_1): Invoke
18902         promote_function_mode hook on libcall arguments.
18903         * explow.c (promote_function_mode, promote_mode): Handle TYPE
18904         argument being NULL.
18905         * targhooks.c (default_promote_function_mode): Lisewise.
18906         * config/s390/s390.c (s390_promote_function_mode): Likewise.
18907         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18908
18909         * doc/tm.texi: Document that TYPE argument might be NULL.
18910
18911 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18912
18913         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18914
18915 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18916
18917         From Bernd Schmidt
18918         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18919
18920 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18921
18922         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18923         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18924         Move ...
18925         * mips-tfile.c: ... here.
18926         Don't include coretypes.h, tm.h, filenames.h.
18927         (saber_stop): Remove definition and all calls.
18928         [__SABER__]: Remove.
18929         (__LINE__): Remove default.
18930         (Size_t, Ptrdiff_t): Remove definitions.
18931         Replace by size_t, ptrdiff_t.
18932         [!MIPS_DEBUGGING_INFO]: Remove.
18933         (SHASH_SIZE, THASH_SIZE): Remove defaults.
18934         (progname): Add const.
18935         (STATIC): Remove.
18936         Replace all uses by static.
18937         (ALIGN_SYMTABLE_OFFSET): Remove default.
18938         * mips-tdump.c: Don't include coretypes.h, tm.h.
18939         Remove !MIPS_IS_STAB guard.
18940         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18941         $(TM_H), filenames.h dependencies.
18942         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18943
18944 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18945
18946         From Jie Zhang
18947         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18948         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18949
18950 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18951
18952         From Bernd Schmidt
18953         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18954         account and save/restore RETS.
18955         (PROFILE_BEFORE_PROLOGUE): Define.
18956         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
18957         the push insn to use predecrement.
18958
18959 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18960
18961         From Jie Zhang
18962         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
18963
18964 2011-05-04  Nick Clifton  <nickc@redhat.com>
18965
18966         * config/mn10300/mn10300.c: Include cfgloop.h.
18967         (DUMP): New macro.
18968         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
18969         Lcc or a FLcc insn into the instruction stream.
18970         (mn10300_block_contains_call): New function.  Returns true if the
18971         given basic block contains a CALL insn.
18972         (mn10300_loop_contains_call_insn): New function.  Returns true if
18973         the given loop contains a CALL insn.
18974         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
18975         to use the SETLB and Lcc or FLcc insns.
18976         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
18977         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
18978         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
18979         disable the SETLB optimization.
18980         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
18981         __SETLB__ or __NO_SETLB__.
18982         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
18983         (movsf_internal): Handle MDR register.
18984         (cmpsi): Make visible.
18985         (setlb): New pattern.
18986         (Lcc): New pattern.
18987         (FLcc): New pattern.
18988
18989 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18990
18991         PR target/48860
18992         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
18993         for reg<->xmm moves.
18994         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
18995         (vec_concatv2di_rex64_sse): Ditto.
18996         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
18997         (*vec_extractv2di_1_rex64): Ditto.
18998
18999         Revert:
19000         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19001
19002         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19003         reg<->xmm moves.
19004         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
19005
19006 2011-05-04  Richard Guenther  <rguenther@suse.de>
19007
19008         * tree.h (int_const_binop): Remove notrunc argument.
19009         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
19010         create integer constants that are properly truncated.
19011         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
19012         (const_binop): Remove zero notrunc argument to int_const_binop.
19013         (size_binop_loc): Likewise.
19014         (fold_div_compare): Likewise.
19015         (maybe_canonicalize_comparison_1): Likewise.
19016         (fold_comparison): Likewise.
19017         (fold_binary_loc): Likewise.
19018         (multiple_of_p): Likewise.
19019         * expr.c (store_constructor): Likewise.
19020         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19021         (maybe_fold_stmt_addition): Likewise.
19022         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
19023         * stor-layout.c (layout_type): Likewise.
19024         * tree-data-ref.c (tree_fold_divides_p): Likewise.
19025         * tree-sra.c (build_ref_for_offset): Likewise.
19026         (build_user_friendly_ref_for_offset): Likewise.
19027         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
19028         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19029         * tree-ssa-loop-niter.c (inverse): Likewise.
19030         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19031         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
19032         * tree-switch-conversion.c (check_range): Likewise.
19033         (build_constructors): Likewise.
19034         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19035         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
19036         (extract_range_from_assert): Likewise.
19037         (vrp_int_const_binop): Likewise.
19038         (extract_range_from_binary_expr): Likewise.
19039         (extract_range_from_unary_expr): Likewise.
19040         (check_array_ref): Likewise.
19041         (find_case_label_range): Likewise.
19042         (simplify_div_or_mod_using_ranges): Likewise.
19043         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
19044         comparing case labels for merging.
19045
19046 2011-05-03  Mark Wielaard  <mjw@redhat.com>
19047
19048         * dwarf2out.c (debug_str_hash_forced): Removed.
19049         (gen_label_for_indirect_string): Removed.
19050         (get_debug_string_label): Removed.
19051         (AT_string_form): Generate label directly.
19052         (output_indirect_string): Test indirect_string_node for
19053         DW_FORM_strp instead of checking label and refcount.
19054         (prune_indirect_string): Removed.
19055         (prune_unused_types): Don't check debug_str_hash_forced or
19056         call prune_indirect_string.
19057
19058 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19059
19060         PR other/48093
19061         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19062
19063 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19064
19065         PR debug/47994
19066         PR debug/47919
19067         * combine.c (try_combine): Skip debug insns at m_split tests.
19068
19069 2011-04-26  Mark Wielaard  <mjw@redhat.com>
19070
19071         PR42288
19072         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19073         when info_section_emitted.
19074
19075 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
19076
19077         * config/mips/mips-opts.h: New.
19078         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19079         to mips-opts.h.
19080         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19081         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19082         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
19083         via opts pointer.
19084         * config/mips/mips.h (enum mips_code_readable_setting): Move to
19085         mips-opts.h.
19086         (mips_abi, mips_code_readable): Don't declare.
19087         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19088         (mabi=): Use Enum and Var.
19089         (mips_abi): New Enum and EnumValue entries.
19090         (mcode-readable=): Use Enum and Var.
19091         (mips_code_readable_setting): New Enum and EnumValue entries.
19092         (mr10k-cache-barrier=): Use Enum and Var.
19093         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19094
19095 2011-05-03  Jan Hubicka  <jh@suse.cz>
19096
19097         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19098         replace hash by pointer map.
19099         (cgraph_node_set_element_def, cgraph_node_set_element,
19100         const_cgraph_node_set_element, varpool_node_set_element_def,
19101         varpool_node_set_element, const_varpool_node_set_element): Remove.
19102         (free_cgraph_node_set, free_varpool_node_set): New function.
19103         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19104         * tree-emutls.c: Free varpool node set.
19105         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19106         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19107         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19108         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19109         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19110         Move here from ipa.c; implement using pointer_map
19111         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
19112         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19113         debug_cgraph_node_set, varpool_node_set_new,
19114         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19115         dump_varpool_node_set, debug_varpool_node_set):
19116         Move to ipa-uitls.c.
19117         * passes.c (ipa_write_summaries): Update.
19118
19119 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19120
19121         From Mike Frysinger:
19122         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19123         bf542/bf544/bf547/bf548/bf549.
19124
19125 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19126
19127         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19128
19129 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19130
19131         From Bernd Schmidt:
19132         * config/bfin/bfin.md (MOVCC): New mode_macro.
19133         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19134         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
19135         comments from generated assembly.
19136
19137 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19138
19139         From Bernd Schmidt
19140         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19141         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19142         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19143         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19144         * config/bfin/lib1funcs.asm (___muldi3): New function.
19145
19146 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19147
19148         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19149         build_function_type_list instead of build_function_type.
19150         Rearrange initialization of `args' to do so.
19151
19152 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19153
19154         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19155         instead of build_function_type.
19156
19157 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19158
19159         * config/rs6000/rs6000.c (spe_init_builtins): Call
19160         build_function_type_list instead of build_function_type.
19161         (paired_init_builtins, altivec_init_builtins): Likewise.
19162         (builtin_function_type): Likewise.
19163
19164 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19165
19166         * config/sh/sh.c (sh_media_init_builtins): Call
19167         build_function_type_list instead of build_function_type.
19168
19169 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19170
19171         * config/sparc/sparc.c (sparc_file_end): Call
19172         build_function_type_list instead of build_function_type.
19173
19174 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19175
19176         * config/alpha/alpha.c (alpha_init_builtins): Call
19177         build_function_type_list instead of build_function_type.
19178
19179 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19180
19181         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19182         build_function_type_list instead of build_function_type.
19183
19184 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19185
19186         * config/iq2000/i2000.c (iq2000_init_builtins): Call
19187         build_function_type_list instead of build_function_type.
19188         Delete `endlink' variable.
19189
19190 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19191
19192         * config/avr/avr.c (avr_init_builtins): Call
19193         build_function_type_list instead of build_function_type.
19194
19195 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19196
19197         * config/picochip/picochip.c (picochip_init_builtins): Call
19198         build_function_type_list instead of build_function_type.
19199         Delete `endlink' variable.
19200
19201 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19202
19203         * config/bfin/bfin.c (bfin_init_builtins): Call
19204         build_function_type_list instead of build_function_type.
19205
19206 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19207
19208         From Bernd Schmidt
19209         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
19210         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
19211
19212 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19213
19214         From Jie Zhang:
19215         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
19216         libbffastfp overrides libgcc when -mfast-fp.
19217
19218 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19219
19220         Originally from Bernd Schmidt
19221         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
19222         * config/bfin/bfin.c (override_options): Test it and error if
19223         TARGET_FDPIC.
19224
19225 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19226
19227         Originally From Bernd Schmidt
19228         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
19229         FD-PIC.
19230
19231 2011-05-03  Jeff Law  <law@redhat.com>
19232
19233         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
19234         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
19235         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
19236         than accessing AUX field directly.  Free the AUX field before
19237         clearing it.
19238         (thread_block, thread_through_loop_header): Likewise.
19239         (thread_single_edge, mark_threaded_blocks): Likewise.
19240         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
19241         (register_jump_thread): Do not attempt to thread to a NULL edge.
19242
19243 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19244
19245         * function.c (init_function_start): Call decide_function_section.
19246         * varasm.c (decide_function_section): New function.
19247         (assemble_start_function): When not using
19248         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
19249         or first_function_block_is_cold.
19250         * rtl.h (decide_function_section): Declare.
19251
19252 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19253             Jakub Jelinek  <jakub@redhat.com>
19254
19255         PR target/48774
19256         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
19257         only succeed if req_mode is the same as set_mode.
19258
19259 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19260
19261         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
19262         * genemit.c (gen_exp): Handle RETURN.
19263         * emit-rtl.c (verify_rtx_sharing): Likewise.
19264         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
19265         * rtl.c (copy_rtx): RETURN is shared.
19266         * rtl.h (enum global_rtl_index): Add GR_RETURN.
19267         (ret_rtx): New.
19268         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
19269         * config/s390/s390.c (s390_emit_epilogue): Likewise.
19270         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
19271         * config/cris/cris.c (cris_expand_return): Likewise.
19272         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
19273         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
19274         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
19275         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
19276         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
19277         Likewise.
19278         * config/v850/v850.c (expand_epilogue): Likewise.
19279         * config/bfin/bfin.c (bfin_expand_call): Likewise.
19280         * config/arm/arm.md (epilogue): Likewise.
19281         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
19282         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
19283         variable to ret_reg.
19284
19285 2011-05-03  Richard Guenther  <rguenther@suse.de>
19286
19287         PR lto/48846
19288         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
19289         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
19290         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19291
19292 2011-05-03  Richard Guenther  <rguenther@suse.de>
19293
19294         * c-decl.c (grokdeclarator): Instead of looking at
19295         TREE_OVERFLOW check if the constant fits in the index type.
19296
19297 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19298
19299         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
19300         (vec_store_lanes<mode><mode>): Likewise.
19301
19302 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19303
19304         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
19305         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
19306         convert_optab_index values.
19307         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
19308         * genopinit.c (optabs): Initialize the new optabs.
19309         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
19310         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
19311         (expand_STORE_LANES): New functions.
19312         * tree.h (build_array_type_nelts): Declare.
19313         * tree.c (build_array_type_nelts): New function.
19314         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
19315         (vect_model_load_cost): Likewise.
19316         (vect_store_lanes_supported, vect_load_lanes_supported)
19317         (vect_record_strided_load_vectors): Declare.
19318         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
19319         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
19320         (vect_transform_strided_load): Split out statement recording into...
19321         (vect_record_strided_load_vectors): ...this new function.
19322         * tree-vect-stmts.c (create_vector_array, read_vector_array)
19323         (write_vector_array, create_array_ref): New functions.
19324         (vect_model_store_cost): Add store_lanes_p argument.
19325         (vect_model_load_cost): Add load_lanes_p argument.
19326         (vectorizable_store): Try to use store-lanes functions for
19327         interleaved stores.
19328         (vectorizable_load): Likewise load-lanes and loads.
19329         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
19330         to vect_model_store_cost.
19331         (vect_build_slp_tree): Likewise vect_model_load_cost.
19332
19333 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19334
19335         * hooks.h (hook_bool_mode_uhwi_false): Declare.
19336         * hooks.c (hook_bool_mode_uhwi_false): New function.
19337         * target.def (array_mode_supported_p): New hook.
19338         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19339         * doc/tm.texi: Regenerate.
19340         * stor-layout.c (mode_for_array): New function.
19341         (layout_type): Use it.
19342         * config/arm/arm.c (arm_array_mode_supported_p): New function.
19343         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19344
19345 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
19346
19347         PR target/48723
19348         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19349         for -fstack-check if the size to allocate is negative.
19350
19351 2011-05-02  Lawrence Crowl  <crowl@google.com>
19352
19353         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19354         (timevar_cond_start): New for starting a timer only when it is not
19355         already running.
19356         (timevar_cond_stop): New for stopping a timer when it was not already
19357         running.
19358
19359         * timevar.c (timevar_stop): Enable start/stop timers to start again.
19360         (timevar_cond_start): New as above.
19361         (timevar_cond_stop): New as above.
19362
19363         * timevar.def: Add start/stop timers for compiler phases,
19364         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19365         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19366         and TV_PHASE_FINALIZE.
19367         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19368         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19369         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19370         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19371         Make unused TV_OVERLOAD into a start/stop timer.
19372
19373         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19374         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19375         to indicate that they are start/stop timers.
19376
19377         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19378         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19379         Move initialization to do_compile.
19380         (do_compile): Add initialization from above.
19381         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19382
19383         * c-decl.c (c_write_global_declarations): Add start/stop of
19384         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19385
19386         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19387         or TV_PARSE_INLINE, as appropriate.
19388         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19389         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19390
19391 2011-05-02  Jason Merrill  <jason@redhat.com>
19392
19393         PR c++/40975
19394         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19395
19396 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
19397
19398         PR c/35445
19399         * c-decl.c (finish_decl): Only create a composite if the types are
19400         compatible.
19401
19402 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19403
19404         * config/fr30/fr30-protos.h (Mmode): Don't define.
19405         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
19406         definition where used.
19407         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19408         define.  Expand definitions where used.
19409         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19410         Expand definitions where used.
19411         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19412         rx_function_arg, rx_function_arg_advance,
19413         rx_function_arg_boundary): Expand definitions of those macros.
19414         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
19415         definition where used.
19416
19417 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19418
19419         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19420         reg<->xmm moves.
19421         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19422         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
19423         with *movv2sf_internal_rex64_avx.
19424         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19425         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19426         Use %v prefix in insn mnemonic to handle TARGET_AVX.
19427         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
19428         "vex" in "prefix" attribute calculation.
19429         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
19430
19431 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
19432
19433         PR target/47951
19434         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19435         inputs match the output.
19436
19437 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
19438
19439         PR target/47955
19440         * config/m68k/m68k.c (m68k_expand_prologue): Set
19441         current_function_static_stack_size.
19442
19443 2011-05-02   Jan Hubicka  <jh@suse.cz>
19444
19445         * lto-streamer.c (lto_streamer_cache_insert_1,
19446         lto_streamer_cache_lookup, lto_streamer_cache_create,
19447         lto_streamer_cache_delete): Use pointer map instead of hashtable.
19448         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19449
19450 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19451
19452         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19453         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19454         config/m68k/t-opts: New files.
19455         * config/m68k/m68k-tables.opt: New file (generated).
19456         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19457         extra_options and m68k/t-opts to tmake_file.
19458         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19459         (all_isas): Initialize using m68k-isas.def.
19460         (all_microarchs): Initialize using m68k-microarchs.def.
19461         (m68k_find_selection): Remove.
19462         (m68k_handle_option): Don't assert that global structures are in
19463         use.  Use error_at.  Access variables via opts pointer.  Don't
19464         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
19465         directly for -m68020-40 and -m68020-60.
19466         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19467         m68k_tune_entry here.
19468         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19469         to m68k-opts.h.
19470         (m68k_library_id_string): Remove declaration.
19471         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19472         (m68k_library_id_string): New Variable.
19473         (march=, mcpu=, mtune=): Use Enum and Var.
19474
19475 2011-05-02  Richard Guenther  <rguenther@suse.de>
19476
19477         * varasm.c (output_constructor_regular_field): Compute zero-based
19478         index with double-ints.  Make sure to ICE instead of producing
19479         wrong code.
19480         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19481         in asserts.  Properly use a signed type.
19482
19483 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19484
19485         * config/i386/sse.md (V): New mode iterator.
19486         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
19487         TARGET_SSE2.
19488         (V_256): Rename from AVX256MODE.
19489         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
19490         condition to all users.
19491         (VF1): Ditto.
19492         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
19493         condition to all users.
19494         (VF_128): Make V4SF mode unconditional.
19495         (VF_256): Rename from AVX256MODEF2P.
19496         (VI4F_128): Rename from SSEMODE4S.
19497         (VI8F_128): Rename from SSEMODE2D.
19498         (VI4F_256): Rename from AVX256MODE8P.
19499         (VI8F_256): Rename from AVX256MODE4P.
19500         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19501         (ssescalarmodesuffix): Remove SF and DF modes.
19502         (SSEMODE124): Remove.
19503         (SSEMODE1248): Ditto.
19504         (SSEMODEF2P): Ditto.
19505         (AVXMODEF2P): Ditto.
19506         (AVXMODEFDP): Ditto.
19507         (AVXMODEFSP): Ditto.
19508         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19509         unconditional.
19510         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
19511         unconditional.
19512         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19513         xop_pcmov_<mode>256.  Use V mode iterator.
19514
19515         Adjust RTX patterns globally for renamed mode attributes.
19516
19517 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19518
19519         * haifa-sched.c (sched_emit_insn): Emit insn before first
19520         non-scheduled insn.  Inform back-end about new insn.  Add
19521         new insn to scheduled_insns list.
19522
19523 2011-05-02  Richard Guenther  <rguenther@suse.de>
19524
19525         PR tree-optimization/48822
19526         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19527         (process_scc): Indicate which iteration we start.
19528
19529 2011-05-02  Jan Hubicka  <jh@suse.cz>
19530
19531         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19532         (lto_section_overrun): New.
19533         * lto-section-out.c (append_block): Rename to ...
19534         (lto_append_block): ... this one; export.
19535         (lto_output_1_stream): Move lto lto-streamer.h
19536         (lto_output_data_stream): Update.
19537         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19538         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19539         functions.
19540
19541 2011-05-02  Richard Guenther  <rguenther@suse.de>
19542
19543         * tree.c (tree_code_counts): New global array.
19544         (record_node_allocation_statistics): Count individual tree codes.
19545         (dump_tree_statistics): Dump individual code stats.
19546
19547 2011-05-01  Jan Hubicka  <jh@suse.cz>
19548
19549         * ipa-inline.c (caller_growth_limits): Fix thinko when
19550         looking for largest stack frame.
19551         * ipa-inline.h (dump_inline_summary): Declare.
19552         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19553         on stack usage.
19554         (dump_inline_summary): Export.
19555         (debug_inline_summary): Declare as DEBUG_FUNCTION.
19556
19557 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
19558
19559         * reginfo.c (memory_move_cost): Change rclass argument type form
19560         'enum reg_class' to reg_class_t.
19561         * reload.h (memory_move_cost): Update prototype.
19562         * postreload.c reload_cse_simplify_set): Change type dclass var to
19563         reg_class_t.
19564         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19565         Update prototype.
19566         (ira_allocate_and_set_costs): Change aclass argument type form
19567         'enum reg_class' to reg_class_t.
19568         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19569         Change aclass argument type to reg_class_t.
19570         (update_conflict_hard_reg_costs): Change type aclass and pref vars
19571         to reg_class_t.
19572         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19573         memory_move_cost call.
19574
19575         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19576         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19577         Change type tmp var to reg_class_t.
19578
19579 2011-04-30  Jan Hubicka  <jh@suse.cz>
19580
19581         * ipa-inline.c (can_inline_edge_p): Disregard limits when
19582         inlining into function with flatten attribute.
19583         (want_inline_small_function_p): Be more realistic about inlining
19584         cold calls where callee size grows.
19585
19586 2011-04-30  Jan Hubicka  <jh@suse.cz>
19587
19588         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19589         flags.
19590
19591 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
19592
19593         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19594         PRINT_OPERAND_PUNCT_VALID_P): Remove.
19595         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19596         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19597         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19598         (print_operand): Rename to...
19599         (sparc_print_operand): ...this. Make static. Adjust
19600         sparc_print_operand function call.
19601         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19602         functions.
19603
19604 2011-04-30  Jan Hubicka  <jh@suse.cz>
19605
19606         PR middle-end/48752
19607         * ipa-inline.c (early_inliner): Disable when doing late
19608         addition of function.
19609
19610 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
19611
19612         * dwarf2out.c (get_address_mode): New inline.
19613         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19614         if not dwarf_strict emit
19615         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19616         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19617         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
19618         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19619         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19620         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19621         mem_loc_descriptor callers.
19622         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19623         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19624         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19625         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19626         (base_types): New variable.
19627         (get_base_type_offset, calc_base_type_die_sizes,
19628         base_type_for_mode, mark_base_types, base_type_cmp,
19629         move_marked_base_types): New functions.
19630         (calc_die_sizes): Assert that die_offset is 0 or equal to
19631         next_die_offset.
19632         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19633         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
19634         callers.  If not dwarf_strict, call mem_loc_descriptor even for
19635         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19636         (gen_subprogram_die): Don't give up on call site parameters
19637         with non-integral or large integral modes.  Adjust
19638         mem_loc_descriptor callers.
19639         (prune_unused_types): Call prune_unused_types_mark on base_types
19640         vector entries.
19641         (resolve_addr): Call mark_base_types.
19642         (dwarf2out_finish): Call move_marked_base_types.
19643
19644         PR tree-optimization/48809
19645         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19646         type.
19647         (gen_inbound_check): Don't compute index_expr - range_min in utype
19648         again, instead reuse SSA_NAME initialized in build_arrays.
19649         Remove two useless gsi_for_stmt calls.
19650
19651 2011-04-29  Jeff Law  <law@redhat.com>
19652
19653         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19654
19655 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19656
19657         * cgraph.h (cgraph_postorder): Remove declaration.
19658         * ipa-utils.h (ipa_free_postorder_info): Declare.
19659         (ipa_reverse_postorder): Likewise.
19660         * cgraphunit.c: Include ipa-utils.h.
19661         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19662         * ipa-inline.c: Include ipa-utils.h.
19663         (ipa_inline): Update call to ipa_reverse_postorder.
19664         * ipa-pure-const.c (propagate_pure_const): Update call to
19665         ipa_reduced_postorder and ipa_print_order.  Call
19666         ipa_free_postorder_info to clean up.
19667         (propagate_nothrow): Likewise.
19668         * ipa-reference.c (propagate): Removed a useless call to
19669         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19670         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
19671         * ipa.c: Include ipa-utils.h.
19672         (ipa_profile): Update call to ipa_reverse_postorder.
19673         (cgraph_postorder): Moved to...
19674         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19675         (ipa_utils_print_order): Renamed to ipa_print_order.
19676         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19677         comments.
19678         (ipa_free_postorder_info): New function.
19679         * passes.c: Include ipa-utils.h.
19680         (do_per_function_toporder): Update call to ipa_reverse_postorder.
19681         (ipa_write_summaries): Likewise.
19682         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19683         (cgraphunit.o): Likewise.
19684         (ipa.o): Likewise.
19685         (ipa-inline.o): Likewise.
19686
19687 2011-04-29  Jan Hubicka  <jh@suse.cz>
19688
19689         * ipa-inline.h (clause_t): Turn into unsigned int.
19690         * ipa-inline-analysis.c (add_clause): Do more simplification.
19691         (and_predicates): Shortcut more cases.
19692         (predicates_equal_p): Move forward; check that clauses are properly
19693         ordered.
19694         (or_predicates): Shortcut more cases.
19695         (edge_execution_predicate): Rewrite as...
19696         (set_cond_stmt_execution_predicate): ... this function; handle
19697         __builtin_constant_p.
19698         (set_switch_stmt_execution_predicate): New .
19699         (compute_bb_predicates): New.
19700         (will_be_nonconstant_predicate): Update TODO.
19701         (estimate_function_body_sizes): Use compute_bb_predicates
19702         and free them later, always try to estimate if stmt is constant.
19703         (estimate_time_after_inlining, estimate_size_after_inlining):
19704         Gracefully handle optimized out edges.
19705         (read_predicate): Fix off by one error.
19706
19707 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
19708
19709         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19710
19711 2011-04-27  Xinliang David Li  <davidxl@google.com>
19712
19713         * tree-profile.c (init_ic_make_global_vars): Set
19714         tls attribute on ic vars.
19715         * coverage.c (coverage_end_function): Initialize
19716         function_list with zero.
19717
19718 2011-04-29  Richard Guenther  <rguenther@suse.de>
19719
19720         * builtins.c (fold_builtin_classify_type): Use integer_type_node
19721         for the type of the result.
19722         (fold_builtin_isascii): Likewise.
19723         (fold_builtin_toascii): Use integer_type_node where appropriate.
19724         (fold_builtin_logb): Likewise.
19725         (fold_builtin_frexp): Likewise.
19726         (fold_builtin_strstr): Likewise.
19727         (fold_builtin_strpbrk): Likewise.
19728         (fold_builtin_fputs): Likewise.
19729         (fold_builtin_sprintf): Likewise.
19730         (fold_builtin_snprintf): Likewise.
19731         (fold_builtin_printf): Likewise.
19732         (do_mpfr_remquo): Use a proper type for the assigned constant.
19733         (do_mpfr_lgamma_r): Likewise.
19734         * dwarf2out.c (resolve_one_addr): Use size_int.
19735         * except.c (init_eh): Likewise.
19736         (assign_filter_values): Use integer_type_node for filter values.
19737         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19738         indices.
19739         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19740         for EH region numbers.
19741         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19742         for the shift amount.
19743
19744 2011-04-29  Richard Guenther  <rguenther@suse.de>
19745
19746         * expr.h (expand_shift): Rename to ...
19747         (expand_variable_shift): ... this.
19748         (expand_shift): Take a constant shift amount.
19749         * expmed.c (expand_shift): Rename to ...
19750         (expand_variable_shift): ... this.
19751         (expand_shift): New wrapper around expand_variable_shift.
19752         * expr.c (convert_move, emit_group_load_1, emit_group_store,
19753         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19754         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19755         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19756         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19757         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19758         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19759         emit_store_flag_1, emit_store_flag): Likewise.
19760         * builtins.c (expand_builtin_signbit): Likewise.
19761         * calls.c (load_register_parameters): Likewise.
19762         * function.c (assign_parm_setup_block): Likewise.
19763         * lower-subreg.c (resolve_shift_zext): Likewise.
19764         * optabs.c (widen_bswap, expand_abs_nojump,
19765         expand_one_cmpl_abs_nojump, expand_float): Likewise.
19766         * spu/spu.c (spu_expand_extv): Likewise.
19767         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19768
19769 2011-04-29  Richard Guenther  <rguenther@suse.de>
19770
19771         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19772         for the remapped region number.
19773         * predict.c (build_predict_expr): Use integer_type_node for the
19774         predict kind.
19775         * fold-const.c (fold_binary_loc): Use integer_type_node for
19776         the shift amount.  Use a proper type for the PLUS_EXPR operand.
19777
19778 2011-04-29  Michael Matz  <matz@suse.de>
19779
19780         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19781         other trees that just builtins.
19782         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19783
19784 2011-04-29  Richard Guenther  <rguenther@suse.de>
19785
19786         * tree-nested.c (get_trampoline_type): Use size_int.
19787         (get_nl_goto_field): Likewise.
19788         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19789         for all indexes.
19790         (lower_eh_constructs_2): Likewise.
19791         (lower_resx): Likewise.
19792         (lower_eh_dispatch): Likewise.
19793         * tree-mudflap.c (mf_build_string): Use size_int.
19794         (mudflap_register_call): Use integer_type_node for the flag.
19795         (mudflap_enqueue_constant): Use size_int.
19796         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19797         instead of rebuilding it.
19798
19799 2011-04-29  Richard Guenther  <rguenther@suse.de>
19800
19801         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19802         Handle OBJ_TYPE_REF.
19803         (find_func_aliases_for_call): Use it more consistently.
19804
19805 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
19806
19807         * haifa-sched.c (last_nondebug_scheduled_insn): New.
19808         (rank_for_schedule): Use it.
19809         (schedule_block): Set it.
19810
19811 2011-04-28  David Li  <davidxl@google.com>
19812
19813         * tree.c (crc32_string): Use crc32_byte.
19814         (crc32_byte): New function.
19815         * tree.h (crc32_byte): New function.
19816         * gcov.c (read_graph_file): Handle new cfg_cksum.
19817         (read_count_file): Ditto.
19818         * profile.c (instrument_values): Ditto.
19819         (get_exec_counts): Ditto.
19820         (read_profile_edge_counts): Ditto.
19821         (compute_branch_probabilities): Ditto.
19822         (compute_value_histograms): Ditto.
19823         (branch_prob): Ditto.
19824         (end_branch_prob): Ditto.
19825         * coverage.c (read_counts_file): Ditto.
19826         (get_coverage_counts): Ditto.
19827         (tree_coverage_counter_addr): Ditto.
19828         (coverage_checksum_string): Ditto.
19829         (coverage_begin_output): Ditto.
19830         (coverage_end_function): Ditto.
19831         (build_fn_info_type): Ditto.
19832         (build_fn_info_value): Ditto.
19833         * libgcov.c (gcov_exit): Ditto.
19834         * gcov-dump.c (tag_function): Ditto.
19835         (compute_checksum): Remove.
19836
19837 2011-04-29  Alan Modra  <amodra@gmail.com>
19838
19839         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19840         unspec plus offset.  Tidy macho code.
19841
19842 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19843
19844         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19845         node instead of a decl.  Update all callers.
19846         * cgraph.h: Update declaration.
19847
19848 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
19849
19850         PR tree-optimization/48765
19851         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19852         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19853         to indicate if loop aware SLP is being used.  Scan the statements
19854         and update the vectorization factor according to the type of
19855         vectorization before statement analysis.
19856         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19857         pass it to vect_analyze_loop_operations.
19858         (vectorizable_reduction): Set number of copies to 1 in case of pure
19859         SLP statement.
19860         * tree-vect-stmts.c (vectorizable_conversion,
19861         vectorizable_assignment, vectorizable_shift,
19862         vectorizable_operation, vectorizable_type_demotion,
19863         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19864         Likewise.
19865         (vectorizable_condition): Move the check that it is not SLP
19866         vectorization before the number of copies check.
19867         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19868         to vectorize the loop using SLP.
19869
19870 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
19871
19872         PR middle-end/48597
19873         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19874         inline asm.
19875
19876 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
19877
19878         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19879         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19880         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19881         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19882         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19883         linux*.h headers.
19884         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19885         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19886         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19887         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19888         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19889         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19890         REG_NAME.
19891         * config/i386/linux.h (REG_NAME): Don't define.
19892         * config/i386/linux64.h (REG_NAME): Don't define.
19893         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19894         Undefine before defining.
19895
19896 2011-04-28  Jan Hubicka  <jh@suse.cz>
19897
19898         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19899         nonconstant_names array.
19900         (estimate_function_body_sizes): Build nonconstant_names array; handle
19901         BUILT_IN_CONSTANT_P.
19902
19903 2011-04-28  Richard Guenther  <rguenther@suse.de>
19904
19905         PR bootstrap/48804
19906         Revert
19907         2011-04-28  Richard Guenther  <rguenther@suse.de>
19908
19909         * tree-ssa-structalias.c (solve_constraints): Build succ graph
19910         as late as possible.
19911
19912 2011-04-28  Richard Guenther  <rguenther@suse.de>
19913
19914         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19915         (debug_constraint): Do it here.
19916         (dump_constraints): And here.
19917         (rewrite_constraints): And here.
19918         (dump_constraint_edge): Remove.
19919         (dump_constraint_graph): Rewrite to produce DOT output.
19920         (solve_constraints): Build succ graph as late as possible.
19921         Dump constraint graphs before and after solving.
19922
19923 2011-04-28  Richard Guenther  <rguenther@suse.de>
19924
19925         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19926         New function split out from ...
19927         (find_func_aliases): ... here.  Call it.
19928         (find_func_aliases_for_call): Likewise.
19929
19930 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19931
19932         * internal-fn.h (internal_fn_name_array): Declare.
19933         (internal_fn_flags_array): Likewise.
19934
19935 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19936
19937         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
19938         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19939         Move from sse.md.
19940         (ssemodefsuffix): Remove.
19941         (ssevecmodesuffix): New mode attribute.
19942         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19943         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19944         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19945         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19946         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19947         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19948         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19949         ssemodesuffix mode attribute.
19950         (float splitters): Use ssevecmodesuffix mode attribute.
19951         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19952         (sseinsmode): Rename from avxvecmode.
19953         (avxsizesuffix): Rename from avxmodesuffix.
19954         (sseintvecmode): Rename from avxpermvecmode.
19955         (ssedoublevecmode): Rename from ssedoublesizemode.
19956         (ssehalfvecmode): Rename from avxhalfvecmode.
19957         (ssescalarmode): Rename from avxscalarmode.
19958         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19959         templates for ssemodesuffix mode attribute.
19960         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
19961         mode attribute.
19962
19963         Adjust RTX patterns globally for renamed mode attributes.
19964
19965 2011-04-27  Jan Hubcika  <jh@suse.cz>
19966
19967         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
19968         * ipa-inline-analysis.c: Include alloc-pool.h.
19969         (edge_predicate_pool): New.
19970         (trye_predicate_p): New function
19971         (false_predicate_p): New function.
19972         (add_clause): Sanity check that false clauses are "optimized";
19973         never add clauses to predicate that is already known to be false.
19974         (and_predicate): Use flase_predicate_p.
19975         (evaulate_predicate): Rename to ...
19976         (evaluate_predicate): ... this one; update all callers; assert
19977         that false is not listed among possible truths.
19978         (dump_predicate): Use true_predicate_p.
19979         (account_size_time): Use false_predicate_p.
19980         (evaulate_conditions_for_edge): Rename to ...
19981         (evaluate_conditions_for_edge) ... this one.
19982         (edge_set_predicate): New function.
19983         (inline_edge_duplication_hook): Duplicate edge predicates.
19984         (inline_edge_removal_hook): Free edge predicates.
19985         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
19986         (dump_inline_summary): Update.
19987         (estimate_function_body_sizes): Set edge predicates.
19988         (estimate_calls_size_and_time): Handle predicates.
19989         (estimate_callee_size_and_time): Update.
19990         (remap_predicate): Add toplev_predicate; update comment.
19991         (remap_edge_predicates): New function.
19992         (inline_merge_summary): Compute toplev predicate; update.
19993         (read_predicate): New function.
19994         (read_inline_edge_summary): Use it.
19995         (inline_read_section): Likewise.
19996         (write_predicate): New function.
19997         (write_inline_edge_summary): Use it.
19998         (inline_write_summary): Likewise.
19999         (inline_free_summary): Free alloc pool and edge summary vec.
20000
20001 2011-04-27  Richard Guenther  <rguenther@suse.de>
20002
20003         * tree-ssa-structalias.c (changed_count): Remove.
20004         (changed): Use a bitmap.
20005         (unify_nodes): Adjust.
20006         (do_sd_constraint): Likewise.
20007         (do_ds_constraint): Likewise.
20008         (do_complex_constraint): Likewise.
20009         (solve_graph): Likewise.
20010
20011 2011-04-27  Jan Hubicka  <jh@suse.cz>
20012
20013         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
20014
20015 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
20016
20017         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
20018         (avx_vperm2f128_*_operand): Ditto.
20019         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
20020         Use avx_vpermilp_parallel in insn condition.
20021         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
20022         Use avx_vperm2f128_parallel in insn condition.
20023
20024 2011-04-27  Richard Guenther  <rguenther@suse.de>
20025
20026         * Makefile.in (tree-ssa-structalias.o): Remove
20027         gt-tree-ssa-structalias.h dependency.
20028         (GTFILES): Remove tree-ssa-structalias.c.
20029         * tree.c (allocate_decl_uid): New function.
20030         (make_node_stat): Use it.
20031         (copy_node_stat): Likewise.
20032         * tree.h (allocate_decl_uid): Declare.
20033         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
20034         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
20035         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
20036         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
20037         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
20038         (struct heapvar_map): Likewise.
20039         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
20040         heapvar_insert): Likewise.
20041         (make_heapvar_for): Rename to ...
20042         (make_heapvar): ... this.  Simplify.
20043         (fake_var_decl_obstack): New global var.
20044         (build_fake_var_decl): New function.
20045         (make_constraint_from_heapvar): Adjust.
20046         (handle_lhs_call): Likewise.
20047         (create_function_info_for): Likewise.
20048         (intra_create_variable_infos): Likewise.
20049         (init_alias_vars): Allocate fake_var_decl_obstack.
20050         (init_alias_heapvars, delete_alias_heapvars): Remove.
20051         (compute_points_to_sets): Do not call init_alias_heapvars.
20052         (ipa_pta_execute): Likewise.
20053         (delete_points_to_sets): Free fake_var_decl_obstack.
20054
20055 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20056
20057         * config/spu/divmovti4.c (union qword_UTItype): New data type.
20058         (si_from_UTItype, si_to_UTItype): New functions.
20059         (__udivmodti4): Use them to implement type-punning.
20060         * config/spu/multi3.c (union qword_TItype): New data type.
20061         (si_from_TItype, si_to_TItype): New functions.
20062         (__multi3): Use them to implement type-punning.
20063
20064 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20065
20066         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20067
20068 2011-04-27  Jan Hubicka  <jh@suse.cz>
20069
20070         * ipa-prop.c (function_insertion_hook_holder): New holder.
20071         (ipa_add_new_function): New function.
20072         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20073         Register/deregister holder.
20074
20075 2011-04-27  Richard Guenther  <rguenther@suse.de>
20076
20077         PR tree-optimization/48772
20078         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20079
20080 2011-04-27  Richard Guenther  <rguenther@suse.de>
20081
20082         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20083         TARGET_MEM_REF handling.
20084
20085 2011-04-27  Nick Clifton  <nickc@redhat.com>
20086
20087         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20088         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20089         (REG_CLASS_NAMES): Likewise.
20090         (REG_CLASS_CONTENTS): Likewise.
20091         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20092         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20093         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
20094         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
20095         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
20096         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20097         duplicate register classes.
20098         (frv_class_likely_spilled_p): Likewise.
20099         (frv_register_move_cost): Likewise.
20100
20101         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20102         end of the regno_reg_class array.
20103
20104 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
20105
20106         PR c/48742
20107         * c-typeck.c (build_binary_op): Don't wrap arguments if
20108         int_operands is true.
20109
20110 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
20111
20112         PR target/48767
20113         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20114         targetm.calls.must_pass_in_stack for void type.
20115
20116 2011-04-26  Jan Hubicka  <jh@suse.cz>
20117
20118         * cgraphbuild.c (build_cgraph_edges): Update call
20119         of cgraph_create_edge and cgraph_create_indirect_edge.
20120         * cgraph.c (cgraph_create_edge_including_clones,
20121         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20122         cgraph_update_edges_for_call_stmt_node): Do not take nest
20123         argument; do not initialize call_stmt_size/time.
20124         (dump_cgraph_node): Do not dump nest.
20125         (cgraph_clone_edge): Do not take loop_nest argument;
20126         do not propagate it; do not clone call_stmt_size/time.
20127         (cgraph_clone_node): Likewise.
20128         (cgraph_create_virtual_clone): Update.
20129         * cgraph.h (struct cgraph_edge): Remove
20130         call_stmt_size/call_stmt_time/loop_nest.
20131         (cgraph_create_edge, cgraph_create_indirect_edge,
20132         cgraph_create_edge_including_clones, cgraph_clone_node): Update
20133         prototype.
20134         * tree-emutls.c (gen_emutls_addr): Update.
20135         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20136         loop_nest; handle indirect calls, too.
20137         (clone_inlined_nodes): Do not care about updating inline summaries.
20138         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20139         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20140         stream call_stmt_size/call_stmt_time/loop_nest.
20141         * ipa-inline.c (edge_badness): Update.
20142         (ipa_inline): dump summaries after inlining.
20143         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20144         New.
20145         (inline_edge_summary): New function.
20146         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20147         (inline_edge_removal_hook): Handle edge summaries.
20148         (inline_edge_duplication_hook): New hook.
20149         (inline_summary_alloc): Alloc hooks.
20150         (initialize_growth_caches): Do not register removal hooks.
20151         (free_growth_caches); Do not free removal hook.
20152         (dump_inline_edge_summary): New function.
20153         (dump_inline_summary): Use it.
20154         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20155         (inline_update_callee_summaries): New function.
20156         (inline_merge_summary): Use it.
20157         (do_estimate_edge_time, do_estimate_edge_growth): Update.
20158         (read_inline_edge_summary): New function.
20159         (inline_read_section): Use it.
20160         (write_inline_edge_summary): New function.
20161         (inline_write_summary): Use it.
20162         (inline_free_summary): Free edge new holders.
20163         * tree-inline.c (copy_bb): Update.
20164
20165 2011-04-26  Jason Merrill  <jason@redhat.com>
20166
20167         * tree-eh.c (lower_try_finally_switch): Create the label along with
20168         the CASE_LABEL_EXPR.
20169
20170 2011-04-26  David S. Miller  <davem@davemloft.net>
20171             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20172
20173         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20174         * configure: Regenerate.
20175
20176 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20177
20178         PR target/48258
20179         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20180         reduction.
20181         (VEC_reduc): New code iterator and splitters for vector reduction.
20182         (VEC_reduc_name): Ditto.
20183         (VEC_reduc_rtx): Ditto.
20184         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20185         (reduc_<VEC_reduc_name>_v4sf): Ditto.
20186
20187         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20188         support for extracting SF on VSX.
20189
20190         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
20191         generating xscvspdp.
20192         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
20193         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
20194         double add, minimum, maximum vector reduction.
20195         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
20196         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
20197         optimize double vector reduction.
20198         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
20199
20200 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
20201
20202         * config/fr30/fr30.h (inhibit_libc): Don't define.
20203         * config/m32r/m32r-protos.h: Correct comment.
20204         * config/v850/v850.h (GHS_default_section_names,
20205         GHS_current_section_names): Use tree, not union tree_node *.
20206
20207 2011-04-26  Xinliang David Li  <davidxl@google.com>
20208
20209         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
20210         * c-family/c-opts.c (c_common_handle_option): Set
20211         warn_maybe_uninitialized.
20212         * opts.c (common_handle_option): Ditto.
20213         * common.opt:  New option.
20214         * tree-ssa.c (warn_uninit): Add one more parameter.
20215         (warn_uninitialized_var): Pass warning code.
20216         * tree-flow.h: Interface change.
20217
20218 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20219
20220         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
20221         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
20222         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20223
20224 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20225
20226         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
20227         * config/mips/mips.opt (mmips-tfile): Remove.
20228
20229         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
20230         mips-tdump reference to ...
20231         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
20232         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
20233         reference by Tru64 UNIX.
20234
20235 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
20236
20237         PR debug/48768
20238         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
20239         is error_mark_node, set value to NULL.
20240
20241         PR tree-optimization/48734
20242         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
20243         if return value from maybe_fold_*_comparsions isn't something
20244         the code is prepared to handle.
20245
20246 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
20247
20248         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
20249         mode check.
20250         (ext_QIreg_nomode_operands): Remove.
20251         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
20252         (*andsi_1): Ditto.
20253         (*andhi_1): Ditto.
20254
20255 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
20256
20257         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
20258
20259 2011-04-26  Richard Guenther  <rguenther@suse.de>
20260
20261         * c-typeck.c (build_unary_op): Do not expand array-refs via
20262         pointer arithmetic.  Only adjust qualifiers for function types.
20263
20264 2011-04-26  Richard Guenther  <rguenther@suse.de>
20265
20266         PR middle-end/48694
20267         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
20268         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
20269         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
20270         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
20271
20272 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
20273
20274         * doc/extend.texi: Document __underlying_type.
20275
20276 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
20277
20278         * config/rs6000/titan.md (automata_option "progress"): Remove.
20279
20280 2011-04-25  Jeff Law  <law@redhat.com>
20281
20282         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
20283
20284 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
20285
20286         * system.h (ENUM_BITFIELD): Remove.
20287
20288 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
20289             Eric Botcazou  <ebotcazou@adacore.com>
20290
20291         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
20292         for STORE_FLAG_VALUE==-1 case.
20293
20294 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
20295
20296         PR target/43804
20297         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
20298         LEGITIMATE_PIC_OPERAND_P.
20299
20300 2011-04-24  Jan Hubicka  <jh@suse.cz>
20301
20302         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
20303         WPA hack.
20304         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
20305         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
20306         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
20307         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
20308         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
20309         Sanity check predicate length.
20310         (remap_predicate): Likewise; sanity check jump functions.
20311         (inline_read_section, inline_write_summary): Sanity check
20312         predicate length.
20313
20314 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
20315
20316         PR other/48748
20317         * doc/extend.texi (Type Traits): Document __is_standard_layout,
20318         __is_literal_type, and __is_trivial; update throughout about
20319         possibly cv-qualified void types.
20320
20321 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
20322
20323         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
20324         testsuite and make it version agnostic.
20325
20326 2011-04-22  Jan Hubicka  <jh@suse.cz>
20327
20328         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
20329
20330 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
20331
20332         PR c/48685
20333         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20334         to VOID_TYPE even around MODIFY_EXPR.
20335
20336 2011-04-22  Mike Stump  <mikestump@comcast.net>
20337
20338         * gensupport.c (read_md_rtx): Fix typo in comment.
20339         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20340         comment.
20341
20342 2011-04-22  Jan Hubicka  <jh@suse.cz>
20343
20344         * gengtype.c (open_base_files): Add ipa-inline.h include.
20345         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20346         ipa-prop.c; update all uses.
20347         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20348         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20349         merge summary of inlined function into former caller.
20350         * ipa-inline.c (max_benefit): Remove.
20351         (edge_badness): Compensate for removal of benefits.
20352         (update_caller_keys): Use
20353         reset_node_growth_cache/reset_edge_growth_cache.
20354         (update_callee_keys): Likewise.
20355         (update_all_callee_keys): Likewise.
20356         (inline_small_functions): Do not collect max_benefit; do not reset
20357         estimated_growth; call free_growth_caches and initialize_growth_caches.
20358         * ipa-inline.h (struct condition, type clause_t, struct predicate,
20359         struct size_time_entry): New structures.
20360         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20361         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20362         and estimated_growth.
20363         (edge_growth_cache_entry): New structure.
20364         (node_growth_cache, edge_growth_cache): New global vars.
20365         (estimate_growth): Turn into inline.
20366         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20367         initialize_growth_caches, free_growth_caches): Declare.
20368         (estimate_edge_growth): Rewrite.
20369         (estimate_edge_time): Implement as inline cache lookup.
20370         (reset_node_growth_cache, reset_edge_growth_cache): New inline
20371         functions.
20372         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20373         (NUM_CONDITIONS): New constant.
20374         (predicate_conditions): New enum.
20375         (IS_NOT_CONSTANT): New constant.
20376         (edge_removal_hook_holder): New var.
20377         (node_growth_cache, edge_growth_cache): New global vars.
20378         (true_predicate, single_cond_predicate, false_predicate,
20379         not_inlined_predicate, add_condition, add_clause, and_predicates,
20380         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20381         dump_clause, dump_predicate, account_size_time,
20382         evaulate_conditions_for_edge): New functions.
20383         (inline_summary_alloc): Move to heap.
20384         (inline_node_removal_hook): Clear condition and entry vectors.
20385         (inline_edge_removal_hook): New function.
20386         (initialize_growth_caches, free_growth_caches): New function.
20387         (dump_inline_summary): Update.
20388         (edge_execution_predicate): New function.
20389         (will_be_nonconstant_predicate): New function.
20390         (estimate_function_body_sizes): Compute BB and constantness predicates.
20391         (compute_inline_parameters): Do not clear estimated_growth.
20392         (estimate_edge_size_and_time): New function.
20393         (estimate_calls_size_and_time): New function.
20394         (estimate_callee_size_and_time): New function.
20395         (remap_predicate): New function.
20396         (inline_merge_summary): New function.
20397         (do_estimate_edge_time): New function based on...
20398         (estimate_edge_time): ... this one.
20399         (do_estimate_edge_growth): New function.
20400         (do_estimate_growth): New function based on....
20401         (estimate_growth): ... this one.
20402         (inline_analyze_function): Analyze after deciding on jump functions.
20403         (inline_read_section): New function.
20404         (inline_read_summary): Use it.
20405         (inline_write_summary): Write all the new data.
20406         * ipa-prop.c (ipa_get_param_decl_index): Export.
20407         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20408         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20409         Declare.
20410         (ipa_get_lattice): Move here from ipa-cp.c
20411         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20412         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20413         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20414         cgraph_edge_inlinable_p): Remove.
20415         * cgraphunit.c: Include ipainline.h
20416         (cgraph_process_new_functions): Update call of
20417         compute_inline_parameters.
20418
20419 2011-04-22  Richard Guenther  <rguenther@suse.de>
20420
20421         * tree.c (build_int_cst): Properly create canonicalized integer
20422         constants.
20423         (build_int_cst_type): Remove scary comments.
20424
20425 2011-04-22  Xinliang David Li  <davidxl@google.com>
20426
20427         * toplev.c (process_options): Enable -Werror=coverage-mismatch
20428         by default when -Wno-error is not specified.
20429         * opts-global.c (decode_options): Remove call to
20430         control_warning_options.
20431
20432 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20433
20434         PR tree-optimization/48717
20435         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20436         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20437
20438 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
20439
20440         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
20441         definition where used.
20442
20443 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20444
20445         PR c/48716
20446         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20447         TREE_STATIC variables declared inside of some OpenMP construct.
20448
20449 2011-04-22  Martin Jambor  <mjambor@suse.cz>
20450
20451         PR middle-end/48585
20452         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20453
20454 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
20455
20456         PR c/36750
20457         * c-typeck.c (pop_init_level): Do not warn about initializing
20458         with ` = {0}'.
20459
20460 2011-04-22  Alan Modra  <amodra@gmail.com>
20461
20462         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20463         when returning call_cookie.
20464         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20465         pointers, to functions with no more vector args than the current
20466         function, and some non-local calls for ABI_V4.
20467         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20468         sibcall_nonlocal_aix64): Combine to ..
20469         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
20470         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20471         (sibcall_value_nonlocal_aix<mode>): ..likewise.
20472         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20473         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
20474         operand.
20475         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20476         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20477         sibcall_value_symbolic_64): Delete.
20478
20479 2011-04-21  Xinliang David Li  <davidxl@google.com>
20480
20481         * cgraph.h: Remove pid.
20482         * cgraph.c: Remove pid.
20483         * value-prof.c (init_node_map): New function.
20484         (del_node_map): New function.
20485         (find_func_by_funcdef_no): New function.
20486         (gimple_ic_transform): Call new function.
20487         * cgraphunit.c (cgraph_finalize_function): Remove pid.
20488         * function.c (get_last_funcdef_no): New function.
20489         * function.h (get_last_funcdef_no): New function.
20490         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20491         to libgcov function.
20492         (tree-profiling): Call node map init and delete function.
20493
20494 2011-04-21  Ian Lance Taylor  <iant@google.com>
20495
20496         * godump.c (go_format_type): Use exported Go name for anonymous
20497         field name.
20498
20499 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20500
20501         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20502         Call builtin_function_type_list instead of builtin_function_type.
20503         (UNARY, BINARY, TRINARY, QUAD): Likewise.
20504
20505 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20506
20507         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20508         build_function_type_list instead of build_function_type.
20509         Delete variable `endlink'.
20510
20511 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20512
20513         * config/s390/s390.c (s390_init_builtins): Call
20514         build_function_type_list instead of build_function_type.
20515
20516 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20517
20518         * config/ia64/ia64.c (ia64_init_builtins): Call
20519         build_function_type_list instead of builtin_function_type.
20520
20521 2011-04-21  Easwaran Raman  <eraman@google.com>
20522
20523         * cfgexpand.c (stack_var): Remove OFFSET...
20524         (add_stack_var): ...and its reference here...
20525         (expand_stack_vars): ...and here.
20526         (stack_var_cmp): Sort by descending order of size.
20527         (partition_stack_vars): Change heuristic.
20528         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20529         (dump_stack_var_partition): Add newline after each partition.
20530
20531 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
20532             Jeff Law  <law@redhat.com>
20533
20534         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20535         * gengtype.c (matching_file_name_substitute): Likewise.
20536
20537 2011-04-21  Richard Guenther  <rguenther@suse.de>
20538
20539         PR lto/48703
20540         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20541
20542 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20543
20544         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20545
20546 2011-04-21  Richard Guenther  <rguenther@suse.de>
20547
20548         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20549         file name.
20550
20551 2011-04-21  Richard Guenther  <rguenther@suse.de>
20552
20553         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20554         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20555         Use DECL_P, not SSA_VAR_P.
20556         (ptr_derefs_may_alias_p): Likewise.
20557         (ptr_deref_may_alias_ref_p_1): Likewise.
20558         (decl_refs_may_alias_p): Likewise.
20559         (refs_may_alias_p_1): Likewise.
20560         (ref_maybe_used_by_call_p_1): Likewise.
20561         (call_may_clobber_ref_p_1): Likewise.
20562         (indirect_ref_may_alias_decl_p): Assume indirect refrences
20563         are either MEM_REF or TARGET_MEM_REF.
20564         (indirect_refs_may_alias_p): Likewise.
20565         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20566         for MEM_EXPR of indirect calls.
20567
20568 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20569
20570         * vmsdbgout.c (write_srccorr): Compute file length from the string.
20571         (dst_file_info_struct): Remove flen field.
20572         (lookup_filename): Remove code that set flen field.
20573
20574 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20575
20576         * config/ia64/ia64.c (ia64_start_function): Add a guard.
20577
20578 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
20579
20580         PR target/48708
20581         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20582         vec_extract and vec_concat for non-SSE4_1 targets.
20583
20584 2011-04-21  Richard Guenther  <rguenther@suse.de>
20585
20586         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20587         return statements.
20588
20589 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20590
20591         * config/i386/cygming.h (union tree_node, TREE): Don't define or
20592         undefine.
20593         (FILE): Don't undefine.
20594
20595 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20596
20597         * config/alpha/alpha.c (struct machine_function): Use rtx, not
20598         struct rtx_def *.
20599         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20600         struct rtx_def *.
20601         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20602         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20603         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20604         rtx_def *.
20605         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
20606         definitions where used.
20607         * config/microblaze/microblaze.h (struct microblaze_args): Use
20608         rtx, not struct rtx_def *.
20609         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20610         rtx_def *.
20611         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20612         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20613         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20614         not struct rtx_def *.
20615         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20616         struct rtx_def *.
20617         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20618         rtx_def *.
20619         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20620
20621 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20622
20623         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20624         operand_equal_p to compare DR_BASE_ADDRESSes.
20625         (vect_check_interleaving): Likewise.
20626
20627 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20628
20629         PR target/46329
20630         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20631         for all Neon struct constants.
20632
20633 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20634
20635         * target.def (legitimate_constant_p): New hook.
20636         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20637         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20638         * doc/tm.texi: Regenerate.
20639         * hooks.h (hook_bool_mode_rtx_true): Declare.
20640         * hooks.c (hook_bool_mode_rtx_true): Define.
20641         * system.h (LEGITIMATE_CONSTANT_P): Poison.
20642         * calls.c (precompute_register_parameters): Replace uses of
20643         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20644         (emit_library_call_value_1): Likewise.
20645         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20646         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20647         * ira-costs.c (scan_one_insn): Likewise.
20648         * recog.c (general_operand, immediate_operand): Likewise.
20649         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20650         * reload1.c (init_eliminable_invariants): Likewise.
20651
20652         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20653         mode argument.
20654         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20655         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20656         argument.
20657         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20658         * config/alpha/predicates.md (input_operand): Update call to
20659         alpha_legitimate_constant_p.
20660
20661         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20662         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20663         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20664         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20665         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20666         (arm_legitimate_constant_p): New functions.
20667         (arm_cannot_force_const_mem): Make static.
20668
20669         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20670
20671         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20672         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20673         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20674         instead of bfin_legitimate_constant_p.
20675         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
20676         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20677
20678         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20679
20680         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20681
20682         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20683         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20684         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20685         (frv_legitimate_constant_p): Make static.  Add a mode argument.
20686
20687         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20688         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20689         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20690
20691         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20692         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20693         * config/i386/i386.c (legitimate_constant_p): Rename to...
20694         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
20695         argument.
20696         (ix86_cannot_force_const_mem): Update accordingly.
20697         (ix86_legitimate_address_p): Likewise.
20698         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20699         * config/i386/i386.md: Update commentary.
20700
20701         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20702         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20703         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20704         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
20705
20706         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20707
20708         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20709         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20710         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20711         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
20712
20713         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20714         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20715         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20716
20717         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20718         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20719         (m32r_legitimate_constant_p): New function.
20720
20721         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20722         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20723         LEGITIMATE_CONSTANT_P.
20724         (LEGITIMATE_CONSTANT_P): Delete.
20725         * config/m68k/m68k.c (m68k_expand_prologue): Call
20726         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20727         (m68k_legitimate_constant_p): New function.
20728         * config/m68k/m68k.md: Update comments.
20729
20730         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20731         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20732         (mcore_legitimate_constant_p): New function.
20733
20734         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20735         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20736         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20737         Add a mode argument.
20738         (mep_legitimate_address): Update accordingly.
20739         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20740
20741         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20742         Delete.
20743         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20744         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20745         static.  Check OP's mode for VOIDmode.
20746         (microblaze_legitimate_constant_p): New function.
20747         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20748
20749         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20750         * config/mips/mips.c (mips_legitimate_constant_p): New function.
20751         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20752         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20753         * config/mips/predicates.md: Update comments.
20754
20755         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20756         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20757         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20758         (mmix_legitimate_constant_p): Make static, return a bool, and take
20759         a mode argument.
20760         (mmix_print_operand_address): Update accordingly.
20761
20762         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20763         Delete.
20764         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20765         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20766         static.  Add a mode argument.
20767         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20768
20769         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20770
20771         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20772         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20773         (pa_legitimate_constant_p): New function.
20774
20775         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
20776
20777         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
20778         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20779         (pdp11_legitimate_constant_p): New function.
20780
20781         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20782         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20783         (rs6000_legitimate_constant_p): New function.
20784
20785         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20786         (rx_legitimate_constant_p): ...this.
20787         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20788         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20789         (rx_legitimate_constant_p): ...this.
20790         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20791         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20792
20793         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20794         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20795         * config/s390/s390.c (legitimate_constant_p): Rename to...
20796         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
20797         and add a mode argument.
20798         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20799
20800         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20801
20802         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20803         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20804         (sh_legitimate_constant_p): New function.
20805
20806         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20807         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20808         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20809         (legitimate_constant_p): Rename to...
20810         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
20811         argument.
20812         (constant_address_p): Update accordingly.
20813
20814         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20815         argument and return a bool.
20816         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20817         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20818         (spu_legitimate_constant_p): Add a mode argument and return a bool.
20819         (spu_rtx_costs): Update accordingly.
20820         * config/spu/predicates.md (vec_imm_operand): Likewise.
20821
20822         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20823
20824         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20825         * config/v850/v850.c (v850_legitimate_constant_p): New function.
20826         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20827
20828         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20829         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20830         * config/vax/vax.c (legitimate_constant_p): Likewise.
20831
20832         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20833         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20834         (xtensa_legitimate_constant_p): New function.
20835
20836 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20837
20838         * target.def (cannot_force_const_mem): Add a mode argument.
20839         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20840         * doc/tm.texi: Regenerate.
20841         * hooks.h (hook_bool_mode_rtx_false): Declare.
20842         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20843         (hook_bool_mode_const_rtx_true): Likewise.
20844         (hook_bool_mode_rtx_false): New function.
20845         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20846         to be non-VOID.  Update call to cannot_force_const_mem.
20847         (find_reloads): Update accordingly.
20848         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20849         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20850         argument.
20851         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20852         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20853         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20854         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20855         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20856         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20857         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20858         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20859         (m68k_cannot_force_const_mem): ...this new function.
20860         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20861         argument.
20862         (mips_const_insns, mips_legitimize_const_move): Update calls.
20863         (mips_secondary_reload_class): Likewise.
20864         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20865         (pa_cannot_force_const_mem): ...this new function.
20866         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20867         (rs6000_cannot_force_const_mem): ...this new function.
20868         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20869         argument.
20870         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20871         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20872         to...
20873         (xtensa_cannot_force_const_mem): ...this new function.
20874
20875 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20876
20877         * config/mips/mips.c (mips16_build_function_stub): Call
20878         build_function_type_list instead of build_function_type.
20879         (mips16_build_call_stub): Likewise.
20880
20881 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20882
20883         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20884         instead of build_function_type.
20885
20886 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20887
20888         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20889         instead of build_function_type.
20890
20891 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
20892
20893         PR target/48678
20894         * config/i386/i386.md (insv): Change operand 0 constraint to
20895         "register_operand".  Change operand 1 and 2 constraint to
20896         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
20897         * config/i386/sse.md (sse4_1_pinsrb): Export.
20898         (sse2_pinsrw): Ditto.
20899         (sse4_1_pinsrd): Ditto.
20900         (sse4_1_pinsrq): Ditto.
20901         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20902         * config/i386/i386.c (ix86_expand_pinsr): New.
20903
20904 2011-04-20  Easwaran Raman  <eraman@google.com>
20905
20906         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20907         containing union type only with -fstrict-aliasing.
20908
20909 2011-04-20  Jim Meyering  <meyering@redhat.com>
20910
20911         Remove useless if-before-free tests.
20912         * calls.c (expand_call, save_area): Likewise.
20913         * cfgcleanup.c (try_forward_edges): Likewise.
20914         * collect2.c (collect_execute): Likewise.
20915         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20916         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20917         * coverage.c (coverage_checksum_string): Likewise.
20918         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20919         * cselib.c (cselib_init): Likewise.
20920         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20921         (df_set_clean_cfg): Likewise.
20922         * function.c (free_after_compilation): Likewise.
20923         * gcc.c (do_spec_1, main): Likewise.
20924         * gcov.c (create_file_names): Likewise.
20925         * gensupport.c (identify_predicable_attribute): Likewise.
20926         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20927         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20928         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20929         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20930         * ipa-pure-const.c (local_pure_const): Likewise.
20931         * ipa-reference.c (propagate): Likewise.
20932         * ira-costs.c (free_ira_costs): Likewise.
20933         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20934         * matrix-reorg.c (mat_free): Likewise.
20935         * prefix.c (get_key_value): Likewise.
20936         * profile.c (compute_value_histograms): Likewise.
20937         * reload1.c (free_reg_equiv): Likewise.
20938         * sched-deps.c (free_deps): Likewise.
20939         * sel-sched-ir.c (fence_clear): Likewise.
20940         * sese.c (set_rename, if_region_set_false_region): Likewise.
20941         * tree-data-ref.c (free_rdg): Likewise.
20942         * tree-eh.c (lower_try_finally): Likewise.
20943         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20944         * tree-ssa-live.c (delete_var_map): Likewise.
20945         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20946         * tree-ssa-pre.c (phi_trans_add): Likewise.
20947
20948 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
20949
20950         PR tree-optimization/48611
20951         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20952         beyond ERT_MUST_NOT_THROW region.
20953
20954 2011-04-20  Catherine Moore  <clm@codesourcery.com>
20955
20956         * config/mips/mips.opt (mfix-24k): New.
20957         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20958         * config/mips/mips.md (length): Increase by 4 for stores if
20959         fixing 24K errata.
20960         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
20961         all noreorder if fixing 24K errata.
20962         * doc/invoke.texi: Document mfix-24k.
20963
20964 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
20965
20966         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
20967         quad-word modes, reduce to 9-bit index range when above 1016 limit.
20968
20969 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20970
20971         * config/arm/arm.c (arm_gen_constant): Move movw support ....
20972         (const_ok_for_op): ... to here.
20973
20974 2011-04-20  Kai Tietz  <ktietz@redhat.com>
20975
20976         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
20977         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
20978
20979 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20980
20981         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
20982
20983 2011-04-20  Richard Guenther  <rguenther@suse.de>
20984
20985         PR tree-optimization/47892
20986         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
20987         are if-convertible.
20988
20989 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
20990
20991         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
20992
20993 2011-04-20  Tristan Gingold  <gingold@adacore.com>
20994
20995         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
20996
20997 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
20998
20999         PR target/18145
21000
21001         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
21002         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
21003         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21004         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
21005         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
21006
21007         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
21008         New prototype.
21009
21010         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
21011         (avr_asm_named_section, avr_asm_output_aligned_common,
21012         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
21013         New functions to update...
21014         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
21015         (avr_asm_init_sections): Overwrite section callbacks for
21016         data_section, bss_section.
21017         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
21018         from here to...
21019         (avr_file_end): ...here.
21020
21021 2011-04-20  Richard Guenther  <rguenther@suse.de>
21022
21023         PR middle-end/48695
21024         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
21025         objects and types here.  Adjust for their offset before comparing.
21026
21027 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21028
21029         * tree-vect-stmts.c (vectorizable_store): Only chain one related
21030         statement per copy.
21031
21032 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21033
21034         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
21035         (GIMPLE_H): Include $(INTERNAL_FN_H).
21036         (OBJS-common): Add internal-fn.o.
21037         (internal-fn.o): New rule.
21038         * internal-fn.def: New file.
21039         * internal-fn.h: Likewise.
21040         * internal-fn.c: Likewise.
21041         * gimple.h: Include internal-fn.h.
21042         (GF_CALL_INTERNAL): New gf_mask.
21043         (gimple_statement_call): Put fntype into a union with a new
21044         internal_fn field.
21045         (gimple_build_call_internal): Declare.
21046         (gimple_build_call_internal_vec): Likewise.
21047         (gimple_call_same_target_p): Likewise.
21048         (gimple_call_internal_p): New function.
21049         (gimple_call_internal_fn): Likewise.
21050         (gimple_call_fntype): Return null for internal calls.
21051         (gimple_call_set_fntype): Assert that the function is not internal.
21052         (gimple_call_set_fn): Likewise.
21053         (gimple_call_set_fndecl): Likewise.
21054         (gimple_call_set_internal_fn): New function.
21055         (gimple_call_addr_fndecl): Handle null functions.
21056         (gimple_call_return_type): Likewise null types.
21057         * gimple.c (gimple_build_call_internal_1): New function.
21058         (gimple_build_call_internal): Likewise.
21059         (gimple_build_call_internal_vec): Likewise.
21060         (gimple_call_same_target_p): Likewise.
21061         (gimple_call_flags): Handle calls to internal functions.
21062         (gimple_call_fnspec): New function.
21063         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21064         (gimple_has_side_effects): Handle null functions.
21065         (gimple_rhs_has_side_effects): Likewise.
21066         (gimple_call_copy_skip_args): Handle calls to internal functions.
21067         * cfgexpand.c (expand_call_stmt): Likewise.
21068         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21069         * gimple-fold.c (gimple_fold_call): Handle null functions.
21070         (gimple_fold_stmt_to_constant_1): Don't fold
21071         calls to internal functions.
21072         * gimple-low.c (gimple_check_call_args): Handle calls to internal
21073         functions.
21074         * gimple-pretty-print.c (dump_gimple_call): Likewise.
21075         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21076         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21077         (do_warn_unused_result): Likewise.
21078         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21079         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21080         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21081         the target of a call.
21082         (initialize_hash_element): Update accordingly.
21083         (hashable_expr_equal_p): Use gimple_call_same_target_p.
21084         (iterative_hash_hashable_expr): Handle calls to internal functions.
21085         (print_expr_hash_elt): Likewise.
21086         * tree-ssa-pre.c (can_value_number_call): Likewise.
21087         (eliminate): Handle null functions.
21088         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21089         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21090         (find_func_aliases): Likewise.
21091         * value-prof.c (gimple_ic_transform): Likewise.
21092         (gimple_indirect_call_to_profile): Likewise.
21093         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21094         * lto-streamer-out.c (output_gimple_stmt): Likewise.
21095
21096 2011-04-19  Jan Hubicka  <jh@suse.cz>
21097
21098         * ipa-inline-transform.c (save_inline_function_body): Add comments.
21099         * ipa-inline.c (inline_small_functions): Compute summaries first,
21100         populate heap later.
21101
21102 2011-04-19  Jan Hubicka  <jh@suse.cz>
21103
21104         * cgraph.h (save_inline_function_body): Remove.
21105         * ipa-inline-transform.c: New file, broke out of...
21106         * ipa-inline.c: ... this one; Update toplevel comment.
21107         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21108         make global.
21109         (update_noncloned_frequencies): Move to ipa-inline-transform.c
21110         (cgraph_mark_inline_edge): Rename to inline_call; move to
21111         ipa-inline-transform.c.
21112         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21113         move to ipa-inline-transform.c
21114         (recursive_inlining, inline_small_functions, flatten_function,
21115         ipa_inline, inline_always_inline_functions,
21116         early_inline_small_functions): Update.
21117         (inline_transform): Move to ipa-inline-transform.c.
21118         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21119         Declare.
21120         * Makefile.in (ipa-inline-transform.o): New file.
21121         * cgraphunit.c (save_inline_function_body): Move to
21122         ipa-inline-transform.c
21123
21124 2011-04-19  DJ Delorie  <dj@redhat.com>
21125
21126         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21127         registers if we already know there aren't any.
21128         (m32c_emit_epilogue): Don't emit a barrier here.
21129         (m32c_emit_eh_epilogue): Likewise.
21130         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21131         operands at expand time.
21132         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21133         int" wchar type.
21134         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21135         duplicates.  Provide aliases instead.
21136         * config/m32c/prologue.md (eh_return): Emit a barrier here.
21137         (eh_epilogue): Add a "(return)" here as a hint to other parts of
21138         the compiler.
21139
21140 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
21141
21142         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21143         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21144         (general_or_i64_p, sparc_register_move_cost): New function.
21145
21146 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21147
21148         * doc/install.texi (Configuration, --enable-threads): Remove mach.
21149         Add lynx, mipssde.  Sort table.
21150
21151 2011-04-19  Xinliang David Li  <davidxl@google.com>
21152
21153         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21154         not negative.
21155
21156 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
21157
21158         PR target/48678
21159         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21160         is a SUBREG with non-MODE_INT mode inside of it.
21161
21162 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21163
21164         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21165         also according to actual contants.
21166         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21167         (gimple_fold_call): Use it.
21168         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21169
21170 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21171
21172         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21173         non-pointer assignments.
21174
21175 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21176
21177         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21178         account anc_offset and otr_type from the indirect edge info.
21179         * ipa-prop.c (get_ancestor_addr_info): New function.
21180         (compute_complex_ancestor_jump_func): Assignment analysis moved to
21181         get_ancestor_addr_info, call it.
21182         (ipa_note_param_call): Do not initialize information about polymorphic
21183         calls, return the indirect call graph edge.  Remove the last
21184         parameter, adjust all callers.
21185         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
21186         parameters.  Initialize polymorphic information in the indirect edge.
21187
21188 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21189
21190         PR lto/48148
21191         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
21192         the types if they have different enumeration identifiers.
21193
21194 2011-04-19  Jan Hubicka  <jh@suse.cz>
21195
21196         * cgraph.h (cgraph_optimize_for_size_p): Declare.
21197         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
21198         * predict.c (cgraph_optimize_for_size_p): Break out from ...
21199         (optimize_function_for_size_p) ... here.
21200
21201 2011-04-19  Richard Guenther  <rguenther@suse.de>
21202
21203         PR lto/48207
21204         * tree.c (free_lang_data): Do not reset the decl-assembler-name
21205         langhook.
21206
21207 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21208
21209         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
21210         if DECL_NO_INLINE_WARNING_P is set on the function.
21211
21212 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
21213
21214         PR fortran/47976
21215         * reload1.c (inc_for_reload): Return void. All callers changed.
21216         (emit_input_reload_insns): Don't try to delete previous output
21217         reloads to a register, or record spill_reg_store for autoincs.
21218
21219 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
21220
21221         * gengtype.h: Updated copyright year.
21222         (struct input_file_st): Add inpisplugin field.
21223         (type_fileloc): New function.
21224         * gengtype.c
21225         (write_typed_struct_alloc_def): Add gcc_assert.
21226         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
21227         (write_typed_alloc_defns): Don't output for plugin files.
21228         (input_file_by_name): Clear inpisplugin field.
21229         (main): Set inpisplugin field for plugin files.
21230
21231 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
21232
21233         * gengtype-state.c (string_eq): New.
21234         (read_state): Use string_eq instead of strcmp when creating the
21235         state_ident_tab.
21236
21237 2011-04-19  Wei Guozhi  <carrot@google.com>
21238
21239         PR target/47855
21240         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
21241         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
21242         linkage.
21243         * config/arm/constraints.md (Uu): New constraint.
21244         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
21245
21246 2011-04-19  Tristan Gingold  <gingold@adacore.com>
21247
21248         * config.gcc (-*-*-*vms): Added.
21249         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
21250         definitions moved.
21251         * config/vms/vms-ld.c: New file.
21252         * config/vms/vms-ar.c: New file.
21253         * config/vms/t-vmsnative: New file.
21254
21255 2011-04-18  Xinliang David Li  <davidxl@google.com>
21256
21257         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
21258
21259 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21260
21261         PR middle-end/48661
21262         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
21263         if TREE_TYPE (v) is non-NULL.
21264
21265         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
21266         gimple_get_virt_mehtod_for_binfo.
21267         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
21268         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
21269         callers.
21270         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21271
21272 2011-04-18  Michael Matz  <matz@suse.de>
21273             Steve Ellcey  <sje@cup.hp.com>
21274
21275         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
21276         use its mode as source mode if it isn't VOIDmode.
21277
21278 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
21279
21280         * doc/passes.texi: Fill crossref nodes.
21281
21282 2011-04-18  Jim Meyering  <meyering@redhat.com>
21283
21284         Fix doubled-word typos in comments and strings
21285         * config/alpha/vms-unwind.h: s/for for/for/
21286         * config/arm/unwind-arm.h: Likewise.
21287         * config/microblaze/microblaze.c: Likewise.
21288         * config/sh/constraints.md: s/in in/in/
21289         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
21290
21291 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
21292
21293         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
21294         (AVX_FLOAT_MODE_P): Ditto.
21295         (AVX128_VEC_FLOAT_MODE_P): Ditto.
21296         (AVX256_VEC_FLOAT_MODE_P): Ditto.
21297         (AVX_VEC_FLOAT_MODE_P): Ditto.
21298         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
21299         (UNSPEC_MASKSTORE): Ditto.
21300         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
21301         Merge from <sse>_movmsk<ssemodesuffix> and
21302         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
21303         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
21304         iterator.
21305         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
21306         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
21307         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
21308
21309 2011-04-18  Jan Hubicka  <jh@suse.cz>
21310
21311         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
21312
21313         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
21314         (want_inline_function_called_once_p): Break out the logic from
21315         ipa_inline.
21316         (edge_badness): Ensure that profile is not misupdated.
21317         (lookup_recursive_calls): Prioritize by call frequencies.
21318         (inline_small_functions): Move program size estimates here;
21319         actually process whole queue even when unit growth has been
21320         met. (to properly compute inline_failed reasons and for the
21321         case unit size decrease.) Revisit comments on recursive inlining.
21322         (ipa_inline): Remove unit summary code; first inline hot calls
21323         of functions called once, cold calls next.
21324         (order, nnodes): Remove unused variables.
21325         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
21326         (GTFILES): Remove ipa-inline.c
21327         * sel-sched.c (fill_insns): Silence uninitialized var warning.
21328
21329 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21330
21331         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21332
21333 2011-04-18  Jie Zhang  <jie@codesourcery.com>
21334             Richard Earnshaw  <rearnsha@arm.com>
21335
21336         * arm.c (neon_builtin_type_bits): Remove.
21337         (typedef enum neon_builtin_mode): New.
21338         (T_MAX): Don't define.
21339         (typedef enum neon_builtin_datum): Remove bits, codes[],
21340         num_vars and base_fcode.  Add mode, code and fcode.
21341         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21342         VAR10): Change accordingly.
21343         (neon_builtin_data[]): Change accordingly
21344         (arm_init_neon_builtins): Change accordingly.
21345         (neon_builtin_compare): Remove.
21346         (locate_neon_builtin_icode): Remove.
21347         (arm_expand_neon_builtin): Change accordingly.
21348
21349         * arm.h (enum arm_builtins): Move to ...
21350         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21351
21352         * arm.c (arm_builtin_decl): Declare.
21353         (TARGET_BUILTIN_DECL): Define.
21354         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21355         (arm_builtin_decls[]): New.
21356         (arm_init_neon_builtins): Store builtin declarations in
21357         arm_builtin_decls[].
21358         (arm_init_tls_builtins): Likewise.
21359         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
21360         (arm_builtin_decl): New.
21361
21362 2011-04-18  Richard Guenther  <rguenther@suse.de>
21363
21364         * tree.c (upper_bound_in_type): Build properly canonicalized
21365         INTEGER_CSTs.
21366         (lower_bound_in_type): Likewise.
21367
21368 2011-04-18  Richard Guenther  <rguenther@suse.de>
21369
21370         * gimple.h (gimple_call_addr_fndecl): New function.
21371         (gimple_call_fndecl): Use it.
21372         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21373         for direct calls.
21374         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21375         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21376
21377 2011-04-18  Richard Guenther  <rguenther@suse.de>
21378
21379         PR middle-end/48650
21380         * tree.c (build_string): STRING_CST is now derived from tree_typed.
21381
21382 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21383
21384         PR lto/48492
21385         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21386         DECL_IN_CONSTANT_POOL without RTL.
21387
21388 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
21389             Ira Rosen  <ira.rosen@linaro.org>
21390
21391         PR target/48252
21392         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21393         to match neon_vzip/vuzp/vtrn_internal.
21394         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21395         outputs explicitly dependent on both inputs.
21396         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21397
21398 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21399
21400         PR tree-optimization/48616
21401         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21402         whether the shift is by scalar or vector based on whether all SLP
21403         scalar stmts have the same rhs.
21404
21405 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
21406
21407         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21408         memory operands.
21409
21410 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
21411
21412         PR target/43700
21413         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21414         registers.
21415
21416 2011-04-17  Jan Hubicka  <jh@suse.cz>
21417
21418         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21419         * cgrpahunit.c (cgraph_finalize_function): Do not set
21420         finalized_by_frontend.
21421         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21422         finalized_by_frontend.
21423
21424 2011-04-17  Jan Hubicka  <jh@suse.cz>
21425
21426         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21427         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21428         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21429         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21430         method.
21431         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21432         gimple-fold.c
21433         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21434
21435 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21436
21437         PR lto/48538
21438         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21439         is non-null before accessing it.
21440         (input_cgraph): Remove trailing spaces.
21441
21442 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21443
21444         * params.def (sms-min-sc): New param flag.
21445         * modulo-sched.c (sms_schedule): Use it.
21446         * doc/invoke.texi (sms-min-sc): Document it.
21447
21448 2011-04-17  Jan Hubicka  <jh@suse.cz>
21449
21450         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21451         present, also set gimple_call_set_cannot_inline.
21452         * ipa-inline.c: Update toplevel comment.
21453         (MAX_TIME): Remove.
21454         (cgraph_clone_inlined_nodes): Fix linebreaks.
21455         (cgraph_check_inline_limits): Restructure to ...
21456         (caller_growth_limits): ... this one; be more tolerant
21457         on growth in nested inline chains; add explanatory comment;
21458         fix stack accounting thinko introduced by previous patch.
21459         (cgraph_default_inline_p): Remove.
21460         (report_inline_failed_reason): New function.
21461         (can_inline_edge_p): New function.
21462         (can_early_inline_edge_p): New function.
21463         (leaf_node_p): Move upwards in file.
21464         (want_early_inline_function_p): New function.
21465         (want_inline_small_function_p): New function.
21466         (want_inline_self_recursive_call_p): New function.
21467         (cgraph_edge_badness): Rename to ...
21468         (edge_badness) ... this one; fix linebreaks.
21469         (update_edge_key): Update call of edge_baddness; add
21470         detailed dump about queue updates.
21471         (update_caller_keys): Use can_inline_edge_p and
21472         want_inline_small_function_p.
21473         (cgraph_decide_recursive_inlining): Rename to...
21474         (recursive_inlining): Use can_inline_edge_p and
21475         want_inline_self_recursive_call_p; simplify and remove no longer
21476         valid FIXME.
21477         (cgraph_set_inline_failed): Remove.
21478         (add_new_edges_to_heap): Use can_inline_edge_p and
21479         want_inline_small_function_p.
21480         (cgraph_decide_inlining_of_small_functions): Rename to ...
21481         (inline_small_functions): ... this one; cleanup; use
21482         can/want predicates; cleanup debug ouput; work edges till fibheap
21483         is exhausted and do not stop once unit growth is reached; remove
21484         later loop processing remaining edges.
21485         (cgraph_flatten): Rename to ...
21486         (flatten_function): ... this one; use can_inline_edge_p
21487         and can_early_inline_edge_p predicates.
21488         (cgraph_decide_inlining): Rename to ...
21489         (ipa_inline): ... this one; remove unreachable nodes before
21490         inlining functions called once; simplify the pass.
21491         (cgraph_perform_always_inlining): Rename to ...
21492         (inline_always_inline_functions): ... this one; use
21493         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21494         (cgraph_decide_inlining_incrementally): Rename to ...
21495         (early_inline_small_functions): ... this one; simplify
21496         using new predicates; cleanup; make dumps prettier.
21497         (cgraph_early_inlining): Rename to ...
21498         (early_inliner): newer inline regular functions into always-inlines;
21499         fix updating of call stmt summaries.
21500         (pass_early_inline): Update for new names.
21501         (inline_transform): Fix formating.
21502         (gate_cgraph_decide_inlining): Rename to ...
21503         (pass_ipa_inline): ... this one.
21504         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21505         * ipa-inline-analysis.c (dump_inline_summary): Update.
21506         (compute_inline_parameters): Do not compute disregard_inline_limits;
21507         look for mismatching arguments.
21508         (estimate_growth): Fix handlig of non-trivial self recursion.
21509         (inline_read_summary): Do not read info->disregard_inline_limits.
21510         (inline_write_summary): Do not write info->disregard_inline_limits.
21511         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21512         and move all checks into can_inline_edge_p predicate; re-enable code
21513         comparing optimization levels.
21514         (expand_call_inline): Do not test inline_forbidden_into_p.
21515         * Makefile.in (ipa-inline.o): Update arguments.
21516
21517 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21518
21519         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21520
21521 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21522
21523         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21524
21525 2011-04-17  Michael Matz  <matz@suse.de>
21526
21527         PR tree-optimization/48622
21528         PR lto/48645
21529         * ipa-inline-analysis.c (inline_read_summary): Read size/time
21530         in same order as they're written.
21531
21532 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21533
21534         * config/pa/predicates.md: Reorganize and simplify predicates.
21535         Eliminate duplicate code checks.
21536         (arith_operand): Rename to arith14_operand
21537         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21538         * config/pa/pa.md: Use renamed operands.
21539         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21540         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21541         arith11_operand, adddi3_operand, indexed_memory_operand,
21542         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21543         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21544         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21545         move_dest_operand, move_src_operand, prefetch_cc_operand,
21546         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21547         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21548         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21549         div_operand, int5_operand, movb_comparison_operator,
21550         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21551         arith_double_operand, ireg_operand, lhs_lshift_operand,
21552         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21553         integer_store_memory_operand): Likewise.
21554         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21555         (integer_store_memory_operand, read_only_operand,
21556         function_label_operand, borx_reg_operand,
21557         non_hard_reg_operand): Likewise.
21558         (eq_neq_comparison_operator): Delete unused operator.
21559         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21560         function_label_operand.
21561         (emit_move_sequence): Likewise.
21562
21563 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21564
21565         * config/i386/sse.md (sseunpackmode): New mode attribute.
21566         (ssepackmode): Ditto.
21567         (vec_pack_trunc_<mode>): Macroize expander from
21568         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21569         (vec_unpacks_lo_<mode>): Macroize expander from
21570         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21571         (vec_unpacks_hi_<mode>): Macroize expander from
21572         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21573         (vec_unpacku_lo_<mode>): Macroize expander from
21574         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21575         (vec_unpacku_hi_<mode>): Macroize expander from
21576         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21577         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21578         ix86_expand_sse4_unpack.
21579         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21580
21581 2011-04-16  Jan Hubicka  <jh@suse.cz>
21582
21583         * cgraphbuild.c: Include ipa-inline.h.
21584         (reset_inline_failed): Use initialize_inline_failed.
21585         * cgraph.c: Include ipa-inline.h.
21586         (cgraph_create_node_1): Do not initialize estimated_growth.
21587         (initialize_inline_failed): More to ipa-inline-analysis.c
21588         (dump_cgraph_node): Do not dump inline flags.
21589         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21590         and disregard_inline_limits flags.
21591         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21592         time, size, estimated_growth.
21593         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21594         Update.
21595         * cgraphunit.c (cgraph_decide_is_function_needed): Use
21596         DECL_DISREGARD_INLINE_LIMITS.
21597         (cgraph_analyze_function): Do not initialize
21598         node->local.disregard_inline_limits.
21599         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21600         inlinable, versionable and disregard_inline_limits.
21601         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21602         cgraph_check_inline_limits, cgraph_default_inline_p,
21603         cgraph_edge_badness, update_caller_keys, update_callee_keys,
21604         add_new_edges_to_heap): Update.
21605         (cgraph_decide_inlining_of_small_function): Update; set
21606         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21607         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21608         cgraph_decide_inlining_incrementally): Update.
21609         * ipa-inline.h (inline_summary): Add inlinable, versionable,
21610         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21611         time, size and estimated_growth parameters.
21612         (estimate_edge_growth): Update.
21613         (initialize_inline_failed): Declare.
21614         * ipa-split.c: Include ipa-inline.h
21615         (execute_split_functions): Update.
21616         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21617         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21618         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21619         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21620         estimated_growth to INT_MIN.
21621         (inline_node_duplication_hook): Likewise.
21622         (dump_inline_summary): Dump new fields.
21623         (compute_inline_parameters): Update.
21624         (estimate_edge_time, estimate_time_after_inlining,
21625         estimate_size_after_inlining, estimate_growth, inline_read_summary,
21626         inline_write_summary):
21627         (initialize_inline_failed): Move here from cgraph.c.
21628         * tree-sra.c: Include ipa-inline.h.
21629         (ipa_sra_preliminary_function_checks): Update.
21630         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21631         ipa-inline.h.
21632
21633 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21634
21635         * config/i386/sse.md (V16): New mode iterator.
21636         (VI1, VI8): Ditto.
21637         (AVXMODEQI, AVXMODEDI): Remove.
21638         (sse2, sse3): New mode attribute.
21639         (mov<mode>): Use V16 mode iterator.
21640         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21641         (push<mode>1): Use V16 mode iterator.
21642         (movmisalign<mode>): Ditto.
21643         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21644         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21645         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21646         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21647         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21648         avx_movdqu<avxmodesuffix>.
21649         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21650         *avx_movdqu<avxmodesuffix>.
21651         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21652         avx_lddqu<avxmodesuffix>.
21653         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21654         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21655         avx_movnt<AVXMODEDI:mode>.
21656         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21657         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21658
21659 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
21660
21661         PR target/48629
21662         * haifa-sched.c (prune_ready_list, schedule_block): Use
21663         sched_pressure_p rather than flag_sched_pressure.
21664
21665 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
21666
21667         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21668         cgraph_get_node instead of cgraph_get_create_node.
21669
21670 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
21671
21672         * cfgexpand.c (expand_debug_expr): Use
21673         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21674
21675 2011-04-15  Michael Matz  <matz@suse.de>
21676
21677         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21678         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21679         * function.c (gimplify_parameters): Ditto.
21680         * gimplify.c (gimplify_vla_decl): Ditto.
21681
21682         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21683         (gimple_call_set_alloca_for_var): New inline function.
21684         (gimple_call_alloca_for_var_p): Ditto.
21685         * gimple.c (gimple_build_call_from_tree): Remember
21686         CALL_ALLOCA_FOR_VAR_P state.
21687         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21688
21689         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21690         calls if they were for VLA objects.
21691
21692 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21693
21694         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21695         of ADR_EXPRs.
21696
21697 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21698
21699         PR middle-end/48601
21700         * tree-emutls.c (lower_emutls_function_body): Call
21701         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
21702         result is non-NULL.
21703
21704 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
21705
21706         * c-decl.c (detect_field_duplicates): Call
21707         objc_detect_field_duplicates instead of objc_get_interface_ivars.
21708
21709 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
21710
21711         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21712         * gimple.c (gimple_asm_clobbers_memory_p): Define.
21713         * ipa-pure-const.c (check_stmt): Call it.
21714         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21715
21716 2011-04-15  Richard Guenther  <rguenther@suse.de>
21717
21718         PR tree-optimization/48290
21719         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21720         Properly decide inhibiting propagation based on the valueized
21721         operand.  Do loop-closed SSA form preserving here ...
21722         (init_copy_prop): ... not here.
21723
21724 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
21725
21726         PR target/48612
21727         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21728         (*ieee_smax<mode>3): Likewise.
21729
21730 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21731
21732         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21733         Replace match_operand with match_dup for the third operand in
21734         these expanders.
21735
21736 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21737
21738         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21739         to track processing of conditionals.  Update all callers.
21740         (try_combine, simplify_if_then_else): Update.
21741
21742 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21743
21744         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21745         -fsched-pressure.
21746
21747 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
21748
21749         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21750         instead of match_operand for operand 3.
21751
21752 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
21753
21754         * recog.h (insn_operand_data): Add an "allows_mem" field.
21755         * genoutput.c (output_operand_data): Initialize it.
21756         * optabs.c (maybe_legitimize_operand_same_code): New function.
21757         (maybe_legitimize_operand): Use it when matching the original
21758         op->value.
21759
21760 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21761
21762         * gimplify.c: Fix issues in comments throughout.
21763         (voidify_wrapper_expr): Fix long line.
21764         (build_stack_save_restore): Likewise.
21765         (gimplify_loop_expr): Likewise.
21766         (gimplify_compound_lval): Likewise.
21767         (gimplify_init_ctor_eval): Likewise.
21768         (gimplify_modify_expr_rhs): Likewise.
21769         (omp_notice_threadprivate_variable): Likewise.
21770
21771 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21772
21773         * cfgexpand.c (expand_call_stmt): Convert the function type to the
21774         original one if this is not a builtin function.
21775
21776 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
21777
21778         PR target/48605
21779         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21780         offset it as needed based on top 2 bits in operands[3], change
21781         MEM mode to SFmode and mask those 2 bits away from operands[3].
21782
21783 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21784
21785         * c-parser.c (c_parser_objc_protocol_definition): Updated for
21786         change from objc_declare_protocols() to objc_declare_protocol().
21787
21788 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
21789
21790         * config/i386/sse.md (sse4_1): New mode attribute.
21791         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21792         avx_blend<ssemodesuffix><avxmodesuffix> and
21793         sse4_1_blend<ssemodesuffix> using VF mode iterator.
21794         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21795         avx_blendv<ssemodesuffix><avxmodesuffix> and
21796         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21797         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21798         avx_dp<ssemodesuffix><avxmodesuffix> and
21799         sse4_1_dp<ssemodesuffix> using VF mode iterator.
21800         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21801         (sse4_1_packusdw): Merge with *avx_packusdw.
21802         (sse4_1_pblendvb): Merge with *avx_pblendvb.
21803         (sse4_1_pblendw): Merge with *avx_pblendw.
21804         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21805         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21806         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21807         VF mode iterator.
21808         (sse4_1_round<ssescalarmodesuffix>): Merge with
21809         *avx_round<ssescalarmodesuffix>.
21810         (aesenc): Merge with *avx_aesenc.
21811         (aesenclast): Merge with *avx_aesenclast.
21812         (aesdec): Merge with *avx_aesdec.
21813         (aesdeclast): Merge with *avx_aesdeclast.
21814         (pclmulqdq): Merge with *pclmulqdq.
21815         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21816         New predicate.
21817         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21818
21819 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21820
21821         PR middle-end/48608
21822         * cfgexpand.c (get_decl_align_unit): Renamed to ...
21823         (align_local_variable): This.  Update DECL_ALIGN.
21824         (add_stack_var): Updated.
21825         (expand_one_stack_var): Likewise.
21826
21827 2011-04-14  Richard Guenther  <rguenther@suse.de>
21828
21829         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21830         Remove.
21831         (dse_initialize_block_local_data, dse_leave_block,
21832         record_voperand_set, get_stmt_uid): Likewise.
21833         (dse_possible_dead_store_p): Allow any kind of killing stmt.
21834         (dse_optimize_stmt): Remove voperand set handling code.
21835         Simplify and improve to handle any kind of killing stmt.
21836         (dse_record_phi): Remove.
21837         (dse_enter_block): Simplify.
21838         (tree_ssa_dse): Likewise.
21839         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21840
21841 2011-04-14  Jan Hubicka  <jh@suse.cz>
21842
21843         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21844         * cgraph.h (struct inline_summary): Move to ipa-inline.h
21845         (cgraph_local_info): Remove inline_summary.
21846         * ipa-cp.c: Include ipa-inline.h.
21847         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21848         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21849         accesor.
21850         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21851         (input_overwrite_node): Do not set inline summary.
21852         (input_node): Do not stream inline summary.
21853         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21854         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21855         growth; we do not have inline parameters computed for that anyway.
21856         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21857         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21858         (inline_summary_t): New type and VECtor.
21859         (debug_inline_summary, dump_inline_summaries): Declare.
21860         (inline_summary): Use VOCtor.
21861         (estimate_edge_growth): Kill hack computing call stmt size directly.
21862         * lto-section-in.c (lto_section_name): Add inline section.
21863         * ipa-inline-analysis.c: Include lto-streamer.h
21864         (node_removal_hook_holder, node_duplication_hook_holder): New holders
21865         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21866         (inline_summary_vec): Define.
21867         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21868         dump_inline_summaries): New functions.
21869         (estimate_function_body_sizes): Properly compute size/time of outgoing
21870         calls.
21871         (compute_inline_parameters): Alloc inline_summary; do not compute
21872         size/time of incomming calls.
21873         (estimate_edge_time): Avoid missing time summary hack.
21874         (inline_read_summary): Read inline summary info.
21875         (inline_write_summary): Write inline summary info.
21876         (inline_free_summary): Free all hooks and inline summary vector.
21877         * lto-streamer.h: Add LTO_section_inline_summary section.
21878         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21879         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21880
21881 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21882
21883         * tree-vectorizer.h (vect_strided_store_supported): Add a
21884         HOST_WIDE_INT argument.
21885         (vect_strided_load_supported): Likewise.
21886         (vect_permute_store_chain): Return void.
21887         (vect_transform_strided_load): Likewise.
21888         (vect_permute_load_chain): Delete.
21889         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21890         count argument.  Check that the count is a power of two.
21891         (vect_strided_load_supported): Likewise.
21892         (vect_permute_store_chain): Return void.  Update after above changes.
21893         Assert that the access is supported.
21894         (vect_permute_load_chain): Likewise.
21895         (vect_transform_strided_load): Return void.
21896         * tree-vect-stmts.c (vectorizable_store): Update calls after
21897         above interface changes.
21898         (vectorizable_load): Likewise.
21899         (vect_analyze_stmt): Don't check for strided powers of two here.
21900
21901 2011-04-14  Richard Guenther  <rguenther@suse.de>
21902
21903         PR tree-optimization/48590
21904         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21905         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21906         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21907         BUILT_IN_STACK_SAVE.
21908         * tree-ssa-dce.c (propagate_necessity): Handle
21909         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21910
21911 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21912
21913         * c-parser.c (c_parser_objc_class_declaration): Updated call to
21914         objc_declare_class.
21915
21916 2011-04-14  Richard Guenther  <rguenther@suse.de>
21917
21918         * tree.h (get_object_alignment_1): Declare.
21919         * builtins.c (get_object_alignment_1): Split out worker from ...
21920         (get_object_alignment): ... here.
21921         * fold-const.c (get_pointer_modulus_and_residue): Use
21922         get_object_alignment_1.
21923
21924 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21925
21926         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21927         type parameter.
21928         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21929         parameter.  Generalise code to handle arrays as well as vectors.
21930         (vect_setup_realignment): Update accordingly.
21931         * tree-vect-stmts.c (vectorizable_store): Likewise.
21932         (vectorizable_load): Likewise.
21933
21934 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21935
21936         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21937         within the per-copy loop.
21938
21939 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21940
21941         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21942         in the dump file.
21943
21944 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21945
21946         * doc/options.texi (Negative): Explicitly mention that the
21947         Negative chain must be circular.
21948
21949 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
21950
21951         * function.h (block_chainon): Declare.
21952         * function.c (block_chainon): Define.
21953
21954 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
21955             Eric Weddington  <eric.weddington@atmel.com>
21956             Georg-Johann Lay  <avr@gjlay.de>
21957
21958         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21959         New Includes
21960         (avr_init_builtins, avr_expand_builtin,
21961         avr_expand_delay_cycles, avr_expand_unop_builtin,
21962         avr_expand_binop_builtin ): New functions.
21963         (avr_builtin_id): New enum
21964         (struct avr_builtin_description): New struct
21965         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
21966         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
21967
21968         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
21969         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
21970         UNSPECV_DELAY_CYCLES): new enumeration values
21971         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
21972         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
21973         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21974         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
21975         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
21976         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
21977         "fmulsu"): New insns
21978
21979         * config/avr/avr-c.c: fix line endings
21980         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
21981         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
21982         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
21983         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
21984         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
21985
21986         * doc/extend.texi (AVR Built-in Functions): New node
21987         (Target Builtins): Add documentation of AVR
21988         built-in functions.
21989
21990 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
21991
21992         PR target/44643
21993         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
21994         alone. Error if non-const data has attribute progmem.
21995
21996 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21997
21998         * tree.h (struct tree_constructor): Include tree_typed instead of
21999         tree_common.
22000         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
22001         TS_TYPED instead of TS_COMMON.
22002
22003 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22004
22005         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
22006         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
22007         (sse2_psadbw): Merge with *avx_psadbw.
22008         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
22009         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
22010         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
22011         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
22012         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
22013         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
22014         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
22015         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
22016         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
22017         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
22018         (ssse3_palignrti): Merge with *avx_palignrti.
22019
22020 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22021
22022         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
22023         * tree-ssanames.c (fini_ssanames): VEC_free it.
22024         (make_ssa_name_fn): Update for VECness of free_ssanames.
22025         (release_ssa_name, release_dead_ssa_names): Likewise.
22026         * tree.h (struct tree_ssa_name): Include tree_typed instead of
22027         tree_common.
22028         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
22029         TS_TYPED instead of TS_COMMON.
22030
22031 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22032
22033         * postreload-gcse.c (gcse_after_reload_main): Add calls to
22034         statistics_counter_event.
22035         * tree-ssa-copyrename.c (stats): Define.
22036         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
22037         statistics_counter_event.
22038         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
22039         (bswap_stats, widen_mul_stats): Define.
22040         (insert_reciprocals): Increment rdivs_inserted.
22041         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
22042         rfuncs_inserted.  Add calls to statistics_counter_event.
22043         (execute_cse_sincos_1): Increment inserted.
22044         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
22045         statistics_counter_event.
22046         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
22047         of bswap_stats.  Add calls to statistics_counter_event.
22048         (convert_mult_to_widen): Increment widen_mults_inserted.
22049         (convert_plusminus_to_widen): Increment maccs_inserted.
22050         (convert_mult_to_fma): Increment fmas_inserted.
22051         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
22052         calls to statistics_counter_event.
22053
22054 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22055
22056         PR rtl-optimization/48455
22057         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22058         `temp_costs->mem_cost'.
22059
22060 2011-04-13  Jan Hubicka  <jh@suse.cz>
22061
22062         * ipa-inline.h: New file.
22063         * ipa-inline-analysis.c: New file. Broken out of ...
22064         * ipa-inline.c: ... this file; update toplevel comment;
22065         include ipa-inline.h
22066         (inline_summary): Move to ipa-inline.h
22067         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22068         ipa-inline-analysis.c.
22069         (cgraph_estimate_time_after_inlining): Rename to
22070         estiamte_time_after_inlining; move to ipa-inline-analysis.c
22071         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22072         to estimate_edge_growth.
22073         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22074         rename to estimate_size_after_inlining.
22075         (cgraph_mark_inline_edge): Update for new naming convention.
22076         (cgraph_check_inline_limits): Likewise.
22077         (cgraph_edge_badness): Likewise.
22078         (cgraph_decide_recursive_inlining): Likewise.
22079         (cgraph_decide_inlining_of_small_functions): Likewise.
22080         (cgraph_decide_inlining_incrementally): Likewise.
22081         (cgraph_estimate_growth): Rename to estimate_growth; move to
22082         ipa-inline-analysis.c.
22083         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22084         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22085         (compute_inline_parameters): Likewise.
22086         (compute_inline_parameters_for_current): Likewise.
22087         (pass_inline_parameters): Likewise.
22088         (inline_indirect_intraprocedural_analysis): Likewise.
22089         (analyze_function): Rename to inline_analyze_function; likewise.
22090         (add_new_function): Move to ipa-inline-analysis.c.
22091         (inline_generate_summary): Likewise.
22092         (inline_read_summary): Likewise.
22093         (inline_write_summary): Likewise.
22094         * Makefile.in (ipa-inline-analysis.c): New file.
22095
22096 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22097
22098         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22099         * configure: Regenerate.
22100
22101 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22102
22103         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22104         instead of tree_common.
22105         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22106         Likewise.
22107         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22108         TS_TYPED rather than TS_COMMON.
22109         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22110
22111 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
22112
22113         PR target/45263
22114         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22115         r20 around calls of __tablejump_elpm__
22116
22117 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
22118
22119         PR middle-end/48591
22120         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22121         NULL.
22122         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22123
22124 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
22125
22126         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22127         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22128         (cfi_vec): New typedef.
22129         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22130         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22131         (cie_cfi_vec): New static variable.
22132         (cie_cfi_head): Delete.
22133         (add_cfi): Accept a cfi_vec * as first argument. All callers and
22134         declaration changed. Use vector rather than list operations.
22135         (new_cfi): Don't initialize the dw_cfi_next field.
22136         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22137         rather than list operations.
22138         (lookup_cfa): Use vector rather than list operations.
22139         (output_cfis): New argument upto. Accept a cfi_vec rather than
22140         a dw_cfi_ref list head as argument. All callers changed.
22141         Iterate over the vector using upto as a maximum index.
22142         (output_all_cfis): New static function.
22143         (output_fde): Use vector rather than list operations. Use the
22144         new upto argument for output_cfis rather than manipulating a
22145         list.
22146         (dwarf2out_begin_prologue): Change initializations to match
22147         new struct members.
22148         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22149         from the vector length rather than searching for the end of a list.
22150         Use output_all_cfis.
22151         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22152
22153 2011-04-13  Nick Clifton  <nickc@redhat.com>
22154
22155         * config/rx/rx.md (movmemsi): Do not use this pattern when
22156         volatile pointers are involved.
22157
22158 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22159
22160         * config/i386/sse.md (pinsrbits): Remove.
22161         (sse2_packsswb): Merge with *avx_packsswb.
22162         (sse2_packssdw): Merge with *avx_packssdw.
22163         (sse2_packuswb): Merge with *avx_packuswb.
22164         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22165         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22166         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22167         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22168         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22169         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22170         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22171         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22172         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22173         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22174         (sse2_loadld): Merge with *avx_loadld.
22175         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22176         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22177         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22178         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22179         (vec_concatv2di): Merge with *vec_concatv2di_avx.
22180
22181 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
22182
22183         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22184         calling TREE_CHAIN.
22185         * print-tree.c (print_node): Likewise.
22186         * tree-inline.c (copy_tree_r): Likewise.
22187         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
22188         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
22189         instead of TS_COMMON.
22190         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
22191         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
22192         (copy_node_stat): Zero TREE_CHAIN only if necessary.
22193         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
22194         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
22195         ...and these...
22196         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
22197         * tree.h: ...here.
22198         (TREE_CHAIN): Check for a TS_COMMON structure.
22199         (TREE_TYPE): Check for a TS_TYPED structure.
22200
22201 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
22202
22203         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22204         cgraph_get_create_node instead of cgraph_node.
22205
22206 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22207
22208         * c-parser.c (c_parser_initelt): Updated call to
22209         objc_build_message_expr.
22210         (c_parser_postfix_expression): Likewise.
22211
22212 2011-04-12  Kai Tietz  <ktietz@redhat.com>
22213
22214         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
22215         MASK_MS_BITFIELD_LAYOUT bit.
22216
22217 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22218
22219         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
22220         assert it is always true.
22221         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
22222         moves.
22223
22224 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22225
22226         * c-parser.c (c_lex_one_token): Rewritten conditional used when
22227         compiling Objective-C to be more efficient.
22228
22229 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
22230
22231         * opts-common.c (decode_cmdline_options_to_array): Remove variable
22232         argv_copied.
22233
22234 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22235
22236         * recog.h, genoutput.c, optabs.c: Revert last patch.
22237
22238 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22239
22240         PR target/48090
22241         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
22242
22243 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22244
22245         * recog.h (insn_operand_data): Add an "allows_mem" field.
22246         * genoutput.c (output_operand_data): Initialize it.
22247         * optabs.c (maybe_legitimize_operand_same_code): New function.
22248         (maybe_legitimize_operand): Use it when matching the original
22249         op->value.
22250
22251 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22252
22253         * genpreds.c (process_define_predicate): Move most processing
22254         to gensupport.c.  Continue to validate the expression.
22255         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
22256         (process_define_predicate): Move processing to gensupport.c.
22257         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
22258         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
22259         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
22260         argument.
22261         (valid_predicate_name_p): New function, split out from old
22262         genpreds.c:process_define_predicate.
22263         (process_define_predicate): New function, combining code from
22264         old genpreds.c and genrecog.c functions.
22265         (process_rtx): Call it for DEFINE_PREDICATE and
22266         DEFINE_SPECIAL_PREDICATE.
22267
22268 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22269
22270         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
22271         size of a '%A' memory reference.
22272         (T_DREG, T_QREG): New neon_builtin_type_bits.
22273         (arm_init_neon_builtins): Assert that the load and store operands
22274         are neon_struct_operands.
22275         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
22276         (NEON_ARG_MEMORY): New builtin_arg.
22277         (neon_dereference_pointer): New function.
22278         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
22279         Handle NEON_ARG_MEMORY.
22280         (arm_expand_neon_builtin): Update after above interface changes.
22281         Use NEON_ARG_MEMORY for loads and stores.
22282         * config/arm/predicates.md (neon_struct_operand): New predicate.
22283         * config/arm/iterators.md (V_two_elem): Tweak formatting.
22284         (V_three_elem): Use BLKmode for accesses that have no associated mode.
22285         (V_four_elem): Tweak formatting.
22286         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
22287         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
22288         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
22289         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
22290         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
22291         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
22292         (neon_vst4<mode>): Replace pointer operand with a memory operand.
22293         Use %A in the output template.
22294         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
22295         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
22296         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
22297         the width of the memory access.  Remove post-increment.
22298         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
22299
22300 2011-04-12  Nick Clifton  <nickc@redhat.com>
22301
22302         * config/v850/v850.c (expand_prologue): Do not use the CALLT
22303         instruction for interrupt handlers if the target is the basic V850
22304         architecture.
22305         (expand_epilogue): Likewise.
22306
22307 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22308
22309         PR rtl-optimization/48549
22310         * combine.c (propagate_for_debug): Also stop after BB_END of
22311         this_basic_block.  Process LAST and just stop processing after it.
22312         (combine_instructions): If last_combined_insn has been deleted,
22313         set last_combined_insn to its PREV_INSN.
22314
22315 2011-04-12  Richard Guenther  <rguenther@suse.de>
22316
22317         PR tree-optimization/46076
22318         * gimple.h (struct gimple_statement_call): Add fntype field.
22319         (gimple_call_fntype): Adjust.
22320         (gimple_call_set_fntype): New function.
22321         * gimple.c (gimple_build_call_1): Set the call function type.
22322         * gimplify.c (gimplify_call_expr): Preserve the function
22323         type the frontend used for the call.
22324         (gimplify_modify_expr): Likewise.
22325         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
22326         function type.
22327         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
22328         function type.
22329         * tree-ssa.c (useless_type_conversion_p): Function pointer
22330         conversions are useless.
22331
22332 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22333
22334         * cgraph.h (cgraph_node): Remove function declaration.
22335         (cgraph_create_node): Declare.
22336         (cgraph_get_create_node): Likewise.
22337         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22338         Updated all callers.
22339         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22340         the decl does not already exist.  Call cgraph_get_create_node instead
22341         of cgraph_node.
22342         (cgraph_get_create_node): New function.
22343         (cgraph_same_body_alias): Update comment.
22344         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22345         assert it does not return NULL.
22346         (cgraph_update_edges_for_call_stmt): Likewise.
22347         (cgraph_clone_edge): Likewise.
22348         (cgraph_create_virtual_clone): Likewise.
22349         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22350         instead of cgraph_node.
22351         (cgraph_add_new_function): Call cgraph_create_node or
22352         cgraph_get_create_node instead of cgraph_node.
22353         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22354         instead of cgraph_node.
22355         (record_eh_tables): Likewise.
22356         (mark_address): Likewise.
22357         (mark_load): Likewise.
22358         (build_cgraph_edges): Call cgraph_get_create_node instead
22359         of cgraph_node.
22360         (rebuild_cgraph_edges): Likewise.
22361         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22362         instead of cgraph_node.
22363         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22364         cgraph_node.
22365         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22366         cgraph_create_node instead of cgraph_node.
22367         * c-decl.c (finish_function): Call cgraph_get_create_node instead
22368         of cgraph_node.
22369         * lto-cgraph.c (input_node): Likewise.
22370         * lto-streamer-in.c (input_function): Likewise.
22371         * varasm.c (mark_decl_referenced): Likewise.
22372         (assemble_alias): Likewise.
22373
22374 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22375
22376         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22377         instead of cgraph_node and assert it does not return NULL.
22378         * lto-streamer-in.c (lto_read_body): Likewise.
22379         * omp-low.c (new_omp_context): Likewise.
22380         (create_task_copyfn): Likewise.
22381         * tree-emutls.c (lower_emutls_function_body): Likewise.
22382         * matrix-reorg.c (transform_allocation_sites): Likewise.
22383
22384 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22385
22386         PR c/48552
22387         * c-typeck.c (build_asm_expr): Error out on attempts to use
22388         void type outputs or inputs for constraints that allow reg or
22389         don't allow memory.
22390
22391 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
22392             Richard Earnshaw  <rearnsha@arm.com>
22393
22394         PR target/48250
22395         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22396         to use sign-magnitude offsets. Reject unsupported unaligned
22397         cases. Add detailed description in comments.
22398         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22399         condition from TARGET_32BIT to TARGET_ARM.
22400
22401 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
22402
22403         * tree.h (struct typed_tree): New.
22404         (struct tree_common): Include it instead of tree_base.
22405         (TREE_TYPE): Update for new location of type field.
22406         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22407         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22408         (union tree_node): Add typed field.
22409         * treestruct.def (TS_TYPED): New.
22410         * lto-streamer.c (check_handled_ts_structures): Handle it.
22411         * tree.c (MARK_TS_TYPED): New macro.
22412         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22413
22414 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
22415
22416         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22417         (force_nonfallthru): Do not alter the loop nest if no basic block
22418         was created.
22419
22420 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22421
22422         * config/i386/sse.md (VI): New mode iterator.
22423         (SSEMODEI): Remove.
22424         (AVX256MODEI): Ditto.
22425         (AVXMODEF4P): Ditto.
22426         (avxvecpsmode): Ditto.
22427         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
22428         (sse2_andnot<mode>3): New expander.
22429         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22430         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
22431         (<any_logic:code><mode>3): Use VI mode iterator.
22432         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22433         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
22434         (*andnottf3): Handle AVX three-operand constraints.
22435         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22436
22437 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22438             Robert Millan  <rmh@gnu.org>
22439
22440         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22441         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22442         GNU_USER_DYNAMIC_LINKER64): Define.
22443         (REG_NAME): Don't undefine.
22444         (MD_UNWIND_SUPPORT): Undefine.
22445         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22446         (REG_NAME): Don't undefine.
22447         (MD_UNWIND_SUPPORT): Undefine.
22448         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22449
22450 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22451
22452         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22453         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22454
22455 2011-04-11  Xinliang David Li  <davidxl@google.com>
22456
22457         * value-profile.c (check_ic_target): New function.
22458         (gimple_ic_transform): Sanity check indirect call target.
22459         * gimple-low.c (gimple_check_call_args): Interface change.
22460         (gimple_check_call_matching_types): New function.
22461         * tree-inline.c (tree_can_inline_p): Call new function.
22462
22463 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
22464
22465         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22466         tree-pretty-print.h & realmpfr.h.
22467
22468 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
22469
22470         PR middle-end/48464
22471         * ira.c (setup_pressure_classes): Fix typo in loop condition.
22472         (setup_allocno_and_important_classes): Ditto.
22473
22474 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22475
22476         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22477         GNU_USER_DYNAMIC_LINKER.
22478         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22479         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22480         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22481         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22482         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22483         GNU_USER_TARGET_OS_CPP_BUILTINS.
22484         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22485         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22486         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22487         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22488         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22489         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22490         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22491         GNU_USER_TARGET_OS_CPP_BUILTINS.
22492         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22493         GNU_USER_DYNAMIC_LINKER.
22494         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22495         GNU_USER_TARGET_OS_CPP_BUILTINS.
22496         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22497         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22498         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22499         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22500         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22501         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22502         GNU_USER_DYNAMIC_LINKER64): Remove.
22503         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22504         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22505         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22506         GNU_USER_DYNAMIC_LINKER.
22507         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22508         GNU_USER_TARGET_OS_CPP_BUILTINS.
22509         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22510         GNU_USER_TARGET_OS_CPP_BUILTINS.
22511         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22512         to GNU_USER_TARGET_OS_CPP_BUILTINS.
22513         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22514         GNU_USER_TARGET_OS_CPP_BUILTINS.
22515         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22516         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22517         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22518         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22519         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22520         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22521         GNU_USER_DYNAMIC_LINKER.
22522         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22523         GNU_USER_TARGET_OS_CPP_BUILTINS.
22524         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22525         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22526         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22527         GNU_USER_DYNAMIC_LINKER.
22528         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22529         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22530         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22531         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22532         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22533         GNU_USER_DYNAMIC_LINKER.
22534         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22535         GNU_USER_DYNAMIC_LINKERN32.
22536         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22537         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
22538         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
22539         GNU_USER_DYNAMIC_LINKER32.
22540         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22541         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22542         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22543         GNU_USER_DYNAMIC_LINKER.
22544         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22545         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22546         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22547         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22548         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22549         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22550         GNU_USER_DYNAMIC_LINKER32.
22551         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22552         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22553         GNU_USER_DYNAMIC_LINKER.
22554         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22555         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22556         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22557         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
22558         GNU_USER_DYNAMIC_LINKER64.
22559         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22560         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22561         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22562         GNU_USER_DYNAMIC_LINKER.
22563         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22564         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22565         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22566         GNU_USER_DYNAMIC_LINKER.
22567         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22568         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22569         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22570         GNU_USER_DYNAMIC_LINKER32.
22571         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22572         GNU_USER_DYNAMIC_LINKER64.
22573         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22574         GNU_USER_DYNAMIC_LINKER64.
22575         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22576         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22577         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22578         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22579         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22580
22581 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22582
22583         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
22584         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22585         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22586         GNU_USER_DYNAMIC_LINKER.
22587         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22588         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
22589         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22590         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22591         GNU_USER_DYNAMIC_LINKER64.
22592         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22593         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22594         GNU_USER_LINK_EMULATION.
22595         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22596         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22597         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22598         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22599         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22600         CPP_SPEC, CC1_SPEC): Remove.
22601         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22602         (GNU_USER_DYNAMIC_LINKER): Define.
22603         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22604         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22605         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22606         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22607         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22608         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22609         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22610         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22611         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22612         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22613         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22614         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22615         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22616         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22617         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22618         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22619         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22620         GNU_USER_DYNAMIC_LINKER.
22621         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22622         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22623         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22624         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22625         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22626         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22627         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22628         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22629         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22630         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22631
22632 2011-04-11  Kai Tietz  <ktietz@redhat.com>
22633
22634         PR target/9601
22635         PR target/11772
22636         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22637         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22638         comment.
22639         (ix86_is_msabi_thiscall): Removed.
22640         (ix86_is_type_thiscall): Likewise.
22641         (ix86_get_callcvt): New function.
22642         (ix86_comp_type_attributes): Simplify check.
22643         (ix86_function_regparm): Use ix86_get_callcvt for calling
22644         convention attribute checks.
22645         (ix86_return_pops_args): Likewise.
22646         (ix86_static_chain): Likewise.
22647         (x86_this_parameter): Likewise.
22648         (x86_output_mi_thunk): Likewise.
22649         (ix86_function_type_abi): Optimize check for types without attributes.
22650         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22651         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22652         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22653         by flag-values.
22654         (IX86_BASE_CALLCVT): Helper macro.
22655         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22656         Use ix86_get_callcvt for calling convention attribute checks and avoid
22657         symbol-decoration for stdcall in TARGET_RTD case.
22658         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22659         Likewise.
22660         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22661         for declaration.
22662
22663 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22664
22665         * config/i386/sse.md (VI_128): New mode iterator.
22666         (VI12_128): Rename from SSEMODE12.
22667         (VI14_128): Rename from SSEMODE14.
22668         (VI124_128): New mode iterator.
22669         (VI24_128): Rename from SSEMODE248.
22670         (VI248_128): Rename from SSEMODE248.
22671         (SSEMODE124C8): Remove.
22672         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22673         (*sse2_<plusminus_insn><mode>3): Merge with
22674         *avx_<plusminus_insn><mode>3.
22675         (*mulv8hi3): Merge with *avx_mulv8hi3.
22676         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22677         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22678         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22679         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22680         (ashr<mode>3): Merge with *avx_ashr<mode>3.
22681         (lshr<mode>3): Merge with *avx_lshr<mode>3.
22682         (ashl<mode>3): Merge with *avx_ashl<mode>3.
22683         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22684         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22685         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22686         (*<smaxmin:code>v8hi3): Ditto.
22687         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22688         (*<smaxmin:code>v16qi3): Ditto.
22689         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22690         (*sse2_eq<mode>3): Ditto.
22691         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22692         (*sse2_gt<mode>3): Ditto.
22693         (vcondv2di): Split out of vcond<mode>.
22694         (vconduv2di): Split out of vcondu<mode>.
22695
22696 2011-04-11  Richard Guenther  <rguenther@suse.de>
22697
22698         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22699         before calling tree_low_cst.
22700
22701 2011-04-11  Richard Guenther  <rguenther@suse.de>
22702
22703         * stor-layout.c (layout_type): Compute all array index size operations
22704         in the original type.
22705         (initialize_sizetypes): Add comment.
22706         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22707
22708 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22709
22710         * common.opt (Tbss=, Tdata=, Ttext=): New options.
22711
22712 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22713
22714         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22715         of cgraph_node, handle NULL return value.
22716         (cgraph_global_info): Likewise.
22717         (cgraph_rtl_info): Likewise.
22718         * tree-inline.c (estimate_num_insns): Likewise.
22719         * gimplify.c (unshare_body): Likewise.
22720         (unvisit_body): Likewise.
22721         (gimplify_body): Likewise.
22722         * predict.c (optimize_function_for_size_p): Likewise.
22723         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22724         (call_may_clobber_ref_p_1): Likewise.
22725         * varasm.c (function_section_1): Likewise.
22726         (assemble_start_function): Likewise.
22727
22728 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22729
22730         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22731         of cgraph_node.
22732         * final.c (rest_of_clean_state): Likewise.
22733         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22734         * passes.c (pass_init_dump_file): Likewise.
22735         (execute_all_ipa_transforms): Likewise.
22736         (function_called_by_processed_nodes_p): Likewise.
22737         * predict.c (maybe_hot_frequency_p): Likewise.
22738         (probably_never_executed_bb_p): Likewise.
22739         (compute_function_frequency): Likewise.
22740         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22741         (unnest_nesting_tree_1): Likewise.
22742         (lower_nested_functions): Likewise.
22743         * tree-optimize.c (execute_fixup_cfg): Likewise.
22744         (tree_rest_of_compilation): Likewise.
22745         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22746         * tree-sra.c (ipa_early_sra): Likewise.
22747         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22748         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22749         * ipa.c (record_cdtor_fn): Likewise.
22750         * ipa-inline.c (cgraph_early_inlining): Likewise.
22751         (compute_inline_parameters_for_current): Likewise.
22752         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22753         * ipa-pure-const.c (local_pure_const): Likewise.
22754         * ipa-split.c (split_function): Likewise.
22755         (execute_split_functions): Likewise.
22756         * cgraphbuild.c (build_cgraph_edges): Likewise.
22757         (rebuild_cgraph_edges): Likewise.
22758         (cgraph_rebuild_references): Likewise.
22759         (remove_cgraph_callee_edges): Likewise.
22760         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22761         (verify_cgraph_node): Likewise.
22762         (cgraph_analyze_functions): Likewise.
22763         (cgraph_preserve_function_body_p): Likewise.
22764         (save_inline_function_body): Likewise.
22765         (save_inline_function_body): Likewise.
22766         * tree-inline.c (copy_bb): Likewise.
22767         (optimize_inline_calls): Likewise.
22768
22769 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22770
22771         PR tree-optimization/48195
22772         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22773         ipa_check_create_edge_args.
22774         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22775         ipa_check_create_edge_args.
22776         * ipa-inline.c (inline_generate_summary): Do not call
22777         ipa_check_create_node_params and ipa_check_create_edge_args.
22778         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
22779         ipa_check_create_edge_args.
22780
22781 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
22782
22783         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22784         instead of loop.
22785         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22786         * function.c (record_hard_reg_sets): Likewise.
22787         * ira.c (compute_regs_asm_clobbered): Likewise.
22788         * sched-deps.c (sched_analyze_1): Likewise.
22789         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22790
22791 2011-04-09  Xinliang David Li  <davidxl@google.com>
22792
22793         PR tree-optimization/PR48484
22794         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22795         has_valid_pred lazily
22796
22797 2011-04-09  Duncan Sands  <baldrick@free.fr>
22798
22799         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22800
22801 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
22802
22803         * combine.c (combine_validate_cost): Adjust comments.  Set registered
22804         cost of I0 to zero at the end, if any.
22805
22806 2011-04-08  Xinliang David Li  <davidxl@google.com>
22807
22808         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22809         to insane profile data.
22810
22811 2011-04-08  Xinliang David Li  <davidxl@google.com>
22812
22813         * ipa-cp.c (ipcp_update_profiling): Correct
22814          negative scale factor due to insane profile data.
22815
22816 2011-04-08  Xinliang David Li  <davidxl@google.com>
22817
22818         * final.c (dump_basic_block_info): New function.
22819         (final): Dump basic block.
22820         (final_scan_insn): Remove old dump.
22821
22822 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
22823
22824         PR target/47829
22825         * config.gcc (i386-*-freebsd): Disable unwind table generation for
22826         crtbegin/crtend.
22827
22828 2011-04-08  Michael Matz  <matz@suse.de>
22829
22830         PR middle-end/48389
22831         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22832         functions.
22833         (rebuild_jump_labels): Call rebuild_jump_labels_1.
22834         * rtl.h (rebuild_jump_labels_chain): Declare.
22835         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22836         insns inserted on edges.
22837
22838 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
22839
22840         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22841         * config/arm/arm-arches.def: New.
22842         * config/arm/arm-opts.h: New.
22843         * config/arm/genopt.sh: New.
22844         * config/arm/arm-tables.opt: New (generated).
22845         * config/arm/arm.c (arm_handle_option, arm_target_help,
22846         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22847         (all_architectures): Get most table contents from arm-arches.def.
22848         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22849         arm_selected_tune here.
22850         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22851         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22852         (march=, mcpu=, mtune=): Use Enum and Var.
22853         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22854         (arm.o): Update dependencies.
22855
22856 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
22857
22858         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22859         of header_file.
22860         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22861         (write_typed_alloc_defns): Likewise.
22862         (main): Calls write_typed_alloc_defns with output_header.
22863
22864 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
22865
22866         PR inline-asm/48435
22867         * ira-color.c (setup_profitable_hard_regs): Add comments.
22868         Don't take prohibited hard regs into account.
22869         (setup_conflict_profitable_regs): Rename to
22870         get_conflict_profitable_regs.
22871         (check_hard_reg_p): Check prohibited hard regs.
22872
22873 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
22874
22875         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22876         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22877         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22878
22879 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22880
22881         PR target/48366
22882         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22883         move from floating point to shift amount register.
22884         (emit_move_sequence): Remove secondary reload support for floating
22885         point to shift amount amount register copies.
22886         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22887         amount register copies.
22888         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22889         register, return false if mode isn't a scalar integer mode.
22890         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22891
22892 2011-04-08  Richard Guenther  <rguenther@suse.de>
22893
22894         * gimple.c (gimple_call_flags): Remove kludge.
22895
22896 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22897
22898         * sel-sched.c (sel_region_init): Move call to
22899         sel_setup_region_sched_flags after setup_current_loop_nest.
22900
22901 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
22902
22903         PR rtl-optimization/48272
22904         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22905         init_insn_reg_pressure_info.  Adjust a caller.
22906         * sched-int.h (init_insn_reg_pressure_info): Declare.
22907         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22908         when sched-pressure is enabled.
22909
22910 2011-04-08  Richard Guenther  <rguenther@suse.de>
22911
22912         * gimple.c (gimple_set_modified): Do not queue calls to
22913         MODIFIED_NORETURN_CALLS here ...
22914         * tree-ssa-operands.c (update_stmt_operands): ... but here.
22915
22916 2011-04-08  Richard Guenther  <rguenther@suse.de>
22917
22918         PR lto/48467
22919         * toplev.c (lang_dependent_init): Do not open asm_out_file
22920         in WPA mode, nor perform debug machinery initialization.
22921         (finalize): Do not unlink asm_out_file in WPA mode.
22922
22923 2011-04-08  Richard Guenther  <rguenther@suse.de>
22924
22925         * gimple.h (gimple_call_fntype): New function.
22926         (gimple_call_return_type): Use it.
22927         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22928         * gimple-low.c (gimple_check_call_args): Likewise.
22929         * gimple.c (gimple_call_flags): Likewise.
22930         (gimple_call_arg_flags): Likewise.
22931         (gimple_call_return_flags): Likewise.
22932         * tree-cfg.c (verify_gimple_call): Likewise.
22933         (do_warn_unused_result): Likewise.
22934         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22935         * value-prof.c (gimple_ic_transform): Fix fndecl check.
22936
22937 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
22938
22939         PR rtl-optimization/48235
22940         * sel-sched.c (code_motion_process_successors): Recompute the last
22941         insn in basic block if control flow changed.
22942         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
22943         Update condition for ilist_remove.
22944
22945 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22946
22947         PR rtl-optimization/48302
22948         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22949         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
22950         it to record added preheader blocks.
22951         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
22952         on to sel_add_loop_preheaders.
22953         (sel_region_init): Move call to setup_current_loop_nest after
22954         sel_init_bbs.
22955
22956 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22957
22958         PR target/48273
22959         * cfgloop.h (loop_has_exit_edges): New helper.
22960         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
22961         non-clonable.
22962         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
22963         that have no exit edges.
22964
22965 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22966
22967         PR rtl-optimization/48442
22968         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
22969         all callers.  Adjust assert.
22970
22971 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
22972
22973         PR tree-optimization/48377
22974         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
22975         is_packed to true even for types with smaller TYPE_ALIGN than
22976         TYPE_SIZE.
22977
22978 2011-04-08  Richard Guenther  <rguenther@suse.de>
22979
22980         PR bootstrap/48513
22981         * doc/tm.texi: Re-generate.
22982
22983 2011-04-08  Wei Guozhi  <carrot@google.com>
22984
22985         PR target/47855
22986         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
22987         * config/arm/arm.c (arm_attr_length_push_multi): New function.
22988         * config/arm/arm.md (*push_multi): Change the length computation to
22989         call a C function.
22990
22991 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
22992
22993         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
22994         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
22995         * doc/tm.texi: Regenerate.
22996         * system.h (ASM_OUTPUT_BSS): Poison.
22997         * varasm.c (asm_output_bss): Remove function.
22998         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
22999
23000         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
23001         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
23002         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
23003         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23004         Likewise.
23005         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23006         Likewise.
23007         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23008         Likewise.
23009         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
23010
23011 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23012
23013         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
23014         EnumValue lines.
23015
23016 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23017
23018         * config/m68k/m68k.c (m68k_handle_option): Don't handle
23019         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
23020         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
23021         OPT_mcpu32.
23022         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23023         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
23024         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
23025         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
23026         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
23027         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
23028         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23029         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
23030         options.  Don't map other m68k options manually.  Don't handle
23031         old-style options as canonical.
23032         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23033         * doc/install.texi (m68k-*-*): Document binutils version requirement.
23034
23035 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
23036
23037         * basic-block.h (force_nonfallthru): Move to...
23038         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
23039         (force_nonfallthru): ...here.
23040         * cfghooks.c (force_nonfallthru): New function.
23041         * cfgrtl.c (force_nonfallthru): Rename into...
23042         (rtl_force_nonfallthru): ...this.
23043         (commit_one_edge_insertion): Do not set AUX field.
23044         (commit_edge_insertions): Do not discover new basic blocks.
23045         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
23046         (cfg_layout_rtl_cfg_hooks): Likewise.
23047         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23048         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
23049         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23050
23051 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
23052
23053         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23054         Remove macros.
23055
23056 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
23057
23058         * config/i386/sse.md: Update copyright year.
23059         (avxcvtvecmode): Remove.
23060         (sse_movhlps): Merge with *avx_movhlps.
23061         (sse_movlhps): Merge with *avx_movlhps.
23062         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23063         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23064         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23065         (sse_loadhps): Merge with *avx_loadhps.
23066         (sse_storelps): Merge with *avx_storelps.
23067         (sse_loadlps): Merge with *avx_loadlps.
23068         (sse_movss): Merge with *avx_movss.
23069         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23070         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23071         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23072         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23073         (vec_set<mode>_0): Ditto.
23074         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23075         (sse4_1_insertps): Merge with *avx_insertps.
23076         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23077         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23078         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23079         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23080         (sse2_storehpd): Merge with *avx_storehpd.
23081         (sse2_loadhpd): Merge with *avx_loadhpd.
23082         (sse2_loadlpd): Merge with *avx_loadlpd.
23083         (sse2_movsd): Merge with *avx_movsd.
23084         (*vec_concatv2df): Merge with *vec_concatv2df.
23085
23086 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
23087
23088         PR debug/48343
23089         * combine.c (combine_instructions): Add last_combined_insn,
23090         update it if insn is after it, pass it to all try_combine calls.
23091         (try_combine): Add last_combined_insn parameter, pass it instead of
23092         i3 to propagate_for_debug.
23093
23094 2011-04-07  Nick Clifton  <nickc@redhat.com>
23095
23096         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23097         to handle MDR <-> data register transfers.
23098         (movhi_internal): Likewise.
23099
23100 2011-04-07  Alan Modra  <amodra@gmail.com>
23101
23102         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23103         previous stack info.
23104
23105 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23106
23107         PR target/43920
23108         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
23109         flow_find_cross_jump.  Swap variables to implement backward replacement.
23110         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23111
23112 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23113
23114         PR target/43920
23115         * cfgcleanup.c (walk_to_nondebug_insn): New function.
23116         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
23117         and bb2.
23118         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23119         src1 or src2.  Redirect edges to the last basic block.  Update
23120         frequency and count on multiple basic blocks in case of fallthru.
23121
23122 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23123
23124         PR target/43920
23125         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23126         function.
23127         (old_insns_match_p): Change return type.  Replace return false/true
23128         with return dir_none/dir_both.  Use can_replace_by.
23129         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
23130         direction from dir_p.  Register replacement direction in dir, last_dir
23131         and afterlast_dir.  Handle new return type of old_insns_match_p using
23132         merge_dir.  Return replacement direction in dir_p.
23133         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23134         return type of old_insns_match_p.
23135         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23136         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23137         flow_find_cross_jump.
23138         * basic-block.h (enum replace_direction): New type.
23139         (flow_find_cross_jump): Add parameter to declaration.
23140
23141 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23142
23143         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23144         (AVXMODEDCVTPS2DQ): Ditto.
23145         (VEC_FLOAT_MODE): Ditto.
23146         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
23147         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23148         (<any_logic:code><mode>3): Use VF mode iterator.
23149         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23150         Use VF mode iterator.
23151         (copysign<mode>3): Use VF mode iterator.
23152         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
23153         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23154         (*<any_logic:code><MODEF:mode>3): Merge with
23155         *avx_<any_logic:code><MODEF:mode>3.
23156         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23157         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23158         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23159         (avx_cvtdq2ps<avxmodesuffix>): Remove.
23160         (sse2_cvtdq2ps): Use %v modifier.
23161         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23162         (avx_cvtps2dq<avxmodesuffix>): Remove.
23163         (sse2_cvtps2dq): Use %v modifier.
23164         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23165         (avx_cvttps2dq<avxmodesuffix>): Remove.
23166         (sse2_cvttps2dq): Use %v modifier.
23167         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23168         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23169         (sse2_cvtsd2siq): Fix insn template.
23170         (sse2_cvtsd2siq_2): Ditto.
23171         (sse2_cvttsd2siq): Ditto.
23172         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23173         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23174
23175 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23176
23177         * gcov-io.c: Use GCC Runtime Library Exception.
23178
23179 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
23180
23181         PR debug/48466
23182         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23183         as base_reg whatever register reg has been eliminated to, instead
23184         of hardcoding STACK_POINTER_REGNUM.
23185
23186 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23187
23188         * doc/tm.texi.in: Document C target hooks as separate from general
23189         target hooks.
23190         * doc/tm.texi: Regenerate.
23191         * genhooks.c (struct hook_desc): Add docname field.
23192         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
23193         docname field.
23194         (hook_array): Include c-target.def.
23195         (emit_documentation): Use docname field in output.
23196         (emit_init_macros): Take docname argument.  Only emit definitions
23197         for hooks matching docname.
23198         (main): Expect additional arguments in all cases.  Pass argument
23199         to emit_init_macros.
23200         * target.def: Move initial macro definitions and comments to
23201         target-hooks-macros.h.
23202         (gcc_targetcm): Move to c-family/c-target.def.
23203         * target.h (targetcm): Move declaration to c-family/c-target.h.
23204         * targhooks.c (default_handle_c_option): Move to
23205         c-family/c-opts.c.
23206         * targhooks.h (default_handle_c_option): Move declaration to
23207         c-family/c-common.h.
23208         * target-hooks-macros.h: New file.
23209         * config.gcc (target_has_targetcm): Define and use to add to
23210         c_target_objs and cxx_target_objs.
23211         * config/default-c.c: New file.
23212         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
23213         of target.h and target-def.h.
23214         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
23215         (darwin_objc_construct_string, darwin_cfstring_ref_p,
23216         darwin_check_cfstring_format_arg): Make static.
23217         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23218         TARGET_STRING_OBJECT_REF_TYPE_P,
23219         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
23220         * config/darwin-protos.h (darwin_objc_construct_string,
23221         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
23222         declare.
23223         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23224         TARGET_STRING_OBJECT_REF_TYPE_P,
23225         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
23226         * config/t-darwin (darwin-c.o): Update dependencies.
23227         * system.h (TARGET_HAS_TARGETCM): Poison.
23228         * Makefile.in (TARGET_H): Update.
23229         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
23230         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
23231         (default-c.o): New target.
23232         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
23233         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
23234         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
23235         c-target.def.
23236         (build/genhooks.o): Update dependencies.
23237
23238 2011-04-06  Richard Guenther  <rguenther@suse.de>
23239
23240         * ipa-inline.c (enum inlining_mode): Remove.
23241         (cgraph_flatten): Use some other token.
23242         (cgraph_edge_early_inlinable_p): New function, split out from ...
23243         (cgraph_perform_always_inlining): New function, split out from ...
23244         (cgraph_decide_inlining_incrementally): ... here.
23245         (cgraph_mark_inline_edge): Adjust.
23246         (cgraph_early_inlining): Re-structure.
23247         (pass_early_inline): Require SSA form.
23248
23249 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
23250             Julian Brown  <julian@codesourcery.com>
23251             Mark Shinwell  <shinwell@codesourcery.com>
23252
23253         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
23254         LO_REGS only for Thumb-1.
23255         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
23256         be used in short instructions when optimising for size on Thumb-2.
23257
23258 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23259
23260         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
23261         associated with user returns to be preserved.
23262
23263 2011-04-06  Tristan Gingold  <gingold@adacore.com>
23264
23265         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
23266         symbol_queue_size, DBXOUT_DECR_NESTING,
23267         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
23268         if XCOFF_DEBUGGING_INFO.
23269
23270 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23271
23272         * config/i386/i386.md (attribute isa): New.
23273         (attribute enabled): New.
23274         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
23275         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
23276         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
23277         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
23278         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
23279         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23280         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
23281         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
23282
23283         * config/i386/sse.md (VF): New mode iterator.
23284         (VF1): Ditto.
23285         (VF2): Ditto.
23286         (VF_128): Ditto.
23287         (SSEMODEF4): Remove.
23288         (attribute sse): Handle V8SF and V4DF modes.
23289         (<absneg:code><mode>2): Use VF mode iterator.
23290         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
23291         mode iterator.
23292         (<plusminus_insn><mode>3): Use VF mode iterator.
23293         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23294         Use VF mode iterator.
23295         (<sse>_vm<plusminus_insn><mode>3): Merge with
23296         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
23297         (mul<mode>3): Use VF mode iterator.
23298         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
23299         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
23300         mode iterator.
23301         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
23302         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
23303         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
23304         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
23305         mode iterator.
23306         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
23307         Use VF1 mode iterator.
23308         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
23309         (sqrt<VF2:mode>2): New expander.
23310         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
23311         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
23312         and sqrtv2df2.  Use VF mode iterator.
23313         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
23314         mode iterator.
23315         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
23316         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
23317         Use VF1 mode iterator.
23318         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
23319         (<smaxmin:code><mode>3): Use VF mode iterator.
23320         (*<smaxmin:code><mode>3_finite): Merge with
23321         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
23322         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23323         (<sse>_vm<smaxmin:code><mode>2): Merge with
23324         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
23325         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
23326         mode iterator.
23327         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
23328         mode iterator.
23329         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
23330         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
23331         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23332         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23333         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
23334         VF mode iterator.
23335         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23336         Use VF_128 mode iterator.
23337         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
23338         mode iterator.
23339         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
23340         VF_128 mode iterator.
23341         (vcond<mode>): Use VF mode iterator.
23342         * config/i386/predicates.md (sse_comparison_operator): Merge with
23343         avx_comparison_float_operator.  Do not declare as special_predicate.
23344         * config/i386/i386.c (struct builtin_description): Update for renamed
23345         compare patterns.
23346         (ix86_expand_args_builtin): Ditto.
23347         (ix86_expand_sse_compare_mask): Ditto.
23348
23349 2011-04-06  Richard Guenther  <rguenther@suse.de>
23350
23351         * tree-inline.c (estimate_num_insns): For calls simply account
23352         for all passed arguments and a used return value.
23353
23354 2011-04-06  Richard Guenther  <rguenther@suse.de>
23355
23356         PR tree-optimization/47663
23357         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23358         call_stmt_time fields.
23359         (cgraph_edge_inlinable_p): Declare.
23360         (cgraph_edge_recursive_p): New inline function.
23361         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23362         (cgraph_clone_edge): Copy it.
23363         * ipa-inline.c (cgraph_estimate_edge_time): New function.
23364         Account for call stmt time.
23365         (cgraph_estimate_time_after_inlining): Take edge argument.
23366         (cgraph_estimate_edge_growth): Account call stmt size.
23367         (cgraph_estimate_size_after_inlining): Take edge argument.
23368         (cgraph_mark_inline_edge): Adjust.
23369         (cgraph_check_inline_limits): Likewise.
23370         (cgraph_recursive_inlining_p): Remove.
23371         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23372         (cgraph_decide_recursive_inlining): Take edge argument and
23373         adjust.
23374         (cgraph_decide_inlining_of_small_functions): Do not avoid
23375         diags for recursive inlining here.
23376         (cgraph_flatten): Adjust.
23377         (cgraph_decide_inlining_incrementally): Likewise.
23378         (estimate_function_body_sizes): Remove call cost handling.
23379         (compute_inline_parameters): Initialize caller edge call costs.
23380         (cgraph_estimate_edge_growth): New function.
23381         (cgraph_estimate_growth): Use it.
23382         (cgraph_edge_badness): Likewise.
23383         (cgraph_check_inline_limits): Take an edge argument.
23384         (cgraph_decide_inlining_of_small_functions): Adjust.
23385         (cgraph_decide_inlining): Likewise.
23386         * tree-inline.c (estimate_num_insns): Only account for call
23387         return value if it is used.
23388         (expand_call_inline): Avoid diagnostics on recursive inline
23389         functions here.
23390         * lto-cgraph.c (lto_output_edge): Output edge call costs.
23391         (input_edge): Input edge call costs.
23392
23393 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23394
23395         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23396
23397 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
23398
23399         * doc/invoke.texi (Spec Files): Fix typo.
23400
23401 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23402
23403         * profile.c (branch_prob): Move declaration of local variable.  Remove
23404         obsolete ??? comment.  Expand the location explicitly instead of using
23405         the LOCATION_FILE and LOCATION_LINE macros.
23406
23407 2011-04-06  Wei Guozhi  <carrot@google.com>
23408
23409         PR target/47855
23410         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23411         (arm_cond_branch): Likewise.
23412         (arm_cond_branch_reversed): Likewise.
23413         (arm_jump): Likewise.
23414         (push_multi): Likewise.
23415         * config/arm/constraints.md (Py): New constraint.
23416
23417 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23418
23419         PR bootstrap/48471
23420         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23421         Move these...
23422         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23423         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23424         #ifdef DBX_DEBUGGING_INFO.
23425
23426 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
23427
23428         PR bootstrap/48403
23429         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23430         if old and new states differ.
23431
23432 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23433
23434         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23435         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23436         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23437         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23438         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23439         mcfv4e): Use Alias.
23440         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23441         ColdFire options to -mcpu= options.
23442
23443 2011-04-05  Jeff Law  <law@redhat.com>
23444
23445         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23446         check if BB is a successor of LOOP->header and return
23447         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23448
23449 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23450
23451         * cprop.c (struct reg_use): Remove.
23452         (reg_use_table): Make an array of RTX.
23453         (find_used_regs, constprop_register, local_cprop_pass,
23454         bypass_block): Simplify users of reg_use_table.
23455         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
23456         on one of the uses found by find_used_regs.
23457
23458 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23459
23460         PR bootstrap/48469
23461         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23462         declaration.
23463
23464 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23465
23466         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23467         as an rtx.
23468         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23469
23470 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23471
23472         PR middle-end/48441
23473         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23474
23475 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23476
23477         * combine.c: Include obstack.h.
23478         (struct insn_link): Define.
23479         (uid_log_links): Adjust type.
23480         (FOR_EACH_LOG_LINK): New macro.
23481         (insn_link_obstack): Declare.
23482         (alloc_insn_link): Define.
23483         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
23484         type of link variables.
23485         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23486         (try_combine, record_promoted_values, distribute_notes): Likewise.
23487         (distribute_links): Likewise.  Tweak prototype.
23488         (clear_log_links): Delete.
23489         (adjust_for_new_dest): Call alloc_insn_link.
23490         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23491
23492 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23493
23494         * gcse.c (modify_mem_list): Convert to an array of VECs.
23495         (canon_modify_mem_list, compute_transp): Tweak formatting.
23496         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
23497         (load_killed_in_block_p): Likewise.
23498         (record_last_mem_set_info): Likewise.
23499         (clear_modify_mem_tables): Likewise.
23500
23501 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23502
23503         PR middle-end/48461
23504         * function.c (emit_use_return_register_into_block): Only define if
23505         HAVE_return.
23506
23507 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
23508
23509         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23510
23511 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23512
23513         * config/rx/rx-opts.h: New.
23514         * config/rx/rx.c (rx_cpu_type): Remove.
23515         (rx_handle_option): Don't assert that global structures are in
23516         use.  Access variables via opts pointer.  Defer most handling of
23517         OPT_mint_register_.  Use error_at.
23518         (rx_option_override): Handle deferred OPT_mint_register_ here.
23519         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23520         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23521         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23522         (rx_cpu_types): New Enum and EnumValue entries.
23523         (mint-register=): Use Defer and use Var accordingly.
23524
23525 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23526
23527         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23528         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23529         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23530         Move these...
23531         (debug_free_queue, debug_nesting, symbol_queue_index):
23532         ...and these...
23533         * dbxout.c: ...to here.  Make static.
23534
23535 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23536
23537         * gcse.c (modify_pair): Define.  Define a VEC of it.
23538         (canon_modify_mem_list): Convert to an array of VECs.
23539         (free_insn_expr_list_list): Delete.
23540         (clear_modify_mem_tables): Call VEC_free instead.
23541         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23542         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23543         (canon_list_insert, compute_transp): Likewise.
23544
23545 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23546
23547         PR target/43920
23548         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23549         for size.
23550
23551 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23552
23553         PR target/43920
23554         * function.c (emit_use_return_register_into_block): New function.
23555         (thread_prologue_and_epilogue_insns): Use
23556         emit_use_return_register_into_block.
23557
23558 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23559
23560         PR target/43920
23561         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23562         insn.
23563
23564 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23565
23566         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23567
23568 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
23569
23570         * config/arm/arm.md (define_constants for unspec): Replace with
23571         define_c_enum.
23572         (define_constants for unspecv): Replace with define_c_enum.
23573         * config/arm/neon.md (define_constants for unspec): Replace with
23574         define_c_enum.
23575
23576 2011-04-04  Richard Henderson  <rth@redhat.com>
23577
23578         PR bootstrap/48400
23579         * dwarf2out.c (output_line_info): Always emit line info from
23580         at least one section.
23581         (dwarf2out_init): Create text_section_line_info here ...
23582         (set_cur_line_info_table): ... not here.
23583
23584 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
23585
23586         PR target/48380
23587         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23588         not called.
23589
23590         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23591
23592 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
23593
23594         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23595         (expr_equiv_p): Remove.
23596         (insert_set_in_table): Look at <dest, src> pair instead of expr.
23597         (hash_scan_set): Update call to insert_set_in_table.
23598         (dump_hash_table): Dump <dest, src> pair.
23599         (lookup_set): Simplify.  Lookup <dest, src> pair.
23600         (compute_transp): Remove, fold heavily simplified code into...
23601         (compute_local_properties): ...here.  Expect COMP and TRANSP
23602         unconditionally.
23603         (find_avail_set): Take set directly from struct expr.
23604         (find_bypass-set): Likewise.
23605         (bypass_block): Likewise.
23606         (cprop_insn): Likewise.  Remove redundant INSN_P test.
23607
23608         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23609         checks on form of COND from find_implicit_sets to here.
23610         (find_implicit_sets): Cleanup control flow. Split critical edges
23611         if it exposes implicit sets.  Allocate/resize implicit_sets as
23612         necessary.
23613         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23614         changed something.  Run df_analyze after find_implicit_sets if any
23615         edges were split.  Do not allocate implicit_sets here.
23616
23617         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23618         (gcse_obstack): Renamed to cprop_obstack.
23619         (GNEW, GNEWVEC, GNEWVAR): Remove.
23620         (gmalloc): Remove.
23621         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23622         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23623         (gcse_alloc): Likewise, and rename to cprop_alloc.
23624         (alloc_gcse_men, free_gcse_mem): Remove.
23625         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23626         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23627         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23628
23629         * cprop.c (oprs_not_set_p): Remove.
23630         (mark_set, mark_clobber): Remove.
23631         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23632         (reg_not_set_p): New function.
23633         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23634         (cprop_insn): Likewise.
23635         (cprop_jump): Use FOR_EACH_EDGE.
23636
23637 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
23638
23639         PR bootstrap/48403
23640         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23641         (rank_for_schedule): Use scheduled_insns vector instead of
23642         last_scheduled_insn.
23643         (ok_for_early_queue_removal): Likewise.
23644         (queue_to_ready): Search forward in nonscheduled_insns_begin if
23645         we have a dbg_cnt.
23646         (choose_ready): Likewise.
23647         (commit_schedule): Use VEC_iterate.
23648         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
23649         a dbg_cnt, use it and ensure the first insn is in the ready list.
23650         (haifa_sched_init): Allocate scheduled_insns.
23651         (sched_extend_ready_list): Don't allocate it; reserve space.
23652         (haifa_sched_finish): Free it.
23653
23654 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23655
23656         * optc-gen.awk: Always remove type from Variable entry before
23657         recording in var_seen.
23658
23659 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23660
23661         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23662         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23663         call to tidy_fallthru_edges.
23664
23665 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23666
23667         * doc/options.texi (ToLower): Document.
23668         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23669         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23670         * opts.h (cl_option): Add cl_tolower field.
23671         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23672         arguments with lowercase strings.
23673         * config/rx/rx.opt (mcpu=): Add ToLower.
23674         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23675         argument.
23676
23677 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23678
23679         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23680
23681 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23682
23683         * config/vax/vax.c: Include reload.h.
23684
23685 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
23686
23687         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23688         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23689         (sparc_preferred_reload_class): New function.
23690
23691 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
23692
23693         PR debug/48401
23694         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23695         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23696
23697 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
23698
23699         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23700         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23701
23702 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
23703
23704         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23705         (ASM_OUTPUT_ALIGNED_BSS): Define.
23706
23707 2011-04-03  Michael Matz  <matz@suse.de>
23708
23709         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23710         and next_slot members.
23711         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23712         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23713         (lto_streamer_cache_append): Declare.
23714         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23715         unsigned index, remove offset parameter, ensure that we append
23716         or update existing entries.
23717         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23718         parameter, update next_slot for append.
23719         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23720         parameter.
23721         (lto_streamer_cache_insert_at): Likewise.
23722         (lto_streamer_cache_append): New function.
23723         (lto_streamer_cache_lookup): Use unsigned index.
23724         (lto_streamer_cache_get): Likewise.
23725         (lto_record_common_node): Don't test tree_node_can_be_shared.
23726         (preload_common_node): Adjust call to lto_streamer_cache_insert.
23727         (lto_streamer_cache_delete): Don't free offsets member.
23728         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23729         (lto_output_string_with_length): Use lto_output_data_stream.
23730         (lto_output_tree_header): Remove ix parameter, don't write it.
23731         (lto_output_builtin_tree): Likewise.
23732         (lto_write_tree): Adjust callers to above, don't track and write
23733         offset, write unsigned index.
23734         (output_unreferenced_globals): Don't emit all global vars.
23735         (write_global_references): Use unsigned indices.
23736         (lto_output_decl_state_refs): Likewise.
23737         (write_symbol): Likewise.
23738         * lto-streamer-in.c (lto_input_chain): Move earlier.
23739         (input_function): Use unsigned index.
23740         (input_alias_pairs): Don't read and then ignore all global vars.
23741         (lto_materialize_tree): Remove ix_p parameter, don't read index,
23742         don't pass it back, use lto_streamer_cache_append.
23743         (lto_register_var_decl_in_symtab): Use unsigned index.
23744         (lto_register_function_decl_in_symtab): Likewise.
23745         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23746         index.
23747         (lto_get_builtin_tree): Don't read index, use
23748         lto_streamer_cache_append.
23749         (lto_read_tree): Adjust call to lto_materialize_tree.
23750
23751         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23752         don't use function calls in arguments to MIN.
23753
23754         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23755         twice.
23756
23757         * gimple.c (gimple_type_leader_entry): Mark deletable.
23758
23759 2011-04-03  Alan Modra  <amodra@gmail.com>
23760
23761         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23762
23763 2011-04-03  Michael Matz  <matz@suse.de>
23764
23765         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23766         an integer.
23767         * tree.h (tree_decl_non_common.vindex): Adjust comment.
23768
23769 2011-04-03  Michael Matz  <matz@suse.de>
23770
23771         * cgraphbuild.c (record_reference): Canonicalize constructor values.
23772         * gimple-fold.c (canonicalize_constructor_val): Accept being called
23773         without function context.
23774         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23775         current_function_decl and cfun.
23776
23777 2011-04-03  Michael Matz  <matz@suse.de>
23778
23779         * tree.c (decl_init_priority_insert): Don't create entry for
23780         default priority.
23781         (decl_fini_priority_insert): Ditto.
23782         (fields_compatible_p, find_compatible_field): Remove.
23783         * tree.h (fields_compatible_p, find_compatible_field): Remove.
23784         * gimple.c (gimple_compare_field_offset): Adjust block comment.
23785
23786 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
23787
23788         * combine.c (try_combine): Remove useless local variable.
23789
23790 2011-04-03  Richard Guenther  <rguenther@suse.de>
23791             Ira Rosen  <ira.rosen@linaro.org>
23792
23793         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23794         non-variable offsets and compare the remaining bases of the two
23795         accesses instead of looking for exact same data-ref.
23796
23797 2011-04-02  Kai Tietz  <ktietz@redhat.com>
23798
23799         PR target/48416
23800         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23801
23802         * i386.c (ix86_is_msabi_thiscall): New helper function.
23803         (ix86_is_type_thiscall): New helper function.
23804         (ix86_comp_type_attributes): Handle thiscall for method-functions
23805         special.
23806         (init_cumulative_args): Likewise.
23807         (find_drap_reg): Likewise.
23808         (ix86_static_chain): Likewise.
23809         (x86_this_parameter): Likewise.
23810         (x86_output_mi_thunk): Likewise.
23811
23812 2011-04-01  Olivier Hainque  <hainque@adacore.com>
23813             Nicolas Setton  <setton@adacore.com>
23814             Eric Botcazou  <ebotcazou@adacore.com>
23815
23816         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23817         (add_gnat_descriptive_type_attribute): New function.
23818         (gen_array_type_die): Call it.
23819         (gen_enumeration_type_die): Likewise.
23820         (gen_struct_or_union_type_die): Likewise.
23821         (modified_type_die): Likewise.
23822         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23823         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23824         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23825
23826 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23827
23828         PR bootstrap/48148
23829         * dwarf2out.c (resolve_addr): Don't call force_decl_die
23830         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23831
23832         Revert:
23833         2011-03-17  Richard Guenther  <rguenther@suse.de>
23834
23835         PR bootstrap/48148
23836         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23837         origin for decls in other ltrans units.
23838         (input_varpool_node): Likewise.
23839
23840 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23841
23842         PR middle-end/48335
23843         * expr.c (expand_assignment): Handle all possibilities
23844         if TO_RTX is CONCAT.
23845         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23846         (store_split_bit_field): If SUBREG_REG (op0) or
23847         op0 itself has smaller mode than word, return it
23848         for offset 0 and const0_rtx for out-of-bounds stores.
23849         If word is const0_rtx, skip it.
23850
23851 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
23852
23853         * config/h8300/h8300.c (print_operand_address): Rename to...
23854         (h8300_print_operand_address): ...this. Make static. Adjust comments.
23855         Call h8300_print_operand and h8300_print_operand_address instead of
23856         print_operand and print_operand_address. Declare.
23857         (print_operand): Renake to...
23858         (h8300_print_operand): ...this. Make static. Adjust comments.
23859         Call h8300_print_operand instead of print_operand. Declare.
23860         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23861         (h8300_register_move_cost): Likewise.
23862         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23863         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23864         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23865         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23866         * config/h8300/h8300-protos.h (print_operand): Delete.
23867         (print_operand_address): Delete.
23868
23869 2011-04-01  Richard Henderson  <rth@redhat.com>
23870
23871         PR 48400
23872         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23873         in strict mode before dwarf4.  Re-order tests to early out
23874         before switching sections.
23875
23876 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
23877
23878         * config/h8300/constraints.md: New file.
23879         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
23880         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23881         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23882         * config/h8300/predicates.md (bit_operand): Likewise.
23883         (incdec_operand): Use satisfies_constraint_M and
23884         satisfies_constraint_O.  Don't use C code block.
23885         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23886         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23887         (compute_mov_length): Use satisfies_constraint_G.
23888         (fix_bit_operand): Use satisfies_constraint_U.
23889         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23890         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23891         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23892         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23893         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23894         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23895         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23896         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23897         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23898         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23899         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23900         (EXTRA_MEMORY_CONSTRAINT): Delete.
23901
23902 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
23903             Michael Meissner  <meissner@linux.vnet.ibm.com>
23904
23905         PR target/48262
23906         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23907         operands, as per the specifications.
23908
23909         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23910         (vec_extract_evenv4sf): Ditto.
23911         (vec_extract_evenv8hi): Ditto.
23912         (vec_extract_evenv16qi): Ditto.
23913         (vec_extract_oddv4si): Ditto.
23914
23915 2011-03-31  Mark Wielaard  <mjw@redhat.com>
23916
23917         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23918         high_pc attribute if the CU has no associated code. Only output
23919         DW_AT_entry_pc for CU if not generating strict dwarf and
23920         dwarf_version < 4.
23921
23922 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
23923
23924         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23925         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23926         out of ...
23927         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23928         * final.c (final_start_function): Call the new function rather
23929         than using a NULL argument for dwarf2out_frame_debug.
23930
23931         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23932         that contains the prologue.
23933
23934         * haifa-sched.c (queue_insn): New arg REASON.  All callers
23935         changed.  Print it in debugging output.
23936
23937         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23938
23939         * sched-ebb.c (begin_schedule_ready): Remove second argument.
23940         Split most of the code into...
23941         (begin_move_insn): ... here.  New function.
23942         (ebb_sched_info): Add a pointer to it.
23943         * haifa-sched.c (scheduled_insns): New static variable.
23944         (sched_extend_ready_list): Allocate it.
23945         (schedule_block): Use it to record the order of scheduled insns.
23946         Perform RTL changes to move insns only after all scheduling
23947         decisions have been made.
23948         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23949         begin_move_insn field.
23950         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23951         * sched-int.h (struct haifa_sched_info): Remove second argument
23952         from begin_schedule_ready hook.  Add new member begin_move_insn.
23953         * sched-rgn.c (begin_schedule_ready): Remove second argument.
23954         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23955
23956         * haifa-sched.c (prune_ready_list): New function, broken out of
23957         schedule_block.
23958         (schedule_block): Use it.
23959
23960 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23961
23962         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
23963
23964 2011-04-01  Kai Tietz  <ktietz@redhat.com>
23965
23966         * config.gcc (*-*-mingw*): Allow as option the
23967         posix threading model.
23968         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
23969         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
23970         definition.
23971         (CPP_SPEC): Add pthread/no-pthread handling.
23972         (LIB_SPEC): Likewise.
23973         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
23974         (LIB_SPEC): Likewise.
23975         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
23976         flag to pass -pthread option for shared libgcc build.
23977         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
23978         for shared libgcc build.
23979         * config/i386/t-mingw-pthread: New file.
23980         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
23981         New define to enable use of library pthread by default.
23982         * config/i386/mingw.opt (pthread): New driver option.
23983         (no-pthread): New driver option.
23984         * config/i386/cygming.opt: Make sure trailing empty line is retained.
23985         * config/i386/mingw-w64.opt: Likewise.
23986
23987 2011-04-01  Gary Funck  <gary@intrepid.com>
23988
23989         * c-decl.c (grokdeclarator): Fix formatting.
23990
23991 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23992
23993         * expr.c (emit_block_move_via_movmem): Use n_generator_args
23994         instead of n_operands.
23995         (set_storage_via_setmem): Likewise.
23996         * optabs.c (maybe_gen_insn): Likewise.
23997         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
23998         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
23999         (mips_expand_builtin_direct): Likewise.
24000         * config/spu/spu.c (expand_builtin_args): Likewise.
24001
24002 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24003
24004         * recog.h (insn_data_d): Add n_generator_args.
24005         * genoutput.c (data): Likewise.
24006         (output_insn_data): Print it.
24007         (max_opno, num_dups): Delete.
24008         (scan_operands): Just fill in "d->operand[...]".
24009         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
24010
24011 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24012
24013         * gensupport.h (pattern_stats): New structure.
24014         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
24015         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
24016         (max_operand_1, max_operand_vec): Delete.
24017         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
24018
24019 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
24020
24021         * emit-rtl.c (emit_pattern_after_setloc): New function.
24022         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
24023         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
24024         (emit_pattern_after): New function.
24025         (emit_insn_after, emit_jump_insn_after): Call it.
24026         (emit_call_insn_after, emit_debug_insn_after): Likewise.
24027         (emit_pattern_before_setloc): New function.
24028         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
24029         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
24030         Likewise.
24031         (emit_pattern_before): New function.
24032         (emit_insn_before, emit_jump_insn_before): Call it.
24033         (emit_call_insn_before, emit_debug_insn_before): Likewise.
24034
24035 2011-03-31  Richard Henderson  <rth@redhat.com>
24036
24037         * dwarf2out.c (dw_separate_line_info_ref): Remove.
24038         (dw_separate_line_info_entry): Remove.
24039         (enum dw_line_info_opcode): New.
24040         (dw_line_info_entry): Use it.
24041         (dw_line_info_table, dw_line_info_table_p): New.
24042         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
24043         (line_info_table, line_info_label_num): Remove.
24044         (line_info_table_in_use): Remove.
24045         (separate_line_info_table): Remove.
24046         (separate_line_info_table_allocated): Remove.
24047         (separate_line_info_table_in_use): Remove.
24048         (LINE_INFO_TABLE_INCREMENT): Remove.
24049         (line_info_label_num): New.
24050         (cur_line_info_table): New.
24051         (text_section_line_info, cold_text_section_line_info): New.
24052         (separate_line_info): New.
24053         (SEPARATE_LINE_CODE_LABEL): Remove.
24054         (print_dwarf_line_table): Remove.
24055         (debug_dwarf): Don't dump it.
24056         (output_one_line_info_table): New.
24057         (output_line_info): Use it.
24058         (new_line_info_table): New.
24059         (set_cur_line_info_table): New.
24060         (dwarf2out_switch_text_section): Use it.
24061         (dwarf2out_begin_function): Likewise.
24062         (push_dw_line_info_entry): New.
24063         (dwarf2out_source_line): Rewrite for new line info tables.
24064         (dwarf2out_init): Remove dead initailizations.
24065
24066 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24067
24068         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
24069         various flags.
24070         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24071         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24072         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24073         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24074         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24075         * opt-functions.awk (flag_init, switch_bit_fields): New.
24076         (switch_flags): Don't handle flags moved to bit-fields.  Don't
24077         generate CL_MISSING_OK or CL_SAVE.
24078         * optc-gen.awk: Update to generate bit-field output as well as
24079         flags field.
24080         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24081         bit-field instead of CL_REJECT_DRIVER flag.
24082         * opts-common.c (generate_canonical_option,
24083         decode_cmdline_option): Use bit-fields instead of CL_* flags.
24084         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24085         instead of CL_REJECT_NEGATIVE flag.
24086         * toplev.c (print_switch_values): Use cl_report bit-field instead
24087         of CL_REPORT flag.
24088
24089 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24090
24091         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24092         a zero minimum index only if it is redundant.
24093
24094 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
24095
24096         PR rtl-optimization/48381
24097         * ira-color.c (assign_hard_reg): Use hard reg set intersection
24098         instead of ira_class_hard_reg_index for calculating conflicting
24099         hard registers.
24100
24101 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
24102
24103         * cprop.c: Clean up hash table building.
24104         (reg_avail_info): Remove.
24105         (oprs_available_p): Remove.
24106         (record_last_reg_set_info): Remove.
24107         (record_last_set_info): Remove.
24108         (reg_available_p): New function.
24109         (gcse_constant_p): Do not treat unfolded conditions as constants.
24110         (make_set_regs_unavailable): New function.
24111         (hash_scan_set): Simplify with new reg_available_p.
24112         (compute_hash_table_work): Traverse insns stream only once.
24113         Do not compute reg_avail_info. Traverse insns in reverse order.
24114         Record implicit sets after recording explicit sets from the block.
24115
24116 2011-03-31  Michael Matz  <matz@suse.de>
24117
24118         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24119
24120 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
24121
24122         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24123         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24124         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24125         (h8300_mode_dependent_address_p): New function.
24126         (h8300_get_index): Make static.
24127
24128 2011-03-31  Jeff Law  <law@redhat.com>
24129
24130         * reload1.c (elimination_effects): Fix typo in recent change.
24131
24132         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24133         typo potentially leading to null pointer dereference.
24134
24135         * caller-save.c (new_saved_hard_reg): Eliminate return value.
24136         (setup_save_areas): Corresponding changes to avoid useless
24137         assignments.
24138
24139         * jump.c (reversed_comparison_code_parts): Avoid successive return
24140         statements when REVERSE_CONDITION is defined.
24141
24142         * expr.c (expand_assignment): Avoid useless assignments.
24143         (expand_expr_real_1): Likewise.
24144         (expand_expr_real_2): Avoid useless statements.
24145
24146         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24147
24148         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24149
24150         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24151         statements.
24152
24153         * stmt.c (expand_expr_stmt): Avoid useless assignment.
24154
24155 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24156
24157         PR target/47109
24158         * doc/tm.texi.in (TARGET_VERSION): Remove.
24159         * doc/tm.texi: Regenerate.
24160         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24161         * collect2.c (main): Don't use TARGET_VERSION.
24162         * mips-tdump.c (main): Don't use TARGET_VERSION.
24163         * mips-tfile.c (main): Don't use TARGET_VERSION.
24164         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24165         * config/rs6000/vxworksae.h: Remove.
24166         * config/alpha/alpha.h (TARGET_VERSION): Remove.
24167         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24168         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24169         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24170         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24171         * config/arm/arm.h (TARGET_VERSION): Remove.
24172         * config/arm/coff.h (TARGET_VERSION): Remove.
24173         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24174         * config/arm/elf.h (TARGET_VERSION): Remove.
24175         * config/arm/freebsd.h (TARGET_VERSION): Remove.
24176         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24177         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24178         * config/arm/pe.h (TARGET_VERSION): Remove.
24179         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24180         * config/arm/semi.h (TARGET_VERSION): Remove.
24181         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24182         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24183         * config/arm/vxworks.h (TARGET_VERSION): Remove.
24184         * config/avr/avr.h (TARGET_VERSION): Remove.
24185         * config/bfin/bfin.h (TARGET_VERSION): Remove.
24186         * config/fr30/fr30.h (TARGET_VERSION): Remove.
24187         * config/frv/frv.h (TARGET_VERSION): Remove.
24188         * config/h8300/h8300.h (TARGET_VERSION): Remove.
24189         * config/i386/cygwin.h (TARGET_VERSION): Remove.
24190         * config/i386/darwin.h (TARGET_VERSION): Remove.
24191         * config/i386/darwin64.h (TARGET_VERSION): Remove.
24192         * config/i386/djgpp.h (TARGET_VERSION): Remove.
24193         * config/i386/freebsd.h (TARGET_VERSION): Remove.
24194         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
24195         * config/i386/gnu.h (TARGET_VERSION): Remove.
24196         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
24197         * config/i386/i386elf.h (TARGET_VERSION): Remove.
24198         * config/i386/linux.h (TARGET_VERSION): Remove.
24199         * config/i386/linux64.h (TARGET_VERSION): Remove.
24200         * config/i386/lynx.h (TARGET_VERSION): Remove.
24201         * config/i386/mingw32.h (TARGET_VERSION): Remove.
24202         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
24203         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
24204         * config/i386/netware.h (TARGET_VERSION): Remove.
24205         * config/i386/nto.h (TARGET_VERSION): Remove.
24206         * config/i386/openbsd.h (TARGET_VERSION): Remove.
24207         * config/i386/vxworks.h (TARGET_VERSION): Remove.
24208         * config/ia64/elf.h (TARGET_VERSION): Remove.
24209         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
24210         * config/ia64/hpux.h (TARGET_VERSION): Remove.
24211         * config/ia64/linux.h (TARGET_VERSION): Remove.
24212         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24213         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
24214         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24215         * config/lm32/lm32.h (TARGET_VERSION): Remove.
24216         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
24217         * config/m32c/m32c.h (TARGET_VERSION): Remove.
24218         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
24219         * config/m32r/m32r.h (TARGET_VERSION): Remove.
24220         * config/m68k/linux.h (TARGET_VERSION): Remove.
24221         * config/m68k/m68k.h (TARGET_VERSION): Remove.
24222         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
24223         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
24224         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
24225         * config/mep/mep.h (TARGET_VERSION): Remove.
24226         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
24227         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24228         * config/mips/iris6.h (MACHINE_TYPE): Remove.
24229         * config/mips/linux.h (TARGET_VERSION): Remove.
24230         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
24231         * config/mips/vxworks.h (TARGET_VERSION): Remove.
24232         * config/mmix/mmix.h (TARGET_VERSION): Remove.
24233         * config/mn10300/linux.h (TARGET_VERSION): Remove.
24234         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
24235         * config/pa/pa.h (TARGET_VERSION): Remove.
24236         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
24237         * config/picochip/picochip.h (TARGET_VERSION): Remove.
24238         * config/rs6000/aix.h (TARGET_VERSION): Remove.
24239         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
24240         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
24241         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
24242         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
24243         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
24244         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
24245         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
24246         * config/rs6000/linux.h (TARGET_VERSION): Remove.
24247         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
24248         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
24249         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
24250         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
24251         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
24252         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
24253         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
24254         * config/s390/linux.h (TARGET_VERSION): Remove.
24255         * config/s390/s390.h (TARGET_VERSION): Remove.
24256         * config/s390/tpf.h (TARGET_VERSION): Remove.
24257         * config/score/score.h (TARGET_VERSION): Remove.
24258         * config/sh/linux.h (TARGET_VERSION): Remove.
24259         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
24260         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
24261         * config/sh/sh.h (TARGET_VERSION): Remove.
24262         * config/sh/sh64.h (TARGET_VERSION): Remove.
24263         * config/sh/superh.h (TARGET_VERSION): Remove.
24264         * config/sh/vxworks.h (TARGET_VERSION): Remove.
24265         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
24266         * config/sparc/linux.h (TARGET_VERSION): Remove.
24267         * config/sparc/linux64.h (TARGET_VERSION): Remove.
24268         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
24269         TARGET_NAME32, TARGET_NAME): Remove.
24270         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
24271         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
24272         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
24273         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
24274         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
24275         * config/spu/spu.h (TARGET_VERSION): Remove.
24276         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
24277         * config/v850/v850.h (TARGET_VERSION): Remove.
24278         * config/vax/linux.h (TARGET_VERSION): Remove.
24279         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
24280         * config/xtensa/elf.h (TARGET_VERSION): Remove.
24281         * config/xtensa/linux.h (TARGET_VERSION): Remove.
24282
24283 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24284
24285         PR target/48142
24286         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
24287         frame-related from frame-unrelated adjustments to the stack pointer.
24288
24289 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
24290
24291         * common.opt (fdebug-types-section): Move earlier.
24292         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
24293
24294 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
24295
24296         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
24297         var.
24298
24299 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
24300
24301         * tree.h (CASE_CHAIN): Define.
24302         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
24303         (gimple_redirect_edge_and_branch): Likewise.
24304
24305 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24306
24307         PR middle-end/48367
24308         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
24309         calculation.
24310
24311 2011-03-30  Jeff Law  <law@redhat.com>
24312
24313         * PR bootstrap/48371
24314         * reload1.c (reload): Fix botch in last change.
24315
24316         * reload.h (struct reload): Fix typo introduced in last change.
24317
24318 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24319
24320         * config/arm/arm.opt (mhard-float, msoft-float): Mark
24321         Undocumented.  Remove help text.
24322         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
24323         -mhard-float.
24324
24325 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24326
24327         * doc/options.texi (NegativeAlias): Document.
24328         (Alias): Mention NegativeAlias.
24329         * opt-functions.awk: Handle NegativeAlias.
24330         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
24331         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24332         * opts.h (CL_NEGATIVE_ALIAS): Define.
24333         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24334         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24335         OPT_mspe_.
24336         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24337         Alias entries.
24338         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24339         mno-spe and mno-isel instead of mspe=no and -misel=no.
24340
24341 2011-03-29  Mark Wielaard  <mjw@redhat.com>
24342
24343         * common.opt (fdebug-types-section): New flag.
24344         * doc/invoke.texi: Document new -fno-debug-types-section flag.
24345         * dwarf2out.c (use_debug_types): New define.
24346         (struct die_struct): Mark die_id with GTY desc use_debug_types.
24347         (print_die): Guard output of type unit signatures using
24348         use_debug_types.
24349         (build_abbrev_table): Replace assert of dwarf_version >= 4
24350         with assert on use_debug_types.
24351         (size_of_die): Likewise.
24352         (unmark_dies): Likewise.
24353         (value_format): Decide AT_ref_external form on use_debug_types.
24354         (output_die): Replace dwarf_version version check guard with
24355         use_debug_types where appropriate.
24356         (modified_type_die): Likewise.
24357         (gen_reference_type_die): Likewise.
24358         (dwarf2out_start_source_file): Likewise.
24359         (dwarf2out_end_source_file): Likewise.
24360         (prune_unused_types_walk_attribs): Likewise.
24361         (dwarf2out_finish): Likewise.
24362
24363 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24364
24365         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24366
24367 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24368
24369         PR rtl-optimization/48332
24370         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24371         mode of input operand N and modeN to its actual mode.
24372
24373 2011-03-30  Jeff Law  <law@redhat.com>
24374
24375         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24376         define accessor macro.
24377         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24378         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24379         (reg_equiv_init): Likewise.
24380         (reg_equivs_size): New variable.
24381         (reg_equiv_init_size): Remove.
24382         (allocate_initial_values): Move prototype to here from....
24383         * integrate.h (allocate_initial_values): Remove prototype.
24384         * integrate.c: Include reload.h.
24385         (allocate_initial_values): Corresponding changes.
24386         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24387         (fix_reg_equiv_init, no_equiv): Corresponding changes.
24388         (update_equiv_regs): Corresponding changes.
24389         (ira): Corresponding changes.
24390         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24391         (push_secondary_reload): Corresponding changes.
24392         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24393         (make_memloc, find_reloads_address): Corresponding changes.
24394         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24395         (find_reloads_address_1): Corresponding changes.
24396         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24397         (refers_to_regno_for_reload_p): Corresponding changes.
24398         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24399         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24400         * reload1.c: Include ggc.h.
24401         (grow_reg_equivs): New function.
24402         (replace_pseudos_in, reload): Corresponding changes.
24403         (calculate_needs_all_insns, alter_regs): Corresponding changes.
24404         (eliminate_regs_1, elimination_effects): Corresponding changes.
24405         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24406         (delete_output_reload): Likewise.
24407         * caller-save.c (mark_referenced_regs): Corresponding changes.
24408         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24409         * frv/predicates.md (frv_load_operand): Corresponding changes.
24410         * microblaze/microblaze.c (double_memory_operand): Corresponding
24411         changes.
24412         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24413         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24414         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24415         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24416         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24417         changes.
24418         * pa/pa.c (emit_move_sequence): Corresponding changes.
24419         * vax/vax.c (nonindexed_address_p): Corresponding changes.
24420
24421 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24422
24423         PR target/47551
24424         * config/arm/arm.c (coproc_secondary_reload_class): Handle
24425         structure modes.  Don't check neon_vector_mem_operand for
24426         vector or structure modes.
24427
24428 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24429             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24430
24431         PR target/43590
24432         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24433         operand 1 and reshuffle the operands to match.
24434         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24435
24436 2011-03-30  Christian Schüler  <cschueler@gmx.de>
24437
24438         PR driver/48208
24439         * config/c.opt (F): Added 'Driver' to -F option.
24440
24441         PR driver/48260
24442         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24443           handler function.
24444         * config/darwin.opt: Added '-arch' option.
24445
24446 2011-03-30  Nick Clifton  <nickc@redhat.com>
24447
24448         * config/rx/rx.md: Add peepholes and patterns to combine
24449         extending loads and simple arithmetic instructions.
24450         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24451         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24452         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24453         modes to use pre-decrement and post-increment addressing.
24454         (rx_is_restricted_memory_address): Add range checking of REG+INT
24455         addresses.
24456         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
24457         (rx_memory_move_cost): Adjust cost of stores.
24458         (rx_adjust_insn_length): New function.
24459
24460 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
24461
24462         PR c/48305
24463         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24464         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24465         matching arg00/arg01 types.
24466
24467 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
24468
24469         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24470         last_location to UNKNOWN_LOCATION.
24471
24472 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24473
24474         PR target/48349
24475         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24476         FLOAT_SSE_REGS.
24477
24478 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24479             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24480
24481         PR bootstrap/48337
24482         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24483         Init(PROCESSOR_V7).
24484         (sparc_cpu): Likewise.
24485         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24486         PROCESSOR_V7.
24487
24488 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24489
24490         PR target/48336
24491         PR middle-end/48342
24492         PR rtl-optimization/48345
24493         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24494         hard regs for given mode from profitable regs when doing secondary
24495         allocation.
24496
24497 2011-03-29  Jeff Law  <law@redhat.com>
24498
24499         PR bootstrap/48327
24500         * tree-ssa-threadupdate.c (struct redirection_data): Remove
24501         do_not_duplicate field.
24502         (lookup_redirection_data): Corresponding changes.
24503         (create_duplicates): Always create a template block.
24504         (redirect_edges): Remove code which reused the original block
24505         when it was going to become unreachable code.
24506         (thread_block): Don't set do_not_duplicate field.
24507
24508 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
24509
24510         * lto-opts.c (register_user_option_p, lto_register_user_option):
24511         Make type argument unsigned.
24512         * lto-streamer.h (lto_register_user_option): Make type argument
24513         unsigned.
24514         * opth-gen.awk: Make CL_* macros unsigned.
24515         * opts-common.c (find_opt): Make lang_mask argument unsigned.
24516         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24517         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24518         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24519         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24520         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24521         (find_opt): Make lang_mask argument unsigned.
24522
24523 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24524
24525         PR rtl-optimization/48331
24526         PR rtl-optimization/48334
24527         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24528         for any used algorithm.
24529
24530 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24531
24532         * ira-conflicts.c (build_object_conflicts): Add unused attribute
24533         to parent_max.
24534
24535 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
24536
24537         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24538         (alpha_option_override): Don't set alpha_sr_alias_set.
24539         (emit_frame_store_1): Use gen_frame_mem rather than calling
24540         set_mem_alias_set.
24541         (alpha_expand_epilogue): Ditto.
24542
24543 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
24544
24545         PR tree-optimization/48290
24546         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24547         vectorization, check that relevant phis in the basic block after
24548         the inner loop are really inner loop's exit phis.
24549
24550 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
24551
24552         PR debug/48190
24553         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24554         (cached_dw_loc_list_def): New structure.
24555         (cached_dw_loc_list): New typedef.
24556         (cached_dw_loc_list_table): New variable.
24557         (cached_dw_loc_list_table_hash): New function.
24558         (cached_dw_loc_list_table_eq): Likewise.
24559         (add_location_or_const_value_attribute): Take a bool cache_p.
24560         Cache the list when the parameter is true.
24561         (gen_formal_parameter_die): Update caller.
24562         (gen_variable_die): Likewise.
24563         (dwarf2out_finish): Likewise.
24564         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24565         while generating debug info for the decl.
24566         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24567         (dwarf2out_init): Initialize cached_dw_loc_list_table.
24568         (resolve_addr): Cache the result of resolving a chain of
24569         location lists.
24570
24571 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24572
24573         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24574         conflict object hard regset nodes have intersecting hard reg sets.
24575
24576         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24577         after regstat_init_n_sets_and_refs.
24578
24579         * ira.c: Add more comments at the top.
24580         (setup_stack_reg_pressure_class, setup_pressure_classes):
24581         Add comments how we compute the register pressure classes.
24582         (setup_allocno_and_important_classes): Add more comments.
24583         (setup_class_translate_array, reorder_important_classes)
24584         (setup_reg_class_relations): Add comments.
24585
24586         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
24587         start of the file.
24588
24589         * ira-color.c: Add 2011 to the Copyright line.
24590         (assign_hard_reg):  Add more comments.
24591         (improve_allocation): Ditto.
24592
24593         * ira-costs.c: Add 2011 to the Copyright line.
24594         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24595         comments.
24596         (setup_regno_cost_classes_by_mode): Ditto.
24597
24598         Initial patches from ira-improv branch:
24599
24600         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24601
24602         * ira-build.c (ira_create_object): Remove initialization of
24603         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
24604         (ira_create_allocno): Remove initialization of
24605         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24606         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24607         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24608         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24609         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24610         Initialize ALLOCNO_ADD_DATA.
24611         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24612         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24613         ALLOCNO_REG.
24614         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
24615         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24616
24617         * ira.c (ira_reallocate): Remove.
24618         (setup_pressure_classes): Call
24619         ira_init_register_move_cost_if_necessary.  Use
24620         ira_register_move_cost instead of ira_get_register_move_cost.
24621         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24622         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24623
24624         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24625         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24626         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24627         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24628         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24629         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24630         Fix formatting.
24631         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24632         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24633         (struct allocno_color_data): New.
24634         (allocno_color_data_t): New typedef.
24635         (allocno_color_data): New definition.
24636         (ALLOCNO_COLOR_DATA): New macro.
24637         (struct object_color_data): New.
24638         (object_color_data_t): New typedef.
24639         (object_color_data): New definition.
24640         (OBJECT_COLOR_DATA): New macro.
24641         (update_copy_costs, calculate_allocno_spill_cost): Call
24642         ira_init_register_move_cost_if_necessary.  Use
24643         ira_register_move_cost instead of ira_get_register_move_cost.
24644         (move_spill_restore, update_curr_costs): Ditto.
24645         (allocno_spill_priority): Make it inline.
24646         (color_pass): Allocate and free allocno_color_dat and object_color_data.
24647         (struct coalesce_data, coalesce_data_t): New.
24648         (allocno_coalesce_data): New definition.
24649         (ALLOCNO_COALESCE_DATA): New macro.
24650         (merge_allocnos, coalesced_allocno_conflict_p): Use
24651         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24652         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24653         (coalesce_allocnos): Ditto.
24654         (setup_coalesced_allocno_costs_and_nums): Ditto.
24655         (collect_spilled_coalesced_allocnos): Ditto.
24656         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24657         (setup_slot_coalesced_allocno_live_ranges): Ditto.
24658         (coalesce_spill_slots): Ditto.
24659         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
24660         free allocno_coalesce_data.
24661
24662         * ira-conflicts.c: Fix formatting.
24663         (process_regs_for_copy): Call
24664         ira_init_register_move_cost_if_necessary.  Use
24665         ira_register_move_cost instead of ira_get_register_move_cost.
24666         (build_object_conflicts): Optimize.
24667
24668         * ira-costs.c (record_reg_classes): Optimize.  Call
24669         ira_init_register_move_cost_if_necessary.  Use
24670         ira_register_move_cost, ira_may_move_in_cost, and
24671         ira_may_move_out_cost instead of ira_get_register_move_cost and
24672         ira_get_may_move_cost.
24673         (record_address_regs): Ditto.
24674         (scan_one_insn): Optimize.
24675         (find_costs_and_classes): Optimize.
24676         (process_bb_node_for_hard_reg_moves): Call
24677         ira_init_register_move_cost_if_necessary.  Use
24678         ira_register_move_cost instead of ira_get_register_move_cost.
24679
24680         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24681         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24682         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24683         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24684         definitions.
24685         (ira_initiate_emit_data, ira_finish_emit_data)
24686         (create_new_allocno): New functions.
24687         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24688         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24689         Use ira_register_move_cost instead of ira_get_register_move_cost.
24690
24691         * ira-int.h: Fix some comments.
24692         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24693         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24694         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24695         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
24696         add_data.
24697         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
24698         bitfield after mode.  Make hard_regno a short int.  Make
24699         hard_regno short.  Remove first_coalesced_allocno and
24700         next_coalesced_allocno.  Move mem_optimized_dest_p,
24701         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24702         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
24703         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24704         temp, colorable_p.  Add new member add_data.
24705         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24706         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24707         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24708         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24709         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24710         (ALLOCNO_ADD_DATA): New macro.
24711         (ira_emit_data_t): New typedef.
24712         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
24713         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24714         from struct ira_allocno.
24715         (ALLOCNO_EMIT_DATA): New macro.
24716         (ira_allocno_emit_data, allocno_emit_reg): New.
24717         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24718         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24719         (OBJECT_ADD_DATA): New macro.
24720         (ira_reallocate): Remove.
24721         (ira_initiate_emit_data, ira_finish_emit_data): New.
24722         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24723         (ira_init_register_move_cost_if_necessary): New.
24724         (ira_object_conflict_iter_next): Merge into
24725         ira_object_conflict_iter_cond.
24726         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24727
24728         * ira-live.c (process_single_reg_class_operands): Call
24729         ira_init_register_move_cost_if_necessary.  Use
24730         ira_register_move_cost instead of ira_get_register_move_cost.
24731
24732         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24733
24734         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24735
24736         * ira-costs.c: Fix formatting.
24737         (cost_classes, cost_classes_num): Remove.
24738         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24739         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24740         (cost_classes_del, cost_classes_htab): New.
24741         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24742         (initiate_regno_cost_classes, setup_cost_classes): New.
24743         (setup_regno_cost_classes_by_aclass): New.
24744         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24745         (record_reg_classes): Use regno_cost_classes instead of
24746         cost_classes.  Move checking opposite operand up.
24747         (record_address_regs): Use regno_cost_classes
24748         instead of cost_classes.
24749         (scan_one_insn): Ditto.  Use always general register.
24750         (print_allocno_costs): Use regno_cost_classes instead of
24751         cost_classes.
24752         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
24753         (find_costs_and_classes): Set up cost classes for each registers.
24754         Use also their mode for this.  Use regno_cost_classes instead of
24755         cost_classes.
24756         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24757         cost_classes.
24758         (free_ira_costs, ira_init_costs): Don't use cost_classes.
24759         (ira_costs, ira_set_pseudo_classes): Call
24760         initiate_regno_cost_classes and finish_regno_cost_classes.
24761
24762         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
24763
24764         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24765
24766         * target.def (ira_cover_classes): Remove.
24767
24768         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24769
24770         * doc/tm.texi.in: Ditto.
24771
24772         * ira-conflicts.c: Remove mentioning cover classes from the file.
24773         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
24774         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
24775
24776         * targhooks.c (default_ira_cover_classes): Remove.
24777
24778         * targhooks.h (default_ira_cover_classes): Ditto.
24779
24780         * haifa-sched.c: Remove mentioning cover classes from the file.
24781         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24782         ira_pressure_classes and ira_pressure_classes_num instead of
24783         ira_reg_class_cover_size and ira_reg_class_cover.  Use
24784         sched_regno_pressure_class instead of sched_regno_cover_class.
24785         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24786         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24787
24788         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
24789         classes from the file.
24790         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24791         (struct object_hard_regs, struct object_hard_regs_node): New.
24792         (struct ira_object): New members profitable_hard_regs,
24793         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24794         (struct ira_allocno): Rename cover_class to aclass.  Rename
24795         cover_class_cost and updated_cover_class_cost to class_cost and
24796         updated_class_cost.  Remove splay_removed_p and
24797         left_conflict_size.  Add new members colorable_p.
24798         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24799         (ALLOCNO_COLORABLE_P): New macro.
24800         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24801         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24802         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24803         (OBJECT_...): Rename parameter C to O.
24804         (OBJECT_PROFITABLE_HARD_REGS): New macro.
24805         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24806         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24807         (struct target_ira_int): New members x_ira_max_memory_move_cost,
24808         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24809         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24810         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24811         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
24812         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
24813         x_ira_reg_class_subunion.
24814         (ira_max_memory_move_cost, ira_max_register_move_cost)
24815         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24816         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24817         (ira_important_class_nums, ira_reg_class_superunion): New macros.
24818         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24819         (ira_reg_class_union): Rename to ira_reg_class_subunion.
24820         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24821         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24822         (ira_tune_allocno_costs_and_cover_classes): Rename to
24823         ira_tune_allocno_costs.
24824         (ira_debug_hard_regs_forest): New.
24825         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24826         (ira_object_conflict_iter_next): Fix comments.
24827         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24828         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24829         cover_class to aclass.
24830         (ira_allocate_and_accumulate_costs): Ditto.
24831         (ira_allocate_and_set_or_copy_costs): Ditto.
24832
24833         * opts.c (decode_options): Remove ira_cover_class check.
24834
24835         * ira-color.c: Remove mentioning cover classes from the file.  Use
24836         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24837         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24838         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24839         (splay-tree.h): Remove include.
24840         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24841         before copy_freq_compare_func.
24842         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24843         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24844         New definitions.
24845         (hard_regs_roots, hard_regs_node_vec): Ditto.
24846         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24847         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24848         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24849         (create_new_object_hard_regs_node): Ditto.
24850         (add_new_object_hard_regs_node_to_forest): Ditto.
24851         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24852         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24853         Ditto.
24854         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24855         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24856         (remove_unused_object_hard_regs_nodes): Ditto.
24857         (enumerate_object_hard_regs_nodes): Ditto.
24858         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24859         (object_hard_regs_subnode_t): Ditto.
24860         (struct object_hard_regs_subnode): Ditto.
24861         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24862         (setup_object_hard_regs_subnode_index): Ditto.
24863         (get_object_hard_regs_subnodes_num): Ditto.
24864         (form_object_hard_regs_nodes_forest): Ditto.
24865         (finish_object_hard_regs_nodes_tree): Ditto.
24866         (finish_object_hard_regs_nodes_forest): Ditto.
24867         (allocnos_have_intersected_live_ranges_p): Rename to
24868         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24869         (pseudos_have_intersected_live_ranges_p): Rename to
24870         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24871         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24872         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24873         (update_copy_costs): Remove assert.  Skip cost update if the hard
24874         reg does not belong the class.
24875         (assign_hard_reg): Process only profitable hard regs.
24876         (uncolorable_allocnos_num): Make it scalar.
24877         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24878         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24879         and ira_reg_class_max_nregs.
24880         (bucket_allocno_compare_func): Check frequency first.
24881         (sort_bucket): Add compare function as a parameter.
24882         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24883         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24884         (push_allocno_to_stack): Rewrite for checking new allocno
24885         colorability.
24886         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
24887         (push_only_colorable): Pass new parameter to sort_bucket.
24888         (push_allocno_to_spill): Remove.
24889         (allocno_spill_priority_compare): Make it inline and rewrite.
24890         (splay_tree_allocate, splay_tree_free): Remove.
24891         (allocno_spill_sort_compare): New function.
24892         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
24893         build and use splay tree.  Choose first allocno in uncolorable
24894         allocno bucket to spill.  Remove setting spill cost.
24895         (all_conflicting_hard_regs): Remove.
24896         (setup_allocno_available_regs_num): Check only profitable hard
24897         regs.  Print info about hard regs nodes.
24898         (setup_allocno_left_conflicts_size): Remove.
24899         (put_allocno_into_bucket): Don't call
24900         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
24901         (improve_allocation): New.
24902         (color_allocnos): Call setup_profitable_hard_regs,
24903         form_object_hard_regs_nodes_forest, improve_allocation,
24904         finish_object_hard_regs_nodes_forest.  Setup spill cost.
24905         (print_loop_title): Use pressure classes.
24906         (color_allocnso): Ditto.
24907         (do_coloring): Remove allocation and freeing splay_tree_node_pool
24908         and allocnos_for_spilling.
24909         (ira_sort_regnos_for_alter_reg): Don't setup members
24910         {first,next}_coalesced_allocno.
24911         (color): Remove allocating and freeing removed_splay_allocno_vec.
24912         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24913         prohibited_class_mode_regs.
24914
24915         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
24916         formatting.
24917         (update_allocno_pressure_excess_length): Use pressure classes.
24918         (inc_register_pressure, dec_register_pressure): Check for pressure
24919         class.
24920         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24921         pressure class.  Use ira_reg_class_nregs instead of
24922         ira_reg_class_max_nregs.
24923         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24924         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24925         (single_reg_class): Use ira_reg_class_nregs instead of
24926         ira_reg_class_max_nregs.
24927         (process_bb_node_lives): Use pressure classes.
24928
24929         * ira-emit.c: Remove mentioning cover classes from the file.  Use
24930         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24931         (change_loop): Use pressure classes.
24932         (modify_move_list): Call ira_set_allocno_class instead of
24933         ira_set_allocno_cover_class.
24934
24935         * ira-build.c: Remove mentioning cover classes from the file.  Use
24936         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24937         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
24938         ALLOCNO_UPDATED_CLASS_COST instead of
24939         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24940         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24941         (ira_create_allocno): Remove initialization of
24942         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
24943         ALLOCNO_COLORABLE_P.
24944         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24945         Update conflict regs for the objects.
24946         (create_cap_allocno): Remove assert.  Don't propagate
24947         ALLOCNO_AVAILABLE_REGS_NUM.
24948         (ira_free_allocno_costs): New function.
24949         (finish_allocno): Change a part of code into call of
24950         ira_free_allocno_costs.
24951         (low_pressure_loop_node_p): Use pressure classes.
24952         (object_range_compare_func): Don't compare classes.
24953         (setup_min_max_conflict_allocno_ids): Ditto.
24954
24955         * loop-invariant.c: Remove mentioning cover classes from the file.
24956         Use ira_pressure_classes and ira_pressure_classes_num instead of
24957         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
24958         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24959         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24960         Use reg_allocno_class instead of reg_cover_class.
24961         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
24962         STACK_REG_COVER_CLASS.
24963         (get_regno_cover_class): Rename to get_regno_pressure_class.
24964         (move_loop_invariants): Initialize and finalize regstat.
24965
24966         * ira.c: Remove mentioning cover classes from the file.  Add
24967         comments about coloring without cover classes.  Use ALLOCNO_CLASS
24968         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24969         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
24970         setup_class_subset_and_memory_move_costs.
24971         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
24972         (setup_cover_and_important_classes): Rename to
24973         setup_allocno_and_important_classes.
24974         (setup_class_translate_array): New.
24975         (setup_class_translate): Call it for allocno and pressure classes.
24976         (cover_class_order): Rename to allocno_class_order.
24977         (comp_reg_classes_func): Use ira_allocno_class_translate instead
24978         of ira_class_translate.
24979         (reorder_important_classes): Set up ira_important_class_nums.
24980         (setup_reg_class_relations): Set up ira_reg_class_superunion.
24981         (print_class_cover): Rename to print_classes.  Add parameter.
24982         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24983         Print pressure classes too.
24984         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
24985         setup_reg_subclasses.
24986         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24987         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24988         (setup_prohibited_class_mode_regs): Use
24989         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
24990         (clarify_prohibited_class_mode_regs): New function.
24991         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
24992         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
24993         (ira_init_once): Initialize them.
24994         (free_register_move_costs): Process them.
24995         (ira_init): Move calls of find_reg_classes and
24996         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
24997         Call clarify_prohibited_class_mode_regs.
24998         (ira_no_alloc_reg): Remove.
24999         (too_high_register_pressure_p): Use pressure classes.
25000
25001         * sched-deps.c: Remove mentioning cover classes from the file.
25002         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
25003         ira_pressure_classes and ira_pressure_classes_num instead of
25004         ira_reg_class_cover_size and ira_reg_class_cover.
25005         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
25006         sched_regno_pressure_class instead of sched_regno_cover_class.
25007         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
25008         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25009
25010         * ira.h: Add 2010 to Copyright.
25011         (ira_no_alloc_reg): Remove external.
25012         (struct target_ira): Rename x_ira_hard_regno_cover_class,
25013         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
25014         x_ira_class_translate to x_ira_hard_regno_allocno_class,
25015         x_ira_allocno_classes_num, x_ira_allocno_classes, and
25016         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
25017         x_ira_pressure_classes, x_ira_pressure_class_translate, and
25018         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
25019         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
25020         x_ira_no_alloc_regs.
25021         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25022         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
25023         ira_allocno_classes_num and ira_allocno_classes.
25024         (ira_class_translate): Rename to ira_allocno_class_translate.
25025         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
25026         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
25027         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25028         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
25029         (ira_no_alloc_regs): New.
25030
25031         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
25032         classes from the file.  Use ALLOCNO_CLASS instead of
25033         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
25034         ALLOCNO_COVER_CLASS_COST.
25035         (regno_cover_class): Rename to regno_aclass.
25036         (record_reg_classes): Use ira_reg_class_subunion instead of
25037         ira_reg_class_union.
25038         (record_address_regs): Check overflow.
25039         (scan_one_insn): Ditto.
25040         (print_allocno_costs): Print total mem cost fore regional allocation.
25041         (print_pseudo_costs): Use REG_N_REFS.
25042         (find_costs_and_classes): Use classes intersected with them on the
25043         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
25044         ira_reg_class_union.  Use ira_allocno_class_translate and
25045         regno_aclass instead of ira_class_translate and regno_cover_class.
25046         Modify code for finding regno_aclass.  Setup preferred classes for
25047         the next pass.
25048         (setup_allocno_cover_class_and_costs): Rename to
25049         setup_allocno_class_and_costs.  Use regno_aclass instead of
25050         regno_cover_class.  Use ira_set_allocno_class instead of
25051         ira_set_allocno_cover_class.
25052         (init_costs, finish_costs): Use regno_aclass instead of
25053         regno_cover_class.
25054         (ira_costs): Use setup_allocno_class_and_costs instead of
25055         setup_allocno_cover_class_and_costs.
25056         (ira_tune_allocno_costs_and_cover_classes): Rename to
25057         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
25058         by processing objects.  Use ira_reg_class_max_nregs instead of
25059         ira_reg_class_nregs.
25060
25061         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25062
25063         * sched-int.h: Remove mentioning cover classes from the file.
25064         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25065
25066         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
25067         classes from the file.
25068         (struct reg_pref): Rename coverclass into allocnoclass.
25069         (reg_cover_class): Rename to reg_allocno_class.
25070
25071         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25072
25073         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25074
25075         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25076
25077         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25078
25079         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25080
25081         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25082
25083         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25084
25085         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25086
25087         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25088
25089         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25090
25091         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25092         (i386_ira_cover_classes): Ditto.
25093
25094         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25095
25096         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25097
25098         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25099
25100         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25101
25102         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25103
25104         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25105
25106         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25107         (mips_ira_cover_classes): Ditto.
25108
25109         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25110
25111         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25112
25113         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25114
25115         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25116
25117         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25118
25119         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25120         (IRA_COVER_CLASSES_VSX): Ditto.
25121
25122         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25123         (rs6000_ira_cover_classes): Ditto.
25124
25125         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25126
25127         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25128
25129         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25130
25131         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25132
25133         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25134
25135         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25136
25137         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25138
25139         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25140
25141         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25142
25143         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25144
25145 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
25146
25147         PR debug/48253
25148         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25149         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25150         dw_fde_unlikely_section_end_label, cold_in_std_section,
25151         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25152         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25153         fields.
25154         (output_fde): Use dw_fde_second_{begin,end} if second is
25155         true, otherwise dw_fde_{begin,end}.
25156         (output_call_frame_info): Test dw_fde_second_begin != NULL
25157         instead of dw_fde_switched_sections.
25158         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25159         fields, initialize new fields.  Initialize in_std_section
25160         unconditionally from the first partition.
25161         (dwarf2out_end_epilogue): Don't override dw_fde_end when
25162         dw_fde_second_begin is non-NULL.
25163         (dwarf2out_switch_text_section): Stop initializing removed
25164         dw_fde_struct fields, initialize new fields, initialize
25165         also dw_fde_end here.  Set dw_fde_switch_cfi even when
25166         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
25167         (struct var_loc_list_def): Add last_before_switch field.
25168         (arange_table, arange_table_allocated, arange_table_in_use,
25169         ARANGE_TABLE_INCREMENT, add_arange): Removed.
25170         (size_of_aranges): Count !in_std_section and !second_in_std_section
25171         hunks in fdes, instead of looking at arange_table_in_use.
25172         (output_aranges): Add aranges_length argument, don't call
25173         size_of_aranges here.  Instead of using aranges_table*
25174         emit ranges for fdes when !in_std_section resp.
25175         !second_in_std_section.
25176         (dw_loc_list): Break ranges crossing section switch.
25177         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
25178         use dw_fde_second_end instead of dw_fde_end as end of last range.
25179         (gen_subprogram_die): Don't call add_arange.  Use
25180         dw_fde_{begin,end} for first partition and if switched
25181         section dw_fde_second_{begin,end} for the second.
25182         (var_location_switch_text_section_1,
25183         var_location_switch_text_section): New functions.
25184         (dwarf2out_begin_function): Initialize cold_text_section even
25185         when function_section () isn't text_section.
25186         (prune_unused_types): Don't walk arange_table.
25187         (dwarf2out_finish): Don't needlessly test
25188         flag_reorder_blocks_and_partition when testing cold_text_section_used.
25189         If info_section_emitted, call size_of_aranges and if it indicates
25190         non-empty .debug_aranges, call output_aranges with the computed
25191         size.  Stop using removed dw_fde_struct fields, use
25192         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
25193         for second.
25194
25195         PR debug/48203
25196         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
25197         create ENTRY_VALUE if incoming or address of incoming's MEM
25198         is a hard REG.
25199         * dwarf2out.c (mem_loc_descriptor): Don't emit
25200         DW_OP_GNU_entry_value of DW_OP_fbreg.
25201         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
25202         on ENTRY_VALUE is able to find the canonical parameter VALUE.
25203         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
25204         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
25205         ENTRY_VALUE_EXPs.
25206         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
25207         is a REG_P or MEM_P with REG_P address, compute hash directly
25208         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
25209         (preserve_only_constants): Don't clear VALUES forwaring
25210         ENTRY_VALUE to some other VALUE.
25211
25212 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
25213
25214         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
25215         instead of GEN_INT.
25216
25217 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25218
25219         * cfgexpand.c (expand_gimple_cond): Always set the source location and
25220         block before expanding the statement.
25221         (expand_gimple_stmt_1): Likewise.  Set them here...
25222         (expand_gimple_stmt): ...and not here.  Tidy.
25223         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
25224         unknown.
25225
25226 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25227
25228         * Makefile.in: New rule for cprop.o.
25229         * gcse.c: Move constant/copy propagation to cprop.c.
25230         (compute_local_properties): Only handle expression tables.
25231         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
25232         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
25233         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
25234         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
25235         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
25236         compute_cprop_data, find_used_regs, try_replace_reg,
25237         find_avail_set, cprop_jump, constprop_register, cprop_insn,
25238         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
25239         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
25240         find_bypass_set, reg_killed_on_edge, bypass_block,
25241         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
25242         execute_rtl_cprop, pass_rtl_cprop): Move to...
25243         * cprop.c: ...here.  New file, constant/copy propagation for RTL
25244         moved from gcse.c to here with minor cleanups in duplicated code.
25245
25246 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
25247
25248         * config/i386/i386.c (flag_opts): Fix a typo in
25249         -mavx256-split-unaligned-store.
25250
25251 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25252
25253         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25254         LIBCALL_VALUE): Remove macros.
25255         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25256         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25257         (h8300_function_value, h8300_libcall_value,
25258         h8300_function_value_regno_p): New functions.
25259
25260 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25261
25262         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
25263
25264 2011-03-28  Jeff Law  <law@redhat.com>
25265
25266         * tree-ssa-threadupdate.c (redirect_edges): Call
25267         create_edge_and_update_destination_phis as needed.
25268         (create_edge_and_update_destination_phis): Accept new BB argument.
25269         All callers updated.
25270         (thread_block): Do not update the profile when threading around
25271         intermediate blocks.
25272         (thread_single_edge): Likewise.
25273         (determine_bb_domination_status): If BB is not a successor of the
25274         loop header, return NONDOMINATING.
25275         (register_jump_thread): Note when we register a jump thread around
25276         an intermediate block.
25277         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
25278         (thread_across_edge): Use it.
25279
25280 2011-03-28  Tristan Gingold  <gingold@adacore.com>
25281
25282         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
25283         when for_return is 2.
25284
25285 2011-03-28  Jeff Law  <law@redhat.com>
25286
25287         * var-tracking.c (canonicalize_values_mark): Delete unused
25288         lhs assignment.
25289         (canonicalize_values_star, set_variable_part): Likewise.
25290         (clobber_variable_part, delete_variable_part): Likewise.
25291
25292 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25293
25294         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
25295
25296 2011-03-28  Martin Jambor  <mjambor@suse.cz>
25297
25298         * tree-inline.c (expand_call_inline): Do not check that destination
25299         node is analyzed.
25300         (optimize_inline_calls): Assert that destination node is analyzed.
25301         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
25302         not call tree_lowering_passes.
25303         * cgraph.h (cgraph_analyze_function): Declare.
25304         * cgraphunit.c (cgraph_analyze_function): Make public.
25305
25306 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
25307
25308         * config/sparc/sparc-opts.h: New.
25309         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
25310         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
25311         (sparc_option_override): Store processor_type enumeration rather
25312         than string in cpu_default.  Remove name and enumeration from
25313         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
25314         without using sparc_select.  Use target_flags_explicit instead of
25315         fpu_option_set.
25316         * config/sparc/sparc.h (enum processor_type): Move to
25317         sparc-opts.h.
25318         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
25319         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
25320         HeaderInclude entry.
25321         (mcpu=, mtune=): Use Var and Enum.
25322         (sparc_processor_type): New Enum and EnumValue entries.
25323
25324 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25325             Iain Sandoe  <iains@gcc.gnu.org>
25326
25327         PR target/48245
25328         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
25329
25330 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25331
25332         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25333         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25334         Insert new statements at it in lieu of STMT.
25335         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25336         * tree-vect-stmts.c (vectorizable_store): Likewise.
25337         (vectorizable_load): Likewise.
25338
25339 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
25340
25341         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25342         (divtf3): Ditto.
25343         (multf3): Ditto.
25344         (subtf3): Ditto.
25345
25346 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25347
25348         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25349         unaligned 256bit load/store.
25350         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25351         (*avx_movdqu<avxmodesuffix>): Likewise.
25352
25353 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25354
25355         PR target/48288
25356         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25357         * config/pa/pa.md (iordi3): Use new predicate in expander.
25358         (iorsi3): Likewise.
25359
25360 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
25361
25362         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25363         FUNCTION_VALUE_REGNO_P): Remove macros.
25364         * config/mips/mips-protos.h (mips_function_value): Remove.
25365         * config/mips/mips.c (mips_function_value): Rename to...
25366         (mips_function_value_1): ... this. Make static.  Handle receiving
25367         the function type in 'fn_decl_or_type' argument.
25368         (mips_function_value, mips_libcall_value,
25369         mips_function_value_regno_p): New function.
25370         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25371         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25372
25373 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25374
25375         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25376         and -mavx256-split-unaligned-store.
25377         (ix86_option_override_internal): Split 32-byte AVX unaligned
25378         load/store by default.
25379         (ix86_avx256_split_vector_move_misalign): New.
25380         (ix86_expand_vector_move_misalign): Use it.
25381
25382         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25383         -mavx256-split-unaligned-store.
25384
25385         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25386         256bit load/store.  Generate unaligned store on misaligned memory
25387         operand.
25388         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25389         256bit load/store.
25390         (*avx_movdqu<avxmodesuffix>): Likewise.
25391
25392         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25393         -mavx256-split-unaligned-store.
25394
25395 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25396
25397         PR target/38598
25398         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25399         Update commentary.
25400
25401 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25402
25403         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25404         opno arguments with an expand_operand.  Use create_input_operand.
25405         (mips_prepare_builtin_target): Delete.
25406         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25407         functions.
25408         (mips_expand_builtin_direct): Use create_output_operand and
25409         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
25410         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
25411         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25412
25413 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
25414
25415         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25416         function.
25417         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25418
25419 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25420
25421         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25422         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
25423         basic blocks and call commit_edge_insertions directly.
25424         (fixup_abnormal_edges): Move from here to...
25425         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
25426         on the edges and return whether some have actually been inserted.
25427         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25428         compensation code.
25429
25430 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
25431
25432         PR rtl-optimization/48144
25433         * sel-sched-ir.c (merge_history_vect): Factor out from ...
25434         (merge_expr_data): ... here.
25435         (av_set_intersect): Rename to av_set_code_motion_filter.
25436         Update all callers.  Call merge_history_vect when an expression
25437         is found in both sets.
25438         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25439
25440 2011-03-26  Alan Modra  <amodra@gmail.com>
25441
25442         * config/rs6000/predicates.md (word_offset_memref_op): Handle
25443         cmodel medium addresses.
25444         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25445         64-bit gpr loads and stores.
25446         (rs6000_secondary_reload_ppc64): New function.
25447         * config/rs6000/rs6000-protos.h: Declare it.
25448         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25449
25450 2011-03-26  Alan Modra  <amodra@gmail.com>
25451
25452         PR target/47487
25453         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25454         GNU Go in traceback table.
25455
25456 2011-03-25  Richard Henderson  <rth@redhat.com>
25457
25458         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25459         if there are exactly 6 operands.
25460         (set_storage_via_setmem): Similarly.
25461
25462 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25463
25464         * collect2.c (write_c_file_stat): Handle backslash
25465         as right-hand directory separator.
25466         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25467         checking just for slash.
25468         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25469         instead of checking for trailing slash.
25470         * gcc.c (record_temp_file): Use filename_cmp instead
25471         of strcmp.
25472         (do_spec_1): Likewise.
25473         (replace_outfile_spec_function): Likewise.
25474         (is_directory): Use filename_ncmp instead of strncmp.
25475         (print_multilib_info): Likewise.
25476         * gcov.c (find_source): Use filename_cmp instead
25477         instead of strcmp.
25478         (make_gcov_file_name): Fix order of slash/backslash
25479         checks.
25480         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25481         (add_standard_paths): Likewise.
25482         * mips-tfile.c (saber_stop): Handle backslash.
25483         * prefix.c (update_path): Use filename_ncmp instead of
25484         strncmp.
25485         * profile.c (output_location): Use filename_cmp instead
25486         of strcmp.
25487         * read-md.c (handle_toplevel_file): Handle backslash.
25488         * tlink.c (frob_extension):  Likewise.
25489         * tree-cfg.c (same_line_p): Use filename_cmp instead of
25490         strcmp.
25491         * tree-dump.c (dequeue_and_dump): Handle backslash.
25492         * tree.c (get_file_function_name): Likewise.
25493         * gengtype.c (read_input_list): Likewise.
25494         (get_file_realbasename): Likewise.
25495         (get_output_file_with_visibility): Use filename_cmp
25496         instead of strcmp.
25497
25498 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
25499
25500         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25501         case to VFPv1.
25502
25503 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25504
25505         * fold-const.c (expr_location_or): New function.
25506         (fold_truth_not_expr): Call it.
25507
25508 2011-03-25  Jeff Law  <law@redhat.com>
25509
25510         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25511         va_end.
25512         * c-family/c-common.c (def_fn_type): Likewise.
25513         * emit-rtl.c (gen_rtvec): Likewise.
25514         * lto/lto-lang.c (def_fn_type): Likewise.
25515
25516 2011-03-25  Richard Guenther  <rguenther@suse.de>
25517
25518         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25519         also generate copies.
25520         (fini_copy_prop): Handle constant values properly.
25521
25522 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
25523
25524         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25525         mode size instead of bitsize with DWARF2_ADDR_SIZE.
25526         (hash_loc_operands, compare_loc_operands): Handle
25527         DW_OP_GNU_entry_value.
25528
25529 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25530
25531         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25532         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25533         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25534         comment and use macro TARGET_64BIT_MS_ABI instead.
25535         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25536         and change default behavior for 32-bit MS_ABI.
25537         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25538         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25539         32-bit, too.
25540         (ix86_cfun_abi): Likewise.
25541         (ix86_maybe_switch_abi): Adjust comment.
25542         (init_cumulative_args): Check for bit-ness in MS_ABI case.
25543         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25544         instead of checking for SYSV_ABI.
25545         (ix86_nsaved_sseregs): Likewise.
25546         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25547         to 16 bytes.
25548         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25549         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25550         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25551         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25552         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25553
25554 2011-03-25  Richard Guenther  <rguenther@suse.de>
25555
25556         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25557         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25558         (verify_gimple): Remove.
25559         * tree-cfg.c (verify_gimple_call): Merge verification
25560         from verify_stmts.
25561         (verify_gimple_phi): Merge verification from verify_stmts.
25562         (verify_gimple_label): New function.
25563         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25564         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25565         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25566         (verify_stmts): Rename to verify_gimple_in_cfg.
25567         (verify_gimple_in_cfg): New function.
25568         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25569         * tree-ssa.c (verify_ssa): Likewise.
25570         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25571
25572 2011-03-25  Richard Guenther  <rguenther@suse.de>
25573
25574         * passes.c (init_optimization_passes): Add FRE pass after
25575         early SRA.
25576
25577 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
25578             Andrew Stubbs  <ams@codesourcery.com>
25579
25580         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25581         for Cortex-A8.
25582         (arm_movdi_vfp_cortexa8): New pattern.
25583         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25584         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25585         instructions when tuning for Cortex-A8.  Set attribute "arch".
25586         * config/arm/arm.md: Move include arm-tune.md up a bit.
25587         (define_attr "arch"): Add "onlya8" and "nota8" values.
25588         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25589
25590 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25591
25592         PR bootstrap/48282
25593         Revert:
25594         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25595
25596         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25597         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25598         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25599         * passes.c (init_optimization_passes): Move
25600         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25601
25602 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25603
25604         * c-typeck.c (comptypes_internal): Replace target
25605         hook call of comp_type_attributes by version in tree.c file.
25606         * gimple.c (gimple_types_compatible_p_1): Likewise.
25607         * tree-ssa.c (useless_type_conversion_p): Likewise.
25608         * tree.c (build_type_attribute_qual_variant): Likewise.
25609         (attribute_value_equal): New static helper function.
25610         (comp_type_attributes): New function.
25611         (merge_attributes): Use attribute_value_equal for comparison.
25612         (attribute_list_contained): Likewise.
25613         * tree.h (comp_type_attributes): New prototype.
25614
25615 2011-03-25  Richard Guenther  <rguenther@suse.de>
25616
25617         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25618         of complex types at -O0.
25619         (verify_gimple_assign_binary): Likewise.
25620         (verify_gimple_assign_ternary): Likewise.
25621
25622 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25623
25624         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25625         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25626
25627 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25628
25629         PR debug/48041
25630         * dwarf2out.c (output_abbrev_section): Only write table when
25631         abbrev_die_table_in_use > 1.
25632
25633 2011-02-24  Richard Henderson  <rth@redhat.com>
25634
25635         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25636         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25637         (alpha_expand_unaligned_load_words): Use extql.
25638         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25639         (emit_insxl): Handle all modes for consistency.
25640
25641 2011-02-24  Richard Henderson  <rth@redhat.com>
25642
25643         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25644         (alpha_expand_unaligned_load): Likewise.
25645         (alpha_expand_unaligned_store): Likewise.
25646         (alpha_expand_unaligned_load_words): Likewise.
25647         (alpha_expand_unaligned_store_words): Likewise.
25648         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25649         (alpha_split_lock_test_and_set_12): Likewise.
25650         (print_operand, alpha_fold_builtin_extxx): Likewise.
25651         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25652         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25653         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25654         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25655         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25656         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25657         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25658         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25659         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25660         (extwl, extll, extql): Similarly.
25661         (inswh, inslh, insqh): Similarly.
25662         (mskbl, mskwl, mskll, mskql): Similarly.
25663         (mskwh, msklh, mskqh): Similarly.
25664
25665 2011-02-24  Richard Henderson  <rth@redhat.com>
25666
25667         * config/alpha/alpha.md (attribute isa): Add er, ner.
25668         (attribute enabled): Handle them.
25669         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25670
25671 2011-02-24  Richard Henderson  <rth@redhat.com>
25672
25673         * config/alpha/alpha.md (attribute isa): Add vms.
25674         (attribute enabled): Handle it.
25675         (*movsf): Merge *movsf_{nofix,fix,nofp}.
25676         (*movdf): Merge *movdf_{nofix,fix,nofp}.
25677         (*movtf): Rename from *movtf_internal for consistency.
25678         (*movsi): Merge with *movsi_nt_vms.
25679         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25680         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25681         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25682         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25683
25684 2011-02-24  Richard Henderson  <rth@redhat.com>
25685
25686         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25687         (extendqisi2, extendhisi2): Likewise.
25688         (extendqidi2): Simplify BWX/non-BWX expansions.
25689         (extendhidi2): Similarly.
25690
25691 2011-02-24  Richard Henderson  <rth@redhat.com>
25692
25693         * config/alpha/alpha.md (attribute isa): New.
25694         (attribute enabled): New.
25695         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25696         (zero_extendqisi2, zero_extendqidi2): Similarly.
25697         (zero_extendhisi2, zero_extendhidi2): Similarly.
25698         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25699
25700 2011-02-24  Richard Henderson  <rth@redhat.com>
25701
25702         * config/alpha/predicates.md (input_operand): Revert last change;
25703         update comment to mention 32-bit VMS rather than Windows.
25704
25705 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25706
25707         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25708         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25709         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25710         * passes.c (init_optimization_passes): Move
25711         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25712
25713 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25714
25715         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25716
25717 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25718
25719         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25720         correctly.
25721
25722 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
25723
25724         PR debug/48204
25725         * simplify-rtx.c (simplify_const_unary_operation): Call
25726         real_convert when changing mode class with FLOAT_EXTEND.
25727
25728 2011-03-24  Nick Clifton  <nickc@redhat.com>
25729
25730         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25731         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25732         * config/rx/rx.c (rx_option_override): Set align_jumps,
25733         align_loops and align_labels if not set by the user.
25734         (rx_align_for_label): New function.
25735         (rx_max_skip_for_label): New function.
25736         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25737         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25738         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25739         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25740         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25741
25742 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25743
25744         PR rtl-optimization/48263
25745         * optabs.c (expand_binop_directly): Reinstate convert_modes code
25746         and original commutative_p handling.  Use maybe_gen_insn.
25747
25748 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25749
25750         * reload.c (find_reloads_subreg_address): Add address_reloaded
25751         parameter and return true there if the full address has been
25752         reloaded.
25753         (find_reloads_toplev): Pass address_reloaded flag.
25754         (find_reloads_address_1): Don't use address_reloaded parameter.
25755
25756 2011-03-24  Jeff Law  <law@redhat.com>
25757
25758         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25759         unused variable "ann".
25760         (remove_unused_locals): Likewise.
25761
25762         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25763         statement.
25764
25765         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25766         after it is freed.
25767
25768 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25769
25770         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25771         for invalid symbolic addresses.
25772         (s390_secondary_reload): Don't use s390_check_symref_alignment for
25773         larl operands.
25774
25775 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25776
25777         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
25778         the argument in calls to fold_truth_not_expr.
25779
25780 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25781
25782         * tree.c (record_node_allocation_statistics): New function.
25783         (make_node_stat, copy_node_stat, build_string): Call it.
25784         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25785         (build1_stat, build_omp_clause): Likewise.
25786
25787 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25788
25789         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25790         last commit.
25791
25792 2011-03-24  Richard Guenther  <rguenther@suse.de>
25793
25794         PR tree-optimization/48271
25795         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25796         blocks that still exist.
25797
25798 2011-03-24  Richard Guenther  <rguenther@suse.de>
25799
25800         PR tree-optimization/48270
25801         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25802         not free datarefs before ddrs.
25803
25804 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25805
25806         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25807         from the address built for a reference with variable offset.
25808
25809 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25810
25811         PR target/48237
25812         * config/i386/i386.md (*movdf_internal_rex64): Do not split
25813         alternatives that can be handled with movq or movabsq insn.
25814         (*movdf_internal): Disable for !TARGET_64BIT.
25815         (*movdf_internal_nointeger): Ditto.
25816         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25817
25818 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25819
25820         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25821         (FUNCTION_ARG_ADVANCE): Likewise.
25822         * tm.texi.in: Change references to them to hook references.
25823         * tm.texi: Regenerate.
25824         * targhooks.c (default_function_arg): Eliminate check for target macro.
25825         (default_function_incoming_arg): Likewise.
25826         (default_function_arg_advance): Likewise.
25827         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25828         (function_arg_advance): Likewise.
25829         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25830
25831 2011-03-24  Richard Guenther  <rguenther@suse.de>
25832
25833         PR middle-end/48269
25834         * tree-object-size.c (addr_object_size): Do not double-account
25835         for MEM_REF offsets.
25836
25837 2011-03-24  Diego Novillo  <dnovillo@google.com>
25838
25839         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25840         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25841         (lto_input_data_block): Move from lto-opts.c.  Make extern.
25842         Update all users.
25843         (lto_input_string): Rename from input_string.  Make extern.
25844         Update all users.
25845         * lto-streamer-out.c (lto_output_string_with_length): Rename from
25846         output_string_with_length.
25847         Output 0 to indicate a non-NULL string.  Update all callers to
25848         not emit 0.
25849         (lto_output_string): Rename from output_string.  Make extern.
25850         Update all users.
25851         (lto_output_decl_state_streams): Make extern.
25852         (lto_output_decl_state_refs): Make extern.
25853         * lto-streamer.h (lto_input_string): Declare.
25854         (lto_input_data_block): Declare.
25855         (lto_output_string): Declare.
25856         (lto_output_string_with_length): Declare.
25857         (lto_output_decl_state_streams): Declare.
25858         (lto_output_decl_state_refs): Declare.
25859
25860 2011-03-24  Richard Guenther  <rguenther@suse.de>
25861
25862         PR tree-optimization/46562
25863         * tree.c (build_invariant_address): New function.
25864         * tree.h (build_invariant_address): Declare.
25865         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25866         a renamed function moved ...
25867         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25868         Take valueization callback parameter.
25869         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25870         * gimple-fold.h: New file.
25871         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25872         (ccp_fold, fold_const_aggregate_ref,
25873         fold_ctor_reference, fold_nonarray_ctor_reference,
25874         fold_array_ctor_reference, fold_string_cst_ctor_reference,
25875         get_base_constructor): Move ...
25876         * gimple-fold.c: ... here.
25877         (gimple_fold_stmt_to_constant_1): New function
25878         split out from ccp_fold.  Take a valueization callback parameter.
25879         Valueize all operands.
25880         (gimple_fold_stmt_to_constant): New wrapper function.
25881         (fold_const_aggregate_ref_1): New function split out from
25882         fold_const_aggregate_ref.  Take a valueization callback parameter.
25883         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25884         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25885         invariant POINTER_PLUS_EXPRs to invariant form.
25886         (vn_valueize): New function.
25887         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25888         * tree-vrp.c (vrp_valueize): New function.
25889         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25890         to fold statements to constants.
25891         * tree-ssa-pre.c (eliminate): Properly guard propagation of
25892         function declarations.
25893         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25894         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25895
25896 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25897
25898         * config/h8300/predicates.md (jump_address_operand): Fix register
25899         mode check.
25900
25901 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
25902
25903         * doc/invoke.texi (max-stores-to-sink): Document.
25904         * params.h (MAX_STORES_TO_SINK): Define.
25905         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25906         if either vectorization or if-conversion is disabled.
25907         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25908         tree-vect-data-refs.c vect_equal_offsets.
25909         (dr_equal_offsets_p): New function.
25910         (find_data_references_in_bb): Remove static.
25911         * tree-data-ref.h (find_data_references_in_bb): Declare.
25912         (dr_equal_offsets_p): Likewise.
25913         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25914         (vect_drs_dependent_in_basic_block): Update calls to
25915         vect_equal_offsets.
25916         (vect_check_interleaving): Likewise.
25917         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25918         (cond_if_else_store_replacement): Rename to...
25919         (cond_if_else_store_replacement_1): ... this.  Change arguments and
25920         documentation.
25921         (cond_if_else_store_replacement): New function.
25922         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25923         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25924
25925 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
25926
25927         PR target/46934
25928         * config/arm/arm.md (casesi): Use the gen_int_mode() function
25929         to subtract lower bound instead of GEN_INT().
25930
25931 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
25932
25933         PR other/48179
25934         PR other/48221
25935         PR other/48234
25936         * doc/extend.texi (Alignment): Move section to match order in TOC.
25937         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25938         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25939
25940 2011-03-23  Jeff Law  <law@redhat.com>
25941
25942         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25943         before removing the edge.
25944
25945         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25946         it may have been freed by redirect_branch_edge or
25947         redirect_edge_succ_nodup.
25948
25949 2011-03-23  Richard Guenther  <rguenther@suse.de>
25950
25951         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25952         (check_va_list_escapes): Likewise.
25953         (check_all_va_list_escapes): Likewise.
25954
25955 2011-03-23  Richard Guenther  <rguenther@suse.de>
25956
25957         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25958         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25959         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25960         (alias.o): Likewise.
25961         (ipa-type-escape.o): Remove.
25962         (ipa-struct-reorg.o): Likewise.
25963         (GTFILES): Remove ipa-struct-reorg.c.
25964         * alias.c: Do not include ipa-type-escape.h.
25965         * tree-ssa-alias.c: Likewise.
25966         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
25967         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
25968         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
25969         and ipa-type-escape passes.
25970         * tree-pass.h (pass_ipa_type_escape): Remove.
25971         (pass_ipa_struct_reorg): Likewise.
25972         * ipa-struct-reorg.h: Remove.
25973         * ipa-struct-reorg.c: Likewise.
25974         * ipa-type-escape.h: Likewise.
25975         * ipa-type-escape.c: Likewise.
25976         * doc/invoke.texi (-fipa-struct-reorg): Remove.
25977         (--param struct-reorg-cold-struct-ratio): Likewise.
25978         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25979         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25980         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
25981
25982 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25983
25984         * config/s390/2084.md: Enable all insn reservations also for z9_ec
25985         cpu attribute value.
25986         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
25987         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
25988         * config/s390/s390.c (processor_flags_table): New constant array.
25989         (s390_handle_arch_option): Remove.
25990         (s390_handle_option): Remove s390_handle_arch_option invocations
25991         and OPT_mwarn_framesize_ handling.
25992         (s390_option_override): Remove s390_handle_arch_option invocation.
25993         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
25994         warnings.
25995         * config/s390/s390.md (cpu attribute): Add z9_ec value.
25996         * config/s390/s390.opt (s390_tune, s390_arch)
25997         (march=): Replace s390_arch_option enum and values with
25998         processor_type.  Set variable name to s390_arch.  Set
25999         initialization value.
26000         (mtune=): Replace s390_arch_option with processor_type.  Set
26001         variable name to s390_tune.  Set initialization value.
26002
26003 2011-03-23  Julian Brown  <julian@codesourcery.com>
26004
26005         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
26006         accesses which are not naturally aligned.
26007
26008 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26009
26010         PR target/47553
26011         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
26012
26013 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26014
26015         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
26016         parameter from "int" to "enum insn_code".
26017         (expand_operand_type): New enum.
26018         (expand_operand): New structure.
26019         (create_expand_operand): New function.
26020         (create_fixed_operand, create_output_operand): Likewise
26021         (create_input_operand, create_convert_operand_to): Likewise.
26022         (create_convert_operand_from, create_address_operand): Likewise.
26023         (create_integer_operand): Likewise.
26024         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
26025         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26026         (expand_insn, expand_jump_insn): Likewise.
26027         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
26028         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
26029         (expand_movstr, expand_builtin___clear_cache): Likewise.
26030         (expand_builtin_lock_release): Likewise.
26031         * explow.c (allocate_dynamic_stack_space): Likewise.
26032         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
26033         and use the default handling in that case.
26034         * expmed.c (check_predicate_volatile_ok): Delete.
26035         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
26036         (emit_cstore): Likewise.
26037         * expr.c (emit_block_move_via_movmem): Likewise.
26038         (set_storage_via_setmem, expand_assignment): Likewise.
26039         (emit_storent_insn, try_casesi): Likewise.
26040         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
26041         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
26042         (expand_vec_shift_expr, expand_binop_directly): Likewise.
26043         (expand_twoval_unop, expand_twoval_binop): Likewise.
26044         (expand_unop_direct, emit_indirect_jump): Likewise.
26045         (emit_conditional_move, vector_compare_rtx): Likewise.
26046         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
26047         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26048         (expand_sync_lock_test_and_set): Likewise.
26049         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
26050         (emit_unop_insn): Likewise.
26051         (expand_copysign_absneg): Change icode to an insn_code.
26052         (create_convert_operand_from_type): New function.
26053         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26054         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26055         (expand_insn, expand_jump_insn): Likewise.
26056         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26057         than const_int_operand for operand 2.
26058
26059 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26060
26061         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26062         if possible.
26063
26064 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26065
26066         * emit-rtl.c (emit_pattern_before_noloc): New function.
26067         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26068         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26069         (emit_pattern_after_noloc): New function.
26070         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26071         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26072
26073 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26074
26075         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26076         (__ffsDI2): Likewise.
26077
26078 2011-03-22  Richard Henderson  <rth@redhat.com>
26079
26080         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26081         of !TARGET_ABI_OPEN_VMS.
26082         (alpha_trampoline_init, alpha_start_function): Likewise.
26083         (alpha_expand_epilogue, alpha_file_start): Likewise.
26084         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26085         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26086         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26087         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26088         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26089
26090 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26091
26092         * config/s390/s390-opts.h: New.
26093         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26094         s390_arch_flags, s390_warn_framesize, s390_stack_size,
26095         s390_stack_guard): Remove.
26096         (s390_handle_arch_option): Return void.  Take enum
26097         s390_arch_option value instead of string and searching array.
26098         (s390_handle_option): Don't assert that global structures are in
26099         use.  Access variables via opts pointer.  Use error_at.  Don't use
26100         sscanf for -mstack-guard= or -mstack-size=.  Update call to
26101         s390_handle_arch_option.
26102         (s390_option_override): Update call to s390_handle_arch_option.
26103         (s390_emit_prologue): Use %d format for s390_stack_size in
26104         diagnostic.  Use %wd for HOST_WIDE_INT.
26105         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26106         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26107         * config/s390/s390.opt (config/s390/s390-opts.h): New
26108         HeaderInclude entry.
26109         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26110         s390_arch_flags, s390_warn_framesize): New Variable entries.
26111         (s390_arch_option): New Enum and EnumValue entries.
26112         (march=): Use Enum instead of Var.
26113         (mstack-guard=, mstack-size=): Use UInteger and Var.
26114         (mtune=): Use Enum.
26115
26116 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26117
26118         * config/score/score.c (score_handle_option): Don't assert that
26119         global structures are in use.  Access target_flags via opts
26120         pointer.  Use value of -march= option to determine target_flags
26121         settings.
26122         * config/score/score.opt (march=): Use Enum.
26123         (score_arch): New Enum and EnumValue entries.
26124
26125 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26126
26127         * config/mep/mep.c (option_mtiny_specified): Remove.
26128         (mep_option_override): Move register handling for -mivc2 from
26129         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
26130         instead of option_mtiny_specified.
26131         (mep_handle_option): Access target_flags via opts pointer.  Don't
26132         assert that global structures are in use.  Defer part of -mivc2
26133         handling and move it to mep_option_override.
26134         * config/mep/mep.opt (IVC2): New Mask entry.
26135         (mivc2): Use Var and Defer instead of Mask.
26136
26137 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26138
26139         * config/v850/v850-opts.h: New.
26140         * config/v850/v850.c (small_memory): Replace with
26141         small_memory_physical_max array.  Make that array static const.
26142         (v850_handle_memory_option): Take integer value of argument.  Take
26143         gcc_options pointer, option text and location.  Return void.
26144         Update for changes to small memory structures.
26145         (v850_handle_option): Access target_flags via opts pointer.  Don't
26146         assert that global structures are in use.  Update calls to
26147         v850_handle_memory_option.
26148         (v850_encode_data_area): Update references to small memory settings.
26149         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26150         (enum small_memory_type): Move to v850-opts.h.
26151         * config/v850/v850.opt (config/v850/v850-opts.h): New
26152         HeaderInclude entry.
26153         (small_memory_max): New Variable entry.
26154         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
26155         (mtda, mzda): Likewise.
26156
26157 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26158
26159         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26160         pointer.  Don't assert that global structures are in use.
26161
26162 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26163
26164         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26165         via opts pointer.  Don't assert that global structures are in use.
26166
26167 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26168
26169         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26170         (munix=93): Use Var.
26171         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26172         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26173         * config/pa/pa-opts.h: New.
26174         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26175         (pa_handle_option): Don't assert that global structures are in
26176         use.  Access target_flags via opts pointer.  Don't handle
26177         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26178         OPT_munix_98 here.
26179         (pa_option_override): Handle deferred OPT_mfixed_range_.
26180
26181 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26182
26183         * config/mn10300/mn10300-opts.h: New.
26184         * config/mn10300/mn10300.c (mn10300_processor,
26185         mn10300_tune_string): Remove.
26186         (mn10300_handle_option): Don't assert that global structures are
26187         in use.  Access mn10300_processor via opts pointer.  Don't handle
26188         OPT_mtune_ here.
26189         * config/mn10300/mn10300.h (enum processor_type): Move to
26190         mn10300-opts.h.
26191         (mn10300_processor): Remove.
26192         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
26193         HeaderInclude entry.
26194         (mn10300_processor): New Variable entry.
26195         (mtune=): Use Var.
26196
26197 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26198
26199         * config/microblaze/microblaze.c: Don't include opts.h.
26200         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
26201         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
26202         (mno-clearbss): Use Var and Warn.
26203
26204 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26205
26206         * config/m32r/m32r-opts.h: New.
26207         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
26208         (m32r_handle_option): Don't assert that global structures are in
26209         use.  Access target_flags and m32r_cache_flush_func via opts
26210         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
26211         OPT_mno_flush_trap here.
26212         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
26213         include of m32r-opts.h.
26214         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
26215         HeaderInclude entry.
26216         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
26217         (mmodel=): Use Enum and Var.
26218         (m32r_model): New Enum and EnumValue entries.
26219         (mno-flush-trap): Use Var.
26220         (msdata=): Use Enum and Var.
26221         (m32r_sdata): New Enum and EnumValue entries.
26222
26223 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26224
26225         * config/m32c/m32c.c: Don't include opts.h.
26226         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
26227         m32c_handle_option): Remove.
26228         (m32c_option_override): Check global_options_set.x_target_memregs
26229         instead of target_memregs_set.
26230         * config/m32c/m32c.h (target_memregs): Remove.
26231         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
26232         variable.
26233
26234 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26235
26236         * config/iq2000/iq2000-opts.h: New.
26237         * config/iq2000/iq2000.c: Don't include opts.h.
26238         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
26239         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
26240         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
26241         HeaderInclude entry.
26242         (iq2000_tune): New Variable entry.
26243         (march=): Add comment.  Use Enum.
26244         (iq2000_arch): New Enum and EnumValue entries.
26245         (mcpu=): Use Enum and Var.
26246         (iq2000_tune): New Enum and EnumValue entries.
26247
26248 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26249
26250         * config/ia64/ia64-opts.h: New.
26251         * config/ia64/ia64.c (ia64_tune): Remove.
26252         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
26253         here.  Use error_at.
26254         (ia64_option_override): Handle deferred OPT_mfixed_range_.
26255         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
26256         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
26257         HeaderInclude entry.
26258         (ia64_tune): New Variable entry.
26259         (mfixed-range=): Use Defer and Var.
26260         (mtune=): Use Enum and Var.
26261         (ia64_tune): New Enum and EnumValue entries.
26262
26263 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26264
26265         * config/frv/frv-opts.h: New.
26266         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
26267         frv-opts.h.
26268         (frv_cpu_type): Remove.
26269         * config/frv/frv.c: Don't include opts.h.
26270         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
26271         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
26272         (frv_cpu_type): New Variable entry.
26273         (frv_cpu): New Enum and EnumValue entries.
26274
26275 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26276
26277         * config/cris/cris.c (cris_handle_option): Access target_flags via
26278         opts pointer.  Don't assert that global structures are in use.
26279         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
26280         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
26281
26282 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26283
26284         * config/bfin/bfin-opts.h: New.
26285         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
26286         bfin_si_revision, bfin_workarounds): Remove.
26287         (bfin_cpus): Make static const.
26288         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
26289         not bfin_lib_id_given.
26290         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
26291         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
26292         pointer. Use error_at.  Don't assert that global structures are in use.
26293         * config/bfin/bfin.h: Include bfin-opts.h.
26294         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
26295         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
26296         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
26297         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
26298         entries.
26299
26300 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26301
26302         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
26303         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
26304         or -msoft-float here.
26305         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
26306         -msoft-float and -mhard-float.
26307         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
26308         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26309         msoft-float.
26310         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
26311         -msoft-float.
26312         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
26313         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
26314         not mhard-float.
26315         (LIBGCC_SPEC): Don't handle -msoft-float.
26316         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
26317         -mhard-float.
26318         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26319         msoft-float.
26320         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
26321         -mfloat-abi=*, not -msoft-float and -mhard-float.
26322         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
26323         -msoft-float.
26324         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
26325         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
26326         mhard-float and msoft-float.
26327         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
26328         mfloat-abi=soft in comments, not mhard-float and msoft-float.
26329         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26330         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26331         mhard-float.
26332         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26333         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26334         msoft-float.
26335         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26336         not mhard-float.
26337         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26338         not msoft-float.
26339
26340 2011-03-22  Richard Henderson  <rth@redhat.com>
26341
26342         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26343         TARGET_ABI_WINDOWS_NT.
26344         (alpha_output_function_end_prologue): Likewise.
26345         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26346         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26347         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26348         (trap, *movsi_nt_vms): Likewise.
26349         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26350         (*tablejump_osf_nt_internal): Remove.
26351         * config/alpha/predicates.md (input_operand): Only test Pmode.
26352
26353 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26354
26355         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26356         via opts pointer.  Use error_at.  Don't assert that global
26357         structures are in use.
26358
26359 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26360
26361         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26362         (ix86_handle_option): Access ix86_isa_flags and
26363         ix86_isa_flags_explicit via opts pointer.  Don't assert that
26364         global structures are in use.
26365         (ix86_function_specific_save, ix86_function_specific_restore):
26366         Update ix86_isa_flags_explicit field name.
26367         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26368         (ix86_isa_flags_explicit): Rename TargetSave entry to
26369         x_ix86_isa_flags_explicit.
26370
26371 2011-03-22  Richard Henderson  <rth@redhat.com>
26372
26373         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26374         (alpha_option_override, direct_return): Likewise.
26375         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26376         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26377         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26378         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26379         (alpha_expand_epilogue, alpha_end_function): Likewise.
26380         (alpha_init_libfuncs): Likewise.
26381         (struct machine_function): Remove unicosmk members.
26382         (print_operand) ['t']: Remove.
26383         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26384         unicosmk_output_module_name, unicosmk_output_common,
26385         current_section_align, unicosmk_output_text_section_asm_op,
26386         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26387         unicosmk_section_type_flags, unicosmk_unique_section,
26388         unicosmk_asm_named_section, unicosmk_insert_attributes,
26389         unicosmk_output_align, unicosmk_defer_case_vector,
26390         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26391         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26392         unicosmk_output_ssib, unicosmk_add_call_info_word,
26393         unicosmk_extern_head, unicosmk_output_default_externs,
26394         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26395         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26396         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26397         * config/alpha/alpha-protos.h: Update.
26398         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26399         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26400         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26401         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26402         (*mulsi_se, mulvsi3): Likewise.
26403         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26404         (*divmodsi_internal, call, call_value, realign): Likewise.
26405         (moddi3, umoddi3): Likewise; remove duplicate expander.
26406         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26407         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26408         (*movdi_nofix): Remove r/U alternative.
26409         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26410         * config/alpha/constraints.md ("U"): Remove.
26411         * config/alpha/predicates.md (call_operand"): Don't test
26412         TARGET_ABI_UNICOSMK.
26413
26414 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26415
26416         * target.def (handle_option): Take gcc_options and
26417         cl_decoded_option pointers and location_t.
26418         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26419         * doc/tm.texi: Regenerate.
26420         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26421         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26422         * lto-opts.c (lto_reissue_options): Generate option structure for
26423         targetm.handle_option call.
26424         * opts.c (target_handle_option): Update call to
26425         targetm.handle_option.  Remove assertions about values now passed
26426         down to hook.
26427         * targhooks.c (default_target_handle_option): New.
26428         * targhooks.h (default_target_handle_option): Declare.
26429         * config/alpha/alpha.c: Include opts.h.
26430         (alpha_handle_option): Update to new hook interface.
26431         * config/arm/arm.c: Include opts.h.
26432         (arm_handle_option): Update to new hook interface.
26433         * config/arm/t-arm (arm.o): Update dependencies.
26434         * config/bfin/bfin.c: Include opts.h.
26435         (bfin_handle_option): Update to new hook interface.
26436         * config/cris/cris.c: Include opts.h.
26437         (cris_handle_option): Update to new hook interface.
26438         * config/frv/frv.c: Include opts.h.
26439         (frv_handle_option): Update to new hook interface.
26440         * config/i386/i386.c: Include opts.h.
26441         (ix86_handle_option): Update to new hook interface.
26442         (ix86_valid_target_attribute_inner_p): Generate option structure
26443         for call to ix86_handle_option.
26444         * config/i386/t-i386 (i386.o): Update dependencies.
26445         * config/ia64/ia64.c: Include opts.h.
26446         (ia64_handle_option): Update to new hook interface.
26447         * config/ia64/t-ia64 (ia64.o): Update dependencies.
26448         * config/iq2000/iq2000.c: Include opts.h.
26449         (iq2000_handle_option): Update to new hook interface.
26450         * config/m32c/m32c.c: Include opts.h.
26451         (m32c_handle_option): Update to new hook interface.
26452         * config/m32r/m32r.c: Include opts.h.
26453         (m32r_handle_option): Update to new hook interface.
26454         * config/m68k/m68k.c: Include opts.h.
26455         (m68k_handle_option): Update to new hook interface.
26456         * config/mep/mep.c: Include opts.h.
26457         (mep_handle_option): Update to new hook interface.
26458         * config/microblaze/microblaze.c: Include opts.h.
26459         (microblaze_handle_option): Update to new hook interface.
26460         * config/mips/mips.c: Include opts.h.
26461         (mips_handle_option): Update to new hook interface.
26462         * config/mn10300/mn10300.c: Include opts.h.
26463         (mn10300_handle_option): Update to new hook interface.
26464         * config/pa/pa.c: Include opts.h.
26465         (pa_handle_option): Update to new hook interface.
26466         * config/pdp11/pdp11.c: Include opts.h.
26467         (pdp11_handle_option): Update to new hook interface.
26468         * config/rs6000/rs6000.c: Include opts.h.
26469         (rs6000_handle_option): Update to new hook interface.
26470         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26471         * config/rx/rx.c: Include opts.h.
26472         (rx_handle_option): Update to new hook interface.
26473         * config/s390/s390.c: Include opts.h.
26474         (s390_handle_option): Update to new hook interface.
26475         * config/score/score.c: Include opts.h.
26476         (score_handle_option): Update to new hook interface.
26477         * config/sh/sh.c: Include opts.h.
26478         (sh_handle_option): Update to new hook interface.
26479         * config/sparc/sparc.c: Include opts.h.
26480         (sparc_handle_option): Update to new hook interface.
26481         * config/v850/v850.c: Include opts.h.
26482         (v850_handle_option): Update to new hook interface.
26483
26484 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26485
26486         * gcc.c (driver_unknown_option_callback): Only permit and save
26487         unknown -Wno- options.
26488         (driver_wrong_lang_callback): Save options directly instead of via
26489         driver_unknown_option_callback.
26490
26491 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26492
26493         * combine.c (simplify_set): Try harder to find the best CC mode when
26494         simplifying a nested COMPARE on the RHS.
26495
26496 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26497
26498         * config/alpha/gnu.h: Remove.
26499         * config/arc: Remove directory.
26500         * config/arm/netbsd.h: Remove.
26501         * config/arm/t-pe: Remove.
26502         * config/crx: Remove directory.
26503         * config/i386/netbsd.h: Remove.
26504         * config/m68hc11: Remove directory.
26505         * config/m68k/uclinux-oldabi.h: Remove.
26506         * config/mcore/mcore-pe.h: Remove.
26507         * config/mcore/t-mcore-pe: Remove.
26508         * config/netbsd-aout.h: Remove.
26509         * config/rs6000/gnu.h: Remove.
26510         * config/sh/sh-symbian.h: Remove.
26511         * config/sh/symbian-base.c: Remove.
26512         * config/sh/symbian-c.c: Remove.
26513         * config/sh/symbian-cxx.c: Remove.
26514         * config/sh/symbian-post.h: Remove.
26515         * config/sh/symbian-pre.h: Remove.
26516         * config/sh/t-symbian: Remove.
26517         * config/svr3.h: Remove.
26518         * config/vax/netbsd.h: Remove.
26519         * config.build: Don't handle i[34567]86-*-pe.
26520         * config.gcc: Remove handling of deprecations for most deprecated
26521         targets.
26522         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26523         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26524         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26525         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26526         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26527         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26528         Remove cases.
26529         * config.host: Don't handle i[34567]86-*-pe.
26530         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26531         (ASM_SPEC32): Don't handle -mcall-gnu.
26532         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26533         -mcall-gnu.
26534         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26535         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26536         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26537         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26538         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26539         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26540         conditional on SYMBIAN.
26541         * configure.ac: Don't handle powerpc*-*-gnu*.
26542         * configure: Regenerate.
26543         * doc/extend.texi (interrupt attribute): Don't mention CRX.
26544         * doc/install-old.texi (m6811, m6812): Don't mention.
26545         * doc/install.texi (arc-*-elf*): Don't document multilib option.
26546         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26547         (m68k-uclinuxoldabi): Don't mention.
26548         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26549         Remove.
26550         (-mcall-gnu): Remove.
26551         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26552         families): Remove constraint documentation.
26553
26554 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
26555
26556         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26557         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26558         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26559
26560 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26561
26562         PR target/48226
26563         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26564         vector when peeking at the next token for vector, don't expand the
26565         keywords.
26566
26567 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
26568
26569         * config/avr/avr-protos.h (expand_epilogue): Change prototype
26570         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26571         * config/avr/avr.c (init_cumulative_args)
26572         (avr_function_arg_advance): Use it.
26573         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26574         sibcall epilogues.
26575         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26576         (avr_function_ok_for_sibcall): ...this new function.
26577         (avr_lookup_function_attribute1): New static Function.
26578         (avr_naked_function_p, interrupt_function_p)
26579         (signal_function_p, avr_OS_task_function_p)
26580         (avr_OS_main_function_p): Use it.
26581         * config/avr/avr.md ("sibcall", "sibcall_value")
26582         ("sibcall_epilogue"): New expander.
26583         ("*call_insn", "*call_value_insn"): New insn.
26584         ("call_insn", "call_value_insn"): Remove
26585         ("call", "call_value", "epilogue"): Change expander to handle
26586         sibling calls.
26587
26588 2011-03-21  Nick Clifton  <nickc@redhat.com>
26589
26590         * doc/invoke.texi (Overall Options): Move closing brace to end of
26591         options list.
26592         (Optimization Options): Add missing @gol.
26593         (Directory Options): Likewise.
26594         (i386 and x86-64 Options): Likewise.
26595         (RS6000 and PowerPC Options): Likewise.
26596         (i386 and x86-64 Windows Options): Likewise.
26597         (V850 Options): Add text missing from descriptions.
26598
26599 2011-03-22  Richard Henderson  <rth@redhat.com>
26600
26601         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26602         (avr_incoming_return_addr_rtx): New.
26603         (emit_push_byte): New.
26604         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
26605         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
26606         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
26607         (emit_pop_byte): New.
26608         (expand_epilogue): Use it.  Pop frame pointer by bytes.
26609         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26610         (INCOMING_RETURN_ADDR_RTX): New.
26611         (INCOMING_FRAME_SP_OFFSET): New.
26612         (ARG_POINTER_CFA_OFFSET): New.
26613         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26614         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26615         (pophi): Remove.
26616
26617         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26618
26619 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26620
26621         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26622         (FUNCTION_ARG_ADVANCE): Likewise.
26623         * tm.texi.in: Change references to them to hook references.
26624         * tm.texi: Regenerate.
26625         * targhooks.c (default_function_arg): Eliminate check for target
26626         macro.
26627         (default_function_incoming_arg): Likewise.
26628         (default_function_arg_advance): Likewise.
26629         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26630         (function_arg_advance): Likewise.
26631         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26632
26633 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26634
26635         * tree.c (build_call_1): New function.
26636         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26637
26638 2011-03-22  Richard Guenther  <rguenther@suse.de>
26639
26640         PR tree-optimization/48228
26641         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26642         for single-arg PHIs.
26643
26644 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
26645
26646         PR rtl-optimization/48143
26647         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26648         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26649         sse2_cvtps2pd): Likewise.
26650
26651 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26652
26653         * recog.c (canonicalize_change_group): Use validate_unshare_change.
26654
26655 2011-03-22  Richard Guenther  <rguenther@suse.de>
26656
26657         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26658         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26659         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26660         and REALIGN_LOAD_EXPR.
26661         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26662         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26663         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26664         DOT_PROD_EXPR case ...
26665         (expand_expr_real_2): ... here.
26666         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26667         and REALIGN_LOAD_EXPR.
26668         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26669         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26670         (vect_create_epilog_for_reduction): Likewise.
26671         (vectorizable_reduction): Likewise.
26672         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26673         * tree-vect-stmts.c (vectorizable_load): Likewise.
26674
26675 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26676
26677         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26678
26679 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26680
26681         * config/s390/s390.c (s390_delegitimize_address): Fix offset
26682         handling for PLTOFF/GOTOFF.
26683
26684 2011-03-22  Nick Clifton  <nickc@redhat.com>
26685
26686         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26687         trailing backslash from the end of the macro definition.
26688
26689 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26690
26691         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26692         and PLT unspecs.
26693
26694 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
26695
26696         * expr.h (prepare_operand): Move to...
26697         * optabs.h (prepare_operand): ...here and change the insn code
26698         parameter from "int" to "enum insn_code".
26699         (insn_operand_matches): Declare.
26700         * expr.c (init_expr_target): Use insn_operand_matches.
26701         (compress_float_constant): Likewise.
26702         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26703         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26704         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26705         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26706         Likewise.
26707         (gen_cond_trap): Likewise.
26708         (prepare_operand): Likewise.  Change icode to an insn_code.
26709         (insn_operand_matches): New function.
26710         * reload.c (find_reloads_address_1): Use insn_operand_matches.
26711         * reload1.c (gen_reload): Likewise.
26712         * targhooks.c (default_secondary_reload): Likewise.
26713
26714 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26715
26716         * config/alpha/alpha.md (unspec): New define_c_enum.
26717         (unspecv): Ditto.
26718
26719 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26720
26721         PR debug/48214
26722         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26723         between a call and its CALL_ARG_LOCATION note.
26724
26725 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
26726
26727         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26728
26729 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26730
26731         PR c/42544
26732         PR c/48197
26733         * c-common.c (shorten_compare): If primopN is first sign-extended
26734         to opN and then zero-extended to result type, set primopN to opN.
26735
26736 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
26737
26738         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26739         for barrier handlers.
26740
26741 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26742
26743         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26744         UNSPEC constants to be in the unspec enumeration, and redefine
26745         all UNSPECV constants to be in the unspecv enumeration, so that
26746         dumps print which unspec/unspec_volatile this is.
26747         * config/rs6000/vector.md (UNSPEC_*): Ditto.
26748         * config/rs6000/paired.md (UNSPEC_*): Ditto.
26749         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26750         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26751         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26752
26753         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26754         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26755         UNSPECV_LWSYNC, since these are used as unspec_volatile.
26756         * config/rs6000/sync.md (isync, lwsync): Ditto.
26757
26758 2011-03-21  Richard Guenther  <rguenther@suse.de>
26759
26760         * params.def (lto-min-partition): Fix typo.
26761
26762 2011-03-21  Richard Guenther  <rguenther@suse.de>
26763
26764         PR c/47939
26765         * c-decl.c (grokdeclarator): Drop to the main variant only
26766         for array types.  Drop flag_gen_aux_info check.
26767
26768 2011-03-21  Richard Guenther  <rguenther@suse.de>
26769
26770         PR translation/47911
26771         * params.def (lto-partitions): Fix typo.
26772         (lto-min-partition): Fix wording.
26773
26774 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
26775
26776         * config/rs6000/t-freebsd: Remove duplication from file.
26777
26778 2011-03-21  Richard Guenther  <rguenther@suse.de>
26779
26780         PR middle-end/47661
26781         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26782
26783 2011-03-21  Richard Guenther  <rguenther@suse.de>
26784
26785         PR lto/48210
26786         * params.def (lto-partitions): Require at least 1 partition.
26787
26788 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26789
26790         * gthr-solaris.h: Remove.
26791         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26792         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26793         (LIB_SPEC): Likewise.
26794         * config/sol2.opt (threads): Remove.
26795         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26796         (sparc*-*-solaris2*): Likewise.
26797         * configure.ac (enable_threads): Enable solaris support.
26798         * configure: Regenerate.
26799         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26800         * doc/install.texi (Configuration, --enable-threads=lib): Remove
26801         solaris.
26802
26803 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26804
26805         * config.gcc: Obsolete *-*-solaris2.8*.
26806         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26807
26808 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26809
26810         PR bootstrap/48135
26811         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26812         reference.  Solaris 8 perl works.
26813
26814 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26815
26816         PR bootstrap/48135
26817         * doc/install.texi (Prerequisites): Move jar etc. up.
26818         Explain support library version requirements.
26819
26820 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26821
26822         PR bootstrap/48135
26823         * doc/install.texi (Prerequisites): Move Perl to build
26824         requirements.  Always necessary on Solaris 2 with Sun ld.
26825
26826 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26827
26828         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26829         binutils 2.21.
26830         (Specific, i?86-*-solaris2.[89]): Likewise.
26831         (Specific, i?86-*-solaris2.10): Likewise.
26832         (Specific, mips-sgi-irix6): Likewise.
26833         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26834         Update for binutils 2.21.
26835
26836 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26837
26838         * configure.ac (gcc_cv_lto_plugin): Fix typo.
26839         Allow -fuse-linker-plugin for non-default plugin linker.
26840         * configure: Regenerate.
26841
26842 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
26843
26844         PR bootstrap/48167
26845         * gengtype.c (files_rules): Added rule for cp/parser.h.
26846
26847 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26848
26849         PR target/48213
26850         * config/s390/s390.c (s390_delegitimize_address): Don't call
26851         lowpart_subreg if orig_x has BLKmode.
26852
26853 2011-03-21  Kai Tietz  <ktietz@redhat.com>
26854
26855         PR target/12171
26856         * doc/plugins.texi: Adjust documentation for plugin register_callback.
26857         * tree.h (attribute_spec): Add new member affects_type_identity.
26858         * attribs.c (empty_attribute_table): Adjust attribute_spec
26859         initializers.
26860         * config/alpha/alpha.c: Likewise.
26861         * config/arc/arc.c: Likewise.
26862         * config/arm/arm.c: Likewise.
26863         * config/avr/avr.c: Likewise.
26864         * config/bfin/bfin.c: Likewise.
26865         * config/crx/crx.c: Likewise.
26866         * config/darwin.h: Likewise.
26867         * config/h8300/h8300.c: Likewise.
26868         * config/i386/cygming.h: Likewise.
26869         * config/i386/i386.c: Likewise.
26870         * config/ia64/ia64.c: Likewise.
26871         * config/m32c/m32c.c: Likewise.
26872         * config/m32r/m32r.c: Likewise.
26873         * config/m68hc11/m68hc11.c: Likewise.
26874         * config/m68k/m68k.c: Likewise.
26875         * config/mcore/mcore.c: Likewise.
26876         * config/mep/mep.c: Likewise.
26877         * config/microblaze/microblaze.c: Likewise.
26878         * config/mips/mips.c: Likewise.
26879         * config/rs6000/rs6000.c: Likewise.
26880         * config/rx/rx.c: Likewise.
26881         * config/sh/sh.c: Likewise.
26882         * config/sol2.h: Likewise.
26883         * config/sparc/sparc.c: Likewise.
26884         * config/spu/spu.c: Likewise.
26885         * config/stormy16/stormy16.c: Likewise.
26886         * config/v850/v850.c: Likewise.
26887
26888 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26889
26890         * simplify-rtx.c (simplify_binary_operation_1): Handle
26891         (xor (and A B) C) case when B and C are both constants.
26892
26893 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
26894
26895         * tree-dfa.c (add_referenced_var): Fix typo in comment.
26896
26897 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26898
26899         PR bootstrap/48168
26900         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26901
26902 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
26903
26904         PR rtl-optimization/48156
26905         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26906         assume df and df_lr are not NULL.
26907
26908 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26909
26910         PR debug/48023
26911         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26912         between a call and its CALL_ARG_LOCATION note.
26913
26914 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26915
26916         PR debug/48178
26917         * config/sh/sh.c (find_barrier): Don't emit a constant pool
26918         between a call and its corresponding CALL_ARG_LOCATION note.
26919
26920 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
26921
26922         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26923         instead of loop. Use HARD_REGISTER_NUM_P predicate.
26924         * haifa-sched.c (setup_ref_regs): Ditto.
26925         * caller-save.c (add_used_regs_1): Ditto.
26926         * dse.c (look_for_hardregs): Ditto.
26927         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26928         * sched-rgn.c (check_live_1): Ditto.
26929
26930 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26931
26932         * c-decl.c (diagnose_mismatched_decls): Give an error for
26933         redefining a typedef with variably modified type.
26934
26935 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26936
26937         * c-decl.c (grokfield): Don't allow typedefs for structures or
26938         unions with no tag by default.
26939         * doc/extend.texi (Unnamed Fields): Update.
26940
26941 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
26942
26943         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26944         Rewrite using indirect functions.
26945         (lwp_slwpcb): Ditto.
26946         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26947         (avx_vinsertf128<mode>): Ditto.
26948
26949 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26950
26951         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26952         unspecs.
26953
26954 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26955
26956         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26957         splitting between a call and its corresponding CALL_ARG_LOCATION note.
26958
26959 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
26960
26961         PR rtl-optimization/48170
26962         * gcse.c (hoist_code): Remove bogus asserts.
26963
26964 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
26965
26966         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
26967         computation for prologue/epilogue.
26968
26969 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26970
26971         * Makefile.in (check-consistency): Remove.
26972
26973 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
26974
26975         PR debug/48176
26976         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
26977         arange_table_in_use is 0, but either text_section_used or
26978         cold_text_section_used is true.  Don't call it if
26979         !info_section_emitted.
26980
26981 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
26982
26983         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
26984         FUNCTION_VALUE_REGNO_P): Remove.
26985         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
26986         Remove.
26987         * config/avr/avr.c (avr_ret_register): Make static inline.
26988         (avr_function_value_regno_p): New function.
26989         (avr_libcall_value): Make static. Add 'func' argument.
26990         (avr_function_value): Make static. Rename 'func' argument to
26991         'fn_decl_or_type', forward it to avr_libcall_value. Call
26992         avr_ret_register function instead of RET_REGISTER macro.
26993         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26994
26995 2011-03-18  Jason Merrill  <jason@redhat.com>
26996
26997         PR c++/23372
26998         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
26999
27000 2011-03-18  Richard Guenther  <rguenther@suse.de>
27001
27002         * doc/install.texi (--enable-gold): Remove.
27003         (--with-plugin-ld): Document.
27004         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
27005
27006 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
27007
27008         PR middle-end/47790
27009         * expr.c (optimize_bitfield_assignment_op): Revamp to work
27010         again after expansion changes.
27011
27012 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
27013
27014         * combine.c (try_combine): Do simplification only call of
27015         subst() on i2 even when i1 is present. Update comments.
27016
27017 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
27018
27019         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
27020         and UNSPEC_PCREL_SYMOFF.
27021
27022 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27023
27024         * config/s390/s390.md: Use define_c_enum for the unspec constant
27025         definitions.
27026
27027 2011-03-18  Richard Henderson  <rth@redhat.com>
27028             Jakub Jelinek  <jakub@redhat.com>
27029
27030         PR bootstrap/48161
27031         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
27032         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
27033
27034 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
27035
27036         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27037         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
27038         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
27039         Change return type to bool.
27040         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27041
27042 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27043
27044         PR debug/48163
27045         * var-tracking.c (prepare_call_arguments): If CALL target
27046         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
27047         pc instead of looking it up using cselib_lookup and use
27048         Pmode for it if x has VOIDmode.
27049         * dwarf2out.c (gen_subprogram_die): If also both first and
27050         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27051
27052         PR debug/48163
27053         * function.c (assign_parms): For data.passed_pointer parms
27054         use MEM of data.entry_parm instead of data.entry_parm itself
27055         as DECL_INCOMING_RTL.
27056         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27057         also when passed and declared mode is the same, DECL_RTL
27058         is a MEM with pseudo as address and DECL_INCOMING_RTL is
27059         a MEM too.
27060
27061 2011-03-16  Jeff Law  <law@redhat.com>
27062
27063         PR rtl-optimization/37273
27064         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27065         handle them like argument loads from stack slots.  Do not double
27066         count memory for memory constants and argument loads from stack slots.
27067
27068 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27069
27070         PR debug/48160
27071         * var-tracking.c (prepare_call_arguments): Check SUBREG.
27072
27073 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27074
27075         PR target/48171
27076         * config/i386/i386.opt: Add Save to -mavx and -mfma.
27077
27078 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27079
27080         PR bootstrap/48153
27081         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27082         if dwarf_strict.
27083         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27084         Clear call_arg_locations and call_arg_loc_last always.
27085
27086         PR middle-end/48152
27087         * var-tracking.c (prepare_call_arguments): If argument needs to be
27088         passed by reference, adjust argtype and mode.
27089
27090 2011-03-17  Richard Guenther  <rguenther@suse.de>
27091
27092         PR middle-end/48134
27093         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27094         a value make sure to fold the statement.
27095
27096 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
27097
27098         PR target/43872
27099         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27100         return condition with !cfun->calls_alloca.
27101
27102 2011-03-17  Richard Guenther  <rguenther@suse.de>
27103
27104         PR bootstrap/48148
27105         * lto-cgraph.c (input_overwrite_node): Clear the abstract
27106         origin for decls in other ltrans units.
27107         (input_varpool_node): Likewise.
27108
27109 2011-03-17  Richard Guenther  <rguenther@suse.de>
27110
27111         PR middle-end/48165
27112         * tree-object-size.c (compute_object_offset): Properly return
27113         the offset operand of MEM_REFs as sizetype.
27114
27115 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27116
27117         PR rtl-optimization/48141
27118         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27119         * dse.c: Include params.h.
27120         (active_local_stores_len): New variable.
27121         (add_wild_read, dse_step1): Clear it when setting active_local_stores
27122         to NULL.
27123         (record_store, check_mem_read_rtx): Decrease it when removing
27124         from the chain.
27125         (scan_insn): Likewise.  Increase it when adding to chain, if it
27126         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27127         set active_local_stores to NULL before the addition.
27128         * Makefile.in (dse.o): Depend on $(PARAMS_H).
27129
27130         PR rtl-optimization/48141
27131         * dse.c (record_store): If no positions are needed in an insn
27132         that cannot be deleted, at least unchain it from active_local_stores.
27133
27134 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
27135
27136         PR debug/47510
27137         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27138         (lookup_type_die_strip_naming_typedef): ... here.
27139         (get_context_die): Use it.
27140         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27141         the anonymous struct named by the naming typedef.
27142
27143 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27144
27145         PR target/48154
27146         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27147         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27148
27149 2011-03-16  Jeff Law  <law@redhat.com>
27150
27151         * tree-vrp.c (identify_jump_threads): Slightly simplify type
27152         check for operands of conditional.  Allow type to be a pointer.
27153
27154 2011-03-16  Richard Guenther  <rguenther@suse.de>
27155
27156         PR tree-optimization/48149
27157         * fold-const.c (fold_binary_loc): Fold
27158         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27159
27160 2011-03-16  Richard Guenther  <rguenther@suse.de>
27161
27162         PR tree-optimization/26134
27163         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27164         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27165         (non_rewritable_mem_ref_base): Handle complex type component
27166         accesses, constrain offsets for vector and complex extracts
27167         more properly.
27168
27169 2011-03-16  Richard Guenther  <rguenther@suse.de>
27170
27171         PR tree-optimization/48146
27172         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27173         operands avoiding the need for renaming.
27174
27175 2011-03-16  Richard Guenther  <rguenther@suse.de>
27176
27177         * gimple-fold.c (maybe_fold_reference): Open-code relevant
27178         constant folding.  Move MEM_REF canonicalization first.
27179         Rely on fold_const_aggregate_ref for initializer folding.
27180         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27181
27182 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27183
27184         PR middle-end/48136
27185         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27186         arg0/arg1 or their arguments are always fold converted to matching
27187         types.
27188
27189         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
27190         to nargs.
27191
27192 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27193
27194         PR lto/46944
27195         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
27196         Handle in-tree gold.
27197         (ld_vers): Extract binutils version for gold.
27198         (gcc_cv_ld_hidden): Handle gold here.
27199         (gcc_cv_lto_plugin): Determine level of linker plugin support.
27200         * configure: Regenerate.
27201         * config.in: Regenerate.
27202         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
27203         -fuse-linker-plugin otherwise.
27204         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
27205         (LINK_COMMAND_SPEC): Use it.
27206         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
27207
27208 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27209
27210         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
27211         * calls.c: Remove debug.h include.
27212         (emit_call_1): Don't call virtual_call_token debug hook.
27213         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
27214         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
27215         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
27216         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
27217         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
27218         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
27219         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
27220         dwarf2out_virtual_call): Remove.
27221         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
27222         copy_call_info and virtual_call hooks.
27223         (dwarf2out_init): Don't initialize vcall_insn_table,
27224         debug_dcall_section and debug_vcall_section.
27225         (prune_unused_types): Don't mark nodes from dcall_table.
27226         (dwarf2out_finish): Don't output dcall or vcall tables.
27227         * final.c (final_scan_insn): Don't call direct_call or
27228         virtual_call debug hooks.
27229         * debug.h (struct gcc_debug_hooks): Remove direct_call,
27230         virtual_call_token, copy_call_info and virtual_call hooks.
27231         (debug_nothing_uid): Remove prototype.
27232         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
27233         copy_call_info and virtual_call hooks.
27234         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27235         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
27236         * debug.c (do_nothing_debug_hooks): Likewise.
27237         (debug_nothing_uid): Remove.
27238         * doc/invoke.texi (-fenable-icf-debug): Remove.
27239         * common.opt (-fenable-icf-debug): Likewise.
27240
27241         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
27242         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
27243         call's MEM.  Handle functions returning aggregate through a hidden
27244         first pointer.  For virtual calls add clobbered pc to call arguments
27245         chain.
27246         * dwarf2out.c (gen_subprogram_die): Emit
27247         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
27248         can't be emitted.
27249
27250         PR debug/45882
27251         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
27252         * rtl.h (ENTRY_VALUE_EXP): Define.
27253         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
27254         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
27255         * print-rtl.c (print_rtx): Likewise.
27256         * gengtype.c (adjust_field_rtx_def): Likewise.
27257         * var-tracking.c (vt_add_function_parameter): Adjust
27258         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
27259         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
27260         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
27261         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
27262         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
27263
27264         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
27265         Call var_location debug hook even on CALL_INSNs.
27266         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
27267         * rtl.def (ENTRY_VALUE): New.
27268         * dwarf2out.c: Include cfglayout.h.
27269         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27270         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
27271         (struct call_arg_loc_node): New type.
27272         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
27273         tail_call_site_count): New variables.
27274         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
27275         DW_TAG_GNU_call_site_parameter.
27276         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
27277         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
27278         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
27279         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
27280         and DW_AT_GNU_all_source_call_sites.
27281         (mem_loc_descriptor): Handle ENTRY_VALUE.
27282         (add_src_coords_attributes): Don't add enything if
27283         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
27284         (dwarf2out_abstract_function): Save and clear call_arg_location,
27285         call_site_count and tail_call_site_count around dwarf2out_decl call.
27286         (gen_call_site_die): New function.
27287         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
27288         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
27289         (dwarf2out_function_decl): Clear call_arg_locations,
27290         call_arg_loc_last, set call_site_count and tail_call_site_count
27291         to -1 and free block_map.
27292         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
27293         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
27294         followed by any real instructions.
27295         (dwarf2out_begin_function): Set call_site_count and
27296         tail_call_site_count to 0.
27297         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
27298         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
27299         attempt to force a DIE for it and worst case remove the attribute.
27300         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
27301         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
27302         the decl itself.
27303         * var-tracking.c: Include tm_p.h.
27304         (vt_stack_adjustments): For calls call note_register_arguments.
27305         (argument_reg_set): New variable.
27306         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
27307         ensure the VALUE is resolved.
27308         (call_arguments): New variable.
27309         (prepare_call_arguments): New function.
27310         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
27311         (struct expand_loc_callback_data): Add ignore_cur_loc field.
27312         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
27313         always use the best expression.
27314         (vt_expand_loc): Add ignore_cur_loc argument.
27315         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
27316         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
27317         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
27318         note for all calls.
27319         (vt_add_function_parameter): Use cselib_lookup_from_insn.
27320         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
27321         argument.  Don't call cselib_preserve_only_values and
27322         cselib_reset_table.
27323         (note_register_arguments): New function.
27324         (vt_initialize): Compute argument_reg_set.  Call
27325         vt_add_function_parameters before processing basic blocks instead of
27326         afterwards.  For calls call prepare_call_arguments before calling
27327         cselib_process_insn.
27328         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
27329         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
27330         (var-tracking.o): Depend on $(TM_P_H).
27331         * cfglayout.h (insn_scope): New prototype.
27332         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27333         * cfglayout.c (insn_scope): No longer static.
27334         * insn-notes.def (CALL_ARG_LOCATION): New.
27335         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27336         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27337         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27338         nothing for DECL_EXTERNAL BLOCK_VARS.
27339
27340 2011-03-16  Alan Modra  <amodra@gmail.com>
27341
27342         PR target/45844
27343         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27344         create invalid offset address for vsx splat insn.
27345         * config/rs6000/predicates.md (splat_input_operand): New.
27346         * config/rs6000/vsx.md (vsx_splat_*): Use it.
27347
27348 2011-03-15  Xinliang David Li  <davidxl@google.com>
27349
27350         PR c/47837
27351         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27352         (normalize_preds): New function.
27353         (is_use_properly_guarded): Normalize def predicates.
27354
27355 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27356
27357         PR target/46788
27358         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27359         in the output template.
27360
27361 2011-03-15  Richard Guenther  <rguenther@suse.de>
27362
27363         PR middle-end/47650
27364         * tree-pretty-print.c (dump_function_declaration): Properly
27365         dump unprototyped and varargs function types.
27366
27367 2011-03-15  Richard Guenther  <rguenther@suse.de>
27368
27369         PR tree-optimization/13954
27370         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27371         and friends.
27372
27373 2011-03-15  Richard Guenther  <rguenther@suse.de>
27374
27375         PR tree-optimization/48037
27376         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27377         selects into BIT_FIELD_REFs.
27378         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27379         vector select.
27380
27381 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
27382
27383         PR tree-optimization/48129
27384         * builtins.c (fold_builtin_snprintf): Convert to type of
27385         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27386         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27387
27388 2011-03-15  Richard Guenther  <rguenther@suse.de>
27389
27390         PR tree-optimization/41490
27391         * tree-ssa-dce.c (propagate_necessity): Handle returns without
27392         value but with VUSE.
27393         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27394         return statements.
27395         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27396         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27397         * tree-tailcall.c (find_tail_calls): Ignore returns.
27398
27399 2011-03-15  Richard Guenther  <rguenther@suse.de>
27400
27401         PR middle-end/48031
27402         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27403         or variable-indexed array accesses when in gimple form.
27404
27405 2011-03-15  Richard Guenther  <rguenther@suse.de>
27406
27407         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27408
27409 2011-03-15  Alan Modra  <amodra@gmail.com>
27410
27411         PR target/48032
27412         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27413         presume symbol_refs without a symbol_ref_decl are suitably
27414         aligned, nor other trees we may see here.  Handle anchor symbols.
27415         (legitimate_constant_pool_address_p): Comment.  Add mode param.
27416         Check cmodel=medium addresses.  Adjust all calls.
27417         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27418         creating cmodel=medium optimized access to locals.
27419         * config/rs6000/constraints.md (R): Pass QImode to
27420         legitimate_constant_pool_address_p.
27421         * config/rs6000/predicates.md (input_operand): Pass mode to
27422         legitimate_constant_pool_address_p.
27423         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27424         Update prototype.
27425
27426 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
27427
27428         PR target/48053
27429         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27430         64-bit constants being loaded into registers other than GPRs such
27431         as loading 0 into a VSX register.
27432
27433 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27434
27435         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27436
27437 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27438
27439         PR middle-end/47917
27440         * builtins.c (fold_builtin_snprintf): New function.
27441         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27442         (fold_builtin_4): Likewise.
27443
27444         PR middle-end/38878
27445         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27446         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
27447         and C - X == X also strip nops from +/-/p+ operand.
27448         When optimizing -X == C, fold C to arg0's type.
27449
27450         PR debug/47946
27451         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27452         emit it as add_AT_int instead of add_AT_unsigned.
27453
27454 2011-03-14  Tom Tromey  <tromey@redhat.com>
27455
27456         * unwind-dw2.c: Include sys/sdt.h if it exists.
27457         (_Unwind_DebugHook): Use STAP_PROBE2.
27458         * config.in, configure: Rebuild.
27459         * configure.ac: Check for sys/sdt.h.
27460
27461 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
27462
27463         * config/i386/i386.md (ROUND_FLOOR): New constant.
27464         (ROUND_CEIL): Ditto.
27465         (ROUND_TRUNC): Ditto.
27466         (ROUND_MXCSR): Ditto.
27467         (ROUND_NO_EXC): Ditto.
27468         (rint<mode>2): Use new defines instead of numerical constants.
27469         (floor<mode>2): Ditto.
27470         (ceil<mode>2): Ditto.
27471         (btrunc<mode>2): Ditto.
27472         * config/i386/i386-builtin-types.def: Define ROUND function type
27473         aliases.
27474         * config/i386/i386.c (enum ix86_builtins): Add
27475         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27476         (struct builtin_description): Add
27477         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27478         (ix86_expand_sse_round): New static function.
27479         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27480         function types.
27481         (ix86_builtin_vectorized_function): Handle
27482         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27483
27484 2011-03-14  Tom Tromey  <tromey@redhat.com>
27485
27486         * c-parser.c (c_parser_asm_string_literal): Clear
27487         warn_overlength_strings.
27488
27489 2011-03-14  Tom Tromey  <tromey@redhat.com>
27490
27491         * c-parser.c (disable_extension_diagnostics): Save
27492         warn_overlength_strings.
27493         (restore_extension_diagnostics): Restore warn_overlength_strings.
27494
27495 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27496
27497         * BASE-VER: Change to 4.7.0.
27498
27499 2011-03-14  Richard Guenther  <rguenther@suse.de>
27500
27501         PR middle-end/48098
27502         * tree.c (build_vector_from_val): Adjust assert to requirements
27503         and reality.
27504
27505 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27506
27507         PR bootstrap/48102
27508         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27509
27510 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
27511
27512         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27513         terms of target_flags_explicit. Adjust copyright year.
27514
27515         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27516         * config/rs6000/t-freebsd: New file. Add override for
27517         LIB2FUNCS_EXTRA.
27518
27519 2011-03-13  Chris Demetriou  <cgd@google.com>
27520
27521         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27522         (-fno-diagnostics-show-option): this, to reflect current default.
27523         (-Werror=): Update text about -fno-diagnostics-show-option.
27524
27525 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
27526
27527         PR target/48053
27528         * config/rs6000/predicates.md (easy_vector_constant_add_self,
27529         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27530         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27531         mode is not V2DImode or V2DFmode.
27532         (vspltis_constant): Do not handle V2DImode and V2DFmode.
27533         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27534         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27535         registers to 0.
27536         (movdi_internal64): Likewise.
27537
27538 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
27539
27540         PR tree-optimization/47127
27541         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27542         parameter.
27543         (set_cloog_options): Same.
27544         (scop_to_clast): Same.
27545         (print_clast_stmt): Do not call cloog_state_malloc and
27546         cloog_state_free.
27547         (print_generated_program): Same.
27548         (gloog): Same.
27549         * graphite-clast-to-gimple.h (cloog_state): Declared.
27550         (scop_to_clast): Adjust declaration.
27551         * graphite.c (cloog_state): Defined here.
27552         (graphite_initialize): Call cloog_state_malloc.
27553         (graphite_finalize): Call cloog_state_free.
27554
27555 2011-03-11  Jason Merrill  <jason@redhat.com>
27556
27557         * attribs.c (lookup_attribute_spec): Take const_tree.
27558         * tree.h: Adjust.
27559
27560 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
27561
27562         * config/sparc/sparc.c (sparc_option_override): Use
27563         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27564
27565 2011-03-11  Richard Guenther  <rguenther@suse.de>
27566
27567         PR tree-optimization/48067
27568         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27569         multiplication result will be only used once on the target
27570         stmt.
27571
27572 2011-03-11  Richard Guenther  <rguenther@suse.de>
27573
27574         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27575
27576 2011-03-11  Richard Guenther  <rguenther@suse.de>
27577
27578         PR lto/48073
27579         * tree.c (find_decls_types_r): Do not walk types only reachable
27580         from IDENTIFIER_NODEs.
27581
27582 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27583
27584         PR middle-end/48044
27585         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27586         all vnode->force_output nodes as needed.
27587
27588 2011-03-11  Jason Merrill  <jason@redhat.com>
27589
27590         PR c++/48069
27591         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27592         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27593
27594 2011-03-11  Martin Jambor  <mjambor@suse.cz>
27595
27596         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27597         cgraph_node.
27598
27599 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27600
27601         PR tree-optimization/48063
27602         * ipa-inline.c (cgraph_decide_inlining): Don't try to
27603         inline functions called once if !tree_can_inline_p (node->callers).
27604
27605 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
27606
27607         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27608         extra_objs.
27609         * config/score/score3.c: Delete.
27610         * config/score/score3.h: Delete.
27611         * config/score/mul-div.S: Delete.
27612         * config/score/sfp-machine.h: Add new file.
27613         * config/score/constraints.md: Add new file.
27614         * config/score/t-score-softfp: Add new file.
27615         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27616         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27617         (score7_extra_constraint): Delete.
27618         (score7_option_override): Remove unused code.
27619         * config/score/score.c: Remove score3 and score5 define and code.
27620         * config/score/score.h: Remove score3 and score5 define and code.
27621         * config/score/score.md: Remove score3 template and unusual insn.
27622         * config/score/score.opt: Remove score3 and score5 options.
27623
27624 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27625
27626         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27627         when _HPUX_SOURCE is defined.
27628         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27629
27630 2011-03-10  Jason Merrill  <jason@redhat.com>
27631
27632         PR c++/48029
27633         * stor-layout.c (layout_type): Don't set structural equality
27634         on arrays of incomplete type.
27635         * tree.c (type_hash_eq): Handle comparing them properly.
27636
27637 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27638
27639         PR debug/48043
27640         * config/s390/s390.c (s390_delegitimize_address): Make sure the
27641         result mode matches original rtl mode.
27642
27643 2011-03-10  Nick Clifton  <nickc@redhat.com>
27644
27645         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27646         (andsi3, andsi3_flags): Fix timings for three operand alternative.
27647
27648 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
27649
27650         PR rtl-optimization/47866
27651         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27652         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27653         if target wasn't scalar.
27654         * function.c (assign_stack_temp_for_type): Assert that neither
27655         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27656         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27657         macro.
27658         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27659
27660 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27661
27662         * config/s390/s390-protos.h (s390_label_align): New prototype.
27663         * config/s390/s390.c (s390_label_align): New function.
27664         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27665
27666 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
27667
27668         PR target/47755
27669         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27670         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
27671         (output_vec_const_move): Ditto.
27672
27673 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
27674
27675         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27676         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27677         * config/mips/mips.c (mips_preferred_reload_class): Make static.
27678         Change 'rclass' argument and result type to reg_class_t.
27679         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27680
27681 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
27682
27683         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27684         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27685         (TARGET_MEMORY_MOVE_COST): Define.
27686         (avr_register_move_cost, avr_memory_move_cost): New Functions.
27687
27688 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
27689
27690         PR debug/47881
27691         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27692         removed anything.
27693
27694         PR tree-optimization/48022
27695         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27696         for EQ/NE_EXPR.
27697
27698 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
27699
27700         PR debug/47991
27701         * var-tracking.c (find_use_val): Return NULL for
27702         cui->sets && cui->store_p BLKmode MEMs.
27703
27704 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
27705
27706         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27707         Remove.
27708         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27709         xstormy16_print_operand_address): Remove.
27710         * config/stormy16/stormy16.c (xstormy16_print_operand,
27711         xstormy16_print_operand_address): Make static.
27712         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27713
27714 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
27715
27716         PR target/47862
27717         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27718         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27719         before definition.
27720
27721 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
27722
27723         PR bootstrap/48000
27724         * cfgloopmanip.c (fix_bb_placements): Return immediately
27725         if FROM is BASE_LOOP's header.
27726
27727 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
27728
27729         * gimplify.c (gimplify_function_tree): Fix building calls
27730         to __builtin_return_address.
27731
27732 2011-03-07  Alan Modra  <amodra@gmail.com>
27733
27734         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27735         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27736         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27737         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27738         return_mode args.
27739         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27740         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27741         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27742         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27743         * config/rs6000/rs6000.c
27744         (rs6000_elf_end_indicate_exec_stack): Rename to..
27745         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
27746         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
27747         (rs6000_file_start): ..here.
27748         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27749         file scope variables.
27750         (call_ABI_of_interest): New function.
27751         (init_cumulative_args): Set above vars when function return value
27752         is a float, vector, or small struct.
27753         (rs6000_function_arg_advance_1): Likewise for function args.
27754         (rs6000_va_start): Set rs6000_passes_float if variable arg function
27755         references float args.
27756
27757 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
27758
27759         * doc/cfg.texi: Remove "See" before @ref.
27760         * doc/invoke.texi: Likewise.
27761
27762 2011-03-05  Jason Merrill  <jason@redhat.com>
27763
27764         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27765
27766 2011-03-05  Anthony Green  <green@moxielogic.com>
27767
27768         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27769
27770 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
27771
27772         PR rtl-optimization/47899
27773         * cfgloopmanip.c (fix_bb_placements): Fix first argument
27774         to flow_loop_nested_p when moving the loop upward.
27775
27776 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
27777
27778         PR target/47719
27779         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
27780
27781 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
27782
27783         PR tree-optimization/47967
27784         * ipa-cp.c (build_const_val): Return NULL instead of creating
27785         VIEW_CONVERT_EXPR for mismatching sizes.
27786         (ipcp_create_replace_map): Return NULL if build_const_val failed.
27787         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27788         give up on versioning.
27789
27790 2011-03-05  Alan Modra  <amodra@gmail.com>
27791
27792         PR target/47986
27793         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27794         full cmodel medium/large lo_sum + high addresses.
27795
27796 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27797
27798         * config/s390/s390.c (s390_decompose_address): Reject non-literal
27799         pool references in UNSPEC_LTREL_OFFSET.
27800
27801 2011-03-04  Jan Hubicka  <jh@suse.cz>
27802
27803         PR lto/47497
27804         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27805         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27806         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27807         Add node pointers.
27808         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27809         cgraph_add_thunk): Add node pointers.
27810         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27811         associated to right node.
27812         (input_node): Update use of cgraph_same_body_alias
27813         and cgraph_add_thunk.
27814
27815 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
27816
27817         * config/i386/i386.opt (mprefer-avx128): New flag.
27818         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27819         modes when the flag -mprefer-avx128 is on.
27820
27821 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
27822
27823         * dwarf2out.c (compare_loc_operands): Fix address handling.
27824
27825 2011-03-04  Alan Modra  <amodra@gmail.com>
27826
27827         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27828
27829 2011-03-04  Richard Guenther  <rguenther@suse.de>
27830
27831         PR middle-end/47968
27832         * expmed.c (extract_bit_field_1): Prefer vector modes that
27833         vec_extract patterns can handle.
27834
27835 2011-03-04  Richard Guenther  <rguenther@suse.de>
27836
27837         PR middle-end/47975
27838         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27839
27840 2011-03-04  Richard Henderson  <rth@redhat.com>
27841
27842         * explow.c (emit_stack_save): Remove 'after' parameter.
27843         (emit_stack_restore): Likewise.
27844         * expr.h: Update to match.
27845         * builtins.c, calls.c, stmt.c: Likewise.
27846         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27847         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27848         * function.c (expand_function_end): Insert the emit_stack_save
27849         sequence before parm_birth_insn instead of after.
27850
27851 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
27852
27853         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27854         (ssse3_pmaddubsw128): Ditto.
27855         (ssse3_pmaddubsw): Ditto.
27856
27857 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
27858
27859         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27860
27861 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
27862
27863         PR c/47963
27864         * gimplify.c (omp_add_variable): Only call omp_notice_variable
27865         on TYPE_SIZE_UNIT if it is a DECL.
27866
27867         PR debug/47283
27868         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27869         first operand is not is_gimple_mem_ref_addr, try to fold it.
27870         If the operand still isn't is_gimple_mem_ref_addr, clear
27871         MEM_EXPR on op0.
27872
27873 2011-03-03  Richard Guenther  <rguenther@suse.de>
27874
27875         PR middle-end/47283
27876         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27877         match comment.
27878         (refs_may_alias_p_1): For release branches return true if
27879         we are confused by our input.
27880
27881 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27882
27883         * config/s390/s390.c (s390_function_value): Rename to ...
27884         (s390_function_and_libcall_value): ... this.
27885         (s390_function_value): New function.
27886         (s390_libcall_value): New function.
27887         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27888         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27889         target macro definitions.
27890         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27891
27892 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
27893
27894         * config/i386/freebsd64.h (CC1_SPEC): Define.
27895         * config/i386/linux64.h (CC1_SPEC): Define.
27896         * config/i386/x86-64.h (CC1_SPEC): Don't define.
27897
27898 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
27899
27900         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27901         Remove.
27902         * config/stormy16/stormy16.c: Include reload.h.
27903         (xstormy16_memory_move_cost): New function.
27904         (TARGET_MEMORY_MOVE_COST): Define.
27905
27906 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
27907
27908         PR rtl-optimization/47925
27909         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27910         with side effects.  Remove the more-specific check for volatile asms.
27911
27912 2011-03-02  Alan Modra  <amodra@gmail.com>
27913
27914         PR target/47935
27915         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27916         toc relative addresses for valid offsets.
27917
27918 2011-03-01  Richard Guenther  <rguenther@suse.de>
27919
27920         PR tree-optimization/47890
27921         * tree-vect-loop.c (get_initial_def_for_induction): Set
27922         related stmt properly.
27923
27924 2011-03-01  Richard Guenther  <rguenther@suse.de>
27925
27926         PR lto/47924
27927         * lto-streamer.c (lto_record_common_node): Also register
27928         the canonical type.
27929
27930 2011-03-01  Richard Guenther  <rguenther@suse.de>
27931
27932         PR lto/46911
27933         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27934         Do not stream DECL_ABSTRACT_ORIGIN.
27935         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27936         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27937         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27938         Do not stream DECL_ABSTRACT_ORIGIN.
27939         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27940         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27941
27942 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
27943
27944         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27945         FUNCTION_VALUE_REGNO_P): Remove.
27946         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27947         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27948         Add 'outgoing' argument.
27949         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27950         function.
27951         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27952         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27953
27954 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
27955
27956         PR debug/28047
27957         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27958         (lookup_filename): Likewise.
27959         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27960
27961 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
27962             Jakub Jelinek  <jakub@redhat.com>
27963
27964         PR middle-end/47893
27965         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
27966         (assign_stack_local_1): Change last argument type to int.
27967         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
27968         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
27969         don't record padding space into frame_space_list nor use those areas.
27970         (assign_stack_local): Adjust caller.
27971         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
27972         of assign_stack_local, pass 0 as last argument.
27973         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
27974         callers.
27975
27976 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
27977
27978         PR debug/47283
27979         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
27980         Use target address_mode and pointer_mode hooks instead of hardcoded
27981         Pmode and ptr_mode.  Handle some simple cases of extending if
27982         POINTERS_EXTEND_UNSIGNED < 0.
27983         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
27984         Call convert_debug_memory_address.
27985         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
27986         convert_debug_memory_address.
27987
27988         PR middle-end/46790
27989         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
27990         * configure: Regenerated.
27991         * config.in: Regenerated.
27992         * varasm.c (default_function_section): Return NULL
27993         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
27994
27995 2011-02-28  Martin Jambor  <mjambor@suse.cz>
27996
27997         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
27998         the description to match the printed values.
27999
28000 2011-02-28  Richard Guenther  <rguenther@suse.de>
28001
28002         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
28003         of the copied scope tree.
28004
28005 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28006
28007         * doc/extend.texi (Function Attributes): Avoid deeply (and
28008         wrongly) nested tables.
28009
28010 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
28011
28012         PR middle-end/47903
28013         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
28014         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
28015         r isn't op0 nor op1.
28016
28017 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28018
28019         * config/avr/avr.md: Remove magic comment for emacs.
28020
28021 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28022
28023         PR target/45261
28024         * config/avr/avr.c (avr_option_override): Use error on bad options.
28025         (avr_help): New function.
28026         (TARGET_HELP): Define.
28027
28028 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
28029
28030         PR target/42240
28031         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
28032         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
28033
28034 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
28035
28036         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
28037         (ARM Options): Ditto.
28038         (i386 and x86-64 Options): Ditto.
28039         (RX Options): Ditto.
28040         (SPARC Options): Ditto.
28041
28042 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
28043
28044         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
28045         FreeBSD 6 and later.  Generally use cpu generic.
28046
28047 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
28048
28049         * doc/cpp.texi: Update copyright years.
28050
28051 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28052
28053         PR target/46898
28054         * config/lm32/lm32.md (ashrsi3): Added needed variable.
28055
28056 2011-02-25  Jon Beniston  <jon@beniston.com>
28057
28058         PR target/46898
28059         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28060         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28061         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28062         (lm32_block_move_inline): Add type cast to remove warning.
28063         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28064         (gen_int_relational): Move declarations to start of function.
28065
28066 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
28067
28068         PR tree-optimization/45470
28069         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28070         can throw internally only.
28071         * tree-vect-stmts.c (vectorizable_call): Likewise.
28072
28073 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
28074
28075         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28076         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28077         * config/stormy16/stormy16-protos.h
28078         (xstormy16_preferred_reload_class): Remove.
28079         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28080         static. Change 'rclass' argument and return type to reg_class_t.
28081         (TARGET_PREFERRED_RELOAD_CLASS,
28082         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28083
28084 2011-02-24  Richard Guenther  <rguenther@suse.de>
28085
28086         * lto-streamer-in.c (input_bb): Do not find referenced vars
28087         in debug statements.
28088
28089 2011-02-23  Jason Merrill  <jason@redhat.com>
28090
28091         * common.opt (fabi-version): Document v5 and v6.
28092
28093 2011-02-23  Richard Guenther  <rguenther@suse.de>
28094
28095         PR tree-optimization/47849
28096         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28097
28098 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28099
28100         * opts-common.c (decode_cmdline_option): Print empty string
28101         argument as "" in decoded->orig_option_with_args_text.
28102         * gcc.c (execute): Print empty string argument as ""
28103         in the verbose output.
28104         (do_spec_1): Keep empty string argument.
28105
28106 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
28107
28108         * config.gcc: Declare score-* and crx-* obsolete.
28109
28110 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28111
28112         PR rtl-optimization/47763
28113         * web.c (web_main): Ignore naked clobber when replacing register.
28114
28115 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
28116
28117         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28118         Remove.
28119
28120 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28121
28122         PR doc/47848
28123         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28124
28125 2011-02-22  Mike Stump  <mikestump@comcast.net>
28126
28127         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28128         assembler.
28129         * configure: Regenerate.
28130
28131 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
28132
28133         PR rtl-optimization/46002
28134         * ira-color.c (update_copy_costs): Change class intersection
28135         test to reg_class_contents[] test of 'hard_regno'.
28136
28137 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
28138
28139         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28140         than Driver option.
28141         * config/hpux11.opt (mt): Likewise.
28142         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28143         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28144         * config/vax/elf.opt (mno-asm-pic): Likewise.
28145         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28146
28147 2011-02-21  Mike Stump  <mikestump@comcast.net>
28148
28149         PR target/47822
28150         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28151         tree so we can get save the type.
28152         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28153         for CFString instead of trying to use past the end of the builtins.
28154         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28155         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28156         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28157         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28158         Rename to darwin_builtin_cfstring.
28159         (darwin_init_cfstring_builtins): Return the built type.
28160
28161 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
28162
28163         PR target/47840
28164         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28165         (_mm256_insert_epi64): Use _mm_insert_epi64.
28166
28167 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
28168
28169         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28170         * config/stormy16/stormy16-protos.h
28171         (xstormy16_mode_dependent_address_p): Remove.
28172         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28173         Make static. Change return type to bool. Change argument type to
28174         const_rtx. Remove dead code.
28175         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28176
28177 2011-02-21  Richard Guenther  <rguenther@suse.de>
28178
28179         PR lto/47820
28180         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28181         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28182         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28183         TUs context.
28184         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28185         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28186
28187 2011-02-20  Richard Guenther  <rguenther@suse.de>
28188
28189         PR lto/47822
28190         * tree.c (free_lang_data_in_decl): Clean builtins from
28191         the TU decl BLOCK_VARS.
28192
28193 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
28194
28195         PR debug/47620
28196         PR debug/47630
28197         * haifa-sched.c (fix_tick_ready): Skip tick computation
28198         for debug insns.
28199
28200 2011-02-19  Richard Guenther  <rguenther@suse.de>
28201
28202         PR lto/47647
28203         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
28204         Remove lazy BLOCK_VARS streaming.
28205         (lto_input_ts_block_tree_pointers): Likewise.
28206         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
28207
28208 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28209
28210         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
28211
28212 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28213
28214         * config/i386/biarch32.h, config/i386/mach.h,
28215         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
28216
28217 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
28218
28219         PR target/47800
28220         * config/i386/i386.md (peephole2 for shift and plus): Use
28221         operands[1] original mode in the first insn.
28222
28223 2011-02-18  Mike Stump  <mikestump@comcast.net>
28224
28225         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
28226
28227 2011-02-18  Jan Hubicka  <jh@suse.cz>
28228
28229         PR middle-end/47788
28230         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
28231         to zero when the function is not inlinable at all.
28232
28233 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28234
28235         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
28236         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28237         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
28238         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
28239         * config/pa/t-pa64: Likewise.
28240         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
28241
28242 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28243
28244         PR driver/47787
28245         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
28246
28247 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28248
28249         PR target/47792
28250         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
28251
28252 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
28253
28254         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
28255         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
28256         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
28257         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
28258         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
28259         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
28260         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
28261         m32r_load_postinc_p, m32r_store_preinc_predec_p,
28262         m32r_legitimate_address_p): New functions.
28263         * config/m32r/constraints.md (constraint "S"): Don't use
28264         STORE_PREINC_PREDEC_P.
28265         (constraint "U"): Don't use LOAD_POSTINC_P.
28266
28267 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
28268
28269         PR rtl-optimization/46178
28270         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
28271         compute ira_hard_regno_cover_class[].
28272
28273 2011-02-18  Richard Guenther  <rguenther@suse.de>
28274
28275         PR lto/47798
28276         * lto-streamer.h (lto_global_var_decls): Declare.
28277         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
28278         statics for global var processing.
28279
28280 2011-02-18  Richard Guenther  <rguenther@suse.de>
28281
28282         PR tree-optimization/47737
28283         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
28284         edge dominance check.
28285
28286 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28287
28288         PR debug/47780
28289         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
28290         avoid invalid rtx sharing.
28291
28292 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
28293
28294         * doc/cpp.texi (Obsolete Features): Add background on the
28295         origin of assertions.
28296
28297 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
28298
28299         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
28300         objc_abi == 2.
28301         * config/darwin.c (output_objc_section_asm_op): Added support for
28302         ABI v1 and v2.
28303         (is_objc_metadata): New.
28304         (darwin_objc2_section): New.
28305         (darwin_objc1_section): New.
28306         (machopic_select_section): Added support for ABI v1 and v2.
28307         (darwin_emit_objc_zeroed): New.
28308         (darwin_output_aligned_bss): Detect objc metadata and treat it
28309         appropriately.
28310         (darwin_asm_output_aligned_decl_common): Same.
28311         (darwin_asm_output_aligned_decl_local): Same.
28312         * config/darwin-sections.def: Updated for ABI v1 and v2.
28313         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
28314         compiling Objective-C code for the NeXT runtime, default to using
28315         ABI version 0 for 32-bit, and version 2 for 64-bit.
28316
28317 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28318
28319         * common.opt (optimize_fast): New Variable.
28320         * opts.c (default_options_optimization): Use opts->x_optimize_fast
28321         instead of local variable ofast.
28322
28323 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
28324
28325         * doc/invoke.texi (fobjc-abi-version): Documented.
28326         (fobjc-nilcheck): Documented.
28327         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
28328         version.
28329
28330 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28331
28332         PR driver/47390
28333         * common.opt (export-dynamic): New Driver option.
28334         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28335
28336 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28337
28338         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28339
28340 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
28341             Jan Hubicka  <jh@suse.cz>
28342
28343         PR debug/47106
28344         PR debug/47402
28345         * cfgexpand.c (account_used_vars_for_block): Remove.
28346         (estimated_stack_frame_size): Use referenced vars.
28347         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28348         that were referenced in the original function.  Test src_fn
28349         rather than cfun.  Drop redundant get_var_ann.
28350         (setup_one_parameter): Drop redundant get_var_ann.
28351         (declare_return_variable): Likewise.
28352         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28353         (copy_arguments_for_versioning): Drop redundant get_var_ann.
28354         * ipa-inline.c (compute_inline_parameters): Do not compute
28355         disregard_inline_limits here.
28356         (compute_inlinable_for_current, pass_inlinable): New.
28357         (pass_inline_parameters): Require PROP_referenced_vars.
28358         * cgraphunit.c (cgraph_process_new_functions): Don't run
28359         compute_inline_parameters explicitly unless function is in SSA form.
28360         (cgraph_analyze_function): Set .disregard_inline_limits.
28361         * tree-sra.c (convert_callers): Compute inliner parameters
28362         only for functions already in SSA form.
28363
28364 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28365
28366         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28367         -mlittle-endian-data.
28368
28369 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28370
28371         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28372         -mno-fpu, not -fpu and -no-fpu.
28373         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28374         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28375
28376 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
28377
28378         PR target/43653
28379         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28380         input reload with PLUS RTX.
28381
28382 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28383
28384         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28385         of InverseVar(MDMX).
28386
28387 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28388
28389         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28390         --m4-340.
28391
28392 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28393
28394         * config/mn10300/mn10300.opt (mno-crt0): New.
28395
28396 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28397
28398         * config/m68k/uclinux.opt (static-libc): New Driver option.
28399
28400 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28401
28402         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28403
28404 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28405
28406         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28407         %{muser-extend-enabled}.
28408
28409 2011-02-16  Richard Guenther  <rguenther@suse.de>
28410
28411         PR tree-optimization/47738
28412         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28413         the TODO from tree_predictive_commoning.
28414
28415 2011-02-15  Jeff Law  <law@redhat.com>
28416
28417         Revert
28418         2011-01-25  Jeff Law  <law@redhat.com>
28419
28420         PR rtl-optimization/37273
28421         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28422         handle them like argument loads from stack slots.  Do not double
28423         count memory for memory constants and argument loads from stack slots.
28424
28425 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28426
28427         PR target/47755
28428         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28429         mode for vector constants.  Remove code that checks for TImode.
28430
28431 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28432
28433         PR debug/47106
28434         PR debug/47402
28435         * cgraph.h (compute_inline_parameters): Return void.
28436         * ipa-inline.c (compute_inline_parameters): Adjust.
28437
28438 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28439
28440         PR debug/47106
28441         PR debug/47402
28442         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28443         rather than decl.
28444         * cfgexpand.c (estimated_stack_frame_size): Likewise.
28445         * ipa-inline.c (compute_inline_parameters): Adjust.
28446
28447 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28448
28449         PR debug/47106
28450         PR debug/47402
28451         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28452         Adjust all users.  Pass FN to...
28453         * tree-flow-inline.h (first_referenced_var): ... this.  Add
28454         fn argument.
28455         * ipa-struct-reorg.c: Adjust.
28456         * tree-dfa.c: Adjust.
28457         * tree-into-ssa.c: Adjust.
28458         * tree-sra.c: Adjust.
28459         * tree-ssa-alias.c: Adjust.
28460         * tree-ssa-live.c: Adjust.
28461         * tree-ssa.c: Adjust.
28462         * tree-ssanames.c: Adjust.
28463         * tree-tailcall.c: Adjust.
28464
28465 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28466
28467         PR debug/47106
28468         PR debug/47402
28469         * tree-flow.h (referenced_var_lookup): Add fn parameter.
28470         Adjust all callers.
28471         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28472         * tree-flow-inline.h: Adjust.
28473         * gimple-pretty-print.c: Adjust.
28474         * tree-into-ssa.c: Adjust.
28475         * tree-ssa.c: Adjust.
28476         * cfgexpand.c: Adjust.
28477
28478 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28479
28480         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28481         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28482         (EXTRA_CONSTRAINT): Delete.
28483         * config/iq2000/constraints.md: New file.
28484         * config/iq2000/iq2000.md: Include it.
28485         (define_insn ""): Delete.
28486         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28487         unsupported constraint letters from patterns.
28488         (call_value, call_value_internal1): Likewise.
28489         (call_value_multiple_internal1): Likewise.
28490
28491 2011-02-15  Nick Clifton  <nickc@redhat.com>
28492
28493         * config/mn10300/mn10300.c: Include tm-constrs.h.
28494         (struct liw_data): New data structure describing an LIW candidate
28495         instruction.
28496         (extract_bundle): Use struct liw_data.  Allow small integer
28497         operands for some instructions.
28498         (check_liw_constraints): Use struct liw_data.  Remove swapped
28499         parameter.  Add comments describing the checks.  Fix bug when
28500         assigning the source of liw1 to the source of liw2.
28501         (liw_candidate): Delete.  Code moved into extract_bundle.
28502         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
28503         before swapping.
28504         * config/mn10300/predicates.md (liw_operand): New predicate.
28505         Allows registers and small integer constants.
28506         * config/mn10300/constraints.md (O): New constraint.  Accetps
28507         integers in the range -8 to +7 inclusive.
28508         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28509         for moving a small integer into a register.  Give this alternative
28510         LIW attributes.
28511         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28512         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28513         using the J,K,L and M constraints,
28514         (liw): Remove SI mode on second operands to allow for HI and QI
28515         mode values.
28516         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
28517         instruction.
28518
28519 2011-02-15  Richard Guenther  <rguenther@suse.de>
28520
28521         PR tree-optimization/47743
28522         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28523         for a non-type-compatible VN lookup bail out.
28524
28525 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28526
28527         * config/fr30/constraints.md: New file.
28528         * config/fr30/fr30.md: Include it.
28529         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28530         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28531         (EXTRA_CONSTRAINT): Delete.
28532
28533 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28534
28535         * config/frv/constraints.md: New file.
28536         * config/frv/predicates.md: Include it.
28537         * config/frv/frv.c (reg_class_from_letter): Delete.
28538         (frv_option_override): Don't initialize it.
28539         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28540         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28541         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28542         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28543         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28544         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28545         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28546         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28547         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28548         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28549         (REG_CLASS_FROM_CONSTRAINT): Delete.
28550
28551 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
28552
28553         PR middle-end/47581
28554         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28555         if frame size is 0 in a leaf function.
28556
28557 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28558
28559         PR pch/14940
28560         * config/alpha/host-osf.c: New file.
28561         * config/alpha/x-osf: New file.
28562         * config.host (alpha*-dec-osf*): Use it.
28563
28564 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28565
28566         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28567         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28568         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28569         (rx_mode_dependent_address_p): ...this. Make static. Change argument
28570         type to const_rtx.
28571         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28572
28573 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28574
28575         * config/stormy16/constraints.md: New file.
28576         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28577         Use satisfies_constraint_Q and satisfies_constraint_R.
28578         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28579         Delete.
28580         (xstormy16_legitiamte_address_p): Declare.
28581         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28582         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28583         (EXTRA_CONSTRAINT): Delete.
28584         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28585         Un-staticize.
28586         (xstormy16_extra_constraint_p): Delete.
28587
28588 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
28589
28590         PR tree-optimization/46494
28591         * loop-unroll.c (split_edge_and_insert): Adjust comment.
28592         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28593         (pass_rtl_loop_done): Add TODO_verify_flow.
28594         * fwprop.c (pass_rtl_fwprop): Likewise.
28595         * modulo-sched.c (pass_sms): Likewise.
28596         * tree-ssa-dom.c (pass_dominator): Likewise.
28597         * tree-ssa-loop-ch.c (pass_ch): Likewise.
28598         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28599         (pass_tree_loop_done): Likewise.
28600         * tree-ssa-pre.c (execute_pre): Likewise.
28601         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28602         * tree-ssa-sink.c (pass_sink_code): Likewise.
28603         * tree-vrp.c (pass_vrp): Likewise.
28604
28605 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28606
28607         * config/v850/constraints.md: New file.
28608         * config/v850/v850.md: Include it.
28609         * config/v850/predicates.md (reg_or_0_operand): Use
28610         satisfies_constraint_G.
28611         (special_symbolref_operand): Use satisfies_constraint_K.
28612         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28613         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28614         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28615         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28616         (EXTRA_CONSTRAINT): Delete.
28617         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28618         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28619         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28620
28621 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28622
28623         PR target/47696
28624         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28625         description.
28626
28627 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28628
28629         * config/mcore/constraints.md: New file.
28630         * config/mcore/mcore.md: Include it.
28631         * config/mcore/mcore.c (reg_class_from_letter): Delete.
28632         * config/mcore/mcore.h (reg_class_from_letter): Delete.
28633         (REG_CLASS_FROM_LETTER): Delete.
28634         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28635         insn_const_int_ok_for_constraint.
28636         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28637         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28638         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28639         (EXTRA_CONSTRAINT): Delete.
28640
28641 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28642
28643         PR ada/41929
28644         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28645         (IS_SIGHANDLER): Define.
28646         (sparc64_is_sighandler): New function, split off from
28647         sparc64_fallback_frame_state.
28648         (sparc_is_sighandler): New function, split off from
28649         sparc_fallback_frame_state.
28650         (sparc64_fallback_frame_state): Merge with ...
28651         (sparc_fallback_frame_state): ... this into ...
28652         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28653         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
28654         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
28655         stack instead of hardcoded offsets.
28656
28657 2011-02-14  Andriy Gapon  <avg@freebsd.org>
28658
28659         PR target/45808
28660         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28661
28662 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28663
28664         * configure: Regenerate.
28665
28666 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
28667
28668         PR driver/45731
28669         * gcc.c (asm_options): Correct spec matching --target-help.
28670
28671 2011-02-12  Martin Jambor  <mjambor@suse.cz>
28672
28673         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28674         to gimple call error.
28675
28676 2011-02-12  Mike Stump  <mikestump@comcast.net>
28677
28678         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28679         comments in backslash regions.
28680
28681 2011-02-12  Mike Stump  <mikestump@comcast.net>
28682             Jakub Jelinek  <jakub@redhat.com>
28683             Iain Sandoe  <iains@gcc.gnu.org>
28684
28685         PR target/47324
28686         * dwarf2out.c (output_cfa_loc): When required, apply the
28687         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28688         (output_loc_sequence): Likewise.
28689         (output_loc_operands_raw): Likewise.
28690         (output_loc_sequence_raw): Likewise.
28691         (output_cfa_loc): Likewise.
28692         (output_loc_list): Suppress register number adjustment when
28693         calling output_loc_sequence()
28694         (output_die): Likewise.
28695
28696 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
28697
28698         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28699         Remove macros.
28700         * config/xtensa/xtensa.c (xtensa_register_move_cost,
28701         xtensa_memory_move_cost): New functions.
28702         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28703
28704 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
28705
28706         PR lto/47225
28707         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28708         in the current directory.
28709         * configure: Rebuilt.
28710
28711 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28712
28713         * config/darwin.c (darwin_override_options): Add a hunk missed
28714         from the commit of r168571.  Trim comment line lengths and
28715         correct indents of the preceding block.
28716
28717 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28718
28719         * gcc.c (driver_handle_option): Concatenate the argument to -F with
28720         the switch.
28721
28722 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28723
28724         * common.opt (nostartfiles): New Driver option.
28725
28726 2011-02-11  Xinliang David Li  <davidxl@google.com>
28727
28728         PR tree-optimization/47707
28729         * tree-chrec.c (convert_affine_scev): Keep type precision.
28730
28731 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
28732
28733         PR tree-optimization/47420
28734         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28735
28736 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
28737
28738         PR rtl-optimization/47614
28739         * rtl.h (check_for_inc_dec): Declare.
28740         * dse.c (check_for_inc_dec): Externalize...
28741         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28742         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28743
28744 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28745
28746         PR driver/47678
28747         * gcc.c (main): Do not compile inputs if there were errors in
28748         option handling.
28749         * opts-common.c (read_cmdline_option): Check for wrong language
28750         after other error checks.
28751
28752 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
28753
28754         * cgraph.c: Fix comment typos.
28755         * cgraph.h: Likewise.
28756         * cgraphunit.c: Likewise.
28757         * ipa-cp.c: Likewise.
28758         * ipa-inline.c: Likewise.
28759         * ipa-prop.c: Likewise.
28760         * ipa-pure-const.c: Likewise.
28761         * ipa-ref.c: Likewise.
28762         * ipa-reference.c: Likewise.
28763
28764 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28765
28766         PR debug/47684
28767         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28768
28769 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28770
28771         PR testsuite/47400
28772         * doc/sourcebuild.texi (Require Support): Document
28773         dg-require-ascii-locale.
28774
28775 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
28776
28777         * doc/lto.texi (Write summary): Fix missing parentheses.
28778
28779 2011-02-10  DJ Delorie  <dj@redhat.com>
28780
28781         * config/m32c/m32c.c (m32c_option_override): Disable
28782         -fcombine-stack-adjustments until flag value tracking and compare
28783         optimization can be rewritten.
28784
28785 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
28786
28787         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28788         PROCESSOR_POWER7.
28789         (PROCESSOR_DEFAULT64): Likewise.
28790
28791 2011-02-10  Richard Henderson  <rth@redhat.com>
28792
28793         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28794         change from 2011-02-03.
28795         * config/rx/rx.c (flags_from_code): Likewise.
28796         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28797         is valid, n/pz otherwise.
28798         (rx_select_cc_mode): Return CCmode if Y is not zero.
28799
28800 2011-02-10  Richard Guenther  <rguenther@suse.de>
28801
28802         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28803
28804 2011-02-10  Richard Guenther  <rguenther@suse.de>
28805
28806         PR tree-optimization/47677
28807         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28808
28809 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
28810
28811         PR target/47665
28812         * combine.c (make_compound_operation): Only change shifts into
28813         multiplication for SCALAR_INT_MODE_P.
28814
28815 2011-02-10  Jie Zhang  <jie@codesourcery.com>
28816
28817         PR testsuite/47622
28818         Revert
28819         2011-02-05  Jie Zhang  <jie@codesourcery.com>
28820         PR debug/42631
28821         * web.c (entry_register): Don't clobber the number of the
28822         first uninitialized reference in used[].
28823
28824 2011-02-09  Richard Guenther  <rguenther@suse.de>
28825
28826         PR tree-optimization/47664
28827         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28828         all edges again.
28829
28830 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
28831
28832         PR target/46481
28833         PR target/47032
28834         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28835         PROCESSOR_POWER7.
28836         (PROCESSOR_DEFAULT64): Same.
28837         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28838
28839 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28840
28841         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28842
28843 2011-02-09  Martin Jambor  <mjambor@suse.cz>
28844
28845         PR middle-end/45505
28846         * tree-sra.c (struct access): New flags grp_scalar_read and
28847         grp_scalar_write.  Changed description of assignment read and write
28848         flags.
28849         (dump_access): Dump new flags, reorder all of them.
28850         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28851         to detect multiple scalar reads.
28852         (analyze_access_subtree): Use the new scalar read write flags instead
28853         of the old flags.  Adjusted comments.
28854
28855 2011-02-08  DJ Delorie  <dj@redhat.com>
28856
28857         PR target/47548
28858         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28859         patterns.
28860
28861 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28862
28863         * config/m68k/uclinux.opt: New.
28864         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28865
28866 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28867
28868         * config/cris/elf.opt (sim): New Driver option.
28869
28870 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28871
28872         * config/xtensa/elf.opt: New.
28873         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28874
28875 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28876
28877         * config/vax/elf.opt: New.
28878         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28879
28880 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28881
28882         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28883
28884 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28885
28886         * config/gnu-user.opt: New.
28887         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28888         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28889         *-*-uclinux*): Use gnu-user.opt.
28890
28891 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
28892
28893         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28894         * config/i386/gnu.h (CPP_SPEC): Likewise.
28895
28896 2011-02-08  Ian Lance Taylor  <iant@google.com>
28897
28898         * common.opt (fcx-limited-range): Add SetByCombined flag.
28899         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28900         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28901         (fassociative-math, freciprocal-math): Likewise.
28902         (funsafe-math-optimizations): Likewise.
28903         * opth-gen.awk: Handle SetByCombined.
28904         * optc-gen.awk: Likewise.
28905         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28906         (set_unsafe_math_optimizations_flags): Likewise.
28907         * doc/options.texi (Option properties): Document SetByCombined.
28908
28909 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28910
28911         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28912         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28913         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28914         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28915         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28916
28917 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
28918
28919         PR tree-optimization/46834
28920         PR tree-optimization/46994
28921         PR tree-optimization/46995
28922         * graphite-sese-to-poly.c (used_outside_reduction): New.
28923         (detect_commutative_reduction): Call used_outside_reduction.
28924         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28925         translate_scalar_reduction_to_array only when at least one
28926         loop-phi/close-phi tuple has been detected.
28927
28928 2011-02-08  Richard Guenther  <rguenther@suse.de>
28929
28930         PR middle-end/47639
28931         * tree-vect-generic.c (expand_vector_operations_1): Update
28932         stmts here ...
28933         (expand_vector_operations): ... not here.  Cleanup EH info
28934         and the CFG if required.
28935
28936 2011-02-08  Richard Guenther  <rguenther@suse.de>
28937
28938         PR tree-optimization/47641
28939         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28940         require type compatibility.
28941
28942 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28943
28944         * gimple-low.c (lower_function_body): Don't remove the location of
28945         the return statement here.
28946         (lower_gimple_return): Do it here instead but only if the return
28947         statement is actually used twice.
28948
28949 2011-02-08  Richard Guenther  <rguenther@suse.de>
28950
28951         PR tree-optimization/47632
28952         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28953         unused up_to_stmt parameter, return whether cfg-cleanup is
28954         necessary, remove EH info properly.
28955         (forward_propagate_into_gimple_cond): Adjust caller.
28956         (forward_propagate_into_cond): Likewise.
28957         (forward_propagate_comparison): Likewise.
28958         (tree_ssa_forward_propagate_single_use_vars): Make
28959         forward_propagate_comparison case similar to the two others.
28960
28961 2011-02-08  Nick Clifton  <nickc@redhat.com>
28962
28963         * config/mn10300/mn10300.opt (mliw): New command line option.
28964         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
28965         (liw_bundling): New automaton.
28966         (liw): New attribute.
28967         (liw_op): New attribute.
28968         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
28969         (movsi_internal): Add LIW attributes.
28970         (andsi3): Likewise.
28971         (iorsi3): Likewise.
28972         (xorsi3): Likewise.
28973         (addsi3): Separate register and immediate alternatives.
28974         Add LIW attributes.
28975         (subsi3): Likewise.
28976         (cmpsi): Likewise.
28977         (aslsi3): Likewise.
28978         (lshrsi3): Likewise.
28979         (ashrsi3): Likewise.
28980         (liw): New pattern.
28981         * config/mn10300/mn10300.c (liw_op_names): New
28982         (mn10300_print_operand): Handle 'W' operand descriptor.
28983         (extract_bundle): New function.
28984         (check_liw_constraints): New function.
28985         (liw_candidate): New function.
28986         (mn10300_bundle_liw): New function.
28987         (mn10300_reorg): New function.
28988         (TARGET_MACHINE_DEPENDENT_REORG): Define.
28989         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
28990         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
28991         __LIW__ or __NO_LIW__.
28992         * doc/invoke.texi: Describe the -mliw command line option.
28993
28994 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28995
28996         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
28997         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28998         pthread_mutex_unlock): Remove.
28999         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
29000         * config/pa/t-pa64: Likewise.
29001         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
29002         shared libc if not linking against libpthread.
29003         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29004
29005 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
29006
29007         PR target/47558
29008         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
29009         on 10.6 and later to ensure that we always use the unwinder from
29010         the system.  Only add -no_compact_unwind when tarteting darwin
29011         10.6 or later.
29012
29013 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
29014
29015         PR target/46997
29016         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
29017         (vec_interleave_lowv2sf): Ditto.
29018         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
29019         (vec_extract_oddv2sf): Ditto.
29020
29021 2011-02-07  Mike Stump  <mikestump@comcast.net>
29022
29023         PR target/42333
29024         Add __ieee_divdc3 entry point.
29025         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
29026         entry point.
29027         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
29028         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
29029         * config/darwin.c (darwin_rename_builtins): Add.
29030         * config/darwin-protos.h (darwin_rename_builtins): Add.
29031
29032 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
29033
29034         PR target/47636
29035         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
29036         for the condition.
29037
29038 2011-02-07  Mike Stump  <mikestump@comcast.net>
29039
29040         * config/darwin.opt (mmacosx-version-min): Update default OS version.
29041
29042 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
29043
29044         PR target/47534
29045         * config/avr/libgcc.S (exit): Move .endfunc
29046
29047 2011-02-07  Richard Guenther  <rguenther@suse.de>
29048
29049         PR tree-optimization/47615
29050         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29051         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29052         (run_scc_vn): Initialize it.
29053         (visit_reference_op_load): Use it.
29054         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29055
29056 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29057
29058         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29059         DImode trapping arithmetic libfuncs.
29060
29061 2011-02-07  Richard Guenther  <rguenther@suse.de>
29062
29063         PR tree-optimization/47621
29064         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29065         two duplicates ...
29066         (execute_update_addresses_taken): ... here.  Make it more
29067         conservative in what we accept.
29068
29069 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29070
29071         * config/sparc/freebsd.h (ASM_SPEC): Define.
29072         * config/sparc/vxworks.h (ASM_SPEC): Define.
29073
29074 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29075
29076         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29077
29078 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
29079
29080         * doc/invoke.texi: Remove reference to compiler internals from
29081         user documentation.
29082
29083         * reg-notes.def: Remove REG_VALUE_PROFILE.
29084         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29085
29086 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
29087
29088         PR middle-end/47610
29089         * varasm.c (default_section_type_flags): If decl is NULL,
29090         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29091
29092 2011-02-05  Jie Zhang  <jie@codesourcery.com>
29093
29094         PR debug/42631
29095         * web.c (entry_register): Don't clobber the number of the
29096         first uninitialized reference in used[].
29097
29098 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
29099
29100         PR tree-optimization/46194
29101         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29102         (build_classic_dist_vector_1): Do not represent classic distance
29103         vectors when the access functions are variating in different loops.
29104
29105 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29106
29107         * config/mips/iris6.opt: New.
29108         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29109
29110 2011-02-04  Richard Henderson  <rth@redhat.com>
29111             Steve Ellcey  <sje@cup.hp.com>
29112
29113         PR target/46997
29114         * config/ia64/predicates.md (mux1_brcst_element): New.
29115         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29116         * config/ia64/ia64.c (ia64_unpack_assemble): New.
29117         (ia64_unpack_sign): New.
29118         (ia64_expand_unpack): Rewrite using new routines.
29119         (ia64_expand_widen_sum): Ditto.
29120         (ia64_expand_dot_prod_v8qi): Ditto.
29121         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29122         routines, add endian check.
29123         (pmpy2_even): Rename from pmpy2_r, add endian check.
29124         (pmpy2_odd): Rename from pmpy2_l, add endian check.
29125         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29126         (vec_widen_smult_hi_v4hi): Ditto.
29127         (vec_widen_umult_lo_v4hi): Ditto.
29128         (vec_widen_umult_hi_v4hi): Ditto.
29129         (mulv2si3): Change endian checks.
29130         (sdot_prodv4hi): Rewrite with new calls.
29131         (udot_prodv4hi): New.
29132         (vec_pack_ssat_v4hi): Add endian check.
29133         (vec_pack_usat_v4hi): Ditto.
29134         (vec_pack_ssat_v2si): Ditto.
29135         (max1_even): Rename from max1_r, add endian check.
29136         (max1_odd): Rename from max1_l, add endian check.
29137         (*mux1_rev): Format change.
29138         (*mux1_mix): Ditto.
29139         (*mux1_shuf): Ditto.
29140         (*mux1_alt): Ditto.
29141         (*mux1_brcst_v8qi): Use new predicate.
29142         (vec_extract_evenv8qi): Remove endian check.
29143         (vec_extract_oddv8qi): Ditto.
29144         (vec_interleave_lowv4hi): Format change.
29145         (vec_interleave_highv4hi): Ditto.
29146         (mix2_even): Rename from mix2_r, add endian check.
29147         (mix2_odd): Rename from mux2_l, add endian check.
29148         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29149         (vec_extract_evenodd_helper): Format change.
29150         (vec_extract_evenv4hi): Remove endian check.
29151         (vec_extract_oddv4hi): Remove endian check.
29152         (vec_interleave_lowv2si): Format change.
29153         (vec_interleave_highv2si): Format change.
29154         (vec_initv2si): Remove endian check.
29155         (vecinit_v2si): Add endian check.
29156         (reduc_splus_v2sf): Add endian check.
29157         (reduc_smax_v2sf): Ditto.
29158         (reduc_smin_v2sf): Ditto.
29159         (vec_initv2sf): Remove endian check.
29160         (fpack): Add endian check.
29161         (fswap): Add endian check.
29162         (vec_interleave_highv2sf): Add endian check.
29163         (vec_interleave_lowv2sf): Add endian check.
29164         (fmix_lr): Add endian check.
29165         (vec_setv2sf): Format change.
29166         (*vec_extractv2sf_0_be): Use shift to extract operand.
29167         (*vec_extractv2sf_1_be): New.
29168         (vec_pack_trunc_v4hi): Add endian check.
29169         (vec_pack_trunc_v2si): Format change.
29170
29171 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
29172
29173         PR inline-asm/23200
29174         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
29175         do bb, locus and block comparison and disallow loads if it is not set.
29176         (stmt_is_replaceable_p): New function.
29177         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29178         callers.
29179         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29180         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29181         SSA_NAME_DEF_STMT.
29182         * tree-flow.h (stmt_is_replaceable_p): New prototype.
29183
29184 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29185
29186         * config/rs6000/xilinx.opt: New.
29187         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
29188
29189 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29190
29191         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
29192
29193 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
29194
29195         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
29196         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29197         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
29198         secondary_reload_info, xtensa_secondary_reload): Remove.
29199         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
29200         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29201         (xtensa_preferred_reload_class): Make static. Change return and
29202         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
29203         Use CONST_DOUBLE_P predicate.
29204         (xtensa_preferred_output_reload_class): New function.
29205         (xtensa_secondary_reload): Make static.
29206
29207 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
29208
29209         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
29210         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
29211         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
29212
29213 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29214
29215         PR middle-end/31490
29216         * output.h (SECTION_RELRO): Define.
29217         (SECTION_MACH_DEP): Adjust.
29218         (get_variable_section): New prototype.
29219         * varpool.c (varpool_finalize_named_section_flags): New function.
29220         (varpool_assemble_pending_decls): Call it.
29221         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
29222         * cgraphunit.c (cgraph_output_in_order): Call
29223         varpool_finalize_named_section_flags.
29224         * varasm.c (get_section): Allow section flags conflicts between
29225         relro and read-only sections if the section hasn't been declared yet.
29226         Set SECTION_OVERRIDE after diagnosing section type conflict.
29227         (get_variable_section): No longer static.
29228         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
29229         readonly sections that need relocations.
29230         (decl_readonly_section_1): New function.
29231         (decl_readonly_section): Use it.
29232
29233         Revert:
29234         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
29235                     Steve Ellcey  <sje@cup.hp.com>
29236
29237         PR middle-end/31490
29238         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
29239         if section attribute used.
29240
29241 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29242
29243         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
29244         * config/darwin.c (SECTION_NO_ANCHOR): Define.
29245         (darwin_init_sections): Remove assertion.
29246
29247 2011-02-03  Nick Clifton  <nickc@redhat.com>
29248
29249         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
29250         lt and ge.
29251         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
29252         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
29253         instead of "n" and "pz".
29254         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
29255         CC_FLAG_S.
29256
29257 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29258
29259         PR target/47312
29260         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
29261         fma, expand FMA_EXPR as fma{,f,l} call.
29262
29263         PR lto/47274
29264         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
29265         copy them into a unsigned char variable and pass address of it to
29266         lto_output_data_stream.
29267
29268         PR target/47564
29269         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
29270         around backend_init_target and lang_dependent_init_target calls.
29271         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
29272         (verify_cgraph_node): Don't call set_cfun here.  Use
29273         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
29274         Set error_found for incorrectly represented calls to thunks.
29275
29276 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29277
29278         PR debug/43092
29279         PR rtl-optimization/43494
29280         * rtl.h (for_each_inc_dec_fn): New type.
29281         (for_each_inc_dec): Declare.
29282         * rtlanal.c (struct for_each_inc_dec_ops): New type.
29283         (for_each_inc_dec_find_inc_dec): New fn.
29284         (for_each_inc_dec_find_mem): New fn.
29285         (for_each_inc_dec): New fn.
29286         * dse.c (struct insn_size): Remove.
29287         (replace_inc_dec, replace_inc_dec_mem): Remove.
29288         (emit_inc_dec_insn_before): New fn.
29289         (check_for_inc_dec): Use it, along with for_each_inc_dec.
29290         (canon_address): Pass mem modes to cselib_lookup.
29291         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
29292         (cselib_lookup_from_insn): Likewise.
29293         (cselib_subst_to_values): Likewise.
29294         * cselib.c (find_slot_memmode): New var.
29295         (cselib_find_slot): New fn.  Use it instead of
29296         htab_find_slot_with_hash everywhere.
29297         (entry_and_rtx_equal_p): Use find_slot_memmode.
29298         (autoinc_split): New fn.
29299         (rtx_equal_for_cselib_p): Rename and implement in terms of...
29300         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
29301         Deal with autoinc.  Special-case recursion into MEMs.
29302         (cselib_hash_rtx): Likewise.
29303         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
29304         address and MEM modes.
29305         (cselib_subst_to_values): Add memmode, pass it on.
29306         Deal with autoinc.
29307         (cselib_lookup): Add memmode argument, pass it on.
29308         (cselib_lookup_from_insn): Add memmode.
29309         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
29310         (struct cselib_record_autoinc_data): New.
29311         (cselib_record_autoinc_cb): New fn.
29312         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
29313         mode to cselib_lookup.  Reset autoinced REGs here instead of...
29314         (cselib_process_insn): ... here.
29315         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
29316         to cselib_lookup.
29317         (add_uses): Likewise, also to cselib_subst_to_values.
29318         (add_stores): Likewise.
29319         * sched-deps.c (add_insn_mem_dependence): Pass mode to
29320         cselib_subst_to_values.
29321         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
29322         * gcse.c (do_local_cprop): Adjusted.
29323         * postreload.c (reload_cse_simplify_set): Adjusted.
29324         (reload_cse_simplify_operands): Adjusted.
29325         * sel-sched-dump (debug_mem_addr_value): Pass mode.
29326
29327 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29328
29329         PR tree-optimization/45122
29330         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29331         unsafe assumptions when there's more than one loop exit.
29332
29333 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29334
29335         PR target/47272
29336         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29337         Document using vector double with the load/store builtins, and
29338         that the load/store builtins always use Altivec instructions.
29339
29340         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29341         to use altivec memory instructions, even on VSX.
29342         (vector_altivec_store_<mode>): Ditto.
29343
29344         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29345         function.
29346
29347         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29348         V2DF, V2DI support to load/store overloaded builtins.
29349
29350         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29351         altivec load/store builtins for V2DF/V2DI types.
29352
29353         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29354         set avoid indexed addresses on power6 if -maltivec.
29355         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29356         vector_altivec_load/vector_altivec_store builtins.
29357         (altivec_expand_st_builtin): Ditto.
29358         (altivec_expand_builtin): Add VSX memory builtins.
29359         (rs6000_init_builtins): Add V2DI types to internal types.
29360         (altivec_init_builtins): Add support for V2DF/V2DI altivec
29361         load/store builtins.
29362         (rs6000_address_for_altivec): Insure memory address is appropriate
29363         for Altivec.
29364
29365         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29366         vec_vsx_ld and vec_vsx_st.
29367         (vsx_store_<mode>): Ditto.
29368
29369         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29370         variables to hold long long types for VSX vector memory builtins.
29371         (RS6000_BTI_unsigned_long_long): Ditto.
29372         (long_long_integer_type_internal_node): Ditti.
29373         (long_long_unsigned_type_internal_node): Ditti.
29374
29375         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29376         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29377         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29378
29379         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29380         short cuts.
29381         (vec_vsx_st): Ditto.
29382
29383 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29384
29385         * config/pa/pa-hpux10.opt: New.
29386         * config/hpux11.opt (pthread): New Driver option.
29387         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29388         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29389
29390 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29391
29392         * config/ia64/vms.opt: New.
29393         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29394
29395 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29396
29397         PR target/47580
29398         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29399         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29400         generator functions.
29401         (vsx_floatuns<VSi><mode>2): Ditto.
29402         (vsx_fix_trunc<mode><VSi>2): Ditto.
29403         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29404
29405 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29406
29407         * config/i386/djgpp.opt (posix): New Driver option.
29408
29409 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
29410
29411         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29412         Move to the unsupported targets list.
29413
29414 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
29415
29416         PR rtl-optimization/47525
29417         * df-scan.c: Update copyright years.
29418         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29419         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29420
29421 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29422
29423         * config/i386/sysv4.h (TARGET_VERSION): Remove.
29424         (SUBTARGET_RETURN_IN_MEMORY): Remove.
29425         (ASM_OUTPUT_ASCII): Remove.
29426         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29427
29428 2011-02-02  Jeff Law  <law@redhat.com>
29429
29430         PR middle-end/47543
29431         * reload.c (find_reloads_address): Handle reg+d address where both
29432         components are invalid by reloading the entire address.
29433
29434 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29435             Richard Guenther  <rguenther@suse.de>
29436
29437         PR tree-optimization/40979
29438         PR bootstrap/47044
29439         * passes.c (init_optimization_passes): After LIM call copy_prop
29440         and DCE to clean up.
29441         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29442
29443 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29444
29445         PR tree-optimization/47576
29446         PR tree-optimization/47555
29447         * doc/invoke.texi (scev-max-expr-complexity): Documented.
29448         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29449         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29450         * tree-scalar-evolution.c (follow_ssa_edge): Use
29451         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29452
29453 2011-02-02  Richard Guenther  <rguenther@suse.de>
29454
29455         PR tree-optimization/47566
29456         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29457
29458 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29459
29460         PR debug/47106
29461         PR debug/47402
29462         * tree-inline.c (declare_return_variable): Remove unused caller
29463         variable.
29464
29465         PR debug/47106
29466         PR debug/47402
29467         * tree-flow-inline.h (clear_is_used, is_used_p): New.
29468         * cfgexpand.c (account_used_vars_for_block): Use them.
29469         * tree-nrv.c (tree_nrv): Likewise.
29470         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29471         (dump_scope_block): Likewise.
29472         (remove_unused_locals): Likewise.
29473
29474         PR debug/47106
29475         PR debug/47402
29476         * tree-inline.c (declare_return_variable): Add result decl to
29477         local decls only once.
29478         * gimple-low.c (record_vars_into): Mark newly-created variables
29479         as referenced.
29480
29481 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29482
29483         PR debug/47498
29484         PR debug/47501
29485         PR debug/45136
29486         PR debug/45130
29487         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29488         debug insns.
29489         (no_real_insns_p, schedule_block, set_priorities): Drop special
29490         treatment of boundary debug insns.
29491         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29492         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29493         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29494         (BOUNDARY_DEBUG_INSN_P): Likewise.
29495         (SCHEDULE_DEBUG_INSN_P): Likewise.
29496         * sched-rgn.c (init_ready_list): Drop special treatment of
29497         boundary debug insns.
29498         * final.c (rest_of_clean_state): Clear notes' BB.
29499
29500 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29501
29502         * config/openbsd.opt (assert=): New Driver option.
29503
29504 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29505
29506         * config/i386/nto.opt: New.
29507         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29508
29509 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29510
29511         * config/i386/netware.opt: New.
29512         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29513
29514 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29515
29516         * config/interix.opt (posix): New Driver option.
29517
29518 2011-02-01  DJ Delorie  <dj@redhat.com>
29519
29520         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29521
29522         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29523         class for A0/A1.
29524
29525 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
29526
29527         PR tree-optimization/47561
29528         * toplev.c (process_options): Print the Graphite flags.  Add
29529         flag_loop_flatten to the list of options requiring Graphite.
29530
29531 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29532
29533         * config/i386/cygming.opt (posix): New Driver option.
29534
29535 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29536
29537         * config/arm/vxworks.opt: New.
29538         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29539
29540 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29541
29542         * config/alpha/elf.opt: New.
29543         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29544         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29545
29546 2011-02-01  Richard Guenther  <rguenther@suse.de>
29547
29548         PR tree-optimization/47559
29549         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29550         store-motion on references that can throw.
29551
29552 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
29553
29554         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29555         * tree-pass.h (TDF_CSELIB): New macro.
29556         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29557         cselib_lookup): Check for it rather than for TDF_DETAILS.
29558
29559 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
29560
29561         PR driver/47547
29562         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29563         is HOST_BIT_BUCKET.
29564
29565         * opts.c (finish_options): Don't add x_aux_base_name if it is
29566         HOST_BIT_BUCKET.
29567
29568 2011-02-01  Richard Guenther  <rguenther@suse.de>
29569
29570         PR tree-optimization/47555
29571         Revert
29572         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
29573
29574         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29575
29576 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
29577
29578         PR gcc/46692
29579         * config/lm32/t-lm32: Add multilib for all CPU options.
29580
29581 2011-02-01  Richard Guenther  <rguenther@suse.de>
29582
29583         PR tree-optimization/47541
29584         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29585         sure to have a field at offset zero.
29586
29587 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29588
29589         * config/arc/arc.opt (EB, EL): New Driver options.
29590
29591 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29592
29593         * config/alpha/osf5.opt: New.
29594         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29595
29596 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29597
29598         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29599
29600 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
29601
29602         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29603         -floop-interchange.
29604         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29605         is an alias of -floop-interchange and that it requires the
29606         Graphite infrastructure.
29607         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29608         flag_loop_interchange based on the value of flag_tree_loop_linear.
29609
29610 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
29611             Richard Guenther  <rguenther@suse.de>
29612
29613         PR tree-optimization/47538
29614         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29615         type instead of r1type, except for comparisons.  For right
29616         shifts and comparisons punt if there are mismatches in
29617         sizetype vs. non-sizetype types.
29618
29619 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29620
29621         * doc/sourcebuild.texi (Effective-Target Keywords): Document
29622         avx_runtime.
29623
29624 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29625
29626         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29627         version number.
29628         * configure: Regenerate.
29629
29630 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29631
29632         * configure.ac (gcc_cv_ld_static_option): Define.
29633         (gcc_cv_ld_dynamic_option): Define.
29634         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29635         instead.
29636         (HAVE_LD_STATIC_DYNAMIC): Update message.
29637         (LD_STATIC_OPTION): Define.
29638         (LD_DYNAMIC_OPTION): Define.
29639         * configure: Regenerate.
29640         * config.in: Regenerate.
29641         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29642         HAVE_LD_STATIC_DYNAMIC]: Use them.
29643
29644 2011-01-31  Nick Clifton  <nickc@redhat.com>
29645
29646         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29647         registers inside interrupt handlers if the handler is not a leaf
29648         function.
29649
29650 2011-01-31  Nick Clifton  <nickc@redhat.com>
29651
29652         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29653         reg_renumber returning an INVALID_REGNUM.
29654
29655 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29656
29657         PR libgcj/44341
29658         * doc/install.texi: Document host options discarded when cross
29659         configuring target libraries.
29660
29661 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29662
29663         Reverted:
29664         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29665         PR debug/45136
29666         PR debug/45130
29667         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29668         debug insns.
29669         (no_real_insns_p, schedule_block, set_priorities): Drop special
29670         treatment of boundary debug insns.
29671         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29672         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29673         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29674         (BOUNDARY_DEBUG_INSN_P): Likewise.
29675         (SCHEDULE_DEBUG_INSN_P): Likewise.
29676         * sched-rgn.c (init_ready_list): Drop special treatment of
29677         boundary debug insns.
29678         * final.c (rest_of_clean-state): Clear notes' BB.
29679
29680 2011-01-31  Alan Modra  <amodra@gmail.com>
29681
29682         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29683         toc relative expressions as we do in print_operand_address.
29684
29685 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
29686
29687         * doc/extend.texi: Follow spelling conventions.
29688         * doc/invoke.texi: Fix a typo.
29689
29690 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
29691
29692         * config/hpux11.opt: New.
29693         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29694         ia64*-*-hpux*): Use hpux11.opt.
29695
29696 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
29697
29698         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29699         to tmake_file.
29700
29701 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29702
29703         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29704         support sites.
29705
29706 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29707
29708         * doc/install.texi (Binaries): Remove outdated reference for
29709         Motorola 68HC11/68HC12 downloads.
29710
29711 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29712
29713         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29714         Drepper's paper.
29715
29716 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
29717
29718         PR bootstrap/47147
29719         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29720         used by NetBSD.
29721
29722 2011-01-28  Ahmad Sharif  <asharif@google.com>
29723
29724         * value-prof.c (check_counter): Corrected error message.
29725
29726 2011-01-29  Jie Zhang  <jie@codesourcery.com>
29727
29728         * config/arm/arm.c (arm_legitimize_reload_address): New.
29729         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29730         arm_legitimize_reload_address.
29731         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29732
29733 2011-01-28  Ian Lance Taylor  <iant@google.com>
29734
29735         * godump.c (go_define): Ignore macros whose definitions include
29736         two adjacent operands.
29737
29738 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
29739
29740         PR target/42894
29741         * varasm.c (force_const_mem): Store copy of x in desc->constant
29742         instead of x itself.
29743         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29744         itself into REG_EQUAL note.
29745
29746 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
29747
29748         * config/freebsd.opt (posix, rdynamic): New Driver options.
29749
29750 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29751
29752         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29753         -Bstatic/-Bdynamic.
29754         * configure: Regenerate.
29755
29756 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
29757
29758         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29759         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29760
29761 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
29762
29763         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29764         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29765         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29766         (s390_preferred_reload_class): Make static. Change return and
29767         'rclass' argument type to reg_class_t.
29768
29769 2011-01-27  Jan Hubicka  <jh@suse.cz>
29770
29771         PR middle-end/46949
29772         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29773         (process_function_and_variable_attributes): Check defined weakrefs.
29774
29775 2011-01-27  Martin Jambor  <mjambor@suse.cz>
29776
29777         PR tree-optimization/47228
29778         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29779         build_ref_for_offset.
29780
29781 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29782
29783         * config/spu/spu-elf.h (ASM_SPEC): Remove.
29784
29785 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
29786
29787         PR rtl-optimization/46856
29788         * postreload.c (reload_combine_recognize_const_pattern): Do not
29789         separate cc0 setter and user on cc0 targets.
29790
29791 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
29792
29793         PR c/43082
29794         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29795         passed a VOID_TYPE expression, immediately emit an error and
29796         return error_mark_node.
29797
29798 2011-01-26  Jeff Law  <law@redhat.com>
29799
29800         PR rtl-optimization/47464
29801         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29802         rather than may_trap_p as needed.
29803
29804 2011-01-26  DJ Delorie  <dj@redhat.com>
29805
29806         PR rtl-optimization/46878
29807         * combine.c (insn_a_feeds_b): Check for the implicit cc0
29808         setter/user dependency as well.
29809
29810 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
29811
29812         PR rtl-optimization/44469
29813         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29814         after removing trivially dead basic blocks.
29815
29816 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29817
29818         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29819         * config/frv/frv.h (LINK_SPEC): Likewise.
29820         * config/i386/netware.h (LINK_SPEC): Likewise.
29821         * config/m68k/linux.h (ASM_SPEC): Likewise.
29822         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29823         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29824         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29825         * config/sparc/linux.h (ASM_SPEC): Likewise.
29826         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29827         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29828
29829 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29830
29831         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29832         * config/frv/frv.h (ASM_SPEC): Likewise.
29833         * config/m68k/linux.h (ASM_SPEC): Likewise.
29834         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29835         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29836         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29837         * config/sparc/linux.h (ASM_SPEC): Likewise.
29838         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29839         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29840
29841 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29842
29843         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29844         * config/frv/frv.h (LINK_SPEC): Likewise.
29845         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29846
29847 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29848
29849         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29850         * config/frv/frv.h (ASM_SPEC): Likewise.
29851         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29852         * config/m68k/linux.h (ASM_SPEC): Likewise.
29853         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29854         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29855         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29856         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29857         * config/sparc/linux.h (ASM_SPEC): Likewise.
29858         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29859         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29860         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29861
29862 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
29863
29864         PR target/46997
29865         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29866         (*mux2): Ditto.
29867         (vec_extract_evenodd_help): Ditto.
29868         (vec_extract_evenv4hi): Ditto.
29869         (vec_extract_oddv4hi): Ditto.
29870         (vec_interleave_lowv2si): Ditto.
29871         (vec_interleave_highv2si): Ditto.
29872         (vec_extract_evenv2si): Ditto.
29873         (vec_extract_oddv2si: Ditto.
29874         (vec_pack_trunc_v2si): Ditto.
29875
29876 2011-01-22  Jan Hubicka  <jh@suse.cz>
29877
29878         PR target/47237
29879         * cgraph.h (cgraph_local_info): New field can_change_signature.
29880         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29881         signature can change.
29882         (ipcp_estimate_growth): Call sequence simplify only if calle signature
29883         can change.
29884         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29885         (cgraph_function_versioning): We can not change signature of functions
29886         that don't allow that.
29887         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29888         (lto_input_node): Likewise.
29889         * ipa-inline.c (compute_inline_parameters): Compute
29890         local.can_change_signature.
29891         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29892         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29893         functions that can not change signature.
29894         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29895         init_cumulative_args): Do not use local calling conventions
29896         for functions that can not change signature.
29897
29898 2011-01-22  Jan Hubicka  <jh@suse.cz>
29899
29900         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29901
29902 2011-01-26  Richard Guenther  <rguenther@suse.de>
29903
29904         PR tree-optimization/47190
29905         * cgraphunit.c (process_common_attributes): New function.
29906         (process_function_and_variable_attributes): Use it.
29907
29908 2011-01-26  Richard Guenther  <rguenther@suse.de>
29909
29910         PR lto/47423
29911         * cgraphbuild.c (record_eh_tables): Record reference to personality
29912         function.
29913
29914 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
29915
29916         PR debug/45454
29917         * sel-sched.c (moveup_expr): Don't let debug insns prevent
29918         non-debug insns from moving up.
29919
29920 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29921
29922         PR target/40125
29923         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29924         t-dlldir{,-x} fragment for build and add it to tmake_file.
29925         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29926         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29927         * config/i386/t-dlldir: New file.
29928         (SHLIB_DLLDIR): Define.
29929         * config/i386/t-dlldir-x: New file.
29930         (SHLIB_DLLDIR): Define.
29931         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29932         (SHLIB_INSTALL): Use it.
29933
29934 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
29935
29936         PR target/47246
29937         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29938         lower bound of the allowed Thumb-2 coprocessor load/store
29939         index range to -256. Add explaining comment.
29940
29941 2011-01-25  Ian Lance Taylor  <iant@google.com>
29942
29943         * godump.c (go_define): Improve lexing of macro expansion to only
29944         accept expressions which match Go spec.
29945
29946 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29947
29948         PR c++/43601
29949         * tree.c (handle_dll_attribute): Handle it.
29950         * doc/extend.texi (@item dllexport): Mention it.
29951         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29952
29953 2011-01-25  Ian Lance Taylor  <iant@google.com>
29954
29955         PR tree-optimization/26854
29956         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29957         (decl_jump_unsafe): Move higher in file, with no other change.
29958         (bind): Set has_jump_unsafe_decl if appropriate.
29959         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29960         (check_earlier_gotos): Likewise.
29961         (c_check_switch_jump_warnings): Likewise.
29962
29963 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
29964
29965         * doc/invoke.texi (Warning Options): Add missing hyphen.
29966         (-fprofile-dir): Minor grammatical fixes.
29967         (-fbranch-probabilities): Likewise.
29968
29969 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29970
29971         PR debug/45136
29972         PR debug/45130
29973         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29974         debug insns.
29975         (no_real_insns_p, schedule_block, set_priorities): Drop special
29976         treatment of boundary debug insns.
29977         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29978         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29979         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29980         (BOUNDARY_DEBUG_INSN_P): Likewise.
29981         (SCHEDULE_DEBUG_INSN_P): Likewise.
29982         * sched-rgn.c (init_ready_list): Drop special treatment of
29983         boundary debug insns.
29984         * final.c (rest_of_clean-state): Clear notes' BB.
29985
29986 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29987
29988         * Makefile.in (LAMBDA_H): Removed.
29989         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
29990         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
29991         lambda-trans.o, and tree-loop-linear.o.
29992         (lto-symtab.o): Remove dependence on LAMBDA_H.
29993         (tree-loop-linear.o): Remove rule.
29994         (lambda-mat.o): Same.
29995         (lambda-trans.o): Same.
29996         (lambda-code.o): Same.
29997         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
29998         (tree-vect-slp.o): Same.
29999         * hwint.h (gcd): Moved here.
30000         (least_common_multiple): Same.
30001         * lambda-code.c: Removed.
30002         * lambda-mat.c: Removed.
30003         * lambda-trans.c: Removed.
30004         * lambda.h: Removed.
30005         * tree-loop-linear.c: Removed.
30006         * lto-symtab.c: Do not include lambda.h.
30007         * omega.c (gcd): Removed.
30008         * passes.c (init_optimization_passes): Remove pass_linear_transform.
30009         * tree-data-ref.c (print_lambda_vector): Moved here.
30010         (lambda_vector_copy): Same.
30011         (lambda_matrix_copy): Same.
30012         (lambda_matrix_id): Same.
30013         (lambda_vector_first_nz): Same.
30014         (lambda_matrix_row_add): Same.
30015         (lambda_matrix_row_exchange): Same.
30016         (lambda_vector_mult_const): Same.
30017         (lambda_vector_negate): Same.
30018         (lambda_matrix_row_negate): Same.
30019         (lambda_vector_equal): Same.
30020         (lambda_matrix_right_hermite): Same.
30021         * tree-data-ref.h: Do not include lambda.h.
30022         (lambda_vector): Moved here.
30023         (lambda_matrix): Same.
30024         (dependence_level): Same.
30025         (lambda_transform_legal_p): Removed declaration.
30026         (lambda_collect_parameters): Same.
30027         (lambda_compute_access_matrices): Same.
30028         (lambda_vector_gcd): Same.
30029         (lambda_vector_new): Same.
30030         (lambda_vector_clear): Same.
30031         (lambda_vector_lexico_pos): Same.
30032         (lambda_vector_zerop): Same.
30033         (lambda_matrix_new): Same.
30034         * tree-flow.h (least_common_multiple): Removed declaration.
30035         * tree-parloops.c (lambda_trans_matrix): Moved here.
30036         (LTM_MATRIX): Same.
30037         (LTM_ROWSIZE): Same.
30038         (LTM_COLSIZE): Same.
30039         (LTM_DENOMINATOR): Same.
30040         (lambda_trans_matrix_new): Same.
30041         (lambda_matrix_vector_mult): Same.
30042         (lambda_transform_legal_p): Same.
30043         * tree-pass.h (pass_linear_transform): Removed declaration.
30044         * tree-ssa-loop.c (tree_linear_transform): Removed.
30045         (gate_tree_linear_transform): Removed.
30046         (pass_linear_transform): Removed.
30047         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30048         flag_loop_interchange.
30049
30050 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30051
30052         PR tree-optimization/47265
30053         PR tree-optimization/47443
30054         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30055         if name still has some uses.
30056
30057 2011-01-25  Martin Jambor  <mjambor@suse.cz>
30058
30059         PR tree-optimization/47382
30060         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30061         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30062
30063 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
30064
30065         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30066         sjlj_except_unwind_info.
30067
30068 2011-01-25  Richard Guenther  <rguenther@suse.de>
30069
30070         PR tree-optimization/47426
30071         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30072         visible functions results escape.
30073
30074 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30075
30076         PR target/45701
30077         * config/arm/arm.c (any_sibcall_uses_r3): New function.
30078         (arm_get_frame_offsets): Use it.
30079
30080 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30081             Jakub Jelinek  <jakub@redhat.com>
30082
30083         PR tree-optimization/47271
30084         * tree-if-conv.c (bb_postdominates_preds): New.
30085         (if_convertible_bb_p): Call bb_postdominates_preds.
30086         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30087         (predicate_scalar_phi): Call bb_postdominates_preds.
30088
30089 2011-01-25  Nick Clifton  <nickc@redhat.com>
30090
30091         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30092         * config/rx/rx.c (rx_function_value): Likewise.
30093         (rx_promote_function_mode): Likewise.
30094         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30095         in order to make it legitimate.
30096         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30097         make sure that the first operand is the same as the result register.
30098         (addsi3_unspec): Delete.
30099         (subdi3): Do not accept immediate operands.
30100         (subdi3_internal): Likewise.
30101
30102 2011-01-25  Jeff Law  <law@redhat.com>
30103
30104         PR rtl-optimization/37273
30105         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30106         handle them like argument loads from stack slots.  Do not double
30107         count memory for memory constants and argument loads from stack slots.
30108
30109 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30110
30111         PR tree-optimization/47427
30112         PR tree-optimization/47428
30113         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30114         coalesce if the new root var would be TREE_READONLY.
30115
30116 2011-01-25  Richard Guenther  <rguenther@suse.de>
30117
30118         PR middle-end/47414
30119         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30120         correct type for TBAA.
30121
30122 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30123
30124         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30125         (close_phi_written_to_memory): Call for_each_index with
30126         dr_indices_valid_in_loop.
30127
30128 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30129
30130         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30131         when it is initialized.
30132
30133 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30134
30135         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30136         call to graphite_find_data_references_in_stmt.
30137         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30138         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
30139         call to graphite_find_data_references_in_stmt.
30140         (analyze_drs_in_stmts): Same.
30141         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30142         in which the scalar analysis of indices is performed.
30143         (create_data_ref): Same.  Update call to dr_analyze_indices.
30144         (find_data_references_in_stmt): Update call to create_data_ref.
30145         (graphite_find_data_references_in_stmt): Same.
30146         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30147         declaration.
30148         (create_data_ref): Same.
30149         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30150         call to create_data_ref.
30151
30152 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30153
30154         * graphite-sese-to-poly.c (build_poly_scop): Move
30155         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30156
30157 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30158
30159         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30160         VAR_DECL, PARM_DECL, and RESULT_DECL.
30161
30162 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30163
30164         * graphite-dependences.c (reduction_dr_1): Allow several reductions
30165         in a reduction PBB.
30166         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30167         that have already been marked as PBB_IS_REDUCTION.
30168
30169 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30170
30171         * graphite-scop-detection.c (same_close_phi_node): New.
30172         (remove_duplicate_close_phi): New.
30173         (make_close_phi_nodes_unique): New.
30174         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30175
30176 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30177
30178         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30179         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30180         of both data references to be the same.
30181
30182 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30183
30184         * graphite-dependences.c (build_lexicographical_constraint): Remove
30185         the gdim parameter.
30186         (build_lexicographical_constraint): Adjust call to
30187         ppl_powerset_is_empty.
30188         (dependence_polyhedron): Same.
30189         (graphite_legal_transform_dr): Same.
30190         (graphite_carried_dependence_level_k): Same.
30191         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
30192         parameter.
30193         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
30194
30195 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30196
30197         * graphite-sese-to-poly.c
30198         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
30199         (close_phi_written_to_memory): New.
30200         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
30201         and unshare_expr.
30202
30203 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30204
30205         * doc/install.texi: Update the expected version number of PPL to 0.11.
30206         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
30207         #if PPL_VERSION_MINOR < 11.
30208
30209 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30210
30211         * graphite-dependences.c: Include graphite-cloog-util.h.
30212         (new_poly_ddr): Inlined into dependence_polyhedron.
30213         (free_poly_ddr): Moved close by new_poly_ddr.
30214         (dependence_polyhedron_1): Renamed dependence_polyhedron.
30215         Early return NULL when ppl_powerset_is_empty returns true.
30216         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
30217         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
30218         (graphite_legal_transform_dr): Call new_poly_ddr.
30219         (graphite_carried_dependence_level_k): Same.
30220         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
30221         (dot_transformed_deps_stmt_1): Removed.
30222         (dot_deps_stmt_1): Call dot_deps_stmt_2.
30223         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
30224         (dot_deps_1): Call dot_deps_2.
30225         * Makefile.in (graphite-dependences.o): Add missing dependence on
30226         graphite-cloog-util.h.
30227
30228 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30229
30230         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
30231         (build_lexicographical_constraint): Same.
30232         (dependence_polyhedron_1): Same.
30233         (graphite_legal_transform_dr): Same.
30234         (graphite_carried_dependence_level_k): Same.
30235         * graphite-ppl.c (ppl_powerset_is_empty): New.
30236         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
30237         * tree-data-ref.c (dump_data_reference): Print the basic block index.
30238
30239 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30240
30241         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
30242         the "a followed by b" relation and document it.
30243
30244 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30245
30246         * graphite-dependences.c (build_lexicographical_constraint): Stop the
30247         iteration when the bag of constraints is empty.
30248
30249 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30250
30251         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
30252
30253 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30254
30255         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
30256         nest and two loop depths as parameters.
30257         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
30258         lst_perfect_nestify.
30259
30260 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30261
30262         * graphite-dependences.c (print_pddr): Call
30263         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
30264
30265 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30266
30267         * graphite-ppl.c (debug_gmp_value): New.
30268         * graphite-ppl.h (debug_gmp_value): Declared.
30269
30270 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
30271
30272         * doc/install.texi: Document availability of cloog-0.16.
30273
30274 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
30275
30276         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
30277         invalid postdominance info.
30278
30279 2011-01-24  Jan Hubicka  <jh@suse.cz>
30280
30281         PR c/21659
30282         * doc/extend.texi (weak pragma): Drop claim that it must
30283         appear before definition.
30284         * varasm.c (merge_weak, declare_weak): Only sanity check
30285         that DECL is not output at a time it is declared weak.
30286
30287 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
30288
30289         * machmode.def: Fixed comments.
30290
30291 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
30292
30293         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
30294
30295 2011-01-24  Paul Koning  <ni1d@arrl.net>
30296
30297         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
30298         WORDS_BIG_ENDIAN.
30299
30300 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30301
30302         PR target/46519
30303         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
30304         (block_info): Add scanned and prev.
30305         (move_or_delete_vzeroupper_2): Return if the basic block
30306         has been scanned and the upper 128bit state is unchanged
30307         from the last scan.
30308         (move_or_delete_vzeroupper_1): Return true if the exit
30309         state is changed.
30310         (move_or_delete_vzeroupper): Visit basic blocks using the
30311         work-list based algorithm based on vt_find_locations in
30312         var-tracking.c.
30313
30314         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
30315
30316 2011-01-24  Nick Clifton  <nickc@redhat.com>
30317
30318         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
30319         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30320         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
30321         then define __v850e1__.
30322         * doc/invoke.texi: Document -mv850es.
30323
30324 2011-01-24  Richard Henderson  <rth@redhat.com>
30325
30326         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
30327         compound unordered comparisons.
30328         * config/rx/rx.c (rx_split_fp_compare): Remove.
30329         * config/rx/rx-protos.h: Update.
30330         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30331         (cbranchsf4): Don't call rx_split_fp_compare.
30332         (*cbranchsf4): Use rx_split_cbranch.
30333         (*cmpsf): Don't accept "i" constraint.
30334         (*conditional_branch): Only valid after reload.
30335         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
30336
30337 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30338
30339         PR target/47385
30340         * config/rs6000/altivec.md (vector constant splitters): Add
30341         support for creating vector single precision constants if -mvsx is
30342         used and we would create the constant using Altivec primitives.
30343
30344 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
30345             Richard Sandiford  <rdsandiford@googlemail.com>
30346
30347         PR rtl-optimization/47166
30348         * reload1.c (emit_reload_insns): Disable the spill_reg_store
30349         mechanism for PRE_MODIFY and POST_MODIFY.
30350         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30351         reloadreg.
30352
30353 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
30354
30355         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30356
30357 2011-01-22  Jan Hubicka  <jh@suse.cz>
30358
30359         PR lto/47333
30360         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30361
30362 2011-01-22  Jan Hubicka  <jh@suse.cz>
30363
30364         PR tree-optimization/43884
30365         PR lto/44334
30366         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30367         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30368
30369 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
30370
30371         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30372         * config/s390/s390.c (s390_register_move_cost,
30373         s390_memory_move_cost): New.
30374         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30375
30376 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30377
30378         PR middle-end/47401
30379         * except.c (sjlj_assign_call_site_values): Move setting the
30380         crtl->uses_eh_lsda flag to ...
30381         (sjlj_mark_call_sites): ... here.
30382         (sjlj_emit_function_enter): Support NULL dispatch label.
30383         (sjlj_build_landing_pads): In a function with no landing pads
30384         that still has must-not-throw regions, generate code to register
30385         a personality function with empty LSDA.
30386
30387 2011-01-21  Richard Henderson  <rth@redhat.com>
30388
30389         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30390
30391         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30392
30393         * compare-elim.c: New file.
30394         * Makefile.in (OBJS-common): Add it.
30395         (compare-elim.o): New.
30396         * common.opt (fcompare-elim): New.
30397         * opts.c (default_options_table): Add OPT_fcompare_elim.
30398         * tree-pass.h (pass_compare_elim_after_reload): New.
30399         * passes.c (init_optimization_passes): Add it.
30400         * recog.h: Protect against re-inclusion.
30401         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30402         * doc/invoke.texi (-fcompare-elim): Document it.
30403         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30404         * doc/tm.texi: Rebuild.
30405
30406 2011-01-22  Nick Clifton  <nickc@redhat.com>
30407
30408         * config/rx/rx.md (cstoresf4): Pass comparison operator to
30409         rx_split_fp_compare.
30410
30411 2011-01-22  Nick Clifton  <nickc@redhat.com>
30412
30413         * config/rx/rx.md (UNSPEC_CONST): New.
30414         (deallocate_and_return): Wrap the amount popped off the stack in
30415         an UNSPEC_CONST in order to stop it being rejected by
30416         -mmax-constant-size.
30417         (pop_and_return): Add a "(return)" rtx.
30418         (call): Drop the immediate operand.
30419         (call_internal): Likewise.
30420         (call_value): Likewise.
30421         (call_value_internal): Likewise.
30422         (sibcall_internal): Likewise.
30423         (sibcall_value_internal): Likewise.
30424         (sibcall): Likewise.  Generate an explicit call using
30425         sibcall_internal.
30426         (sibcall_value): Likewise.
30427         (mov<>): FAIL if a constant operand is not legitimate.
30428         (addsi3_unpsec): New pattern.
30429
30430         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30431         (ok_for_max_constant): New function.
30432         (gen_safe_add): New function.
30433         (rx_expand_prologue): Use gen_safe_add.
30434         (rx_expand_epilogue): Likewise.
30435         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
30436         UNSPEC CONSTs.
30437
30438 2011-01-21  Jeff Law  <law@redhat.com>
30439
30440         PR tree-optimization/47053
30441         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30442         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30443         statements are deleted.
30444         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
30445         is nonempty, then purge dead edges and cleanup the CFG.
30446
30447 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30448
30449         PR debug/47402
30450         Temporarily revert:
30451         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30452         PR debug/47106
30453         * tree-dfa.c (create_var_ann): Mark variable as used.
30454
30455 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30456
30457         PR middle-end/45566
30458         * except.c (convert_to_eh_region_ranges): Emit queued no-region
30459         notes from other section in hot/cold partitioning even if
30460         last_action is -3.  Increment call_site_base.
30461
30462         PR rtl-optimization/47366
30463         * fwprop.c (forward_propagate_into): Return bool.  If
30464         any changes are made, -fnon-call-exceptions is used and
30465         REG_EH_REGION note is present, call purge_dead_edges
30466         and return true if it purged anything.
30467         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30468         any EH edges were purged.
30469
30470 2011-01-21  Jeff Law  <law@redhat.com>
30471
30472         PR rtl-optimization/41619
30473         * caller-save.c (setup_save_areas): Break out code to determine
30474         which hard regs are live across calls by examining the reload chains
30475         so that it is always used.
30476         Eliminate code which checked REG_N_CALLS_CROSSED.
30477
30478 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30479
30480         PR tree-optimization/47355
30481         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30482         NOP has non-debug uses beyond PHIs in new_bb.
30483
30484 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30485
30486         PR debug/47106
30487         * cfgexpand.c (account_used_vars_for_block): Only account vars
30488         that are annotated as used.
30489         (estimated_stack_frame_size): Don't set TREE_USED.
30490         * tree-dfa.c (create_var_ann): Mark variable as used.
30491
30492 2011-01-21  Richard Guenther  <rguenther@suse.de>
30493
30494         PR middle-end/47395
30495         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30496
30497 2011-01-21  Richard Guenther  <rguenther@suse.de>
30498
30499         PR tree-optimization/47365
30500         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30501         (vn_reference_lookup_pieces): Adjust.
30502         (vn_reference_lookup): Likewise.
30503         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30504         (vn_reference_lookup_3): Only look through kills if in
30505         VN_WALKREWRITE mode.
30506         (vn_reference_lookup_pieces): Adjust.
30507         (vn_reference_lookup): Likewise.
30508         (visit_reference_op_load): Likewise.
30509         (visit_reference_op_store): Likewise.
30510         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30511         (compute_avail): Likewise.
30512         (eliminate): Likewise.
30513
30514 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30515
30516         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30517         DECL_IGNORED_P non-reg vars if they are used.
30518
30519         PR tree-optimization/47391
30520         * varpool.c (const_value_known_p): Return false if
30521         decl is volatile.
30522
30523 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
30524
30525         PR bootstrap/47215
30526         * config/i386/i386.c (ix86_local_alignment): Handle
30527         case for va_list_type_node is nil.
30528         (ix86_canonical_va_list_type): Likewise.
30529
30530 2011-01-21  Alan Modra  <amodra@gmail.com>
30531
30532         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30533         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30534
30535 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30536
30537         * config/arm/arm.md (define_attr type): Rename f_load
30538         and f_store to f_fpa_load and f_fpa_store. Update.
30539         (write_conflict): Deal with rename fallout.
30540         (*push_fp_multi): Likewise.
30541         * config/arm/fpa.md (f_load): Use f_fpa_load.
30542         (f_store): Use f_fpa_store.
30543         (*movsf_fpa): Likewise.
30544         (*movdf_fpa): Likewise.
30545         (*movxf_fpa): Likewise.
30546         (*thumb2_movsf_fpa): Likewise.
30547         (*thumb2_movdf_fpa): Likewise.
30548         (*thumb2_movxf_fpa): Likewise.
30549         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30550         f_loadd and f_stored.
30551         (*thumb2_movdi_vfp): Likewise.
30552         (*thumb2_movsf_vfp): Fix attribute to f_loads.
30553         (*thumb2_movsi_vfp): Likewise.
30554         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30555         Use f_loads instead of f_load.
30556         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30557
30558 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
30559
30560         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30561         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30562         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30563         (xtensa_mode_dependent_address_p): New function.
30564         (constantpool_address_p): Make static. Change return type to bool.
30565         Change argument type to const_rtx. Use CONST_INT_P predicate.
30566
30567 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
30568
30569         PR debug/46583
30570         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30571
30572 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30573
30574         PR debug/47283
30575         * cfgexpand.c (expand_debug_expr): Instead of generating
30576         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30577         etc. handling.
30578
30579 2011-01-20  Richard Guenther  <rguenther@suse.de>
30580
30581         PR middle-end/47370
30582         * tree-inline.c (remap_gimple_op_r): Recurse manually for
30583         the pointer operand of MEM_REFs.
30584
30585 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30586
30587         PR tree-optimization/46130
30588         * ipa-split.c (consider_split): If return_bb contains non-virtual
30589         PHIs other than for retval or if split_function would not adjust it,
30590         refuse to split.
30591
30592 2011-01-20  Richard Guenther  <rguenther@suse.de>
30593
30594         PR tree-optimization/47167
30595         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30596         Revert previous change, only avoid enumeral type changes.
30597
30598 2011-01-19  Mike Stump  <mikestump@comcast.net>
30599
30600         * doc/tm.texi.in (BRANCH_COST): Englishify.
30601         * doc/tm.texi (BRANCH_COST): Likewise.
30602
30603 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
30604
30605         PR c++/47291
30606         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30607         (gen_scheduled_generic_parms_dies): New functions.
30608         (gen_struct_or_union_type_die): Schedule template parameters DIEs
30609         generation for the end of CU compilation.
30610         (dwarf2out_finish): Generate template parameters DIEs here.
30611
30612 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30613
30614         PR debug/46240
30615         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30616         debug bind stmt on merge edges.
30617
30618 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30619
30620         PR debug/47079
30621         PR debug/46724
30622         * function.c (instantiate_expr): Instantiate incoming rtl of
30623         implicit arguments, and recurse on VALUE_EXPRs.
30624         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30625         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30626
30627 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30628
30629         * c-parser.c (c_parser_for_statement): Initialize
30630         collection_expression.
30631
30632 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30633
30634         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30635
30636 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30637
30638         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30639         (LINK_SHLIB_SPEC): Don't use %(link_path).
30640         (SUBTARGET_EXTRA_SPECS): Remove link_path.
30641
30642 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30643
30644         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30645         (NO_SHARED_LIB_SUPPORT): Remove.
30646         (LINK_SHLIB_SPEC): Remove one conditional definition.
30647
30648 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30649
30650         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30651         %{call_shared}.
30652         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30653         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30654         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30655         %{call_shared} and conditionals on these options not being passed.
30656         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30657         %{call_shared}.
30658
30659 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30660
30661         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30662         simplify.
30663
30664         * ipa-split.c: Spelling fixes.
30665
30666 2011-01-19  Richard Henderson  <rth@redhat.com>
30667
30668         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30669         (*mulsi3): Likewise.
30670
30671         * longlong.h [__mn10300__] (count_leading_zeros): New.
30672         [__mn10300__] (umul_ppmm, smul_ppmm): New.
30673         [__mn10300__] (add_ssaaaa, subddmmss): New.
30674         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30675         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30676
30677 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30678
30679         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30680
30681 2011-01-19  Richard Henderson  <rth@redhat.com>
30682
30683         * config/mn10300/mn10300.md (addsi3_flags): New.
30684         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30685         (subsi3_flags, subc_internal, subdi3): New.
30686         (subdi3_internal, *subdi3_degenerate): New.
30687         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30688
30689         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30690         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30691         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
30692         * config/mn10300/mn10300-protos.h: Update.
30693         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30694         (return_ret): Likewise.  Rename from return_internal_regs.
30695         (return_internal): Remove.
30696
30697         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30698         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30699         (mn10300_legitimate_constant_p): Likewise.
30700         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30701         (mn10300_frame_size): New.
30702         (mn10300_expand_prologue): Use it.
30703         (mn10300_expand_epilogue): Likewise.
30704         (mn10300_initial_offset): Likewise.
30705         * config/mn10300/mn10300-protos.h: Update.
30706         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30707         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30708         (prologue, epilogue, return_internal): Tidy output code.
30709         (mn10300_store_multiple_operation, return): Likewise.
30710         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30711         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30712         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30713         (load_pic, am33_load_pic): New.
30714         (mn10300_load_pic0, mn10300_load_pic1): New.
30715
30716         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30717         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30718         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30719         (cc_flags_for_mode, cc_flags_for_code): New.
30720         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30721         overflow flag is not valid.  Validate that the flags we need
30722         for the comparison are valid.
30723         (mn10300_output_cmp): Remove.
30724         (mn10300_output_add): New.
30725         (mn10300_select_cc_mode): Use cc_flags_for_code.
30726         (mn10300_split_cbranch): New.
30727         (mn10300_match_ccmode): New.
30728         (mn10300_split_and_operand_count): New.
30729         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30730         to the function.
30731         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30732         (addsi3): ... here.  Use mn10300_output_add.
30733         (*addsi3_flags): New.
30734         (*am33_subsi3, *mn10300_subsi3): Merge...
30735         (subsi3): ... here.  Use attribute isa.
30736         (*subsi3_flags): New.
30737         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
30738         when possible.
30739         (*am33_andsi3, *mn10300_andsi3): Merge...
30740         (andsi3): ... here.
30741         (*andsi3_flags): New.
30742         (andsi3 splitters): New.
30743         (*am33_iorsi3, *mn10300_iorsi3): Merge...
30744         (iorsi3): ... here.
30745         (*iorsi3_flags): New.
30746         (*am33_xorsi3, *mn10300_xorsi3): Merge...
30747         (xorsi3): ... here.
30748         (*xorsi3_flags): New.
30749         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30750         (one_cmplsi2): ... here.
30751         (*one_cmplsi2_flags): New.
30752         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
30753         instead of "dax" in constraints.  Use mn10300_split_cbranch.
30754         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
30755         use matching constraints to eliminate a self-comparison.
30756         (*integer_conditional_branch): Rename from integer_conditional_branch.
30757         Use int_mode_flags to match CC_REG.
30758         (*cbranchsi4_btst, *btstsi): New.
30759         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
30760         mn10300_split_cbranch.
30761         (*am33_cmpsf): Rename from am33_cmpsf.
30762         (*float_conditional_branch): Rename from float_conditional_branch.
30763         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30764         (zero_extendqisi2): ... here.
30765         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30766         (zero_extendhisi2): ... here.
30767         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30768         (extendqisi2): ... here.
30769         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30770         (extendhisi2): ... here.
30771         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30772         (ashlsi3): ... here.
30773         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30774         (lshrsi3): ... here.
30775         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
30776         (ashrsi3): ... here.
30777         (consecutive add peephole): Remove.
30778         * config/mn10300/predicates.md (label_ref_operand): New.
30779         (int_mode_flags): New.
30780         (CCZN_comparison_operator): New.
30781
30782         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30783         (throughput_42_latency_43): New reservation.
30784         (mulsidi3, umulsidi3): New expanders.
30785         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
30786         the MDR register to allocation; separately allocate the low and
30787         high parts of the DImode result.
30788         (umulsidi3_internal): Similarly.
30789         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30790         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
30791         (udivsi3, umodsi3): Remove.
30792         (udivmodsi4, divmodsi4): New expanders.
30793         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
30794         (*divmodsi4): Simiarly.
30795         (ext_internal): New.
30796
30797         * config/mn10300/constraints.md ("z"): New constraint.
30798         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30799         (FIXED_REGISTERS): Don't fix MDR.
30800         (CALL_USED_REGSITERS): Reformat nicely.
30801         (REG_ALLOC_ORDER): Add MDR.
30802         (enum regclass): Add MDR_REGS.
30803         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30804         (IRA_COVER_CLASSES): Add MDR_REGS.
30805         (REGNO_REG_CLASS): Handle MDR_REG.
30806         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30807         (mn10300_register_move_cost): Likewise.
30808         * config/mn10300/mn10300.md (MDR_REG): New.
30809         (*movsi_internal): Handle moves to/from MDR_REGS.
30810
30811         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30812         POST_MODIFY.
30813         (mn10300_secondary_reload): Tidy combination reload classes.
30814         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30815         addresses for AM33.  Allow symbolic offsets for reg+imm.
30816         (mn10300_regno_in_class_p): New.
30817         (mn10300_legitimize_reload_address): New.
30818         * config/mn10300/mn10300.h (enum reg_class): Remove
30819         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30820         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
30821         SP_OR_GENERAL_REGS.
30822         (REG_CLASS_NAMES): Update to match.
30823         (REG_CLASS_CONTENTS): Likewise.
30824         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30825         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30826         (REGNO_IN_RANGE_P): Remove.
30827         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30828         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30829         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30830         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30831         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30832         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30833         (REGNO_GENERAL_P): New.
30834         (HAVE_POST_MODIFY_DISP): New.
30835         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30836         (LEGITIMIZE_RELOAD_ADDRESS): New.
30837         * config/mn10300/mn10300-protos.h: Update.
30838
30839         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30840         DATA_REGS for AM33 stack-pointer destination.
30841         (mn10300_preferred_output_reload_class): Likewise.
30842         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30843         into a form appropriate for ...
30844         (TARGET_SECONDARY_RELOAD): New.
30845         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30846         * config/mn10300/mn10300-protos.h: Update.
30847         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30848         reload_insi; use the "A" constraint for the scratch; handle AM33
30849         moves of sp to non-address registers.
30850
30851         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30852         (*movqi_internal): ... here.
30853         (*am33_movhi, *mn10300_movhi): Merge into...
30854         (*movhi_internal): ... here.
30855         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
30856         as the source/destination of moves from/to SP.
30857         (movsf): Only allow for AM33-2.
30858         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30859         any integer constant constraint.  Only allow for AM33-2.  Tidy
30860         all of the alternative outputs.
30861         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30862         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
30863         for MN103.
30864         (udivsi3, umodsi3): New patterns for MN103 only.
30865
30866 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
30867
30868         * doc/tm.texi.in: Spell out that a lack of register class unions
30869         can lead to ICEs.
30870         * doc/tm.texi: Regenerate.
30871
30872 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30873
30874         PR rtl-optimization/47337
30875         * dce.c (check_argument_store): New function.
30876         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
30877
30878         PR tree-optimization/47290
30879         * tree-eh.c (infinite_empty_loop_p): New function.
30880         (cleanup_empty_eh): Use it.
30881
30882 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
30883
30884         PR target/46997
30885         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30886         (a64_expand_widen_sum): Ditto.
30887         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30888         (vec_extract_evenodd_help): Ditto.
30889         (vec_extract_evenv4hi): Ditto.
30890         (vec_extract_oddv4hi): Ditto.
30891         (vec_extract_evenv2si): Ditto.
30892         (vec_extract_oddv2si): Ditto.
30893         (vec_extract_evenv2sf): Ditto.
30894         (vec_extract_oddv2sf): Ditto.
30895         (vec_pack_trunc_v4hi: Ditto.
30896         (vec_pack_trunc_v2si): Ditto.
30897         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30898         (vec_interleave_highv8qi): Ditto.
30899         (mix1_r): Ditto.
30900         (vec_extract_oddv8qi): Ditto.
30901         (vec_interleave_lowv4hi): Ditto.
30902         (vec_interleave_highv4hi): Ditto.
30903         (vec_interleave_lowv2si): Ditto.
30904         (vec_interleave_highv2si): Ditto.
30905
30906 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30907
30908         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30909         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30910         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
30911         (pa_c_mode_for_suffix): New.
30912         (TARGET_EXPAND_BUILTIN): Define.
30913         (TARGET_C_MODE_FOR_SUFFIX): Define.
30914         (pa_builtins): Define.
30915         (pa_init_builtins): Register __float128 type and init new support
30916         builtins.
30917         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30918         * config/pa/quadlib.c (_U_Qfcopysign): New.
30919
30920 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
30921
30922         PR middle-end/46894
30923         * explow.c (allocate_dynamic_stack_space): Do not assume more than
30924         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30925         are defined.
30926
30927 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30928
30929         PR tree-optimization/47179
30930         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30931         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30932
30933 2011-01-18  Richard Guenther  <rguenther@suse.de>
30934
30935         PR rtl-optimization/47216
30936         * emit-rtl.c: Include tree-flow.h.
30937         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30938         of replicating it with different semantics.
30939         * Makefile.in (emit-rtl.o): Adjust.
30940
30941 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30942
30943         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30944         (cortex_a9_dp): Handle neon types correctly.
30945
30946 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
30947
30948         PR rtl-optimization/47299
30949         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30950         subtarget.  Use normal multiplication if both operands are constants.
30951         * expmed.c (expand_widening_mult): Don't try to optimize constant
30952         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
30953         before using it.
30954
30955 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30956
30957         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
30958         spacing after 'e.g.', typos, comma, hyphenation.
30959
30960 2011-01-17  Richard Henderson  <rth@redhat.com>
30961
30962         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
30963         (rx_restricted_mem_operand): New.
30964         (rx_shift_operand): Use register_operand.
30965         (rx_source_operand, rx_compare_operand): Likewise.
30966         * config/rx/rx.md (addsi3_flags): New expander.
30967         (adddi3): Rewrite as expander.
30968         (adc_internal, *adc_flags, adddi3_internal): New patterns.
30969         (subsi3_flags): New expander.
30970         (subdi3): Rewrite as expander.
30971         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
30972
30973         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
30974         (rx_init_builtins): Remove sat builtin.
30975         (rx_expand_builtin): Likewise.
30976         * config/rx/rx.md (ssaddsi3): New.
30977         (*sat): Rename from sat.  Represent the CC_REG input.
30978
30979         * config/rx/predicates.md (rshift_operator): New.
30980         * config/rx/rx.c (rx_expand_insv): Remove.
30981         * config/rx/rx-protos.h: Update.
30982         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
30983         operand to the canonical position.
30984         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
30985         (*bitclr, *bitclr_in_memory): Similarly.
30986         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
30987         (insv): Retain the zero_extract in the expansion.
30988
30989         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
30990         (bswaphi2, bitinvert, revw): Likewise.
30991
30992         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
30993         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
30994         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
30995         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
30996         (bitset, bitset_in_memory): Likewise.
30997         (bitinvert, bitinvert_in_memory): Likewise.
30998         (bitclr, bitclr_in_memory): Likewise.
30999         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
31000         (rx_strend, rx_cmpstrn): Likewise.
31001         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
31002         (bitop peep2 patterns): Remove.
31003
31004         * config/rx/rx.c (rx_match_ccmode): New.
31005         * config/rx/rx-protos.h: Update.
31006         * config/rx/rx.md (abssi2): Clobber, don't set flags.
31007         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
31008         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
31009         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
31010         (fix_truncsfsi2, floatsisf2): Likewise.
31011         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
31012         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
31013         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
31014         (*subsi3_flags, *xorsi3_flags): New.
31015
31016         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
31017
31018         * config/rx/rx.c (rx_print_operand): Remove workaround for
31019         unsplit comparison operations.
31020
31021         * config/rx/rx.md (movsicc): Split after reload.
31022         (*movsicc): Merge *movsieq and *movsine via match_operator.
31023         (*stcc): New pattern.
31024
31025         * config/rx/rx.c (rx_float_compare_mode): Remove.
31026         * config/rx/rx.h (rx_float_compare_mode): Remove.
31027         * config/rx/rx.md (cstoresi4): Split after reload.
31028         (*sccc): New pattern.
31029
31030         * config/rx/predicates.md (label_ref_operand): New.
31031         (rx_z_comparison_operator): New.
31032         (rx_zs_comparison_operator): New.
31033         (rx_fp_comparison_operator): New.
31034         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
31035         Validate that the flags are set properly for the comparison.
31036         (rx_gen_cond_branch_template): Remove.
31037         (rx_cc_modes_compatible): Remove.
31038         (mode_from_flags): New.
31039         (flags_from_code): Rename from flags_needed_for_conditional.
31040         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
31041         (rx_select_cc_mode): Likewise.
31042         (rx_split_fp_compare): New.
31043         (rx_split_cbranch): New.
31044         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
31045         (*cbranchsi4): Use match_operator and rx_split_cbranch.
31046         (*cbranchsf4): Similarly.
31047         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
31048         match_operator and rx_split_cbranch.
31049         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31050         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
31051         (*cmpsi): Rename from cmpsi.
31052         (*tstsi): Rename from tstsi.
31053         (*cmpsf): Rename from cmpsf; use CC_Fmode.
31054         (*conditional_branch): Rename from conditional_branch.
31055         (*reveresed_conditional_branch): Remove.
31056         (b<code>): Remove expander.
31057         * config/rx/rx-protos.h: Update.
31058
31059         * config/rx/rx.c (rx_compare_redundant): Remove.
31060         * config/rx/rx.md (cmpsi): Don't use it.
31061         * config/rx/rx-protos.h: Update.
31062
31063         * config/rx/rx-modes.def (CC_F): New mode.
31064         * config/rx/rx.c (rx_select_cc_mode): New.
31065         * config/rx/rx.h (SELECT_CC_MODE): Use it.
31066         * config/rx/rx-protos.h: Update.
31067
31068 2011-01-17  Richard Henderson  <rth@redhat.com>
31069
31070         * except.c (dump_eh_tree): Fix stray ; after for statement.
31071
31072 2011-01-17  Richard Guenther  <rguenther@suse.de>
31073
31074         PR tree-optimization/47313
31075         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31076         handling before copying the body.  Properly deal with
31077         by-reference result in SSA form.
31078
31079 2011-01-17  Ian Lance Taylor  <iant@google.com>
31080
31081         PR target/47219
31082         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31083         (struct_value_alias_set): Don't define.
31084         (sparc_option_override): Don't set sparc_sr_alias_set and
31085         struct_value_alias_set.
31086         (save_or_restore_regs): Use gen_frame_mem rather than calling
31087         set_mem_alias_set.
31088         (sparc_struct_value_rtx): Likewise.
31089
31090 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31091
31092         PR target/47318
31093         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31094         (_mm_maskstore_pd): Likewise.
31095         (_mm_maskload_ps): Likewise.
31096         (_mm_maskstore_ps): Likewise.
31097         (_mm256_maskload_pd): Change mask to __m256i.
31098         (_mm256_maskstore_pd): Likewise.
31099         (_mm256_maskload_ps): Likewise.
31100         (_mm256_maskstore_ps): Likewise.
31101
31102         * config/i386/i386-builtin-types.def: Updated.
31103         (ix86_expand_special_args_builtin): Likewise.
31104
31105         * config/i386/i386.c (bdesc_special_args): Update
31106         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31107         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31108         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31109         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31110
31111         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31112         Use <avxpermvecmode> on mask register.
31113         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31114
31115 2011-01-17  Olivier Hainque  <hainque@adacore.com>
31116             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31117             Eric Botcazou  <ebotcazou@adacore.com>
31118
31119         PR target/46655
31120         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31121         if <= USHRT_MAX in 32-bit mode.
31122
31123 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31124
31125         * doc/install.texi (Configuration, Specific): Wrap long
31126         lines in examples.  Allow line wrapping in long options
31127         and URLs where beneficial for PDF output.
31128
31129 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
31130
31131         * config/mips/mips.c (mips_classify_symbol): Don't return
31132         SYMBOL_PC_RELATIVE for nonlocal labels.
31133
31134 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31135
31136         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31137
31138 2011-01-15  Jan Hubicka  <jh@suse.cz>
31139
31140         PR tree-optimization/47276
31141         * ipa.c (function_and_variable_visibility): Do not try to mark alias
31142         declarations as needed.
31143
31144 2011-01-15  Martin Jambor  <mjambor@suse.cz>
31145
31146         * common.opt (fdevirtualize): New flag.
31147         * doc/invoke.texi (Option Summary): Document it.
31148         * opts.c (default_options_table): Add devirtualize flag.
31149         * ipa-prop.c (detect_type_change): Return immediately if
31150         devirtualize flag is not set.
31151         (detect_type_change_ssa): Likewise.
31152         (compute_known_type_jump_func): Likewise.
31153         (ipa_analyze_virtual_call_uses): Likewise.
31154
31155 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31156
31157         PR tree-optimization/45934
31158         PR tree-optimization/46302
31159         * ipa-prop.c (type_change_info): New type.
31160         (stmt_may_be_vtbl_ptr_store): New function.
31161         (check_stmt_for_type_change): Likewise.
31162         (detect_type_change): Likewise.
31163         (detect_type_change_ssa): Likewise.
31164         (compute_complex_assign_jump_func): Check for dynamic type change.
31165         (compute_complex_ancestor_jump_func): Likewise.
31166         (compute_known_type_jump_func): Likewise.
31167         (compute_scalar_jump_functions): Likewise.
31168         (ipa_analyze_virtual_call_uses): Likewise.
31169         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31170
31171 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31172
31173         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31174         * config/i386/i386.opt (msse5): New Alias.
31175
31176 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31177
31178         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31179         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31180         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31181         * config/sparc/sparc.h (CC1_SPEC): Likewise.
31182
31183 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31184
31185         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
31186         -mcpu options.
31187         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31188         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31189         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
31190         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
31191         Likewise.
31192         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
31193
31194 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31195
31196         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
31197
31198 2011-01-14  Mike Stump  <mikestump@comcast.net>
31199
31200         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
31201         * config/fr30/fr30.md: Likweise
31202         (movsi_push): Likewise.
31203         (movsi_pop): Likewise.
31204         (enter_func): Likewise.
31205         * config/moxie/moxie.md (movsi_push): Likewise.
31206         (movsi_pop): Likewise.
31207
31208 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31209
31210         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
31211         %{no_archive} %{exact_version}.
31212         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
31213         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
31214         %{no_archive} %{exact_version}.
31215         * config/mips/openbsd.h (LINK_SPEC): Likewise.
31216         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
31217         * config/mips/vxworks.h: Likewise.
31218
31219 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31220
31221         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
31222
31223 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31224
31225         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
31226         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
31227
31228 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31229
31230         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
31231         -nodefaultlib.
31232
31233 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31234
31235         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
31236         for mcpu not cpu.
31237         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
31238         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
31239         not cpu.
31240         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
31241         Don't handle -shlib.
31242
31243 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31244
31245         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
31246         (CC1_SPEC): Don't handle -profile.
31247
31248 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31249
31250         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
31251         * config/mips/mips.h (CC1_SPEC): Likewise.
31252
31253 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31254
31255         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
31256         * config/mips/mips.h (CC1_SPEC): Likewise.
31257
31258 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31259
31260         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
31261         * config/m32r/linux.h (LINK_SPEC): Likewise.
31262         * config/mips/linux.h (LINK_SPEC): Likewise.
31263         * config/mips/linux64.h (LINK_SPEC): Likewise.
31264         * config/sparc/linux.h (LINK_SPEC): Likewise.
31265         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
31266         LINK_SPEC): Likewise.
31267         * config/xtensa/linux.h (LINK_SPEC): Likewise.
31268
31269 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31270
31271         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
31272         %{version:-v}.
31273         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
31274
31275 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31276
31277         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
31278         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
31279
31280 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31281
31282         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
31283
31284 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31285
31286         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
31287         supports -Bstatic/-Bdynamic.
31288         * configure: Regenerate.
31289
31290 2011-01-14  Jan Hubicka  <jh@suse.cz>
31291             Jack Howarth  <howarth@bromo.med.uc.edu>
31292
31293         PR target/46037
31294         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
31295         when checking debug_info_level. Test write_symbols instead of
31296         debug_hooks->var_location when setting flag_var_tracking_uninit.
31297
31298 2011-01-14  Richard Guenther  <rguenther@suse.de>
31299
31300         PR tree-optimization/47179
31301         * target.def (ref_may_alias_errno): New target hook.
31302         * targhooks.h (default_ref_may_alias_errno): Declare.
31303         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
31304         (default_ref_may_alias_errno): New function.
31305         * target.h (struct ao_ref_s): Declare.
31306         * tree-ssa-alias.c: Include target.h.
31307         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
31308         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
31309         (targhooks.o): Likewise.
31310         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
31311         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
31312
31313 2011-01-14  Richard Guenther  <rguenther@suse.de>
31314
31315         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
31316
31317 2011-01-14  Richard Guenther  <rguenther@suse.de>
31318
31319         PR tree-optimization/47280
31320         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
31321         return CFG changes.
31322         (tree_ssa_forward_propagate_single_use_vars): Deal with
31323         CFG changes from associate_plusminus.
31324
31325 2011-01-14  Richard Guenther  <rguenther@suse.de>
31326
31327         PR middle-end/47281
31328         Revert
31329         2011-01-11  Richard Guenther  <rguenther@suse.de>
31330
31331         PR tree-optimization/46076
31332         * tree-ssa.c (useless_type_conversion_p): Conversions from
31333         unprototyped to empty argument list function types are useless.
31334
31335 2011-01-14  Richard Guenther  <rguenther@suse.de>
31336
31337         PR tree-optimization/47286
31338         * tree-ssa-structalias.c (new_var_info): Register variables are global.
31339
31340 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31341
31342         PR middle-end/46823
31343         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31344
31345 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
31346
31347         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31348         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31349         * config/xtensa/xtensa.c (xtensa_libcall_value,
31350         xtensa_function_value_regno_p): New functions.
31351         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31352
31353 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
31354
31355         PR c++/47213
31356         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31357         PE specific hook.
31358         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31359         New function prototype.
31360         * config/i386/winnt.c (i386_pe_assemble_visibility):
31361         Warn only if attribute was specified by user.
31362
31363 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
31364
31365         PR target/47251
31366         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31367         floating point.
31368         (floatunsdidf2_fcfidu): Ditto.
31369
31370 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31371
31372         * config/s390/s390.c (print_operand_address): Replace 'error' with
31373         'output_operand_lossage'.
31374         (print_operand): Likewise.
31375
31376 2011-01-13  Jeff Law  <law@redhat.com>
31377
31378         PR rtl-optimization/39077
31379         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31380         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31381         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31382         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31383         * gcse.c (prune_insertions_deletions): New function.
31384         (compute_pre_data): Use it.
31385
31386 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
31387
31388         PR debug/PR46973
31389         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31390         static function.
31391         (prune_unused_types_mark): Use it.
31392
31393 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
31394
31395         PR rtl-optimization/45352
31396         * sel-sched.c: Update copyright years.
31397         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31398         in the advancing loop when we have issued issue_rate insns.
31399
31400 2011-01-12  Richard Henderson  <rth@redhat.com>
31401
31402         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31403         (TARGET_MD_ASM_CLOBBERS): New.
31404
31405         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31406         (TARGET_DELEGITIMIZE_ADDRESS): New.
31407
31408         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31409         (clzsi2, *bsch): New patterns.
31410
31411         * config/mn10300/mn10300.md (INT): New mode iterator.
31412         (*mov<INT>_clr): New pattern, and peep2 to generate it.
31413
31414         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31415         flag_split_wide_types.
31416
31417         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31418         (mn10300_trampoline_init): Rewrite without a template, an immediate
31419         load and a direct branch.
31420         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31421
31422 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
31423
31424         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31425         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31426         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31427         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31428
31429 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
31430
31431         PR debug/47209
31432         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31433         of type.
31434
31435 2011-01-12  Jan Hubicka  <jh@suse.cz>
31436
31437         PR driver/47244
31438         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31439         (PLUGIN_COND_CLOSE): New macro.
31440         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31441
31442 2011-01-12  Richard Guenther  <rguenther@suse.de>
31443
31444         PR lto/47259
31445         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31446         register variables in a MEM_REF.
31447
31448 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
31449
31450         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31451         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31452         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31453         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31454         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31455         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31456         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31457         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31458         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31459         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31460         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31461         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31462         * config/gnu-user.h: New.  Copied from linux.h.
31463         (LINUX_TARGET_STARTFILE_SPEC): Rename to
31464         GNU_USER_TARGET_STARTFILE_SPEC.
31465         (LINUX_TARGET_ENDFILE_SPEC): Rename to
31466         GNU_USER_TARGET_ENDFILE_SPEC.
31467         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31468         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31469         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31470         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31471         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31472         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31473         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31474         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31475         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31476         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31477         * config/arm/linux-eabi.h (CC1_SPEC): Use
31478         GNU_USER_TARGET_CC1_SPEC.
31479         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31480         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31481         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31482         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31483         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31484         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31485         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31486         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31487
31488 2011-01-12  Richard Guenther  <rguenther@suse.de>
31489
31490         PR other/46946
31491         * doc/invoke.texi (ffast-math): Document it is turned on
31492         with -Ofast.
31493
31494 2011-01-12  Jan Hubicka  <jh@suse.cz>
31495
31496         PR tree-optimization/47233
31497         * opts.c (common_handle_option): Disable ipa-reference with profile
31498         feedback.
31499
31500 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31501
31502         * c-parser.c (c_parser_objc_at_property_declaration): Improved
31503         error message.
31504
31505 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31506
31507         * c-parser.c (c_lex_one_token): Updated and reindented some
31508         comments.  No changes in code.
31509
31510 2011-01-11  Ian Lance Taylor  <iant@google.com>
31511
31512         * godump.c (go_output_var): Don't output the variable if there is
31513         already a type with the same name.
31514
31515 2011-01-11  Ian Lance Taylor  <iant@google.com>
31516
31517         * godump.c (go_format_type): Don't generate float80.
31518
31519 2011-01-11  Richard Henderson  <rth@redhat.com>
31520
31521         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31522         declaration.  Rewrite for both speed and size.
31523         (mn10300_address_cost_1): Remove.
31524         (mn10300_register_move_cost): New.
31525         (mn10300_memory_move_cost): New.
31526         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
31527         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
31528         extensions, shifts, BSWAP, CLZ.
31529         (mn10300_wide_const_load_uses_clr): Remove.
31530         (TARGET_REGISTER_MOVE_COST): New.
31531         (TARGET_MEMORY_MOVE_COST): New.
31532         * config/mn10300/mn10300-protos.h: Update.
31533         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31534
31535         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31536         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31537         * config/mn10300/mn10300-protos.h: Update.
31538         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31539         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31540         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31541         (*test_int_bitfield, *test_byte_bitfield): Remove.
31542         (*bit_test, *subreg_bit_test): Remove.
31543         * config/mn10300/predicates.md (const_8bit_operand): Remove.
31544
31545         * config/mn10300/constraints.md ("c"): Rename from "A".
31546         ("A", "D"): New constraint letters.
31547         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31548         (fmssf4, fnmasf4, fnmssf4): Likewise.
31549
31550         * config/mn10300/mn10300.md (isa): New attribute.
31551         (enabled): New attribute.
31552
31553         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31554         (abssf2, negsf2): Define only for hardware fp.
31555         (sqrtsf2): Reformat.
31556         (addsf3, subsf3, mulsf3): Merge expander and insn.
31557
31558         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31559         (DEBUGGER_AUTO_OFFSET): Remove.
31560         (DEBUGGER_ARG_OFFSET): Remove.
31561
31562         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31563         Emit register stores with the same offsets as the hardware.
31564         (mn10300_store_multiple_operation): Don't check that the register
31565         save offsets are monotonic.
31566         * config/mn10300/mn10300-protos.h: Update.
31567
31568         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31569
31570         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31571         in terms of the value on the stack, not the MDR register.
31572
31573 2011-01-11  Jan Hubicka  <jh@suse.cz>
31574
31575         PR lto/45721
31576         PR lto/45375
31577         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31578         (symbol_alias_set_destroy, symbol_alias_set_contains,
31579         propagate_aliases_backward): Declare.
31580         * lto-streamer-out.c (struct sets): New sturcture.
31581         (trivally_defined_alias): New function.
31582         (output_alias_pair_p): Rewrite.
31583         (output_unreferenced_globals): Fix output of alias pairs.
31584         (produce_symtab): Likewise.
31585         * ipa.c (function_and_variable_visibility): Set weak alias destination
31586         as needed in lto.
31587         * varasm.c (symbol_alias_set_t): Remove.
31588         (symbol_alias_set_destroy): Export.
31589         (propagate_aliases_forward, propagate_aliases_backward): New functions
31590         based on ...
31591         (compute_visible_aliases): ... this one; remove.
31592         (trivially_visible_alias): New
31593         (trivially_defined_alias): New.
31594         (remove_unreachable_alias_pairs): Rewrite.
31595         (finish_aliases_1): Reorganize code checking if alias is defined.
31596         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31597         in LTO mode.
31598
31599 2011-01-11  Richard Guenther  <rguenther@suse.de>
31600
31601         PR tree-optimization/46076
31602         * tree-ssa.c (useless_type_conversion_p): Conversions from
31603         unprototyped to empty argument list function types are useless.
31604
31605 2011-01-11  Richard Guenther  <rguenther@suse.de>
31606
31607         PR middle-end/45235
31608         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31609         volatile MEMs as MEM_READONLY_P.
31610
31611 2011-01-11  Richard Guenther  <rguenther@suse.de>
31612
31613         PR tree-optimization/47239
31614         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31615
31616 2011-01-11  Jeff Law  <law@redhat.com>
31617
31618         PR tree-optimization/47086
31619         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31620         IVs from statements that might throw.
31621
31622 2011-01-10  Jan Hubicka  <jh@suse.cz>
31623
31624         PR lto/45375
31625         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31626
31627 2011-01-10  Jan Hubicka  <jh@suse.cz>
31628
31629         PR lto/45375
31630         * profile.c (read_profile_edge_counts): Ignore profile inconistency
31631         when correcting profile.
31632
31633 2011-01-10  Jan Hubicka  <jh@suse.cz>
31634
31635         PR lto/46083
31636         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31637         DECL_FINI_PRIORITY.
31638         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31639         Restore DECL_FINI_PRIORITY.
31640
31641 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31642
31643         * doc/gimple.texi: Fix quoting of multi-word return values in
31644         @deftypefn statements.  Ensure presence of return value.  Wrap
31645         overlong @deftypefn lines.
31646         (is_gimple_operand, is_gimple_min_invariant_address): Remove
31647         descriptions of removed functions.
31648         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31649         of multi-word return value in @deftypefn statement.
31650
31651 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31652
31653         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31654         (Conditional Expressions, Logical Operators)
31655         (Statement and operand traversals): Do not indent smallexample
31656         code.  Fix duplicate function argument in example.
31657
31658 2011-01-10  Jeff Law  <law@redhat.com>
31659
31660         PR tree-optimization/47141
31661         * ipa-split.c (split_function): Handle case where we are
31662         returning a value and the return block has a virtual operand phi.
31663
31664 2011-01-10  Jan Hubicka  <jh@suse.cz>
31665
31666         PR tree-optimization/47234
31667         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31668         (pass_feedback_split_functions): Declare.
31669         * passes.c (init_optimization_passes): Add ipa-split as subpass of
31670         tree-profile.
31671         * ipa-split.c (gate_split_functions): Update comments; disable
31672         split-functions for profile_arc_flag and branch_probabilities.
31673         (gate_feedback_split_functions): New function.
31674         (execute_feedback_split_functions): New function.
31675         (pass_feedback_split_functions): New global var.
31676
31677 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
31678
31679         PR lto/46760
31680         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31681         calling gimple_call_set_cannot_inline.
31682
31683 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
31684
31685         * config/darwin-sections.def: Remove unused section.
31686
31687 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
31688
31689         PR c++/47218
31690         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31691
31692 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
31693
31694         PR objc/47232
31695         * c-parser.c (c_parser_declaration_or_fndef): Improved
31696         error message.
31697
31698 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
31699
31700         * config/i386/winnt.c (i386_pe_start_function): Make sure
31701         to switch back to function's section.
31702
31703 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
31704
31705         PR gcc/46902
31706         PR testsuite/46912
31707         * plugin.c: Move include of dlfcn.h from here...
31708         * system.h: ... to here.
31709
31710 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31711
31712         * doc/cpp.texi (C++ Named Operators): Fix markup for header
31713         file name.
31714         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31715         two extra empty pages in PDF output.
31716
31717 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
31718
31719         PR objc/47078
31720         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31721         for error recovery purposes behave as if it was not specified so
31722         that the default type is usd.
31723
31724 2011-01-07  Jan Hubicka  <jh@suse.cz>
31725
31726         PR tree-optmization/46469
31727         * ipa.c (function_and_variable_visibility): Clear needed flags on
31728         nodes with external decls; handle weakrefs merging correctly.
31729
31730 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
31731
31732         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31733         not false.
31734
31735 2011-01-07  Jan Hubicka  <jh@suse.cz>
31736
31737         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31738         and no longer claim that gold is required for linker plugin.
31739         * configure: Regenerate.
31740         * gcc.c (PLUGIN_COND): New macro.
31741         (LINK_COMMAND_SPEC): Use it.
31742         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31743         * config.in (HAVE_LTO_PLUGIN): New.
31744         * configure.ac (--with-lto-plugin): New parameter; autodetect
31745         HAVE_LTO_PLUGIN.
31746
31747 2011-01-07  Jan Hubicka  <jh@suse.cz>
31748
31749         PR tree-optimization/46367
31750         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31751         when we can update original.
31752         (cgraph_mark_inline_edge): Sanity check.
31753         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31754
31755 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31756
31757         * config/spu/spu.h (ASM_COMMENT_START): Define.
31758
31759 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
31760
31761         PR driver/42445
31762         * gcc.c (%>S): New.
31763         (SWITCH_KEEP_FOR_GCC): Likewise.
31764         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31765         (do_spec_1): Handle "%>".
31766
31767         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31768
31769 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
31770
31771         PR target/47201
31772         * config/i386/i386.c (ix86_delegitimize_address): If
31773         simplify_gen_subreg fails, return orig_x.
31774
31775         PR bootstrap/47187
31776         * value-prof.c (gimple_stringop_fixed_value): Handle
31777         lhs of the call properly.
31778
31779 2011-01-07  Jan Hubicka  <jh@suse.cz>
31780
31781         PR lto/45375
31782         * lto-opt.c (lto_reissue_options): Set flag_shlib.
31783
31784 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31785
31786         * target.def (function_switched_text_sections): New hook.
31787         * doc/tm.texi: Regenerated.
31788         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31789         * final.c (default_function_switched_text_sections): New.
31790         (final_scan_insn): Call function_switched_text_sections when a
31791         mid-function section change occurs.
31792         * output.h (default_function_switched_text_sections): Declare.
31793         * config/darwin-protos.h (darwin_function_switched_text_sections):
31794         Likewise.
31795         * config/darwin.c (darwin_function_switched_text_sections): New.
31796         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31797
31798 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31799
31800         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
31801         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
31802         the secondary code fragment when outputting for DWARF == 2.
31803
31804 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
31805
31806         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31807         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31808         Remove.
31809         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31810         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31811
31812 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31813
31814         PR debug/46704
31815         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31816         when it is not empty.
31817
31818 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
31819
31820         Bobcat Enablement
31821         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31822         (case ${target}): Add btver1.
31823         * config/i386/driver-i386.c (host_detect_local_cpu): Let
31824         -march=native recognize btver1 processors.
31825         * config/i386/i386-c.c (ix86_target_macros_internal): Add
31826         btver1 def_and_undef
31827         * config/i386/i386.c (struct processor_costs btver1_cost): New
31828         btver1 cost table.
31829         (m_BTVER1): New definition.
31830         (m_AMD_MULTIPLE): Includes m_BTVER1.
31831         (initial_ix86_tune_features): Add btver1 tune.
31832         (processor_target_table): Add btver1 entry.
31833         (static const char *const cpu_names): Add btver1 entry.
31834         (software_prefetching_beneficial_p): Add btver1.
31835         (ix86_option_override_internal): Add btver1 instruction sets.
31836         (ix86_issue_rate): Add btver1.
31837         (ix86_adjust_cost): Add btver1.
31838         * config/i386/i386.h (TARGET_BTVER1): New definition.
31839         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31840         (enum processor_type): Add PROCESSOR_BTVER1.
31841         * config/i386/i386.md (define_attr "cpu"): Add btver1.
31842
31843 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31844
31845         PR target/43309
31846         * config/i386/i386.c (legitimize_tls_address)
31847         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31848         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31849         (tls_initial_exec_64_sun): New pattern.
31850
31851 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31852
31853         * doc/invoke.texi (Overall Options): Improve wording and markup
31854         of the description of -wrapper.
31855
31856 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31857
31858         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31859         rdynamic, threads): New Driver options.
31860
31861 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31862
31863         PR target/38118
31864         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31865         if coming from .tdata.
31866         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31867
31868 2011-01-06  Jan Hubicka  <jh@suse.cz>
31869
31870         PR lto/47188
31871         * collect2.c (main): Do not enable LTOmode when plugin is active.
31872
31873 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31874
31875         PR other/45915
31876         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31877         --version output if supported.
31878         * configure: Regenerate.
31879
31880 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31881
31882         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31883         Driver options.
31884
31885 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
31886
31887         PR c/47150
31888         * c-convert.c (convert): When converting a complex expression
31889         other than COMPLEX_EXPR to a different complex type, ensure
31890         c_save_expr is called instead of save_expr, unless in_late_binary_op.
31891         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31892         when converting COMPLEX_TYPE.
31893
31894 2011-01-06  Ira Rosen  <irar@il.ibm.com>
31895
31896         PR tree-optimization/47139
31897         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31898         only the last reduction value is used outside the loop.  Update
31899         documentation.
31900
31901 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
31902
31903         * config/rtems.opt: New.
31904         * config.gcc (*-*-rtems*): Use rtems.opt.
31905
31906 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
31907
31908         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31909         processors do not support 3DNow instructions.
31910
31911 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31912
31913         * config/spu/spu.c (spu_option_override): Set parameter
31914         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31915
31916 2011-01-05  Jan Hubicka  <jh@suse.cz>
31917
31918         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31919         at the command line.
31920
31921 2011-01-05  Martin Jambor  <mjambor@suse.cz>
31922
31923         PR lto/47162
31924         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31925         deltas on streamed outgoing edges.
31926         (output_node_opt_summary): Output info for outgoing edges only when
31927         the node is in new parameter set.
31928         (output_cgraph_opt_summary): New parameter set, passed to the two
31929         aforementioned functions.  Update its forward declaration and its
31930         callee too.
31931
31932 2011-01-05  Tom Tromey  <tromey@redhat.com>
31933
31934         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31935         operator to c_finish_omp_atomic.
31936         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31937         (build_unary_op): Update.
31938         (build_modify_expr): Update.
31939         (build_asm_expr): Update.
31940
31941 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31942
31943         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31944         newly inserted insns.
31945         (pad_bb): Likewise.
31946         (spu_emit_branch_hint): Likewise.
31947         (insert_hbrp_for_ilb_runout): Likewise.
31948         (spu_machine_dependent_reorg): Call df_finish_pass after
31949         schedule_insns returns.
31950
31951 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31952
31953         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31954
31955 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31956
31957         PR tree-optimization/47005
31958         * tree-sra.c (struct access): Add 'non_addressable' bit.
31959         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31960         (decide_one_param_reduction): Return 0 if the parameter is passed by
31961         reference and one of the accesses in the group is non_addressable.
31962
31963 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31964
31965         PR tree-optimization/47056
31966         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
31967         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
31968         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
31969
31970 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31971
31972         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
31973         initializer.  Skip view conversions from aggregate types.
31974
31975 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
31976
31977         PR bootstrap/47055
31978         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
31979
31980 2011-01-04  Philipp Thomas  <pth@suse.de>
31981
31982         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
31983         obvious typo.
31984
31985 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31986
31987         * function.c (thread_prologue_and_epilogue_insns): Do not crash
31988         on empty epilogue sequences.
31989
31990 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
31991
31992         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
31993         non-static): New Driver options.
31994
31995 2011-01-04  Jie Zhang  <jie@codesourcery.com>
31996
31997         PR driver/47137
31998         * gcc.c (default_compilers[]): Set combinable field to 0
31999         for all assembly languages.
32000
32001 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
32002
32003         * config/mips/loongson3a.md: New file.
32004         * config/mips/mips.md: Include loongson3a.md.
32005         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
32006         TUNE_LOONGSON_3A.
32007
32008 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
32009
32010         PR middle-end/47017
32011         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
32012         instead of convert_memory_address_addr_space on the base expression.
32013
32014 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32015
32016         * config/spu/spu.c (spu_option_override): Update error text
32017         for bad -march= / -mtune= values.
32018
32019 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32020
32021         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
32022         if branch-hint optimization will be performed.
32023
32024 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32025
32026         PR tree-optimization/47148
32027         * ipa-split.c (split_function): Convert arguments to
32028         DECL_ARG_TYPE if possible.
32029
32030         PR tree-optimization/47155
32031         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
32032         when computing uns.
32033
32034         PR rtl-optimization/47157
32035         * combine.c (try_combine): If undobuf.other_insn becomes
32036         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
32037         and set *new_direct_jump_p too.
32038
32039 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
32040
32041         PR tree-optimization/47021
32042         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
32043
32044 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32045
32046         * gcc.c (process_command): Update copyright notice dates.
32047         * gcov.c (print_version): Likewise.
32048         * gcov-dump.c (print_version): Likewise.
32049         * mips-tfile.c (main): Likewise.
32050         * mips-tdump.c (main): Likewise.
32051
32052 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32053
32054         PR tree-optimization/46801
32055         * tree-sra.c (type_internals_preclude_sra_p): Check whether
32056         aggregate fields start at byte boundary instead of the bit-field flag.
32057
32058 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
32059
32060         PR driver/47137
32061         * gcc.c (main): Revert revision 168407.
32062
32063 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32064
32065         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32066
32067 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32068
32069         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32070         vector optab to expand vector/scalar shift, update gimple to vector.
32071
32072 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32073
32074         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32075         a thunk.
32076
32077 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32078
32079         PR tree-optimization/46984
32080         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32081         HOST_WIDE_INT.
32082         (cgraph_create_indirect_edge): Fixed line length.
32083         (cgraph_indirect_call_info): Declare.
32084         (cgraph_make_edge_direct) Update declaration.
32085         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32086         (cgraph_create_indirect_edge): Use it.
32087         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
32088         callees.
32089         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32090         the new thunk_delta representation.
32091         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32092         HOST_WIDE_INT.
32093         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32094         (ipa_read_indirect_edge_info): Likewise.
32095         * lto-cgraph.c (output_edge_opt_summary): New function.
32096         (output_node_opt_summary): Call it on all outgoing edges.
32097         (input_edge_opt_summary): New function.
32098         (input_node_opt_summary): Call it on all outgoing edges.
32099
32100 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
32101
32102         PR driver/47137
32103         * gcc.c (main): Don't check have_o when settting combine_inputs.
32104
32105 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
32106
32107         * regrename.c: Add general comment describing the pass.
32108         (struct du_head): Remove 'length' field.
32109         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32110         (regrename_optimize): Do not sort chains.  Rework comments, add others.
32111         Force renaming to the preferred class (if any) in the first pass and do
32112         not consider registers that belong to it in the second pass.
32113         (create_new_chain): Do not set 'length' field.
32114         (scan_rtx_reg): Likewise.
32115
32116 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
32117
32118         PR tree-optimization/47140
32119         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32120         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32121         to bit_value_binop.
32122
32123         PR rtl-optimization/47028
32124         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32125         parm_birth_insn instead of at the beginning of first bb.
32126
32127 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
32128
32129         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32130         Remove the word "see" before "@pxref".
32131         * doc/rtl.texi: Remove the word "see" before "@pxref".
32132
32133 2011-01-01  Jan Hubicka  <jh@suse.cz>
32134
32135         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32136         memory.
32137
32138 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
32139
32140         PR target/38662
32141         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32142
32143 \f
32144 Copyright (C) 2011 Free Software Foundation, Inc.
32145
32146 Copying and distribution of this file, with or without modification,
32147 are permitted in any medium without royalty provided the copyright
32148 notice and this notice are preserved.