OSDN Git Service

8247454031a6bbed52e4f6b3c08dc4dedd26e41c
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
2
3         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
4         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
5         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
6         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7         (op_code_prio): Likewise.
8         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
9         * optabs.c (optab_for_tree_code): Handle
10         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
11         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
12         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
13         * genopinit.c (optabs): Initialize the new optabs.
14         * expr.c (expand_expr_real_2): Handle
15         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
16         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
17         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
18         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
19         VEC_WIDEN_LSHIFT_LO_EXPR): New.
20         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
21         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
22         vect_recog_widen_shift_pattern.
23         (vect_handle_widen_mult_by_const): Rename...
24         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
25         Add a new argument, update documentation.
26         (vect_recog_widen_mult_pattern): Assume that only second
27         operand can be constant.  Update call to
28         vect_handle_widen_op_by_const.
29         (vect_recog_over_widening_pattern): Fix typo.
30         (vect_recog_widen_shift_pattern): New.
31         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
32         widening shifts.
33         (supportable_widening_operation): Likewise.
34         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
35         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
36         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
37         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
38         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
39         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
40         Likewise.
41         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
42         New.
43         * config/arm/iterators.md (V_innermode): New.
44         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
45         for widening shift.
46
47 2011-10-18  Richard Guenther  <rguenther@suse.de>
48
49         * tree-ssa-alias.h (struct pt_solution): Remove
50         vars_contains_restrict member.
51         (pt_solutions_same_restrict_base): Remove.
52         (pt_solution_set): Adjust.
53         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
54         vars_contains_restrict handling.
55         (dump_points_to_solution): Likewise.
56         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
57         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
58         field.
59         (new_var_info): Do not initialize it.
60         (ipa_escaped_pt): Adjust.
61         (make_constraint_from_restrict): Make the tag global.
62         (make_constraint_from_global_restrict): New function.
63         (make_constraint_from_heapvar): Remove.
64         (create_variable_info_for): Do not make restrict vars point
65         to NONLOCAL.
66         (intra_create_variable_infos): Likewise.
67         (find_what_var_points_to): Remove vars_contains_restrict handling.
68         (pt_solution_set): Adjust.
69         (pt_solution_ior_into): Likewise.
70         (pt_solutions_same_restrict_base): Remove.
71         (compute_points_to_sets): Do not test is_restrict_var.
72         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
73         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
74
75 2011-10-18  Tom de Vries  <tom@codesourcery.com>
76
77         PR tree-optimization/50672
78         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
79         factored out of ...
80         (mark_virtual_phi_result_for_renaming): Use
81         mark_virtual_operand_for_renaming.
82         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
83         * tree-ssa-tail-merge.c (release_last_vdef): New function.
84         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
85         deleted basic block.
86         (tail_merge_optimize): Add argument to call to purge_bbs.
87
88 2011-10-18  Richard Guenther  <rguenther@suse.de>
89
90         PR middle-end/50716
91         * expr.c (get_object_or_type_alignment): New function.
92         (expand_assignment): Use it.
93         (expand_expr_real_1): Likewise.
94
95 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
96
97         PR bootstrap/50760
98         * input.c (dump_line_table_statistics): Use long, not size_t.
99
100 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
101
102         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
103
104 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
105
106         * gcc/c-family/c-common.c (c_common_reswords): Add __bases,
107         __direct_bases.
108         * gcc/c-family/c-common.h: Add RID_BASES and RID_DIRECT_BASES.
109
110 2011-10-17  Simon Baldwin  <simonb@google.com>
111             Ian Lance Taylor  <iant@google.com>
112
113         * configure.ac: Add --with-native-system-header-dir.  Set and
114         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
115         when setting target_header_dir.
116         * config.gcc: Always set native_system_header_dir.
117         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
118         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
119         use i386/t-djgpp.
120         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
121         native_system_header_dir.
122         (spu-*-elf*): Set native_system_header_dir.
123         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
124         @NATIVE_SYSTEM_HEADER_DIR@.
125         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
126         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
127         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
128         STANDARD_INCLUDE_COMPONENT.
129         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
130         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
131         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
132         STANDARD_INCLUDE_COMPONENT.
133         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
134         * config/i386/t-mingw-w32: Likewise.
135         * config/i386/t-mingw-w64: Likewise.
136         * config/spu/t-spu-elf: Likewise.
137         * config/i386/t-djgpp: Remove.
138         * config/t-gnu: Remove.
139         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
140         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
141         STANDARD_INCLUDE_COMPONENT.
142         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
143         * config/spu/spu-elf.h: Likewise.
144         * config/vms/xm-vms.h: Likewise.
145         * config/gnu.h: Likewise.
146         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
147         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
148         NATIVE_SYSTME_HEADER_COMPONENT.
149         * doc/install.texi (Configuration): Document
150         --with-native-system-header-dir.  Mention it in the documentation
151         for --with-sysroot and --with-build-sysroot.
152         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
153         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
154         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
155         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
156         * doc/fragments.texi (Target Fragment): Don't document
157         NATIVE_SYSTEM_HEADER_DIR.
158         * configure, doc/tm.texi: Rebuild.
159
160 2011-10-17  Richard Henderson  <rth@redhat.com>
161
162         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
163         is the constraint.
164
165         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
166         patterns.
167         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
168         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
169
170 2011-10-17  David S. Miller  <davem@davemloft.net>
171
172         * config/sparc/sparc-modes.def: Add single entry vector modes for
173         DImode and SImode.
174         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
175         mode iterators.
176         (mov<V32:mode>): Revert back to plain SFmode pattern.
177         (*movsf_insn): Likewise.
178         (mov<V64:mode>): Revert back to plain DFmode pattern.
179         (*movdf_insn_sp32): Likewise.
180         (*movdf_insn_sp32_v9): Likewise.
181         (*movdf_insn_sp64): Likewise.
182         (V64 mode splitters) Likewise.
183         (addsi3): Remove VIS alternatives.
184         (subsi3): Likewise.
185         (and<V64I:mode>3): Revert to DImode only pattern.
186         (and<V64I:mode>3_sp32): Likewise.
187         (*and<V64I:mode>3_sp64): Likewise.
188         (and<V32I:mode>3): Likewise.
189         (*and_not_<V64I:mode>_sp32): Likewise.
190         (*and_not_<V64I:mode>_sp64): Likewise.
191         (*and_not_<V32I:mode>): Likewise.
192         (ior<V64I:mode>3): Likewise.
193         (*ior<V64I:mode>3_sp32): Likewise.
194         (*ior<V64I:mode>3_sp64): Likewise.
195         (ior<V32I:mode>3): Likewise.
196         (*or_not_<V64I:mode>_sp32): Likewise.
197         (*or_not_<V64I:mode>_sp64): Likewise.
198         (*or_not_<V32I:mode>): Likewise.
199         (xor<V64I:mode>3): Likewise.
200         (*xor<V64I:mode>3_sp32): Likewise.
201         (*xor<V64I:mode>3_sp64): Likewise.
202         (xor<V32I:mode>3): Likewise.
203         (V64I mode splitters): Likewise.
204         (*xor_not_<V64I:mode>_sp32): Likewise.
205         (*xor_not_<V64I:mode>_sp64): Likewise.
206         (*xor_not_<V32I:mode>): Likewise.
207         (one_cmpl<V64I:mode>2): Likewise.
208         (*one_cmpl<V64I:mode>2_sp32): Likewise.
209         (*one_cmpl<V64I:mode>2_sp64): Likewise.
210         (one_cmpl<V32I:mode>2): Likewise.
211         (VM32, VM64, VMALL): New mode iterators.
212         (vbits, vconstr, vfptype): New mode attributes.
213         (mov<VMALL:mode>): New expander.
214         (*mov<VM32:mode>_insn): New insn.
215         (*mov<VM64:mode>_insn_sp64): New insn.
216         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
217         specifically for the register to memory case.
218         (vec_init<mode>): New expander.
219         (VADDSUB): New mode iterator.
220         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
221         with...
222         (<plusminus_insn><mode>3): New consolidated pattern.
223         (VL): New mode iterator for logical operations.
224         (vlsuf): New more attribute.
225         (vlop): New code iterator.
226         (vlinsn, vlninsn): New code attributes.
227         (<code><mode>3): New insn to non-negated vector logical ops.
228         (*not_<code><mode>3): Likewise for negated variants.
229         (*nand<mode>_vis): New insn.
230         (vlnotop): New code iterator.
231         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
232         (one_cmpl<mode>2): New insn.
233         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
234         (bshuffle<VM64:mode>_vis): Likewise.
235         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
236         (fp<plusminus_insn>64_vis): Use V1DI mode.
237         (VASS mode iterator): Use V1SI not SI mode.
238         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
239         single-entry vector mode changes.
240         (sparc_expand_builtin): Likewise.
241         (sparc_expand_vector_init): New function.
242         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
243
244 2011-10-17  Kai Tietz  <ktietz@redhat.com>
245
246         * fold-const.c (simple_operand_p_2): New function.
247         (fold_truthop): Rename to
248         (fold_truth_andor_1): function name.
249         Additionally remove branching creation for logical and/or.
250         (fold_truth_andor): Handle branching creation for logical and/or here.
251
252 2011-10-17  Andi Kleen  <ak@linux.intel.com>
253
254         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
255
256 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
257
258         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
259         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
260         (adjust_len): Add alternative "call".
261         (isa, enabled): New insn attributes.
262         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
263         mcu_mega attribute.
264         (*sbrx_branch<mode>): Ditto.
265         (*sbrx_and_branch<mode>): Ditto.
266         (*sbix_branch): Ditto.
267         (*sbix_branch_bit7): Ditto.
268         (*sbix_branch_tmp): Ditto.
269         (*sbix_branch_tmp_bit7): Ditto.
270         (jump): Ditto.
271         (negsi2): Use attribute "isa" instead of assembler dialect.
272         (extendhisi2): Ditto.
273         (call_insn, call_value_insn): Set adjust_len attribute.
274         (indirect_jump): Indent to coding rules.
275         (call_prologue_saves): Use isa attribute instead of mcu_mega.
276         (epilogue_restores): Ditto.  Fix setting of SP as described in the
277         RTX pattern.
278         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
279         and *indirect_jump_avr6.
280         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
281         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
282         (*tablejump_rjmp, *tablejump_lib): Remove.
283         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
284
285 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
286
287         PR c++/50757
288         * c-family/c.opt ([Wnonnull]): Add C++ and Objective-C++.
289         * doc/invoke.texi: Update.
290
291 2011-10-17  Richard Henderson  <rth@redhat.com>
292
293         PR 50746
294         * optabs.c (expand_vec_perm_expr): Fix indexing error.
295
296 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
297
298         * configure.ac: Display `yes' if the SystemTap header has been
299         found.
300         * configure: Regenerate.
301
302 2011-10-08  Andi Kleen  <ak@linux.intel.com>
303
304         PR other/50636
305         * config.in, configure: Regenerate.
306         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
307         * ggc-page.c (USING_MADVISE): Add.
308         (page_entry): Add discarded field.
309         (alloc_page): Check for discarded pages.
310         (release_pages): Add USING_MADVISE branch.
311
312 2011-10-17  Richard Guenther  <rguenther@suse.de>
313
314         PR tree-optimization/50729
315         * tree-vrp.c (extract_range_from_unary_expr_1): Remove
316         redundant test.
317         (simplify_conversion_using_ranges): Properly test the
318         intermediate result.
319
320 2011-10-15  Tom Tromey  <tromey@redhat.com>
321             Dodji Seketeli  <dodji@redhat.com>
322
323         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
324         * ggc-none.c (ggc_round_alloc_size): New public stub function.
325         * ggc-page.c (ggc_alloced_size_order_for_request): New static
326         function.  Factorized from ggc_internal_alloc_stat.
327         (ggc_round_alloc_size): New public function.  Uses
328         ggc_alloced_size_order_for_request.
329         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
330         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
331         from ggc_internal_alloc_zone_stat.
332         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
333         * toplev.c (general_init): Initialize
334         line_table->alloced_size_for_request.
335
336 2011-10-15  Tom Tromey  <tromey@redhat.com>
337             Dodji Seketeli  <dodji@redhat.com>
338
339         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
340         macros.
341         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
342         new counters.
343         (dump_line_table_statistics): Define new function.
344         * input.h (dump_line_table_statistics): Declare new function.
345         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
346
347 2011-10-15  Tom Tromey  <tromey@redhat.com>
348             Dodji Seketeli  <dodji@redhat.com>
349
350         * doc/cppopts.texi: Document -fdebug-cpp.
351         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
352         options.
353
354 2011-10-15  Tom Tromey  <tromey@redhat.com>
355             Dodji Seketeli  <dodji@redhat.com>
356
357         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
358         location parameter.
359         * diagnostic.c (diagnostic_report_current_module): Add a location
360         parameter to the function definition.  Use it instead of
361         input_location.  Resolve the virtual location rather than just
362         looking up its map and risking to touch a resulting macro map.
363         (default_diagnostic_starter): Pass the relevant diagnostic
364         location to diagnostic_report_current_module.
365         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
366         (virt_loc_aware_diagnostic_finalizer): Likewise.
367         (diagnostic_report_current_function): Pass the
368         relevant location to diagnostic_report_current_module.
369         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
370         new function.
371         * toplev.c (general_init): By default, use the new
372         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
373         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
374
375 2011-10-15  Tom Tromey  <tromey@redhat.com>
376             Dodji Seketeli  <dodji@redhat.com>
377
378         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
379         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
380         preprocessor related options.
381
382 2011-10-15  Tom Tromey  <tromey@redhat>
383             Dodji Seketeli  <dodji@redhat.com>
384
385         * input.h (struct expanded_location): Move to libcpp/line-map.h.
386         (LOCATION_COLUMN): New accessor
387         (in_system_header_at): Use linemap_location_in_system_header_p.
388         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
389         touching the internals of struct line_map.  Use the public API.
390         instead.
391         (diagnostic_report_diagnostic): Don't use relational operator '<'
392         on virtual locations.  Use linemap_location_before_p instead.
393         * input.c (expand_location): Adjust to expand to the tokens'
394         spelling location when macro location tracking is on.
395
396
397 2011-10-08  Andi Kleen  <ak@linux.intel.com>
398
399         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
400
401 2011-10-13  Andi Kleen  <ak@linux.intel.com>
402
403         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
404
405 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
406
407         PR tree-optimization/50727
408         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
409         DEF_STMT to the list of statements to be replaced by the
410         pattern statements.
411
412 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
413
414         PR rtl-optimization/50615
415         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
416
417 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
418
419         PR tree-optimization/50596
420         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
421         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
422         vect_recog_bool_pattern.
423         (check_bool_pattern, adjust_bool_pattern_cast,
424         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
425
426 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
427
428         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
429         treat the first load of the node as the first element in its
430         interleaving chain.
431         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
432         necessary and possible.
433         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
434         in basic blocks.  Keep all the loads for further permutation check.
435         Use the new argument to determine if there is a permutation.  Update
436         the recursive calls.
437         (vect_supported_load_permutation_p): Allow subchains of interleaving
438         chains in basic block vectorization.
439         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
440         Check load permutation based on the new parameter.
441         (vect_schedule_slp_instance): Don't start from the first element in
442         interleaving chain unless the loads are permuted.
443
444 2011-10-15  Jan Hubicka  <jh@suse.cz>
445
446         PR target/48668
447         PR target/50689
448         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
449         after function body.
450
451 2011-10-15  Richard Henderson  <rth@redhat.com>
452
453         * tree-vect-slp.c: Include langhooks.h.
454         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
455         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
456         mask creation for VEC_PERM_EXPR.
457         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
458         not the builtin.
459         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
460         * Makefile.in (tree-vect-slp.o): Update dependency.
461         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
462
463 2011-10-15  Alan Modra  <amodra@gmail.com>
464
465         PR bootstrap/50738
466         * ifcvt.c (dead_or_predicable): Revert accidental commit with
467         HAVE_simple_return test.
468
469 2011-10-15  Alan Modra  <amodra@gmail.com>
470
471         * ifcvt.c (dead_or_predicable): Disable if-conversion when
472         doing so is likely to kill a shrink-wrapping opportunity.
473
474         PR rtl-optimization/49941
475         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
476
477         * rtl.h (set_return_jump_label): Declare.
478         * function.c (set_return_jump_label): New function, extracted..
479         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
480         another instance to set return jump_label.
481         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
482         * reorg.c (find_end_label): Likewise.
483
484 2011-10-14  David S. Miller  <davem@davemloft.net>
485
486         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
487         with a more complete cpp test.
488         * config/sparc/linux64.h: Likewise.
489         * config/sparc/linux.h: Likewise.
490         * config/sparc/sparc.opt (sparc_debug): New target variable.
491         (mdebug): New target option.
492         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
493         TARGET_DEBUG_OPTIONS): New defines.
494         * config/sparc/sparc.c (debug_target_flag_bits,
495         debug_target_flags): New functions.
496         (sparc_option_override): Add name strings back to cpu_table[].
497         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
498         out the target flags before and after override processing as well
499         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
500         cpu is at least v9.
501
502 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
503
504         PR target/49263
505         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
506         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
507         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
508         and instruction commutative.
509         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
510         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
511         tstsi_t_zero_extract_subreg_xor_little,
512         tstsi_t_zero_extract_subreg_xor_big): New insns.
513         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
514         asm output.
515         (*andsi_compact): Reorder alternatives so that K08 is considered first.
516
517 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
518
519         PR target/50354
520         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
521         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
522
523 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
524
525         * invoke.texi (AVR Options): Avoid \leq{}.
526
527 2011-10-14  Kai Tietz  <ktietz@redhat.com>
528
529         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
530         transformation the operands have compatible types.
531
532 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
533
534         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
535         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
536         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
537         mode iterator and any_extend code iterator.
538         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
539         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
540         also for TARGET_SSE4_1 using pmuldq insn.
541         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
542         (sse2_sse4_1): New code attr.
543         (udot_prodv4si): Macroize using any_extend code iterator.
544         (<s>dot_prodv8si): New expander.
545
546 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
547
548         * config/i386/i386.c (atom_cost): Changed cost for loading
549         QImode using movzbl.
550
551 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
552
553         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
554         change on October 11th, 2011.
555
556 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
557
558         * config/i386/sse.md (vec_interleave_high<mode>,
559         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
560         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
561         (ix86_expand_vec_perm_builtin_1): Call it.
562
563 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
564
565         Fix thinko from r179765
566         * config/avr/avr.c (avr_option_override): Don't override
567         flag_omit_frame_pointer if not actually needed.
568
569 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
570
571         PR target/46278
572         * doc/invoke.texi (AVR Options): Document -mstrict-X.
573
574         * config/avr/avr.opt (-mstrict-X): New option.
575         (avr_strict_X): New variable reflecting -mstrict-X.
576         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
577         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
578         (avr_legitimate_address_p): Pass outer_code to
579         avr_reg_ok_for_addr_p and use that function in case PLUS.
580         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
581         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
582         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
583
584 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
585
586         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
587         of VI_128.
588
589         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
590         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
591         Use <sseinsnmode> instead of TI in mode attr.
592
593 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
594
595         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
596         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
597         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
598         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
599
600 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
601
602         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
603         (arm_output_strex): Support strexd.
604         (arm_output_it): New helper to output it in Thumb2 mode only.
605         (arm_output_sync_loop): Support DI mode.  Change comment to
606         not support const_int.
607         (arm_expand_sync): Support DI mode.
608         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
609         and LDREXD.
610         * config/arm/iterators.md (NARROW): move from sync.md.
611         (QHSD): New iterator for all current ARM integer modes.
612         (SIDI): New iterator for SI and DI modes only.
613         * config/arm/sync.md (sync_predtab): New mode_attr.
614         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
615         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
616         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
617         (sync_nandsi): Fold into sync_nand<mode>.
618         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
619         (sync_new_nandsi): Fold into sync_new_nand<mode>.
620         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
621         (sync_old_nandsi): Fold into sync_old_nand<mode>.
622         (sync_compare_and_swap<mode>): Support SI & DI.
623         (sync_lock_test_and_set<mode>): Likewise.
624         (sync_<sync_optab><mode>): Likewise.
625         (sync_nand<mode>): Likewise.
626         (sync_new_<sync_optab><mode>): Likewise.
627         (sync_new_nand<mode>): Likewise.
628         (sync_old_<sync_optab><mode>): Likewise.
629         (sync_old_nand<mode>): Likewise.
630         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
631         (arm_sync_lock_test_and_setsi): Likewise.
632         (arm_sync_new_<sync_optab>si): Likewise.
633         (arm_sync_new_nandsi): Likewise.
634         (arm_sync_old_<sync_optab>si): Likewise.
635         (arm_sync_old_nandsi): Likewise.
636         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
637         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
638         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
639         (arm_sync_new_nand<mode> NARROW): Likewise.
640         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
641         (arm_sync_old_nand<mode> NARROW): Likewise.
642
643 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
644
645         PR target/48126
646         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
647
648 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
649
650         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
651
652 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
653
654         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
655
656 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
657
658         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
659         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
660
661 2011-10-14  Richard Guenther  <rguenther@suse.de>
662
663         PR tree-optimization/50723
664         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
665
666 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
667
668         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
669         objc/objc-map.c.
670
671 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
672
673         PR c++/17212
674         * c-family/c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
675         * doc/invoke.texi: Update.
676
677 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
678
679         PR bootstrap/50699
680         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
681         build for powerpc targets.  (darwin_patch_builtins): Only build for
682         powerpc targets.
683
684 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
685
686         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
687         (avx_cvtdq2pd256_2): ... this.
688         (sseunpackfltmode): New mode attr.
689         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
690         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
691         using VI2_AVX2 iterator.
692         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
693
694 2011-10-13  David S. Miller  <davem@davemloft.net>
695
696         * config/sparc/sparc.md (plusminus): New code iterator.
697         (plusminus_insn): New code attr.
698         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
699         using plusminus and plusminus_insn.
700         (fpadd64_vis, fpsub64_vis): Likewise.
701
702 2011-10-13  Richard Henderson  <rth@redhat.com>
703
704         * doc/md.texi (vec_perm): Document fallback to byte permutation.
705         * genopinit.c (optabs): Add vec_perm_const.
706         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
707         Reject non-vector modes.  Allow fallback to byte permutation.
708         (expand_vec_perm_expr_1): Split out from ...
709         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
710         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
711         * tree-vect-generic.c (lower_vec_perm): Update for name change.
712
713 2011-10-13  Richard Henderson  <rth@redhat.com>
714
715         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
716
717         * config/rs6000/spu.md (vec_permv16qi): New pattern.
718
719         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
720         * config/i386/i386-protos.h: Update.
721         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
722         (vec_perm_const<VEC_PERM_CONST>): New expander.
723
724         * optabs.c (expand_vector_broadcast): New.
725         (expand_binop): Expand scalar shifts of vectors to vector shifts
726         of vectors, if the former isn't supported.
727         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
728         here; always simplify to scalar shift of vector if possible.
729
730         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
731         test for vector splat.
732
733 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
734
735         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
736
737 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
738             Richard Guenther  <rguenther@suse.de>
739
740         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
741         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
742
743 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
744
745         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
746         * config/i386/i386.c (ix86_build_const_vector): Handle
747         also V32QI, V16QI, V16HI and V8HI modes.
748         (emit_reduc_half): New function.
749         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
750         Use emit_reduc_half helper function.
751
752 2011-10-13  Lawrence Crowl  <crowl@google.com>
753             Diego Novillo  <dnovillo@google.com>
754
755         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
756         (input_function): ... here.
757         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
758         (output_function): ... here.
759
760 2011-10-13  Gabriel Charette  <gchare@google.com>
761             Diego Novillo  <dnovillo@google.com>
762
763         * streamer-hooks.h (struct streamer_hooks): Add hooks
764         input_location and output_location.
765         * lto-streamer-in.c (lto_input_location): Use
766         streamer_hooks.input_location, if set.
767         * lto-streamer-out.c (lto_output_location): Use
768         streamer_hooks.output_location, if set.
769
770 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
771
772         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
773         * config/sparc/sparc.opt (mfix-at697f): New option.
774         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
775         (sparc_reorg): New function.
776
777 2011-10-13  Richard Guenther  <rguenther@suse.de>
778
779         PR tree-optimization/50712
780         * ipa-split.c (split_function): Always re-gimplify parameters
781         when they are not gimple vals before passing them.  Properly
782         check for type compatibility.
783
784 2011-10-13  Tom de Vries  <tom@codesourcery.com>
785
786         * function.c (gimplify_parameters): Set number of arguments of call to
787         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
788
789 2011-10-13  Tom de Vries  <tom@codesourcery.com>
790
791         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
792         for static const strings.
793         * varasm.c (build_constant_desc): Generate the memory location of the
794         constant using gen_const_mem.
795
796 2011-10-13  Richard Guenther  <rguenther@suse.de>
797
798         PR tree-optimization/50698
799         * tree-data-ref.c (split_constant_offset_1): Also process
800         offsets of &MEM.
801
802 2011-10-12  David S. Miller  <davem@davemloft.net>
803
804         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
805         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
806         unspecs.
807         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
808         of a vec_concat.
809         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
810         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
811         Reimplement as unspecs and remove inaccurate comments.
812         (vis3_shift_patname): New code attr.
813         (<vis3_shift_insn><vbits>_vis): Rename to
814         "v<vis3_shift_patname><mode>3".
815         (vis3_addsub_ss_patname): New code attr.
816         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
817         "<vis3_addsub_ss_patname><mode>3".
818         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
819         accommodate pattern name changes.
820
821         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
822         to zero when assembler lacks support for such instructions.
823         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
824         and MASK_FMAF in defaults when assembler lacks necessary support.
825
826 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
827
828         * config/i386/sse.md (vec_unpacks_lo_<mode>,
829         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
830         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
831         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
832         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
833
834         * config/i386/sse.md (vec_avx2): New mode_attr.
835         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
836         (mul<mode>3): ... this.
837
838         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
839         * config/i386/i386.c (ix86_expand_vec_perm): Handle
840         V16QImode and V32QImode for TARGET_AVX2.
841         (MAX_VECT_LEN): Increase to 32.
842         (expand_vec_perm_blend): Add support for 32-byte integer
843         vectors with TARGET_AVX2.
844         (valid_perm_using_mode_p): New function.
845         (expand_vec_perm_pshufb): Add support for 32-byte integer
846         vectors with TARGET_AVX2.
847         (expand_vec_perm_vpshufb2_vpermq): New function.
848         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
849         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
850         with TARGET_AVX2.
851         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
852         and expand_vec_perm_vpshufb2_vpermq_even_odd.
853         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
854         32-byte integer vector modes.
855         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
856         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
857         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
858         4 new operands.
859         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
860         match_dup, instead add 4 new operands and require they have
861         right cross-lane values.
862         (avx2_permv4di): Change into define_expand.
863         (avx2_permv4di_1): New instruction.
864         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
865         for "xm" constrained operand.
866         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
867
868         * config/i386/sse.md (avx2_gathersi<mode>,
869         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
870         match_scratch, change memory_operand to register_operand,
871         add (mem:BLK (scratch)) use.
872         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
873         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
874         add earlyclobber to the output operand and match_scratch,
875         add (mem:BLK (scratch)) use, change the other mem to match_operand.
876         Use %p6 instead of %c6 in the pattern.
877         * config/i386/i386.c (ix86_expand_builtin): Adjust for
878         operand 2 being a Pmode register_operand instead of memory_operand.
879
880 2011-10-12  Kai Tietz  <ktietz@redhat.com>
881
882         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
883
884 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
885
886         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
887
888 2011-10-12  Richard Guenther  <rguenther@suse.de>
889
890         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
891         of the first store we visit in a basic-block.
892         (get_continuation_for_phi): Search for a candidate VUSE that
893         might dominates all others.  Do pairwise disambiguation against
894         that candidate.
895
896 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
897
898         PR tree-optimization/50189
899         * tree-vrp.c (extract_range_from_assert): Use the type of
900         the variable, not the limit.
901
902 2011-10-12  Richard Guenther  <rguenther@suse.de>
903
904         PR tree-optimization/50700
905         * tree-object-size.c (addr_object_size): Simplify and treat
906         MEM_REF bases consistently.
907
908 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
909
910         * function.c (prepare_shrink_wrap, bb_active_p): New function.
911         (thread_prologue_and_epilogue_insns): Use bb_active_p.
912         Call prepare_shrink_wrap, then recompute bb_active_p for the
913         last block.
914
915 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
916
917         PR c/50565
918         * convert.c (convert_to_integer): Do not narrow operands of
919         pointer subtraction.
920
921 2011-10-12  Nick Clifton  <nickc@redhat.com>
922
923         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
924         emit a .eabi_attribute assembler directive, possibly with a
925         comment attached.
926         * config/arm/arm.c (arm_file_start): Use the new macro.
927         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
928
929 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
930
931         PR target/49939
932         * config/avr/avr.md (*movqi): Rename to movqi_insn.
933         (*call_insn): Rename to call_insn.
934         (*call_value_insn): Rename to call_value_insn.
935         * config/avr/avr.c (avr_2word_insn_p): New static function.
936         (jump_over_one_insn_p): Use it.
937
938 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
939
940         * expr.h (copy_blkmode_to_reg): Declare.
941         * expr.c (copy_blkmode_to_reg): New function.
942         (expand_assignment): Don't expand register RESULT_DECLs before
943         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
944         RESULT_DECL register.
945         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
946         * stmt.c (expand_return): Move BLKmode-to-register code into
947         copy_blkmode_to_reg.
948
949 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
950
951         PR target/49965
952         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
953         (mov<F:mode>cc): Likewise.
954
955 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
956
957         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
958
959 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
960
961         * tree.h (built_in_decls): Delete old interface with two parallel
962         arrays to hold standard builtin declarations, and replace it with
963         a function based interface that can support creating builtins on
964         the fly in the future.  Change all uses, and poison the old
965         names.  Make sure 0 is not a legitimate builtin index.
966         (implicit_built_in_decls): Ditto.
967         (built_in_info): Ditto.
968         (BUILTIN_VALID_P): Ditto.
969         (builtin_decl_explicit): Ditto.
970         (builtin_decl_implicit): Ditto.
971         (set_builtin_decl): Ditto.
972         (set_builtin_decl_implicit_p): Ditto.
973         (builtin_decl_explicit_p): Ditto.
974         (builtin_decl_implicit_p): Ditto.
975         * tree-complex.c (expand_complex_libcall): Ditto.
976         * tree-loop-distribution.c (generate_memset_zero): Ditto.
977         * tree-ssa-strlen.c (get_string_length): Ditto.
978         (handle_builtin_strcpy): Ditto.
979         (handle_builtin_strcat): Ditto.
980         * tree.c (iterative_hash_expr): Ditto.
981         (local_define_builtin): Ditto.
982         (build_common_builtin_nodes): Ditto.
983         * builtins.c (built_in_decls): Ditto.
984         (implicit_built_in_decls): Ditto.
985         (built_in_info): Ditto
986         (expand_builtin_classify_type): Ditto.
987         (mathfn_built_in_1): Ditto.
988         (expand_builtin_cexpi): Ditto.
989         (expand_builtin_mempcpy_args): Ditto.
990         (expand_builtin_stpcpy): Ditto.
991         (gimplify_va_arg_expr): Ditto.
992         (expand_builtin_sync_operation): Ditto.
993         (build_builtin_expect_predicate): Ditto.
994         (fold_builtin_memory_op): Ditto.
995         (fold_builtin_strcpy): Ditto.
996         (fold_builtin_stpcpy): Ditto.
997         (fold_builtin_strncpy): Ditto.
998         (fold_builtin_interclass_mathfn): Ditto.
999         (fold_builtin_classify): Ditto.
1000         (fold_builtin_2): Ditto.
1001         (fold_builtin_strstr): Ditto.
1002         (fold_builtin_strrchr): Ditto.
1003         (fold_builtin_strpbrk): Ditto.
1004         (fold_builtin_strcat): Ditto.
1005         (fold_builtin_strncat): Ditto.
1006         (fold_builtin_strcspn): Ditto.
1007         (fold_builtin_fputs): Ditto.
1008         (fold_builtin_sprintf): Ditto.
1009         (fold_builtin_snprintf): Ditto.
1010         (expand_builtin_memory_chk): Ditto.
1011         (fold_builtin_memory_chk): Ditto.
1012         (fold_builtin_stxcpy_chk): Ditto.
1013         (fold_builtin_strncpy_chk): Ditto.
1014         (fold_builtin_strcat_chk): Ditto.
1015         (fold_builtin_strncat_chk): Ditto.
1016         (fold_builtin_sprintf_chk_1): Ditto.
1017         (fold_builtin_snprintf_chk_1): Ditto.
1018         (fold_builtin_printf): Ditto.
1019         (fold_builtin_fprintf): Ditto.
1020         (fold_call_stmt): Ditto.
1021         (set_builtin_user_assembler_name): Ditto.
1022         * tree-emutls.c (emutls_common_1): Ditto.
1023         * omp-low.c (scan_omp): Ditto.
1024         (lower_rec_input_clauses): Ditto.
1025         (lower_reduction_clauses): Ditto.
1026         (expand_parallel_call): Ditto.
1027         (expand_task_call): Ditto.
1028         (maybe_catch_exception): Ditto.
1029         (optimize_omp_library_calls): Ditto.
1030         (expand_omp_for_generic): Ditto.
1031         (expand_omp_for_static_nochunk): Ditto.
1032         (expand_omp_for_static_chunk): Ditto.
1033         (expand_omp_sections): Ditto.
1034         (expand_omp_atomic_fetch_op): Ditto.
1035         (expand_omp_atomic_pipeline): Ditto.
1036         (expand_omp_atomic_mutex): Ditto.
1037         (lower_omp_single_simple): Ditto.
1038         (lower_omp_single_copy): Ditto.
1039         (lower_omp_master): Ditto.
1040         (lower_omp_ordered): Ditto.
1041         (lower_omp_critical): Ditto.
1042         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1043         * builtins.c (DEF_BUILTIN_STUB): Ditto.
1044         (BUILT_IN_NONE): Ditto.
1045         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1046         * gimple-low.c (lower_function_body): Ditto.
1047         (lower_builtin_setjmp): Ditto.
1048         * c-decl.c (merge_decls): Ditto.
1049         * tree-eh.c (lower_resx): Ditto.
1050         (lower_resx): Ditto.
1051         (lower_eh_dispatch): Ditto.
1052         * function (gimplify_parameters): Ditto.
1053         * c-typeck.c (build_function_call_vec): Ditto.
1054         * gimplify.c (build_stack_save_restore): Ditto.
1055         (gimplify_vla_decl): Ditto.
1056         (gimplify_modify_expr_to_memcpy): Ditto.
1057         (gimplify_modify_expr_to_memset): Ditto.
1058         (gimplify_variable_sized_compare): Ditto.
1059         (gimplify_function_tree): Ditto.
1060         * calls.c (emit_call_1): Ditto.
1061         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1062         * tree-nested.c (convert_nl_goto_reference): Ditto.
1063         (convert_tramp_reference_op): Ditto.
1064         (finalize_nesting_tree_1): Ditto.
1065         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1066         (tree_ssa_prefetch_arrays): Ditto.
1067         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1068         * system.h (built_in_decls): Ditto.
1069         (implicit_built_in_decls): Ditto.
1070         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1071         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1072         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1073         (ix86_veclibabi_svml): Ditto.
1074         (ix86_veclibabi_acml): Ditto.
1075         * config/vms/vms.c (vms_patch_builtins): Ditto.
1076         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1077         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1078         (rs6000_builtin_vectorized_libmass): Ditto.
1079         (rs6000_init_builtins): Ditto.
1080         * config/darwin.c (darwin_override_options): Ditto.
1081         (darwin_patch_builtin): Ditto.
1082         (darwin_rename_builtins): Ditto.
1083         * config/pa/pa.c (pa_init_builtins): Ditto.
1084
1085 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1086
1087         * tree.h (copy_ref_info): Expose existing function.
1088         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1089         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1090
1091 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1092
1093         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1094         prototype.
1095         (avr_regno_mode_code_ok_for_base_p): New prototype.
1096         * config/avr/avr.h (BASE_REG_CLASS): Remove.
1097         (REGNO_OK_FOR_BASE_P): Remove.
1098         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1099         (REG_OK_FOR_BASE_STRICT_P): Remove.
1100         (MODE_CODE_BASE_REG_CLASS): New define.
1101         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1102         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1103         (avr_regno_mode_code_ok_for_base_p): New function.
1104         (avr_reg_ok_for_addr_p): New static function.
1105         (avr_legitimate_address_p): Use it.  Beautify.
1106
1107 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1108
1109         PR target/50447
1110         * config/avr/avr.md (cc): Add out_plus attribute alternative.
1111         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
1112         avr_out_plus for all CONST_INT addends.
1113         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1114         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1115         CC_OUT_PLUS.
1116         (avr_out_plus_1): Change prototype and report effect on cc0.
1117         (avr_out_plus): Ditto.
1118         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1119
1120 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1121
1122         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1123         the extra break.
1124
1125 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1126
1127         * doc/invoke.texi: Document new warning.
1128         * common.opt (Wvector-operation-performance): Define new warning.
1129         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1130         vector operation.
1131         (exapnd_vector_parallel): Warn about expanded vector operation.
1132         (lower_vec_shuffle): Warn about expanded vector operation.
1133         * c-typeck.c (c_build_vec_perm_expr): Store correct location
1134         when creating VEC_PERM_EXPR.
1135
1136 2011-10-11  Richard Guenther  <rguenther@suse.de>
1137
1138         PR tree-optimization/50204
1139         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
1140         two argument handling from ...
1141         (get_continuation_for_phi): ... here.  Handle arbitrary number
1142         of PHI args.
1143
1144 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
1145
1146         PR c++/33067
1147         * c-family/c-pretty-print.c (pp_c_floating_constant): Output
1148         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1149
1150 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
1151
1152         * modulo-sched.c: Fix comment typo.  Mention the possibility
1153         of using scheduling windows of II+1 cycles.
1154
1155 2011-10-11  Tristan Gingold  <gingold@adacore.com>
1156
1157         * doc/invoke.texi (C Dialect Options): Document
1158         -fallow-parameterless-variadic-functions.
1159         * c-parser.c (c_parser_parms_list_declarator): Handle it.
1160
1161 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1162
1163         * config/avr/avr.c (avr_option_override): Set
1164         flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
1165
1166 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
1167
1168         PR bootstrap/50665
1169         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
1170         optab_index to enum direct_optab_index.
1171         (vec_perm_optab): Update.
1172
1173 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
1174
1175         * config/cris/cris.c (cris_preferred_reload_class): New function.
1176         (TARGET_PREFERRED_RELOAD_CLASS): Define.
1177         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
1178
1179 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1180
1181         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
1182         !AVR_HAVE_JMP_CALL.
1183         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
1184         (*tablejump_enh, *tablejump): Remove insns.
1185         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
1186         EIJMP for indirect jump.  Use LPM Z+ where available.
1187
1188 2011-10-10  Richard Henderson  <rth@redhat.com>
1189
1190         * doc/md.texi (vec_perm_const): Fix typo in cindex.
1191
1192 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
1193             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
1194
1195         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
1196
1197 2011-10-10  Richard Guenther  <rguenther@suse.de>
1198
1199         PR middle-end/50389
1200         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1201         mark symbols for renaming.  Append the VUSE to all statements
1202         that possibly can have one.
1203
1204 2011-10-10  Richard Guenther  <rguenther@suse.de>
1205
1206         * ipa-split.c (pass_split_functions): Add verification TODOs.
1207         (pass_feedback_split_functions): Likewise.
1208
1209 2011-10-10  Richard Guenther  <rguenther@suse.de>
1210
1211         PR middle-end/50195
1212         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
1213         only when optimizing.
1214
1215 2011-10-10  Nick Clifton  <nickc@redhat.com>
1216
1217         PR middle-end/49801
1218         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
1219         df_get_live_out instead of accessing the bitmaps directly.
1220         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
1221         df_live_add_problem and df_analyze.
1222
1223 2011-10-10  Michael Matz  <matz@suse.de>
1224
1225         PR middle-end/50638
1226         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
1227
1228 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1229
1230         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
1231         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
1232         (node_sched_params): Remove first_reg_move and nreg_moves.
1233         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
1234         (update_node_sched_params): Move up file.
1235         (print_node_sched_params): Print the stage.  Don't dump info related
1236         to first_reg_move and nreg_moves.
1237         (set_columns_for_row): New function.
1238         (set_columns_for_ps): Move up file and use set_columns_for_row.
1239         (schedule_reg_move): New function.
1240         (schedule_reg_moves): Call extend_node_sched_params and
1241         schedule_reg_move.  Extend size of uses bitmap.  Initialize
1242         num_consecutive_stages.  Return false if a move could not be
1243         scheduled.
1244         (apply_reg_moves): Don't emit moves here.
1245         (permute_partial_schedule): Handle register moves.
1246         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
1247         to the same stage-count test as ddg nodes.
1248         (generate_prolog_epilog): Update calls accordingly.
1249         (sms_schedule): Allow move-scheduling to add a new first stage.
1250
1251 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1252
1253         * modulo-sched.c (ps_insn): Adjust comment.
1254         (ps_reg_move_info): New structure.
1255         (partial_schedule): Add reg_moves field.
1256         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
1257         (node_sched_params): Turn first_reg_move into an identifier.
1258         (ps_reg_move): New function.
1259         (ps_rtl_insn): Cope with register moves.
1260         (ps_first_note): Adjust comment and assert that the instruction
1261         isn't a register move.
1262         (node_sched_params): Replace with...
1263         (node_sched_param_vec): ...this vector.
1264         (set_node_sched_params): Adjust accordingly.
1265         (print_node_sched_params): Take a partial schedule instead of a ddg.
1266         Use ps_rtl_insn and ps_reg_move.
1267         (generate_reg_moves): Rename to...
1268         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
1269         move in the partial schedule, but don't emit it here.  Don't perform
1270         register substitutions here either.
1271         (apply_reg_moves): New function.
1272         (duplicate_insns_of_cycles): Use register indices directly,
1273         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
1274         (sms_schedule): Call schedule_reg_moves before committing to
1275         a partial schedule.   Try the next ii if the schedule fails.
1276         Use apply_reg_moves instead of generate_reg_moves.  Adjust
1277         call to print_node_sched_params.  Free node_sched_param_vec
1278         instead of node_sched_params.
1279         (create_partial_schedule): Initialize reg_moves.
1280         (free_partial_schedule): Free reg_moves.
1281
1282 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1283
1284         * modulo-sched.c (ps_insn): Replace node field with an identifier.
1285         (SCHED_ASAP): Replace with..
1286         (NODE_ASAP): ...this macro.
1287         (SCHED_PARAMS): New macro.
1288         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1289         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1290         (node_sched_params): Remove asap.
1291         (ps_rtl_insn, ps_first_note): New functions.
1292         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
1293         asap values.
1294         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1295         (generate_reg_moves): Pass ids to the SCHED_* macros.
1296         (update_node_sched_params): Take a ps insn identifier rather than
1297         a node as parameter.  Use ps_rtl_insn.
1298         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1299         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1300         (optimize_sc): Update for above field and SCHED_* macro changes.
1301         Update calls to try_scheduling_node_in_cycle and
1302         update_node_sched_params.
1303         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1304         macro changes.  Use ps_rtl_insn and ps_first_note.
1305         (sms_schedule): Pass ids to the SCHED_* macros.
1306         (get_sched_window): Adjust for above field and SCHED_* macro changes.
1307         Use NODE_ASAP instead of SCHED_ASAP.
1308         (try_scheduling_node_in_cycle): Remove node parameter.  Update
1309         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
1310         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1311         (ps_insert_empty_row): Adjust for above field changes.
1312         (compute_split_row): Use ids rather than nodes.
1313         (verify_partial_schedule): Adjust for above field changes.
1314         (print_partial_schedule): Use ps_rtl_insn.
1315         (create_ps_insn): Take an id rather than a node.
1316         (ps_insn_find_column): Adjust for above field changes.
1317         Use ps_rtl_insn.
1318         (ps_insn_advance_column): Adjust for above field changes.
1319         (add_node_to_ps): Remove node parameter.  Update call to
1320         create_ps_insn.
1321         (ps_has_conflicts): Use ps_rtl_insn.
1322         (ps_add_node_check_conflicts): Replace node parameter than an id.
1323
1324 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1325
1326         * modulo-sched.c (undo_replace_buff_elem): Delete.
1327         (generate_reg_moves): Don't build and return an undo list.
1328         (free_undo_replace_buff): Delete.
1329         (sms_schedule): Adjust call to generate_reg_moves.
1330         Don't call free_undo_replace_buff.
1331
1332 2011-10-10  Matthias Klose <doko@ubuntu.com>
1333
1334         * common/config/m32c: Remove empty directory.
1335
1336 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1337
1338         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1339
1340 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1341
1342         PR target/50652
1343         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1344         atmega164a to 0x100.
1345
1346 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1347
1348         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1349         the replacement if the conversion to the LHS type is not useless.
1350
1351 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
1352
1353         PR tree-optimization/50635
1354         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1355         DEF_STMT to the list of statements to be replaced by the
1356         pattern statements.
1357         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1358
1359 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
1360
1361         * system.h: Commit forgotten hunk in previous patch.
1362         (OUTPUT_ADDR_CONST_EXTRA): Poison.
1363
1364 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1365
1366         PR libobjc/50428
1367         * doc/objc.texi (Garbage Collection): Updated example to protect
1368         +initialize against execution in subclasses.
1369
1370 2011-10-07  Richard Henderson  <rth@redhat.com>
1371
1372         * doc/extend.texi (__builtin_shuffle): Improve the description to
1373         include the modulus of the selector.  Mention OpenCL.
1374         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1375
1376         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1377         * genopinit.c (optabs): Rename vshuffle to vec_perm.
1378         * c-typeck.c (c_build_vec_perm_expr): Rename from
1379         c_build_vec_shuffle_expr.  Update for name changes.
1380         * optabs.c (expand_vec_perm_expr_p): Rename from
1381         expand_vec_shuffle_expr_p.
1382         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1383         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1384         (vec_perm_optab): Rename from vshuffle_optab.
1385         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1386         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1387         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1388
1389         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1390         ix86_expand_vshuffle.
1391         * config/i386/i386-protos.h: Update.
1392         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1393         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1394
1395 2011-10-07  Richard Henderson  <rth@redhat.com>
1396
1397         * config/i386/predicates.md (avx2_pblendw_operand): New.
1398         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1399         (avx2_pblendw, *avx2_pblendw): New expander and insn.
1400
1401 2011-10-07  Richard Henderson  <rth@redhat.com>
1402
1403         * config/i386/i386.c (bdesc_args): Update code for
1404         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
1405         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1406         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1407         * config/i386/sse.md (mode iterator V16): Add V2TI.
1408         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1409         (mode attr ssse3_avx2): Add V2TI.
1410         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1411
1412 2011-10-07  David S. Miller  <davem@davemloft.net>
1413
1414         PR 50655
1415         * configure.ac: Add .register directives to VIS3 test.
1416         * configure: Regenerate.
1417
1418 2011-10-07  Richard Henderson  <rth@redhat.com>
1419
1420         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1421
1422 2011-10-07  Richard Henderson  <rth@redhat.com>
1423
1424         PR 49752
1425         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1426
1427 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
1428
1429         * config/arm/predicates.md (shift_amount_operand): Remove constant
1430         range check.
1431         (shift_operator): Check range of constants for all shift operators.
1432
1433 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1434
1435         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1436         Load GOT pointer for non-pic builds.
1437         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1438         (s390_emit_call): Likewise.
1439
1440 2011-10-07  Tom de Vries  <tom@codesourcery.com>
1441
1442         PR middle-end/50527
1443         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1444         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1445         throw.
1446         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1447         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1448         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1449         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1450         * tree-ssa-ccp.c (evaluate_stmt): Set align for
1451         BUILT_IN_ALLOCA_WITH_ALIGN.
1452         (fold_builtin_alloca_for_var): Rename to ...
1453         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1454         BUILT_IN_ALLOCA_WITH_ALIGN argument.
1455         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1456         fold_builtin_alloca_with_align.
1457         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1458         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1459         DEF_BUILTIN_STUB.
1460         * ipa-pure-const.c (special_builtin_state): Handle
1461         BUILT_IN_ALLOCA_WITH_ALIGN.
1462         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1463         (call_may_clobber_ref_p_1): Same.
1464         * function.c (gimplify_parameters): Lower vla to
1465         BUILT_IN_ALLOCA_WITH_ALIGN.
1466         * gimplify.c (gimplify_vla_decl): Same.
1467         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1468         * tree-mudflap.c (mf_xform_statements): Same.
1469         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1470         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1471         * varasm.c (incorporeal_function_p): Same.
1472         * tree-object-size.c (alloc_object_size): Same.
1473         * gimple.c (gimple_build_call_from_tree): Same.
1474
1475 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
1476
1477         * function.c (frame_required_for_rtx): Remove function.
1478         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
1479         changed.  Compute a set of mentioned registers and compare against
1480         the new arg rather than calling frame_required_for_rtx.
1481         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1482         reg set.  Convert the unconverted_simple_returns mechanism to store
1483         jump insns rather than their basic blocks.  Also check the
1484         orig_entry_edge destination for new blocks.
1485
1486 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
1487
1488         PR tree-optimization/50650
1489         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1490         call vect_is_simple_cond here, instead fail if cond_expr isn't
1491         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1492         for cond_expr's first operand.
1493         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1494         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1495
1496 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1497
1498         * config/s390/s390.md (DWH, dwh): New mode macros.
1499         ("umulsidi3"): Extend to support "umulditi3" as well.
1500
1501 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
1502             H.J. Lu  <hongjiu.lu@intel.com>
1503
1504         PR target/50603
1505         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1506         integer PLUS RTX to a register to improve address combine.
1507
1508 2011-10-06  Richard Henderson  <rth@redhat.com>
1509
1510         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1511         parameter; use it to decide whether to merge two notes.
1512         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1513         for the deallocation case as well.
1514
1515 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
1516
1517         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1518         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1519         * doc/tm.texi: Regenerate.
1520         * target.def (output_addr_const_extra): Use
1521         hook_bool_FILEptr_rtx_false.
1522         * targhooks.c (default_asm_output_addr_const_extra): Remove.
1523         * targhooks.h (default_asm_output_addr_const_extra): Remove.
1524         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1525         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1526
1527 2011-10-06  David S. Miller  <davem@davemloft.net>
1528
1529         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1530         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1531         SI mode 64-bit code gen case explicitly zero-extend and truncate.
1532         (*popcount<mode>_sp64): Split up into...
1533         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1534         SImode case use truncate.
1535         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1536         subtract so the compiler can optimize it.
1537         (SIDI): Remove unused mode iterator.
1538
1539 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1540
1541         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1542         on the orig_entry_edge. Don't account for it in prologue_clobbered.
1543
1544 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1545
1546         PR tree-optimization/50596
1547         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1548         (NUM_PATTERNS): Change to 6.
1549         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1550         function.
1551         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1552         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1553         if it already has one, and don't set STMT_VINFO_VECTYPE in it
1554         if it is already set.
1555         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1556         COND_EXPR in pattern stmts.
1557         (vect_is_simple_cond): No longer static.
1558
1559 2001-10-06  Richard Henderson  <rth@redhat.com>
1560
1561         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1562         * config/i386/sse.md (sseshuffint): Remove.
1563         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1564         (VSHUFFLE_AVX2): New mode iterator.
1565         (vshuffle<mode>): Use it.
1566         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1567
1568         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1569         for vector_all_ones_operand.
1570         (ix86_expand_int_vcond): Distinguish between comparison mode
1571         and data mode.  Allow them to differ.
1572         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1573
1574 2001-10-06  Richard Henderson  <rth@redhat.com>
1575
1576         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1577         mask operand.  Tidy the code.
1578
1579 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1580
1581         * tree-vect-patterns.c (vect_pattern_recog_1): Use
1582         vect_recog_func_ptr typedef for the first argument.
1583         (vect_pattern_recog): Rename vect_recog_func_ptr variable
1584         to vect_recog_func, use vect_recog_func_ptr typedef for it.
1585
1586         PR tree-optimization/49279
1587         * tree-ssa-structalias.c (find_func_aliases): Don't handle
1588         CAST_RESTRICT.
1589         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1590         restrict propagation.
1591         * tree-ssa.c (useless_type_conversion_p): Don't return false
1592         if TYPE_RESTRICT differs.
1593
1594 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1595
1596         * function.c (thread_prologue_and_epilogue_insns): Build a vector
1597         of unconverted simple return blocks rather than trying to
1598         recompute them later based on bb_flags bitmap tests.
1599
1600 2011-10-06  Michael Matz  <matz@suse.de>
1601
1602         * tree-flow.h (get_var_ann): Don't declare.
1603         * tree-flow-inline.h (get_var_ann): Remove.
1604         (set_is_used): Use var_ann, not get_var_ann.
1605         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1606         * tree-profile.c (gimple_gen_edge_profiler): Call
1607         find_referenced_var_in.
1608         (gimple_gen_interval_profiler): Ditto.
1609         (gimple_gen_pow2_profiler): Ditto.
1610         (gimple_gen_one_value_profiler): Ditto.
1611         (gimple_gen_average_profiler): Ditto.
1612         (gimple_gen_ior_profiler): Ditto.
1613         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1614         (gimple_gen_ic_func_profiler): Call add_referenced_var.
1615         * tree-mudflap.c (execute_mudflap_function_ops): Call
1616         add_referenced_var.
1617
1618 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1619
1620         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1621         don't set SSA_NAME_DEF_STMT that has been already set by
1622         gimple_build_assign_with_ops.
1623         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1624         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1625         Likewise.
1626
1627         * tree.h (avoid_folding_inline_builtin): New prototype.
1628         * builtins.c (avoid_folding_inline_builtin): No longer static.
1629         * gimple-fold.c (gimple_fold_builtin): Give up if
1630         avoid_folding_inline_builtin returns true.
1631
1632 2011-10-06  Richard Guenther  <rguenther@suse.de>
1633
1634         * tree-vect-generic.c (vector_element): Look at previous
1635         generated results.
1636
1637 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
1638
1639         PR target/39950
1640         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1641         __powerpc__, __PPC__, __unix__.
1642
1643 2011-10-06  Michael Matz  <matz@suse.de>
1644
1645         * i386/i386.opt (recip_mask, recip_mask_explicit,
1646         x_recip_mask_explicit): New variables and cl_target member.
1647         (mrecip=): New option.
1648         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1649         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1650         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1651         TARGET_RECIP_VEC_SQRT): New tests.
1652         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1653         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1654         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1655         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1656         * i386/i386.c (ix86_option_override_internal): Set recip_mask
1657         for -mrecip and -mrecip=options.
1658         (ix86_function_specific_save): Save recip_mask_explicit.
1659         (ix86_function_specific_restore): Restore recip_mask_explicit.
1660
1661         * doc/invoke.texi (ix86 Options): Document the new option.
1662
1663 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1664
1665         PR target/49049
1666         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1667
1668 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
1669
1670         PR target/50305
1671         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1672         output of a previous pass through legitimize_reload_address.
1673         Do not attempt to optimize addresses if the base register is
1674         equivalent to a constant.
1675
1676 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1677
1678         * function.c (thread_prologue_and_epilogue_insns): Mark
1679         last_bb_active as possibly unused.  It is unused for targets which
1680         do neither have "return" nor "simple_return" expanders.
1681
1682 2011-10-06  Richard Guenther  <rguenther@suse.de>
1683
1684         * fold-const.c (fold_ternary_loc): Also fold non-constant
1685         vector CONSTRUCTORs.  Make more efficient.
1686         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1687         (cprop_into_stmt): Don't propagate into virtual operands.
1688         (optimize_stmt): Really dump original statement.
1689
1690 2011-10-06  Nick Clifton  <nickc@redhat.com>
1691
1692         * config/rx/rx.md (smin3): Revert previous delta.
1693
1694 2011-10-06  Richard Guenther  <rguenther@suse.de>
1695
1696         PR tree-optimization/38884
1697         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1698         reads from aggregate SSA names.
1699
1700 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1701
1702         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1703         argument, truncate it at the beginning instead of allocating there
1704         and freeing at the end.
1705         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1706         pass its address to vect_pattern_recog_1.
1707
1708 2011-10-05  David S. Miller  <davem@davemloft.net>
1709
1710         * config/sparc/sparc.opt (POPC): New option.
1711         * doc/invoke.texi: Document it.
1712         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1713         default on Niagara-2 and later.
1714         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1715         * config/sparc/sparc.md (SIDI): New mode iterator.
1716         (ffsdi2): Delete commented out pattern and comments.
1717         (popcount<mode>2, clz<mode>2): New expanders.
1718         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1719         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1720
1721 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1722
1723         PR middle-end/50607
1724         * c-tree.h (c_expr_t): New typedef for struct c_expr.
1725         (C_EXPR_APPEND): New macro.
1726         * c-parser.c (c_parser_get_builtin_args): Preserve
1727         original_tree_code of c_expr structure.
1728         (c_parser_postfix_expression): Adjust to the new function.
1729
1730 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1731
1732         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
1733         if profiling after the prologue.
1734
1735 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1736
1737         PR tree-optimization/50613
1738         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1739         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1740         and if it is neither that not SSA_NAME, give up.
1741
1742 2011-10-05  Richard Henderson  <rth@redhat.com>
1743
1744         * tree-vect-generic.c (vector_element): Never fail.  Use
1745         build_zero_cst.  Tidy up type references.
1746         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
1747         code duplication.  Do update_stmt here ...
1748         (expand_vector_operations_1): ... not here.
1749
1750         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
1751         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
1752         duplication.  Handle V2DI without SSE4.1.
1753         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1754         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1755
1756 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1757
1758         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1759         of "found".  Simplify return value calculation.
1760         (distance_agu_use): Ditto.
1761
1762 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1763
1764         PR bootstrap/50621
1765         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1766         if the function was not shrink-wrapped.
1767         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1768         to an insn.
1769         * function.c (thread_prologue_and_epilogue_insns): Make sure the
1770         shrink_wrapped flag is set even if there is no dump file.
1771
1772 2011-10-05  DJ Delorie  <dj@redhat.com>
1773             Nick Clifton  <nickc@redhat.com>
1774
1775         * config/rx/rx.opt (mpid): Define.
1776         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1777         (MULTILIB_DIRNAMES): Add pid.
1778         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1779         (rx_num_interrupt_regs): New variable.
1780         (rx_gp_base_regnum): New function.  Returns the number of the
1781         small data area register.
1782         (rx_pid_base_regnum): New function.  Returns the number of the pid
1783         base register.
1784         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
1785         (rx_pid_data_operand): New function.  Returns whether an object is
1786         in the position independent data area.
1787         (rx_legitimize_address): New function.  Puts undecided PID
1788         objects in the PID data area.
1789         (rx_is_legitimate_address): Add support for PID operands.
1790         (rx_print_operand_address): Likewise.
1791         (rx_print_operand): Likewise.
1792         (rx_maybe_pidify_operand): New function.  Determine if an operand
1793         is suitable for PID addressing.
1794         (rx_gen_move_template): Add PID support.
1795         (rx_conditional_register_usage): Likewise.
1796         (rx_option_override): Initialise rx_num_interrupt_regs.
1797         (rx_is_legitimate_constant): Add support for PID constants.
1798         (TARGET_LEGITIMIZE_ADDRESS): Define.
1799         * config/rx/constraints.md (Rpid): Define.
1800         (Rpda): Define.
1801         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1802         (tablejump): Add PID support.
1803         (mov<>): Likewise.
1804         (mov<>_internal): Likewise.
1805         (addsi3): Convert to an expander.  Add PID support.
1806         (pid_addr): New pattern.
1807         * config/rx/rx.h (CPP_SPEC): Define.
1808         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1809         (CASE_VECTOR_PC_RELATIVE): Define.
1810         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1811         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1812         * doc/invoke.texi (RX Options): Document -mpid command line option.
1813
1814 2011-10-05  Richard Guenther  <rguenther@suse.de>
1815
1816         PR tree-optimization/38885
1817         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1818         from constants.
1819
1820 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1821
1822         * doc/invoke.texi (-fshrink-wrap): Document.
1823         * opts.c (default_options_table): Add it.
1824         * common.opt (fshrink-wrap): Add.
1825         * function.c (emit_return_into_block): Remove useless declaration.
1826         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1827         requires_stack_frame_p, gen_return_pattern): New static functions.
1828         (emit_return_into_block): New arg simple_p.  All callers changed.
1829         Use gen_return_pattern.
1830         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1831         * config/i386/i386.md (return): Expand into a simple_return.
1832         (simple_return): New expander):
1833         (simple_return_internal, simple_return_internal_long,
1834         simple_return_pop_internal_long, simple_return_indirect_internal):
1835         Renamed from return_internal, return_internal_long,
1836         return_pop_internal_long and return_indirect_internal; changed to use
1837         simple_return.
1838         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1839         simple returns.
1840         (ix86_pad_returns): Likewise.
1841         * function.h (struct rtl_data): Add member shrink_wrapped.
1842         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1843         are not jumps or sibcalls can't be compared.
1844
1845 2011-10-05  Richard Guenther  <rguenther@suse.de>
1846
1847         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1848         vector type.
1849         (simplify_unary_expression): Handle BIT_FIELD_REFs.
1850         (try_to_simplify): Handle BIT_FIELD_REFs.
1851
1852 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
1853
1854         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1855         * config/avr/avr.c (avr_out_addto_sp): New function.
1856         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1857         * config/avr/avr.md (adjust_len): Add "addto_sp".
1858         (*movhi_sp): Remove insn.
1859         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1860
1861 2011-10-05  Richard Guenther  <rguenther@suse.de>
1862
1863         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1864         with an embedded expression valueize and fold that as well.
1865         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1866         results from gimple_fold_stmt_to_constant_1.
1867
1868 2011-10-05  Nick Clifton  <nickc@redhat.com>
1869
1870         * config/rx/rx.md (tablejump): Add missing label.
1871         (adddi3_internal): Mark operand 0 as early-clobbered.
1872         (smaxsi3): Revert previous delta.
1873         (adc_internal): Fix whitespace in generated asm.
1874         (adc_flags): Likewise.
1875
1876 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1877
1878         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1879         with the new widening_optab_handler.
1880
1881 2011-10-05  Richard Guenther  <rguenther@suse.de>
1882
1883         PR tree-optimization/50609
1884         * gimple-fold.c (fold_array_ctor_reference): Also handle
1885         vector typed constructors.
1886         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1887         for vector typed constructors.
1888
1889 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1890
1891         * config/i386/i386.c (ix86_emit_binop): New static function.
1892         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1893         instructions.
1894         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1895
1896 2011-10-04  David S. Miller  <davem@davemloft.net>
1897
1898         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1899         UNSPEC_XMUL): New unspecs.
1900         (muldi3_v8plus): Use output_v8plus_mult.
1901         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1902         New VIS 3.0 combiner patterns.
1903         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1904         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1905         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1906         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
1907         builtins patterns.
1908         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
1909         (output_v8plus_mult): New function.
1910         * config/sparc/sparc-protos.h: Declare it.
1911         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
1912         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
1913         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
1914         * doc/extend.texi: Document new builtins.
1915
1916 2011-10-04  Richard Henderson  <rth@redhat.com>
1917
1918         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
1919         Avoid save_expr unless two_arguments.
1920
1921 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
1922
1923         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
1924         * config/i386/mingw32.h (CPP_SPEC): Likewise.
1925
1926 2011-10-04  David S. Miller  <davem@davemloft.net>
1927
1928         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
1929         under Linux.
1930
1931 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
1932
1933         PR tree-optimization/50604
1934         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
1935         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
1936         last argument to memcpy has size_type_node type instead of ssizetype.
1937         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
1938         instead of TREE_TYPE (len) as type for newlen.
1939
1940         PR tree-optimization/50522
1941         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
1942         TYPE_RESTRICT.
1943         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
1944         unconditionally.
1945
1946         * fold-const.c (fold_unary_loc): Don't optimize
1947         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
1948         casting the inner pointer if it isn't TYPE_RESTRICT.
1949         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
1950         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
1951
1952 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
1953
1954         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
1955
1956 2011-10-04  Jan Hubicka  <jh@suse.cz>
1957
1958         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
1959         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
1960         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
1961         * lto-cgraph.c (order_base): New static var.
1962         (lto_output_node): Stream in order.
1963         (lto_output_varpool_node): Stream out order.
1964         (input_node): Stream in order.
1965         (input_varpool_node): Stream out order.
1966         (input_cgraph_1): Initialize order base; update call of
1967         lto_input_toplevel_asms.
1968
1969 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
1970
1971         PR target/50566
1972         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
1973         prototype.
1974         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
1975         from here...
1976         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
1977         function.  Log if avr_log.legitimize_reload_address.
1978
1979 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
1980
1981         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
1982
1983 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1984
1985         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
1986         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
1987
1988 2011-10-03  David S. Miller  <davem@davemloft.net>
1989
1990         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
1991         GSR_REG an input operand to UNSPEC instead of a parallel USE.
1992         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
1993         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
1994         Reference GSR_REG in DI mode, simplify convoluted expressions by using
1995         zero_extract.
1996         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
1997
1998 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
1999
2000         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2001
2002 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2003             Ian Lance Taylor  <iant@google.com>
2004
2005         * godump.c (go_output_typedef): Support printing enum values that
2006         don't fit in a signed HOST_WIDE_INT.
2007
2008 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2009
2010         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2011         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2012         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2013         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2014
2015 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2016
2017         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2018         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2019         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2020         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2021
2022 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
2023
2024         PR target/49967
2025         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2026         (gcc_cv_ld_static_option): Ditto.
2027         (gcc_cv_ld_dynamic_option): Ditto.
2028         * configure: Regenerate.
2029
2030 2011-10-03  David S. Miller  <davem@davemloft.net>
2031
2032         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2033         and 'si' patterns which describe the GSR changes explicitly in the
2034         RTL using zero_extract.
2035         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2036
2037         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2038         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2039
2040 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2041
2042         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2043         if given expression can be expanded by the target.
2044         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2045         using target vector instructions.
2046         * optabs.h: New optab vshuffle.
2047         (expand_vec_shuffle_expr_p): New prototype.
2048         (expand_vec_shuffle_expr): New prototype.
2049         (vshuffle_optab): New optab.
2050         * genopinit.c: Adjust to support vecshuffle.
2051         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2052         * expr.c (expand_expr_real_2): Adjust.
2053         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2054         recognizing the cases of two and three arguments.
2055         (convert_arguments) (build_binary_op)
2056         (scalar_to_vector) (build_array_ref): Spurious whitespace.
2057         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2058         * tree.def: New tree code VEC_SHUFFLE_EXPR.
2059         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2060         * tree-vect-generic.c (vector_element): New function. Returns an
2061         element of the vector at the given position.
2062         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2063         by the backend or expand an expression piecewise.
2064         (expand_vector_operations_1): Adjusted.
2065         (gate_expand_vector_operations_noop): New gate function.
2066         * Makefile.in (tree-vect-generic.o): New include.
2067         * gimple.c (get_gimple_rhs_num_ops): Adjust.
2068         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2069         * passes.c: Move veclower down.
2070         * tree-pretty-print.c (dump_generic_node): Recognize
2071         VEC_SHUFFLE_EXPR as valid expression.
2072         * c-parser.c (c_parser_get_builtin_args): Helper function for the
2073         builtins with variable number of arguments.
2074         (c_parser_postfix_expression): Use a new helper function for
2075         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2076         * tree-ssa-operands: Adjust.
2077         * c-family/c-common.c: New __builtin_shuffle keyword.
2078         * c-family/c-common.h: New __builtin_shuffle keyword.
2079         * gcc/doc/extend.texi: Adjust.
2080
2081         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
2082         between the vector and the type of the mask when shuffling.
2083         (vecshuffle<mode>): New expansion.
2084         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2085         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2086         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2087
2088 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2089
2090         PR tree-optimization/50587
2091         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2092         arg0 is not a SSA_NAME.
2093
2094 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
2095
2096         * ipa-inline-analysis.c (MAX_TIME): Update comment.
2097
2098 2011-10-02  Richard Henderson  <rth@redhat.com>
2099             David S. Miller  <davem@davemloft.net>
2100
2101         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2102         conditional insn type setting, we always emit a shift.
2103         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2104         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2105         * config/sparc/predicates.md (const_one_operand): Delete.
2106
2107 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
2108
2109         * invoke.texi (SPARC Options): Refer to GNU/Linux.
2110
2111 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2112
2113         * config/mips/mips.c (mips_frame_barrier): New function.
2114         (mips_expand_prologue): Call it after allocating stack space.
2115         (mips_deallocate_stack): New function.
2116         (mips_expand_epilogue): Call mips_frame_barrier and
2117         mips_deallocate_stack.
2118
2119 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2120
2121         PR target/49696
2122         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2123         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2124         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2125
2126 2011-10-02  Jan Hubicka  <jh@suse.cz>
2127
2128         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2129
2130         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2131         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2132         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2133         functions are reachable when address is taken.
2134         * tree-sra.c (modify_function): Free dominance info.
2135
2136 2011-10-02  Jan Hubicka  <jh@suse.cz>
2137
2138         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
2139
2140         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
2141         (reset_inline_summary): New function.
2142         (compute_inline_parameters, inline_node_removal_hook,
2143         inline_edge_removal_hook): Use it.
2144         (inline_free_summary): Reset holders correctly.
2145         (inline_generate_summary): Free summary before computing it.
2146
2147 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
2148
2149         PR preprocessor/36819
2150         * incpath.c (merge_include_chains): Call free_path on
2151         heads[QUOTE] and tails[QUOTE].
2152
2153 2011-10-02  Jan Hubicka  <jh@suse.cz>
2154
2155         PR lto/47247
2156         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
2157         when resolution is already availbale from plugin.
2158         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
2159         * cgraph.c (ld_plugin_symbol_resolution): Add
2160         prevailing_def_ironly_exp.
2161         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
2162         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
2163         externally visible.
2164         * varasm.c (resolution_to_local_definition_p): Add
2165         LDPR_PREVAILING_DEF_IRONLY_EXP.
2166         (resolution_local_p): Likewise.
2167
2168 2011-10-01  David S. Miller  <davem@davemloft.net>
2169
2170         * config/sparc/sparc.opt (VIS3): New option.
2171         * doc/invoke.texi: Document it.
2172         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
2173         not capable of such instructions.
2174         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2175         to 0x300 when TARGET_VIS3.
2176         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
2177         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
2178         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
2179         (V64N8, VASS): New mode iterators.
2180         (vis3_shift, vis3_addsub_ss): New code iterators.
2181         (vbits, vconstr): New mode attributes.
2182         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
2183         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
2184         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
2185         fmean16_vis, fpadd64_vis, fpsub64_vis,
2186         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
2187         VIS 3.0 instruction patterns.
2188         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
2189         default when targetting capable cpus.  TARGET_VIS3 implies
2190         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
2191         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
2192         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
2193         is ignored.
2194         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
2195         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
2196         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
2197         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
2198         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
2199         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
2200         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
2201         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
2202         * doc/extend.texi: Document new VIS 3.0 builtins.
2203
2204 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
2205
2206         * ira-color.c (assign_hard_reg): Fix typo.
2207
2208 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
2209
2210         * doc/extend.texi: Add missing ','.
2211
2212 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2213
2214         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
2215         Enable -fmodulo-sched at -O2 and above.
2216         * config/c6x/c6x.md (doloop_end): New expander.
2217         (mvilc, sploop, spkernel, loop_end): New patterns.
2218         (loop_end with memory destination splitter): New.
2219         * config/c6x/c6x.c: Include "hw-doloop.h".
2220         (enum unitreqs): New.
2221         (unit_req_table): New typedef.
2222         (unit_reqs): New static variable.
2223         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
2224         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
2225         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
2226         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
2227         (struct c6x_sched_context): New member last_scheduled_iter0.
2228         (init_sched_state): Initialize it.
2229         (c6x_variable_issue): Update it.
2230         (sploop_max_uid_iter0): New static variable.
2231         (c6x_sched_reorder_1): Be careful about issuing sploop.
2232         (c6x_reorg): Call c6x_hwlooops before the final schedule.
2233
2234 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
2235
2236         PR target/50566
2237         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
2238         * config/avr/avr.c (avr_address_cost): Use it.
2239         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2240         (avr_log_vadump): Unknown %-codes finish printing.
2241
2242 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2243
2244         PR inline-asm/50571
2245         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
2246         input constraints allow mem and not reg, pass true instead of
2247         false as second argument to maybe_fold_reference.
2248
2249         PR tree-optimization/46309
2250         * fold-const.c (make_range, merge_ranges): Remove prototypes.
2251         (make_range_step): New function.
2252         (make_range): Use it.
2253         * tree.h (make_range_step): New prototypes.
2254         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
2255         * tree-ssa-reassoc.c: Include diagnostic-core.h.
2256         (struct range_entry): New type.
2257         (init_range_entry, range_entry_cmp, update_range_test,
2258         optimize_range_tests): New functions.
2259         (reassociate_bb): Call optimize_range_tests.
2260
2261 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2262             Richard Guenther  <rguenther@suse.de>
2263
2264         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
2265         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2266         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
2267         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
2268         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
2269         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
2270
2271 2011-09-30  Jan Beulich  <jbeulich@suse.com>
2272
2273         * lto-cgraph.c (output_cgraph): Remove processing of
2274         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
2275         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
2276         lto_input_toplevel_asms() instead.
2277         * lto-section-in.c (lto_section_name): Add "asm" entry.
2278         * lto-streamer-in.c (lto_input_toplevel_asms): New.
2279         * lto-streamer-out.c (lto_output_toplevel_asms): New.
2280         * lto-streamer.h (LTO_minor_version): Bump.
2281         (enum lto_section_type): Add LTO_section_asm.
2282         (struct lto_asm_header): New.
2283         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2284         * tree-streamer.h (streamer_write_string_cst): Declare.
2285         * tree-streamer-out.c (write_string_cst): Rename to
2286         streamer_write_string_cst and make global. Handle incoming string
2287         being NULL.
2288         (streamer_write_tree_header): Adjust call to renamed function.
2289
2290 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2291
2292         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2293         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2294         modulo_last_stage): New static variables.
2295         (set_modulo_params, discard_delay_pairs_above): New functions.
2296         (struct delay_pair): New member stages.
2297         (htab_i2_traverse, htab_i1_traverse): New static functions.
2298         (record_delay_slot_pair): New arg stages.  All callers changed.
2299         Record it.
2300         (pair_delay): Take stages into account.
2301         (add_delay_dependencies): Don't do so for stage pairs.
2302         (struct sched_block_state): New member modulo_epilogue.
2303         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2304         (unschedule_insns_until): Decrease modulo_insns_scheduled.
2305         Set HARD_DEP without using or.
2306         (resolve_dependencies): New static function.
2307         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
2308         If it is true, allow only insns with INSN_EXACT_TICK set.
2309         (schedule_block): Return bool, always true for normal scheduling,
2310         true or false depending on modulo scheduling success otherwise.
2311         Add bookkeeping for modulo scheduling, and call resolve_dependencies
2312         on everything left over after a modulo schedule.
2313         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
2314         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2315         declarations.
2316         (set_modulo_params, discard_delay_pairs_above): Declare.
2317         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2318         * doc/invoke.texi (--param): Document it.
2319
2320         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
2321         New arg modulo_scheduling.  All callers changed.  Move note handling
2322         code here from schedule_ebbs.
2323         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2324         out of schedule_ebbs.
2325         (schedule_ebbs): Call them.  Remove note handling code moved to
2326         schedule_ebb.
2327         * sched-int.h (schedule_ebb, schedule_ebbs_init,
2328         schedule_ebbs_finish): Declare.
2329
2330 2011-09-30  Richard Guenther  <rguenther@suse.de>
2331
2332         PR middle-end/50574
2333         * tree-cfg.c (verify_gimple_comparison): Compare component
2334         mode sizes for vector comparisons.
2335
2336 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2337
2338         * ddg.c (autoinc_var_is_used_p): New function.
2339         (create_ddg_dep_from_intra_loop_link,
2340         add_cross_iteration_register_deps): Call it.
2341         * ddg.h (autoinc_var_is_used_p): Declare.
2342         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2343         (sms_schedule): Handle instructions with REG_INC.
2344
2345 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2346
2347         * modulo-sched.c (generate_reg_moves): Skip instructions that
2348         do not set a register and verify no regmoves are created for
2349         !single_set instructions.
2350
2351 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2352
2353         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2354         insns.
2355
2356 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2357
2358         PR target/50099
2359         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2360         (qhs_zextenddi_op): New.
2361         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2362         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2363         Distinguish between ARM and Thumb2 states.
2364
2365 2011-09-30  David S. Miller  <davem@davemloft.net>
2366
2367         * config/sparc/sparc.opt (VIS2): New option.
2368         * doc/invoke.texi: Document it.
2369         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2370         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2371         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2372         (define_attr type): New insn type 'edgen'.
2373         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2374         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2375         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2376         patterns.
2377         * niagara.md: Handle edgen.
2378         * niagara2.md: Likewise.
2379         * ultra1_2.md: Likewise.
2380         * ultra3.md: Likewise.
2381         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2382         to 0x200 when TARGET_VIS2.
2383         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2384         default when targetting capable cpus.  TARGET_VIS2 implies
2385         TARGET_VIS, clear and it when TARGET_FPU is disabled.
2386         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2387         (sparc_expand_builtin): Fix predicate indexing when builtin returns
2388         void.
2389         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2390         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2391         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2392         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2393         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2394         * doc/extend.texi: Document new VIS 2.0 builtins.
2395
2396 2011-09-29  Nick Clifton  <nickc@redhat.com>
2397             Bernd Schmidt  <bernds@codesourcery.com>
2398
2399         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2400         * config/frv/frvend.c: Likewise.
2401         * config/frv/frv.c (frv_function_prologue): Move misplaced
2402         CALL_ARG_LOCATION notes back to their proper locations.
2403
2404 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2405
2406         PR target/50566
2407         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2408         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2409         from avr_rtx_costs.
2410         (avr_legitimate_address_p): Use avr_edump to print log information
2411         filtered by avr_log.
2412         (extra_constraint_Q): Ditto.
2413         (avr_legitimize_address): Ditto.
2414         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
2415         (final_prescan_insn): Use avr_log.rtx_costs as filter.
2416
2417 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
2418
2419         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2420         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2421         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
2422         NEON vector and structure modes to be tied.
2423
2424 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2425
2426         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
2427         forward declaration.
2428         (remove_duplicate_close_phi): Detect and repair creation of
2429         duplicate close-phis for a containing loop.
2430
2431 2011-09-27   Andi Kleen <ak@linux.intel.com>
2432
2433         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
2434         /dev/urandom.  Add getpid call.
2435         (compare_debug_dump_opt_spec_function): Drop getpid call.
2436
2437 2011-09-26   Andi Kleen <ak@linux.intel.com>
2438
2439         * toplev.c (init_local_tick): Try reading random seed
2440         from /dev/urandom.
2441
2442 2011-09-26   Andi Kleen <ak@linux.intel.com>
2443
2444         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2445         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2446         Handle numerical random seed.
2447         * lto-streamer.h (lto_file_decl_data): Change id to
2448         unsigned HOST_WIDE_INT.
2449         * toplev.c (random_seed): Add.
2450         (init_random_seed): Change for numerical random seed.
2451         (get_random_seed): Return as HOST_WIDE_INT.
2452         (set_random_seed): Crc32 existing string.
2453         * toplev.h (get_random_seed): Change to numercal return.
2454         * tree.c (get_file_function_name): Remove CRC. Handle
2455         numerical random seed.
2456
2457 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2458
2459         PR target/50566
2460         * config.gcc (extra_objs): Add avr-log.o for $target in:
2461         avr-*-rtems*, avr-*-*.
2462         * config/avr/t-avr (avr-log.o): New rule to compile...
2463         * config/avr/avr-log.c: ...this new file.
2464         * config/avr/avr.opt (mlog=): New option.
2465         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2466         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2467         (avr_log_set_avr_log): New prototype.
2468         (avr_log_t): New typedef.
2469         (avr_log): New declaration.
2470         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2471
2472 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2473
2474         * expr.c (do_store_flag): Expand vector comparison by
2475         building an appropriate VEC_COND_EXPR.
2476         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2477         (c_objc_common_truthvalue_conversion): Adjust.
2478         * tree-vect-generic.c (do_compare): Helper function.
2479         (expand_vector_comparison): Check if hardware supports
2480         vector comparison of the given type or expand vector piecewise.
2481         (expand_vector_operation): Treat comparison as binary
2482         operation of vector type.
2483         (expand_vector_operations_1): Adjust.
2484
2485 2011-09-29  Richard Guenther  <rguenther@suse.de>
2486
2487         * tree.c (build_opaque_vector_type): Make opaque vectors
2488         variant types of the corresponding non-opaque type.  Make
2489         sure to share opaque vector types properly.
2490
2491 2011-09-29  David S. Miller  <davem@davemloft.net>
2492
2493         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2494         UNSPEC_ARRAY32): New unspec.
2495         (define_attr type): New type 'array'.
2496         (array{8,16,32}<P:mode>_vis): New patterns.
2497         * config/sparc/ultra1_2.md: Add reservations for 'array'.
2498         * config/sparc/ultra3.md: Likewise.
2499         * config/sparc/niagara.md: Likewise.
2500         * config/sparc/niagara2.md: Likewise.
2501         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2502         array builtins.
2503         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2504         __vis_array32): New.
2505         * doc/extend.texi: Document new VIS builtins.
2506
2507         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2508         (VIS pixel-compare insn): Just use <gcond:name>.
2509
2510         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2511         code iterator used, so just use <code>.  There are two mode iterators
2512         so explicitly use <GCM:gcm_name>.
2513
2514 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
2515
2516         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2517         Darwin >= 9.
2518
2519 2011-09-28  David S. Miller  <davem@davemloft.net>
2520
2521         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2522         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2523         (UNSPEC_FCMP): New unspec.
2524         (gcond): New code iterator.
2525         (gcond_name): New code attr.
2526         (GCM): New mode iterator.
2527         (gcm_name): New mode attr.
2528         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2529
2530 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
2531
2532         PR target/49486
2533         * config/sh/sh.md (negdi2): Move expansion into split to
2534         allow more combination options.  Add T_REG clobber.
2535         (abssi2): New expander.
2536         (*negdi2, *abssi2, *negabssi2): New insns.
2537         (cneg): Change from insn to insn_and_split.  Rename to
2538         negsi_cond.  Add alternative for non-SH4.
2539
2540 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
2541
2542         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2543         (neon_move_hi_quad_<mode>): Likewise.
2544         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2545
2546 2011-09-28  Nick Clifton  <nickc@redhat.com>
2547
2548         * config/rx/predicates.md (rx_minmax_operand): New predicate.
2549         Accepts immediates and a restricted subset of MEMs.
2550         * config/rx/rx.md (int_modes): New iterator.
2551         (smaxsi3, sminsi3): Delete and replace with...
2552         (smax<int_mode>3, smin<int_mode>3): New patterns.
2553         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2554
2555 2011-09-28  Richard Guenther  <rguenther@suse.de>
2556
2557         PR middle-end/50460
2558         * fold-const.c (try_move_mult_to_index): Handle &a.array the
2559         same as &a.array[0].
2560
2561 2011-09-28  Kai Tietz  <ktietz@redhat.com>
2562
2563         * configure.ac: Add test for new section attribute
2564         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2565         * config.in: Regenerated.
2566         * configure: Regenerated.
2567         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2568         new section flag "e" for excluded sections, if supported.
2569         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2570
2571 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2572
2573         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2574         throughout file.
2575
2576 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2577
2578         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2579         throughout file.
2580
2581 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
2582
2583         * output.h (SECTION_EXCLUDE): New macro.
2584         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2585
2586 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2587
2588         * fwprop.c (forward_propagate_and_simplify): After checking
2589         reg/subreg combinations, check whether the modes are the same.
2590
2591 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2592             Richard Sandiford  <rdsandiford@googlemail.com>
2593
2594         * config/mips/mips.c (mips_add_cfa_restore): New function.
2595         (mips16e_save_restore_reg): Use it.
2596         (mips_restore_reg): Likewise.  Split double FPRs for
2597         REG_CFA_RESTORE notes.
2598
2599 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2600
2601         PR middle-end/50386
2602         PR middle-end/50326
2603         * tree-sra.c (build_ref_for_model): Use the type of the field as
2604         the type of the COMPONENT_REF.
2605
2606 2011-09-27  Jeff Law  <law@redhat.com>
2607
2608         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
2609         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2610         (find_if_case_1): Use the probability of the THEN clause when
2611         determining if speculation is profitable.
2612         (find_if_case_2): Similarly for the ELSE clause.
2613
2614 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2615
2616         * common.opt: Add -foptimize-strlen option.
2617         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2618         (tree-sssa-strlen.o): Add dependencies.
2619         * opts.c (default_options_table): Enable -foptimize-strlen
2620         by default at -O2 if not -Os.
2621         * passes.c (init_optimization_passes): Add pass_strlen
2622         after pass_object_sizes.
2623         * timevar.def (TV_TREE_STRLEN): New timevar.
2624         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2625         * tree-pass.h (pass_strlen): Declare.
2626         * tree-ssa-strlen.c: New file.
2627         * c-decl.c (merge_decls): If compatible stpcpy prototype
2628         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2629
2630 2011-09-27  Tom de Vries  <tom@codesourcery.com>
2631
2632         PR middle-end/43864
2633         * tree-ssa-tail-merge.c: New file.
2634         (struct same_succ_def): Define.
2635         (same_succ, const_same_succ): New typedef.
2636         (struct bb_cluster_def): Define.
2637         (bb_cluster, const_bb_cluster): New typedef.
2638         (struct aux_bb_info): Define.
2639         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2640         (gvn_uses_equal): New function.
2641         (same_succ_print, same_succ_print_traverse, update_dep_bb)
2642         (stmt_update_dep_bb, local_def, same_succ_hash)
2643         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2644         (same_succ_reset): New function.
2645         (same_succ_htab, same_succ_edge_flags)
2646         (deleted_bbs, deleted_bb_preds): New var.
2647         (debug_same_succ): New function.
2648         (worklist): New var.
2649         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2650         (init_worklist, delete_worklist, delete_basic_block_same_succ)
2651         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2652         (print_cluster, debug_cluster, update_rep_bb)
2653         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2654         (all_clusters): New var.
2655         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2656         (merge_clusters, set_cluster): New function.
2657         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2658         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2659         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2660         (find_clusters_1, find_clusters): New function.
2661         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2662         (update_bbs): New var.
2663         (apply_clusters): New function.
2664         (update_debug_stmt, update_debug_stmts): New function.
2665         (tail_merge_optimize): New function.
2666         tree-pass.h (tail_merge_optimize): Declare.
2667         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2668         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2669         (tree-ssa-tail-merge.o): New rule.
2670         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2671         default at OPT_LEVELS_2_PLUS.
2672         * tree-ssa-sccvn.c (vn_valueize): Move to ...
2673         * tree-ssa-sccvn.h (vn_valueize): Here.
2674         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2675         * common.opt (ftree-tail-merge): New switch.
2676         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2677         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2678         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2679         (-ftree-tail-merge, max-tail-merge-comparisons)
2680         (max-tail-merge-iterations): New item.
2681
2682 2011-09-27  Jan Hubicka  <jh@suse.cz>
2683
2684         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2685
2686 2011-09-27  Jan Hubicka  <jh@suse.cz>
2687
2688         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2689         parameters passed by reference; handle loads from non-SSA scalars
2690         and update comments.
2691
2692 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2693
2694         PR rtl-optimization/50249
2695         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2696         instead of opnum and type.  All callers changed.  Remove useless
2697         declaration.
2698         Search forward for other reloads of the same type for the same operand
2699         using the same register; if any are found, return false.
2700         (reload_regs_reach_end_p): Same argument changes; all callers changed.
2701
2702 2011-09-27  Andi Kleen  <ak@linux.intel.com>
2703             Jan Hubicka  <jh@suse.cz>
2704
2705         * doc/invoke.texi (ffat-lto-objects): Document.
2706         * toplev.c (compile_file): Do not output assembly when doing slim lto;
2707         Output __gnu_slim_lto when doing slim lto.
2708         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2709         (cgraph_optimize): Return early when doing slim lto.
2710         * opts.c (finish_options): Complain about lack of linker plugin
2711         when doing slim lto.
2712         * common.opt (ffat-lto-objects): New.
2713
2714 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2715
2716         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2717         between signed and unsigned.
2718
2719 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
2720
2721         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2722         vectorization.
2723         (vectorizable_type_promotion): Likewise.
2724         (vect_analyze_stmt): Call vectorizable_type_demotion and
2725         vectorizable_type_promotion for basic blocks.
2726         (supportable_widening_operation): Don't assume loop vectorization.
2727         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
2728         basic blocks.  Update vectorization factor for basic block
2729         vectorization.
2730         (vect_analyze_slp_instance): Allow multiple types for basic block
2731         vectorization.  Recheck unrolling factor after construction of SLP
2732         instance.
2733
2734 2011-09-27  Richard Guenther  <rguenther@suse.de>
2735
2736         * tree-object-size.c (compute_object_sizes): Fix dumping of
2737         folded statement.
2738
2739 2011-09-27  Richard Guenther  <rguenther@suse.de>
2740
2741         PR tree-optimization/50363
2742         * tree-ssa-pre.c (create_expression_by_pieces): Handle
2743         pointer conversions in POINTER_PLUS_EXPRs properly.
2744
2745 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2746
2747         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2748         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2749         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2750         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2751         that produce subreg moves.  Define using VQX iterators.
2752
2753 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
2754
2755         * config/avr/avr.md (ashrqi3): Split alternative "n"
2756         into its remaining parts C03, C04, C05, C06, C07 and describe
2757         impact in CC by attribute "cc" appropriately.
2758         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2759         by digging RTX.
2760
2761 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2762
2763         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2764         from 3 x MAX_MACHINE_MODE.
2765         (CONSTM1_RTX): Define.
2766         * emit-rtl.c (const_tiny_rtx): Change into array of
2767         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2768         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2769         CONSTM1_RTX.
2770         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2771         MODE_VECTOR_INT modes.
2772         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2773         Optimize if one operand is CONSTM1_RTX.
2774         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2775         into mask | x.
2776
2777 2011-09-26  David S. Miller  <davem@davemloft.net>
2778
2779         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2780         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2781         * config/sparc/visintrin.h: Update edge and pixel-compare
2782         intrinsics to return 'long' instead of 'int'.
2783         * doc/extend.texi: Update documentation to match.
2784         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2785         flat, allow any instruction.  Otherwise, when V9 allow parallels
2786         which consist only of sets to registers outside of %o0 to %o5.
2787         (sparc_vis_init_builtins): Update VIS builtin types for edge
2788         and pixel-compare.
2789
2790         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2791         is enabled, mark %gsr as global.
2792         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2793         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2794
2795         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2796         which will now define __VIS and __VIS__ when -mvis is enabled.
2797         * config/sparc/t-sparc: Likewise.
2798         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2799         and add t-sparc to tmake_file for all sparc targets.
2800         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2801         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2802
2803         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2804         builtins for VIS vector addition and subtraction.
2805         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2806         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2807         __vis_fpsub32, __vis_fpsub32s): New.
2808         * doc/extend.texi: Document new VIS intrinsics.
2809
2810 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2811
2812         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2813         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2814         EQ/NE comparisons against +/-1 in the case of unused-after,
2815         non-ld-regs target.
2816
2817 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
2818
2819         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2820         gctx.into_ssa after push_gimplify_context.
2821
2822         * gimple.c (gimple_build_call_valist): New function.
2823         * gimple.h (gimple_build_call_valist): New prototype.
2824         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2825         (update_gimple_call): Likewise.
2826         (update_call_from_tree): Use finish_update_gimple_call.
2827         * tree-ssa-propagate.h (update_gimple_call): New prototype.
2828
2829 2011-09-26  Richard Guenther  <rguenther@suse.de>
2830
2831         PR tree-optimization/50472
2832         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2833         volatile references.
2834
2835 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
2836
2837         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2838         * target.def: (addr_space_subset_p): Likewise.
2839
2840 2011-09-26  Tom de Vries  <tom@codesourcery.com>
2841
2842         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2843         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2844         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2845         of new var.
2846
2847 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2848
2849         PR target/50465
2850         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2851         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2852         output_reload_insisf.
2853         (adjust_len): Set default to "no".
2854         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
2855         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2856         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2857         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2858         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2859         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2860         *lshrsi3_const): Set attribute "adjust_len".
2861         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2862         (output_movsisf): Don't pass insn to output_reload_insisf.
2863         (adjust_insn_length): Handle new alternatives to adjust_len.
2864         Remove handling of ADJUST_LEN_YES.  Clean-up code.
2865
2866 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
2867
2868         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2869         may_trap_p to detect loads that may trap of fault.
2870
2871 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2872
2873         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2874         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2875         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
2876         prototype.
2877         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2878         * config/avr/avr.c: Rename output_reload_insisf_1 to
2879         output_reload_in_const.
2880         (avr_popcount_each_byte): Handle SFmode, too.
2881         (output_reload_in_const): Change so it can handle HI loads, too.
2882         Use avr_popcount_each_byte to work out if scratch register must be
2883         created on the fly.
2884         (output_reload_inhi): Rewrite using output_reload_in_const and...
2885         (output_movhi): ...use it to print constants' loads.
2886         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2887
2888 2011-09-25  David S. Miller  <davem@davemloft.net>
2889
2890         * config/sparc/constraints.md (C, P, Z): New constraints for
2891         const_doube, const_int, and const_vector "all ones" values.
2892         Make unused constraint letters comment match reality.
2893         * config/sparc/predicates.md (const_all_ones_operand,
2894         register_or_zero_or_all_ones_operand): New predicates.
2895         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2896         as well as zero constants when VIS.
2897         (sparc_legitimate_constant_p): Likewise.
2898         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2899         (movsf_insn): Likewise
2900         (movdi_insn_sp64): Add fone alternative.
2901         (movdf_insn_sp32_v9): Likewise.
2902         (movdf_insn_sp64): Likewise.
2903
2904         * configure.ac: Add feature check to make sure the assembler
2905         supports the FMAF, HPC, and VIS 3.0 instructions found on
2906         Niagara-3 and later cpus.
2907         * configure: Rebuild.
2908         * config.in: Likewise.
2909         * config/sparc/sparc.opt: New option '-mfmaf'.
2910         * config/sparc/sparc.md: Add float fused multiply-add patterns.
2911         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
2912         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
2913         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
2914         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
2915         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
2916         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
2917         disabled.
2918         (sparc_rtx_costs): Handle 'FMA'.
2919         * doc/invoke.texi: Document -mfmaf.
2920
2921 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
2922
2923         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
2924         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
2925         DECL_BY_REFERENCE parameters.
2926
2927 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2928
2929         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
2930         if there is no outgoing edge.
2931
2932         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
2933         integral types.
2934
2935 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2936
2937         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
2938         of vect_analyze_bb here.
2939         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
2940
2941 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
2942
2943         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
2944         Allow not simple iv if analyzing basic block.
2945         (create_data_ref): Update call to dr_analyze_innermost.
2946         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
2947         * tree-loop-distribution.c (generate_memset_zero): Likewise.
2948         * tree-predcom.c (find_looparound_phi): Likewise.
2949         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
2950
2951 2011-09-24  David S. Miller  <davem@davemloft.net>
2952
2953         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
2954         (SPARC_GSR_REG): Define.
2955         (FIXED_REGISTERS): Mark GSR as fixed.
2956         (CALL_USED_REGISTERS): Mark GSR as call used.
2957         (HARD_REGNO_NREGS): GSR is always 1 register.
2958         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
2959         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
2960         (REGISTER_NAMES): Add "%gsr".
2961         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
2962         (UNSPEC_WRGSR): New unspec.
2963         (GSR_REG): New constant.
2964         (type): Add new insn type 'gsr'.
2965         (fpack16_vis, fpackfix_vis, fpack32_vis,
2966         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
2967         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
2968         rdgsr_v8plus): New expanders and insns.
2969         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
2970         using patterns which show that this is a plus in addition to a
2971         modification of GSR_REG, instead of an unspec.
2972         * config/sparc/ultra1_2.md: Handle 'gsr'.
2973         * config/sparc/ultra3.md: Likewise.
2974         * config/sparc/niagara.md: Likewise.
2975         * config/sparc/niagara2.md: Likewise.
2976         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
2977         end of table.
2978         (sparc_option_override): Make -mvis imply -mv8plus.
2979         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
2980         for %gsr.
2981         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
2982         __builtin_vis_read_gsr.
2983         (sparc_expand_buildin): Handle builtins that take one argument and
2984         return void.
2985         (sparc_fold_builtin): Never fold writes to %gsr.
2986         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
2987         * doc/extend.texi: Document new VIS intrinsics.
2988
2989 2011-09-23  Jan Hubicka  <jh@suse.cz>
2990
2991         * ipa-inline-transform.c (inline_call): Add comment.
2992         * ipa-inline.h (inline_param_summary): New structure and vector.
2993         (struct inline_edge_summary): Add param field.
2994         * ipa-inline-analysis.c (CHANGED): New constant.
2995         (add_clause): Handle CHANGED and NOT_CONSTANT.
2996         (predicate_probability): New function.
2997         (dump_condition): Dump CHANGED predicate.
2998         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
2999         of unknown function wide invariant.
3000         (evaluate_conditions_for_edge): Handle change probabilities.
3001         (inline_edge_duplication_hook): Copy param summaries.
3002         (inline_edge_removal_hook): Free param summaries.
3003         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3004         sizes; dump param summaries.
3005         (will_be_nonconstant_predicate): Use CHANGED predicate.
3006         (record_modified_bb_info): New structure.
3007         (record_modified): New function.
3008         (param_change_prob): New function.
3009         (estimate_function_body_sizes): Compute param summaries.
3010         (estimate_edge_size_and_time): Add probability argument.
3011         (estimate_node_size_and_time): Add inline_param_summary argument;
3012         handle predicate probabilities.
3013         (remap_predicate): Fix formating.
3014         (remap_edge_change_prob): New function.
3015         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3016         (remap_edge_predicates): ... this one.
3017         (inline_merge_summary): Remap edge summaries; handle predicate
3018         probabilities; remove param summaries after we are done.
3019         (do_estimate_edge_time): Update.
3020         (do_estimate_edge_growth): Update.
3021         (read_inline_edge_summary): Read param info.
3022         (inline_read_summary): Fix formating.
3023         (write_inline_edge_summary): Write param summaries.
3024
3025 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3026
3027         * config/i386/i386.c (ix86_print_operand): Handle %~.
3028         (ix86_print_operand_punct_valid_p): Return true also for '~'.
3029         * config/i386/sse.md (i128): New mode_attr.
3030         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3031         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3032         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3033         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3034         patterns, use "<sseinsnmode>" for "mode" attribute.
3035         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3036         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3037         %~128 in the patterns, use "OI" for "mode" attribute.
3038
3039 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3040
3041         PR target/50447
3042         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3043         "tstsi", "compare".
3044         (*cmpqi_sign_extend): Use s8_operand.
3045         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3046         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3047         prototypes.
3048         (out_tsthi, out_tstsi): Remove prototypes.
3049         (avr_out_tsthi, avr_out_tstsi): New prototypes.
3050         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3051         (avr_asm_len): Negative length now sets *plen to -length.
3052         (compare_sign_p): Return bool instead of int.
3053         (compare_diff_p, compare_eq_p): Ditto and make static.
3054         (avr_out_tsthi): New function.
3055         (avr_out_tstsi): New function.
3056         (avr_out_compare): New function.
3057         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3058         ADJUST_LEN_COMPARE.
3059
3060 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3061
3062         PR target/50447
3063         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3064         (addsi3): Rewrite using QI scratch register.  Adjust text
3065         peepholes using plus:SI.
3066         (*addsi3_zero_extend.hi): New insn.
3067         (*subsi3_zero_extend.hi): New insn.
3068         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3069         (*subsi3_zero_extend): Ditto.
3070         (subsi3): Change predicate #2 to register_operand.
3071         * config/avr/avr-protos.h (avr_out_plus): New prototype.
3072         (avr_out_plus_1): New static function.
3073         (avr_out_plus): New function.
3074         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3075
3076 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3077
3078         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3079         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3080
3081 2011-09-23  Ian Lance Taylor  <iant@google.com>
3082
3083         * godump.c (go_define): Treat a single character in single quotes,
3084         or a string, as an operand.
3085
3086 2011-09-23  Martin Jambor  <mjambor@suse.cz>
3087
3088         * ipa-prop.h (jump_func_type): Updated comments.
3089         (ipa_known_type_data): New type.
3090         (ipa_jump_func): Use it to describe known type jump functions.
3091         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3092         reflect the new known type jump function contents.
3093         (compute_known_type_jump_func): Likewise.
3094         (combine_known_type_and_ancestor_jfs): Likewise.
3095         (try_make_edge_direct_virtual_call): Likewise.
3096         (ipa_write_jump_function): Likewise.
3097         (ipa_read_jump_function): Likewise.
3098         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3099         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3100         (propagate_accross_jump_function): Likewise.
3101
3102 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3103
3104         PR target/50446
3105         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3106         (rotlqi3_4): Turn insn into expander.
3107         (*rotlqi3): New insn.
3108         (rotlhi3, rotlsi3): Support rotate left/right by 1.
3109         (*rotlhi2.1, *rotlhi2.15): New insns.
3110         (*rotlsi2.1, *rotlsi2.31): New insns.
3111         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3112
3113 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
3114
3115         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3116
3117 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3118
3119         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3120
3121 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3122
3123         * reload.c (find_reloads): Set operand_mode to Pmode for address
3124         operands consisting of just a CONST_INT.
3125
3126 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
3127
3128         PR target/50482
3129         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3130         blendv, force op_true to register if it doesn't satisfy
3131         nonimmediate_operand predicate.
3132
3133 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
3134
3135         PR middle-end/50113
3136         PR middle-end/50061
3137         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
3138         get the locate.where_pad value for register-only arguments.
3139         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
3140         (arm_pad_reg_upward): Handle null types.
3141
3142 2011-09-22  Jan Hubicka  <jh@suse.cz>
3143
3144         * ipa-inline-analysis.c: Fix overly long lines.
3145
3146 2011-09-22  Jan Hubicka  <jh@suse.cz>
3147
3148         * ipa-inline-transform.c (inline_call): Always update jump functions
3149         after inlining.
3150         * ipa-inline.c (ipa_inline): Likewise; do not call
3151         ipa_create_all_structures_for_iinln.
3152         (ipa_inline): Always free jump functions.
3153         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
3154         (remap_edge_predicates): Fix pasto.
3155         (inline_merge_summary): Remove nlined edge predicate; remove hack.
3156         (inline_analyze_function): Always initialize jump functions.
3157         (inline_generate_summary): Likewise.
3158         (inline_write_summary): Always write jump functions when ipa-cp
3159         is not doing that.
3160         (inline_read_summary): Always read jump functions when ipa-cp
3161         is not doing that.
3162         * ipa-prop.c (iinlining_processed_edges): Remove.
3163         (update_indirect_edges_after_inlining): Do not use
3164         iinlining_processed_edges; instead set param_index to -1.
3165         (propagate_info_to_inlined_callees): Only try to indirect inlining
3166         when asked to do so; update jump functions of indirect calls, too;
3167         remove jump functions of the inlined edge.
3168         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
3169         (ipa_create_all_structures_for_iinln): Remove.
3170         (ipa_free_all_structures_after_iinln): Do not free
3171         iinlining_processed_edges.
3172         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
3173
3174 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
3175
3176         * config/arm/predicates.md (expandable_comparison_operator): New
3177         predicate, extracted from...
3178         (arm_comparison_operator): ...here.
3179         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
3180         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
3181         (movdfcc): Use expandable_comparison_operator.
3182
3183 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
3184
3185         PR target/50447
3186         PR target/50465
3187         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
3188         (avr_popcount_each_byte): New prototype.
3189         * config/avr/avr.c (avr_popcount): New static function.
3190         (avr_popcount_each_byte): New function.
3191         (avr_out_bitop): New function.
3192         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
3193         avr_out_bitop.  Cleanup code.
3194         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
3195         (Ca4, Co4, Cx4): New constraints.
3196         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
3197         alternative.
3198         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
3199         (andsi3, iorsi3, xorsi3): Ditto.
3200         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
3201
3202 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
3203
3204         PR tree-optimization/50451
3205         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
3206         constant operands in reduction.
3207         (vect_get_slp_defs): Don't create vector operand for NULL scalar
3208         operand.
3209
3210 2011-09-22  David S. Miller  <davem@davemloft.net>
3211
3212         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
3213         fpack16, fpack32, fpackfix as const.
3214
3215         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
3216         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
3217         constants.  Use them everywhere.
3218
3219 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
3220
3221         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
3222         Added AND special case.  Adapted comments.
3223         (sh_rtx_costs): Added XOR and IOR case.
3224
3225 2011-09-21  Jan Hubicka  <jh@suse.cz>
3226
3227         * ipa-inline-analsis.c (compute_inline_parameters): Set
3228         cfun and current_function_decl.
3229
3230 2011-09-21  Jan Hubicka  <jh@suse.cz>
3231
3232         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
3233         handled components in parameter of builtin_constant_p.
3234         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
3235
3236 2011-09-21  Jan Hubicka  <jh@suse.cz>
3237
3238         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
3239         * ipa-inline.h (estimate_edge_time): Fix pasto.
3240         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
3241
3242 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3243
3244         * config/i386/i386.c (ix86_expand_sse_movcc): Use
3245         blendvps, blendvpd and pblendvb if possible.
3246
3247 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
3248
3249         PR target/50464
3250         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
3251         operand 1 predicate to register_operand and operand 2 predicate
3252         to nonimmediate_operand.
3253         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3254         xop_pcmov, force op_true to register.  Also, force op_false to
3255         register if it doesn't satisfy nonimmediate_operand predicate.
3256
3257 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3258
3259         * config/i386/bmi2intrin.h (_mulx_u64): New.
3260         (_mulx_u32): Ditto.
3261
3262 2011-09-21  Jan Hubicka  <jh@suse.cz>
3263
3264         PR tree-optimization/50433
3265         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
3266         Use get_base_address.
3267
3268 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3269
3270         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
3271         nonimmediate_operand instead of register_operand predicate for operands
3272         1 and 2, force them into registers if expanding them as comparison.
3273         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
3274         V8HImode force into register just operand 1.
3275
3276 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3277
3278         PR target/45099
3279         * config/avr/avr.c (avr_function_arg_advance): Change error to
3280         warning if a fixed register is needed as function argument.
3281
3282 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3283
3284         PR target/50449
3285         PR target/50465
3286         * config/avr/avr.md (adjust_len): New insn attribute.
3287         (*reload_insi, *reload_insf): Use it.
3288         (*movsi, *movsf): Use new interface of output_movsisf.
3289         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3290         * config/avr/avr.c (output_movsisf): Ditto.
3291         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3292         lengths of insns *reload_insi, *reload_insf.
3293         (output_reload_insisf_1): New static function.
3294         (output_reload_insisf): Use it.
3295
3296 2011-09-21  David S. Miller  <davem@davemloft.net>
3297
3298         * config/sparc/sparc.c (def_builtin): Change from macro into function.
3299         (def_builtin_const): New.
3300         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3301         other than alignaddr and falignaddr.
3302
3303         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3304         UNSPEC_FCMPEQ): New unspec codes.
3305         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3306         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3307         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3308         new pixel compare VIS patterns.
3309         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3310         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3311         __vis_fcmpeq16, __vis_fcmpeq32): New.
3312         * doc/extend.texi: Document new pixel compare VIS intrinsics.
3313
3314 2011-09-21  Tom de Vries  <tom@codesourcery.com>
3315
3316         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3317
3318 2011-09-20  David S. Miller  <davem@davemloft.net>
3319
3320         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3321         (aligneddrl<P:mode>_vis): New pattern.
3322         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3323         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3324         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3325         alignaddrl insn, and adjust edge operations for updated types.
3326         * config/sparc/visintrin.h: Likewise.
3327         * doc/extend.texi: Make typing in VIS documentation match reality.
3328
3329 2011-09-20  Terry Guo  <terry.guo@arm.com>
3330
3331         * config/arm/arm-arches.def: Add armv6s-m.
3332         * config/arm/arm-tables.opt: Regenerate.
3333
3334 2011-09-20  Wei Guozhi  <carrot@google.com>
3335
3336         PR rtl-optimization/49452
3337         * postreload.c (reload_combine): Invalidate use information when across
3338         volatile insn.
3339
3340 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
3341
3342         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3343         Remove maintenance overhead.
3344         (haifa_sched_init, sched_finish): Update.
3345
3346 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3347
3348         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3349         to calculate unit, prefix_rep and prefix_data16 attributes.
3350         (*mov<mode>_internal): Ditto for unit attribute.
3351         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3352         (*movv2sf_internal): Ditto.
3353         * config/i386/sse.md (VI1248_256): Remove mode iterator.
3354         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3355         (*avx2_eq<mode>3): Ditto.
3356         (avx2_gt<mode>3): Ditto.
3357
3358 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3359
3360         * config/i386/i386.md (maxmin): New code iterator.
3361         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3362         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3363         code iterator.
3364         (*avx2_<maxmin:code><mode>3): Macroize isn from
3365         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3366         maxmin code iterator.
3367         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3368         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3369         <umaxmin:code>v16qi3.
3370
3371 2011-09-19  Alan Modra  <amodra@gmail.com>
3372             Michael Meissner  <meissner@linux.vnet.ibm.com>
3373
3374         PR target/50341
3375         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3376         split the load of the indirect function's TOC from the call to
3377         prevent the compiler from moving the load of the new TOC above
3378         code that references the current function's TOC.
3379         (call_indirect_aix<ptrsize>_internal): Ditto.
3380         (call_indirect_aix<ptrsize>_nor11): Ditto.
3381         (call_indirect_aix<ptrsize>_internal2): Ditto.
3382         (call_value_indirect_aix<ptrsize>): Ditto.
3383         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3384         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3385         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3386
3387 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
3388
3389         * config/i386/sse.md (*sse4_1_extractps): Change into
3390         define_insn_and_split, add =x 0 n and =x x n alternatives
3391         and split them after reload.
3392
3393 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3394
3395         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3396
3397 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3398
3399         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3400
3401 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
3402
3403         PR tree-optimization/50413
3404         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3405         a basic block if one of its data-refs can't be analyzed.
3406
3407 2011-09-19  Paul Brook  <paul@codesourcery.com>
3408
3409         * config/arm/predicates.md (shift_amount_operand): Check constant
3410         shift count is in range.
3411         (const_shift_operand): Remove.
3412
3413 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3414             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3415
3416         PR target/50091
3417         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3418         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3419
3420 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3421
3422         * config/i386/bmiintrin.h: Remove tmp.
3423         * config/i386/tbmintrin.h: Likewise.
3424
3425 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3426
3427         PR tree-optimization/50414
3428         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3429         MIN_EXPR.
3430
3431 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3432
3433         PR tree-optimization/50412
3434         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3435         acceses that require epilogue loop if vectorizing outer loop.
3436
3437 2011-09-17  David S. Miller  <davem@davemloft.net>
3438
3439         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3440         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3441         New unspecs.
3442         (define_attr type): New type 'edge'.
3443         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3444         edge32l_vis): New patterns.
3445         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3446         * config/sparc/ultra3.md: Likewise.
3447         * config/sparc/niagara.md: Likewise.
3448         * config/sparc/niagara2.md: Likewise.
3449         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3450         builtins for VIS edge instructions.
3451         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3452         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3453         intrinsics.
3454         (__v8qi, __v4qi): Make unsigned.
3455         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3456         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3457         __vis_fpack32): Fix types.
3458         * doc/extend.texi: Document new 'edge' VIS intrinsics.
3459
3460         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3461         divide costs.
3462         (niagara3_costs): New.
3463         (sparc_option_override): Use it.
3464         * gcc/config/sparc/niagara2.md: Adjust with more accurate
3465         Niagara-3 reservations.
3466
3467 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
3468
3469         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3470         (sse2_avx, sseinsnmode): Add V2TI.
3471         (REDUC_SMINMAX_MODE): New mode iterator.
3472         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3473         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3474         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3475         (sse2_lshrv1ti3): Rename to...
3476         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
3477         iterator.  Move before umaxmin expanders.
3478         * config/i386/i386.h (VALID_AVX256_REG_MODE,
3479         SSE_REG_MODE_P): Accept V2TImode.
3480         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3481         V16HImode, V8SImode and V4DImode.
3482
3483         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3484         and V4DImode.
3485         (ix86_build_signbit_mask): Likewise.
3486         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
3487         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3488         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3489         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3490         (<code><mode>3) ... this.
3491         (avx2_<code><mode>3 smaxmin expand): Rename to...
3492         (<code><mode>3) ... this.
3493         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3494         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3495         VI8_AVX2 mode iterator.
3496         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3497         VI8_AVX2 mode iterator.
3498         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3499         New expanders.
3500
3501 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
3502
3503         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3504         throughout file.
3505
3506 2011-09-16  David S. Miller  <davem@davemloft.net>
3507
3508         * config/sparc/visintrin.h: New file.
3509         * config.gcc: Add it to extra_headers on sparc.
3510
3511 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
3512
3513         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3514         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
3515         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3516         reduc_smin_v4sf): Adjust callers.
3517         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3518         New expanders.
3519
3520         * config/i386/sse.md (vec_extract_hi_<mode>,
3521         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3522         vextracti128 instead of vextractf128 for -mavx2 and
3523         integer vectors.  For V4DFmode fix up mode attribute.
3524         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3525         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3526         instead of V8SF mode attribute.
3527         (avx2_extracti128): Change into define_expand.
3528         * config/i386/i386.c (ix86_expand_vector_extract): Handle
3529         32-byte vector modes if TARGET_AVX.
3530
3531 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3532
3533         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3534         (umulqi3_highpart, smulqi3_highpart): Ditto.
3535         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3536         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3537         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3538
3539 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3540
3541         PR target/50358
3542         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3543         (*maddqi4, *maddqi4.const): New insns.
3544         (*msubqi4, *msubqi4.const): New insns.
3545         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3546         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
3547         HImode by 1 in the case of multiplying with a CONST_INT.
3548         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3549
3550 2011-09-15   Jan Hubicka  <jh@suse.cz>
3551
3552         PR lto/50430
3553         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3554         error_mark_node in the DECL_INITIAL of vtable.
3555
3556 2011-09-15   Diego Novillo  <dnovillo@google.com>
3557
3558         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3559         @SYSROOT_CFLAGS_FOR_TARGET@.
3560         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3561         * configure: Regenerate.
3562         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3563         Remove setting of GCC_UNDER_TEST.
3564
3565 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
3566
3567         * config/i386/i386.c (output_fp_compare): Return %v prefixed
3568         instruction mnemonics for TARGET_AVX.
3569
3570         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3571         "type" attribute calculation.
3572         (*movdf_internal): Ditto.
3573         (*movsf_internal): Ditto.
3574
3575 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
3576
3577         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3578
3579 2011-09-15  Jason Merrill  <jason@redhat.com>
3580
3581         PR c++/50361
3582         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3583
3584 2011-09-15  Jan Hubicka  <jh@suse.cz>
3585
3586         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3587         simplify obviously true clauses.
3588         (and_predicates, or_predicates): Add conditions parameter.
3589         (inline_duplication_hoook): Update.
3590         (mark_modified): New function.
3591         (unmodified_parm): New function.
3592         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3593         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3594         Use unmodified_parm.
3595         (estimate_function_body_sizes): Update.
3596         (remap_predicate): Update.
3597
3598 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
3599
3600         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3601         read-after-read dependencies in basic block SLP.
3602
3603 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3604
3605         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3606         throughout file.
3607
3608 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3609
3610         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3611         throughout file.
3612
3613 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3614
3615         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3616         throughout file.
3617
3618 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3619
3620         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3621         throughout file.
3622         * config/rs6000/constraints.md: Likewise.
3623
3624 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3625
3626         * config/microblaze/microblaze.md: Use match_test rather than
3627         eq/ne symbol_ref throughout file.
3628
3629 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3630
3631         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3632         throughout file.
3633
3634 2011-09-14  Tom de Vries  <tom@codesourcery.com>
3635
3636         PR middle-end/50251
3637         * explow.c (emit_stack_restore): Set crtl->need_drap if
3638         stack_restore is emitted.
3639
3640 2011-09-14  Julian Brown  <julian@codesourcery.com>
3641
3642         * config/arm/arm.c (arm_override_options): Add unaligned_access
3643         support.
3644         (arm_file_start): Emit attribute for unaligned access as appropriate.
3645         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3646         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3647         (insv, extzv): Add unaligned-access support.
3648         (extv): Change to expander. Likewise.
3649         (extzv_t1, extv_regsi): Add helpers.
3650         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3651         (unaligned_storesi, unaligned_storehi): New.
3652         (*extv_reg): New (previous extv implementation).
3653         * config/arm/arm.opt (munaligned_access): Add option.
3654         * config/arm/constraints.md (Uw): New constraint.
3655         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3656         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3657         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3658         volatile accesses when -fstrict-volatile-bitfields is in effect.
3659         (extract_bit_field_1): Likewise.
3660
3661 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
3662
3663         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3664         a scalar integer before applying integer-only optimisations to
3665         inner arithmetic.
3666
3667 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
3668
3669         * config/mips/mips.c (mips_expand_epilogue): Generate a
3670         simple_return only if the return address is in r31.
3671
3672 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3673
3674         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3675         NULL for a jump that is a cc0 insn, pick the previous insn for
3676         move_before.
3677
3678 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3679
3680         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3681         throughout file.
3682
3683 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3684
3685         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3686         throughout file.
3687
3688 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3689
3690         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3691         symbol_ref throughout file.
3692
3693 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3694
3695         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3696         throughout file.
3697
3698 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3699
3700         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3701         throughout file.
3702
3703 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3704
3705         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3706         throughout file.
3707         * config/arm/neon.md: Likewise.
3708         * config/arm/vfp.md: Likewise.
3709         * config/arm/thumb2.md: Likewise.
3710         * config/arm/cortex-m4.md: Likewise.
3711
3712 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3713
3714         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3715         define_insn patterns for combine.
3716
3717 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
3718
3719         * reorg.c: Always define make_return_insns.
3720
3721 2011-09-13  Jan Hubicka  <jh@suse.cz>
3722
3723         PR other/49533
3724         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3725
3726 2011-09-13  Jan Hubicka  <jh@suse.cz>
3727
3728         PR other/49533
3729         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
3730
3731 2011-09-13  Paul Brook  <paul@codesourcery.com>
3732
3733         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3734         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3735         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3736         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3737         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3738         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3739         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3740         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3741         enabling unwind tables.
3742         (c6x_debug_unwind_info): New function.
3743         (TARGET_ARM_EABI_UNWINDER): Define.
3744         (TARGET_DEBUG_UNWIND_INFO): Define.
3745         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3746         (TARGET_EXTRA_CFI_SECTION): Remove.
3747         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3748         * ginclude/unwind-arm-common.h: New file.
3749
3750 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
3751
3752         PR target/50358
3753         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3754         * config/avr/avr.md: (extend_s): New code attribute.
3755         (mul_r_d): New code attribute.
3756         (*maddqihi4, *umaddqihi4): New insns.
3757         (*msubqihi4, *umsubqihi4): New insns.
3758         (*usmaddqihi4, *sumaddqihi4): New insns.
3759         (*usmsubqihi4, *susubdqihi4): New insns.
3760         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3761         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3762         (*umsubqihi4.uconst.ashift): New insn-and-split.
3763         (*msubqihi4.sconst.ashift): New insn-and-split.
3764         (*sumaddqihi4.uconst): New insn-and-split.
3765         (*sumsubqihi4.uconst): New insn-and-split.
3766         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3767         PLUS:HI and MINUS:HI.
3768
3769 2011-09-13  Revital Eres  <revital.eres@linaro.org>
3770
3771         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3772         (optimize_sc): Adjust call to remove_node_from_ps.
3773         (sms_schedule): Add print info.
3774
3775 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3776
3777         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3778         flags specially.
3779
3780 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3781
3782         PR bootstrap/50010
3783         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3784         NOTE_INSN_CFI notes, with the exception of
3785         NOTE_INSN_SWITCH_TEXT_SECTIONS.
3786
3787 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3788             Richard Sandiford  <rdsandiford@googlemail.com>
3789
3790         * config/mips/mips.c (mips_epilogue): New structure.
3791         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3792         restoring registers.
3793         (mips_epilogue_emit_cfa_restores): New function.
3794         (mips_epilogue_set_cfa): Likewise.
3795         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
3796         the current CFA register from the stack, redefine the CFA in terms
3797         of the stack pointer.
3798         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
3799         to the epilogue instructions.
3800
3801 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
3802
3803         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3804         argument.
3805         (mips16e_build_save_restore): Update accordingly.
3806
3807 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3808
3809         PR rtl-optimization/50212
3810         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3811         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3812
3813         PR debug/50299
3814         * calls.c (load_register_parameters): Use use_reg_mode instead
3815         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3816         entry.
3817         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3818         for stack CALL_INSN_FUNCTION_USAGE uses.
3819         * expr.h (use_reg_mode): New prototype.
3820         (use_reg): Changed into inline around use_reg_mode.
3821         * expr.c (use_reg): Renamed to...
3822         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
3823         mode to that mode instead of VOIDmode.
3824         * var-tracking.c (prepare_call_arguments): Don't track parameters
3825         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3826         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
3827         EXPR_LIST mode.
3828
3829 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
3830
3831         PR target/43746
3832         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3833         (progmem_section): New Variable.
3834         (avr_asm_init_sections): Initialize it.
3835         (TARGET_ASM_SELECT_SECTION): Define to...
3836         (avr_asm_select_section): ... this new Function.
3837         (avr_replace_prefix): New Function.
3838         (avr_asm_function_rodata_section): Use it.
3839         (avr_insert_attributes): Don't add section attribute for PROGMEM.
3840         (avr_section_type_flags): Use avr_progmem_p instead of section
3841         name to detect if object is in PROGMEM.
3842         (avr_asm_named_section): Set section name prefix for objects in
3843         PROGMEM.
3844
3845 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3846
3847         PR bootstrap/50352
3848         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3849         sprintf format string.
3850
3851 2011-09-12  Richard Guenther  <rguenther@suse.de>
3852
3853         PR tree-optimization/50343
3854         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3855         that the reduction is over an SSA name before checking its definition.
3856
3857 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3858
3859         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3860         throughout file.
3861
3862 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3863
3864         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3865         throughout file.
3866         * config/mips/sb1.md: Likewise.
3867         * config/mips/predicates.md: Replace (match_test "!...")
3868         with (not (match_test "..."))
3869         * config/mips/constraints.md: Likewise.
3870
3871 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
3872
3873         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3874         * config/arm/arm-tables.opt: Regenerate.
3875         * config/arm/arm-tune.md: Regenerate.
3876         * config/arm/arm.c (arm_file_start): Output .arch directive when
3877         user passes -mcpu=generic-*.
3878         (arm_issue_rate): Add genericv7a support.
3879         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3880         (ASM_CPU_SPEC): New define.
3881         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3882         * config/arm/semi.h (ASM_SPEC): Likewise.
3883         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3884         and -mtune=generic-*.
3885
3886 2011-09-09  Richard Guenther  <rguenther@suse.de>
3887
3888         PR tree-optimization/50328
3889         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3890         constant or default-def operand.
3891
3892 2011-09-09  Richard Guenther  <rguenther@suse.de>
3893
3894         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3895         last statement.
3896
3897 2011-09-09  Richard Guenther  <rguenther@suse.de>
3898
3899         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3900         instead of a statement.
3901         * gimple-fold.c (fold_stmt_inplace): Likewise.
3902         * sese.c (graphite_copy_stmts_from_block): Adjust.
3903         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3904         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3905         fold_stmt.
3906         (forward_propagate_addr_into_variable_array_index): Likewise.
3907         (forward_propagate_addr_expr_1): adjust.
3908         (associate_plusminus): Likewise.
3909         (ssa_forward_propagate_and_combine): Likewise.
3910         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
3911         (execute_cse_reciprocals): Likewise.
3912         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
3913
3914 2011-09-09  Nick Clifton  <nickc@redhat.com>
3915
3916         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
3917         Return a positive value to indicate that the bits at the
3918         bottom of the register should be cleared.
3919
3920 2011-09-09  Richard Guenther  <rguenther@suse.de>
3921
3922         * tree-ssa-operands.c (swap_tree_operands): Always adjust
3923         existing operand positions.
3924
3925 2011-09-09  Richard Guenther  <rguenther@suse.de>
3926
3927         PR middle-end/50333
3928         * tree-data-ref.c (split_constant_offset): Do not try to handle
3929         ternary ops.
3930
3931 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
3932
3933         PR tree-optimization/50318
3934         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
3935         typo in use of mult_rhs1 and mult_rhs2.
3936
3937 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
3938
3939         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
3940         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
3941
3942 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
3943
3944         * config/arm/arm.md (push_multi): Emit predicates.
3945         (push_fp_multi): Likewise.
3946         * config/arm/arm.c (vfp_output_fstmd): Likewise.
3947
3948 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3949
3950         PR c++/33255 - Support -Wunused-local-typedefs warning
3951         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
3952         (pushdecl): Use the new record_locally_defined_typedef.
3953         (store_parm_decls): Allocate cfun->language.
3954         (finish_function): Use the new maybe_warn_unused_local_typedefs,
3955         and free cfun->language.
3956         (c_push_function_context): Allocate cfun->language here only if needed.
3957         (c_pop_function_context): Likewise, mark cfun->language
3958         for collection only when it should be done.
3959         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
3960         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
3961         maybe_record_local_typedef_use.
3962         * doc/invoke.texi: Update documentation for
3963         -Wunused-local-typedefs.
3964
3965 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
3966
3967         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
3968         (ix86_avoid_lea_for_add): Likewise.
3969         (ix86_avoid_lea_for_addr): Likewise.
3970         (ix86_split_lea_for_addr): Likewise.
3971
3972         * config/i386/i386.c (LEA_MAX_STALL): New.
3973         (increase_distance): Likewise.
3974         (insn_defines_reg): Likewise.
3975         (insn_uses_reg_mem): Likewise.
3976         (distance_non_agu_define_in_bb): Likewise.
3977         (distance_agu_use_in_bb): Likewise.
3978         (ix86_lea_outperforms): Likewise.
3979         (ix86_ok_to_clobber_flags): Likewise.
3980         (ix86_avoid_lea_for_add): Likewise.
3981         (ix86_avoid_lea_for_addr): Likewise.
3982         (ix86_split_lea_for_addr): Likewise.
3983         (distance_non_agu_define): Search in pred BBs added.
3984         (distance_agu_use): Search in succ BBs added.
3985         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
3986         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
3987         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
3988
3989         * config/i386/i386.md: Split added to transform non destructive
3990         add into move and add.
3991         (lea_1): transformed into insn_and_split to avoid AGU stalls.
3992         (lea<mode>_2): Likewise.
3993
3994 2011-09-08  Martin Jambor  <mjambor@suse.cz>
3995
3996         PR tree-optimization/50287
3997         * ipa-split.c (split_function): Do not create SSA names for
3998         non-gimple-registers.
3999
4000 2011-09-08  Richard Guenther  <rguenther@suse.de>
4001
4002         PR tree-optimization/19831
4003         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4004         skip builtins with vdefs that do not really store something.
4005         (propagate_necessity): For calls to free that we can associate
4006         with an allocation function do not mark the freed pointer
4007         definition necessary.
4008         (eliminate_unnecessary_stmts): Remove a call to free if
4009         the associated call to an allocation function is not necessary.
4010
4011 2011-09-08  Richard Guenther  <rguenther@suse.de>
4012
4013         PR tree-optimization/19831
4014         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4015         allocation functions as necessary.
4016
4017 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
4018
4019         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4020         cut from ...
4021         (darwin_default_min_version): Amended to provide defaults
4022         for the cross directory case.
4023         (darwin_driver_init): call darwin_default_min_version unconditionally.
4024         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4025         * config/darwin9.h: Likewise.
4026         * config/darwin10.h: Likewise.
4027         * config/rs6000/darwin7.h: Likewise.
4028
4029 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
4030
4031         PR target/50310
4032         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4033         code early if TARGET_AVX.
4034         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4035
4036 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4037
4038         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4039         duplicates.
4040
4041         PR target/50310
4042         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4043         "mode" attribute computation.
4044
4045 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
4046
4047         * regrename.c (struct du_head): Make nregs signed.
4048         (closed_chains): Remove.
4049         (create_new_chain): Return the new chain.
4050         (chain_from_id): New static function.
4051         (dump_def_use_chain): Change argument to be an int, indicating
4052         the first ID to print.  All callers changed.
4053         (merge_overlapping_regs): Use chain_from_id.  Assert that
4054         chains don't conflict with themselves.
4055         (rename_chains): Take no argument.  Iterate over id_to_chain
4056         rather to find chains to rename.  Clear tick before the main loop.
4057         (struct incoming_reg_info): New struct.
4058         (struct bb_rename_info): New struct.
4059         (init_rename_info, set_incoming_from_chain, merge_chains): New
4060         static functions.
4061         (regrename_analyze): New static function, broken out of
4062         regrename_optimize.  Record and make use of open chain information
4063         at basic block boundaries, and merge chains where possible.
4064         (scan_rtx_reg): Make this_nregs signed.  Don't update
4065         closed_chains.
4066         (build_def_use): Return a bool to indicate success.  All callers
4067         changed.  Don't initialize global data here.
4068         (regrename_optimize): Move most code out of here into
4069         regrename_analyze.
4070         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4071         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4072         static inline functions.
4073         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4074
4075         * bb-reorder.c (insert_section_boundary_note): Don't check
4076         optimize_function_for_speed_p.
4077         (gate_handle_partition_blocks): Do it here instead.
4078         (gate_handle_reorder_blocks): Move preliminary checks here ...
4079         (rest_of_handle_reorder_blocks): ... from here.
4080
4081 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4082
4083         PR middle-end/50301
4084         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4085         function index bounds.
4086         (perhaps_add_new_callers): Likewise.
4087
4088 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4089
4090         PR tree-optimization/49911
4091         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4092         enumerations to the corresponding plain integer type.
4093
4094 2011-09-07  Richard Guenther  <rguenther@suse.de>
4095
4096         PR tree-optimization/50319
4097         * tree-if-conv.c (set_bb_predicate): Assert we only set
4098         canonical predicates.
4099         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
4100         around canonical predicates.
4101         (predicate_bbs): Do not re-gimplify already canonical
4102         predicates.  Properly unshare them though.
4103         (find_phi_replacement_condition): Simplify.
4104
4105 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
4106
4107         PR target/49030
4108         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4109         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4110         reusing the old code from get_arm_condition_code.  Return ARM_NV
4111         for invalid comparison codes.
4112         (get_arm_condition_code): Redefine in terms of
4113         maybe_get_arm_condition_code.
4114         * config/arm/predicates.md (arm_comparison_operator): Use
4115         maybe_get_arm_condition_code.
4116
4117 2011-09-07  Richard Guenther  <rguenther@suse.de>
4118
4119         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4120         Canonicalize negated predicates by swapping edges.
4121         (forward_propagate_into_cond): Likewise.
4122
4123 2011-09-07  Richard Guenther  <rguenther@suse.de>
4124
4125         PR tree-optimization/50213
4126         * tree-flow.h (simple_iv_increment_p): Declare.
4127         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
4128         POINTER_PLUS_EXPR.
4129         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4130         not propagate simple IV counter increments.
4131
4132 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
4133             Iain Sandoe  <iains@gcc.gnu.org>
4134
4135         * config/rs6000/rs6000.c (compute_save_world_info): Test
4136         cfun->has_nonlocal_label to determine if the out-of-line save
4137         world call may be used.
4138
4139 2011-09-07  Nick Clifton  <nickc@redhat.com>
4140
4141         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
4142         label on the parallel part of the insn.
4143
4144 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4145
4146         PR debug/50191
4147         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
4148         avoid_constant_pool_reference first instead of last.
4149
4150 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4151
4152         * doc/configfiles.texi (Configuration Files): Update documentation
4153         about tm_p.h and remove FIXME comment.
4154
4155 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
4156
4157         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
4158         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
4159
4160 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
4161
4162         * config/darwin10.h Remove duplicate LIB_SPEC.
4163
4164 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
4165
4166         PR middle-end/44382
4167         * target.def (reassociation_width): New hook.
4168
4169         * doc/tm.texi.in (reassociation_width): Likewise.
4170
4171         * doc/tm.texi (reassociation_width): Likewise.
4172
4173         * doc/invoke.texi (tree-reassoc-width): New param documented.
4174
4175         * hooks.h (hook_int_uint_mode_1): New default hook.
4176
4177         * hooks.c (hook_int_uint_mode_1): Likewise.
4178
4179         * config/i386/i386.h (ix86_tune_indices): Add
4180         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4181
4182         (TARGET_REASSOC_INT_TO_PARALLEL): New.
4183         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
4184
4185         * config/i386/i386.c (initial_ix86_tune_features): Add
4186         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4187
4188         (ix86_reassociation_width): New function.
4189
4190         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
4191
4192         * tree-ssa-reassoc.c (get_required_cycles): New function.
4193         (get_reassociation_width): Likewise.
4194         (swap_ops_for_binary_stmt): Likewise.
4195         (rewrite_expr_tree_parallel): Likewise.
4196
4197         (rewrite_expr_tree): Refactored.  Part of code moved into
4198         swap_ops_for_binary_stmt.
4199
4200         (reassociate_bb): Now checks reassociation width to be used and
4201         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
4202
4203 2011-09-06  Richard Guenther  <rguenther@suse.de>
4204
4205         PR tree-optimization/47025
4206         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
4207         uses nothing.
4208         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
4209         BUILT_IN_FREE.
4210         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
4211         definitely points to.
4212         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4213         BUILT_IN_VA_START doesn't let its va_list argument escape.
4214         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
4215         not make any previous stores necessary.
4216
4217 2011-09-06  Martin Jambor  <mjambor@suse.cz>
4218
4219         * ipa-inline.h (struct inline_summary): Move versionable flag...
4220         * cgraph.h (struct cgraph_local_info): ...here
4221         * ipa-cp.c (determine_versionability): Use the new versionable flag.
4222         (determine_versionability): Likewise.
4223         (ipcp_versionable_function_p): Likewise.
4224         (ipcp_generate_summary): Likewise.
4225         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
4226         versionable flag.
4227         (compute_inline_parameters): Do not clear the versionable flag.
4228         (inline_read_section): Do not stream the versionable flag.
4229         (inline_write_summary): Likewise.
4230         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
4231         (input_overwrite_node): Likewise.
4232
4233 2011-09-06  Richard Guenther  <rguenther@suse.de>
4234
4235         PR tree-optimization/48149
4236         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
4237         (vn_valueize): Move earlier.
4238         (valueize_expr): Use vn_valueize.
4239         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
4240         operands.
4241         (simplify_unary_expression): Simplify.
4242
4243 2011-09-06  Richard Guenther  <rguenther@suse.de>
4244
4245         PR tree-optimization/48317
4246         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
4247         trailing array.
4248         (sizeof_vn_nary_op): New inline function.
4249         (vn_nary_op_lookup_pieces): Adjust.
4250         (vn_nary_op_insert_pieces): Likewise.
4251         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
4252         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
4253         any number of operands.
4254         (vn_nary_length_from_stmt): New function.
4255         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
4256         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
4257         sized temporary.
4258         (vn_nary_op_lookup): Likewise.
4259         (vn_nary_op_lookup_stmt): Likewise.
4260         (vn_nary_op_insert_into): Likewise.
4261         (vn_nary_op_insert_stmt): Likewise.
4262         (visit_use): Handle CONSTRUCTOR as nary.
4263         * tree-ssa-pre.c (phi_translate_1): Adjust.
4264         (create_expression_by_pieces): Likewise.
4265         (compute_avail): Likewise.
4266
4267 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
4268
4269          * config/arm/arm.c (arm_preferred_simd_mode): Check
4270         TARGET_NEON_VECTORIZE_DOUBLE instead of
4271         TARGET_NEON_VECTORIZE_QUAD.
4272         (arm_autovectorize_vector_sizes): Likewise.
4273         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
4274         mask of mvectorize-with-neon-double.  Add RejectNegative.
4275         (mvectorize-with-neon-double): New.
4276
4277 2011-09-06  Richard Guenther  <rguenther@suse.de>
4278
4279         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
4280
4281 2011-09-06  Tom de Vries  <tom@codesourcery.com>
4282
4283         * recog.c (asm_labels_ok): New function.
4284         (check_asm_operands): Use asm_labels_ok.
4285
4286 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4287
4288         PR target/49606
4289         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4290         (PMODE_INSN): New macro.
4291         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4292         (mips_got_load, mips_expand_synci_loop): Likewise.
4293         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4294         cprestore patterns.
4295         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
4296         copygp_mips16 patterns.
4297         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4298         and use_cprestore patterns.
4299         (mips_override_options): Check for incompatible -mabi and -mlong
4300         combinations.
4301         * config/mips/mips.md (unspec_got<mode>): Rename to...
4302         (unspec_got_<mode>): ...this.
4303         (copygp_mips16): Use the Pmode iterator.
4304         (potential_cprestore, cprestore, use_cprestore): Likewise.
4305         (clear_cache, indirect_jump): Use PMODE_INSN.
4306         (indirect_jump<mode>): Rename to...
4307         (indirect_jump_<mode>): ...this.
4308         (tablejump): Use PMODE_INSN.
4309         (tablejump<mode>): Rename to...
4310         (tablejump_<mode>): ...this.
4311         (exception_receiver): Handle restore_gp_si and restore_gp_di.
4312         (restore_gp): Use the Pmode iterator.
4313         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4314         PMODE_INSN.
4315
4316 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4317
4318         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4319         Fix the type of the BIT_AND_EXPR.
4320
4321 2011-09-05  David S. Miller  <davem@davemloft.net>
4322
4323         * config.host: Add driver-sparc.o and sparc/x-sparc on
4324         native sparc*-*-linux* builds.
4325         * config/sparc/driver-sparc.c: Correct Linux strings.
4326         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4327         * config/sparc/linux64.h: Likewise.
4328         * doc/invoke.texi: Document that Linux also supports
4329         -mcpu=native and -mtune=native on sparc.
4330
4331         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4332         PROCESSOR_NIAGARA4): New.
4333         * config/sparc/sparc.opt: Handle new processor types.
4334         * config/sparc/sparc.md: Add to "cpu" attribute.
4335         * config/sparc/sparc.h (TARGET_CPU_niagara3,
4336         TARGET_CPU_niagara4): New, treat as niagara2.
4337         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4338         * config/sparc/sol2.h: Likewise.
4339         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4340         * config/sparc/sparc.c (sparc_option_override): Add
4341         niagara3 and niagara4 handling.
4342         (sparc32_initialize_trampoline): Likewise.
4343         (sparc64_initialize_trampoline): Likewise.
4344         (sparc_use_sched_lookahead): Likewise.
4345         (sparc_issue_rate): Likewise.
4346         (sparc_register_move_cost): Likewise.
4347         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4348         and niagara4 as appropriate.
4349         * doc/invoke.texi: Document new processor types.
4350         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4351         and --with-tune options.
4352
4353         * config/sparc/sol2-64.h: Move ...
4354         * config/sparc/default-64.h: ... to here.  Update comment.
4355         * config.gcc: Update Solaris sparc to use default-64.h, also
4356         prefix this header into the list on sparc64-*-linux.
4357         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4358         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
4359         to MASK_HARD_QUAD.
4360
4361 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4362
4363         PR target/50289
4364         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4365         that contain global register variable.
4366
4367 2011-09-05  Richard Guenther  <rguenther@suse.de>
4368
4369         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4370
4371 2011-09-05  Richard Guenther  <rguenther@suse.de>
4372
4373         * stor-layout.c (layout_type): Use size_binop for array size
4374         calculations.
4375
4376 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4377
4378         * config/avr/avr.h (progmem_section): Remove Declaration.
4379         * config/avr/avr.c (progmem_section): Make static and rename to
4380         progmem_swtable_section.
4381         (avr_output_addr_vec_elt): No need to switch sections.
4382         (avr_asm_init_sections): Use output_section_asm_op as section
4383         callback for progmem_swtable_section.
4384         (avr_output_progmem_section_asm_op): Remove Function.
4385         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4386         (avr_asm_function_rodata_section): New static Function.
4387         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4388         alignment 2**1 for jump tables.
4389
4390 2011-09-04  Jan Hubicka  <jh@suse.cz>
4391
4392         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4393         parameter is SSA name.
4394
4395 2011-09-04  Richard Guenther  <rguenther@suse.de>
4396
4397         Revert
4398         2011-08-31  Richard Guenther  <rguenther@suse.de>
4399
4400         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4401         special-casing.
4402
4403 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
4404
4405         PR debug/49901
4406         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4407
4408 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
4409             Ira Rosen  <ira.rosen@linaro.org>
4410
4411         PR tree-optimization/50208
4412         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4413         argument.  Check that def_stmt is inside the loop.
4414         (vect_recog_widen_mult_pattern): Update calls to
4415         vect_handle_widen_mult_by_cons.
4416         (vect_operation_fits_smaller_type): Check that def_stmt is
4417         inside the loop.
4418
4419 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
4420
4421         * tree-vectorizer.c (vect_print_dump_info): Print line
4422         number when dumping to a file.
4423         (vectorize_loops): Add new messages to dump file.
4424
4425 2011-09-03  Martin Jambor  <mjambor@suse.cz>
4426
4427         * ipa-prop.h (ipa_jump_func_t): New typedef.
4428         (struct ipa_edge_args): Removed field argument_count, field
4429         jump_functions turned into a vector.
4430         (ipa_set_cs_argument_count): Removed.
4431         (ipa_get_cs_argument_count): Updated to work on vectors.
4432         (ipa_get_ith_jump_func): Likewise.
4433         * ipa-prop.c (ipa_count_arguments): Removed.
4434         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4435         jump functions.  Update caller.
4436         (compute_pass_through_member_ptrs): Likewise.
4437         (compute_cst_member_ptr_arguments): Likewise.
4438         (ipa_compute_jump_functions_for_edge): Get number of arguments from
4439         the statement, allocate vector.
4440         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4441         (duplicate_ipa_jump_func_array): Removed.
4442         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4443         (ipa_read_node_info): Allocate vector.
4444
4445 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4446
4447         PR middle-end/50232
4448         * config/pa/pa.md (return): Define "return" insn pattern.
4449         (epilogue): Use it when no epilogue is needed.
4450         * config/pa/pa.c (pa_can_use_return_insn): New function.
4451         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4452
4453 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
4454
4455         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4456         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4457         Force at least BITS_PER_UNIT alignment on the new variable.
4458
4459 2011-09-02  Gary Funck <gary@intrepid.com>
4460
4461         * opts.c (print_specific_help): Fix off-by-one compare in
4462         assertion check.
4463         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4464         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4465         Increase by +5 to allow for more languages.
4466         * optc-gen.awk: Generate #if that ensures that the number of
4467         languages is within the implementation-defined limit.
4468
4469 2011-09-02  Michael Matz  <matz@suse.de>
4470
4471         PR middle-end/50260
4472         * ipa-split.c (split_function): Call add_referenced_var.
4473
4474         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4475         (cond_if_else_store_replacement_1): Ditto.
4476         * tree-ssa-pre.c (get_representative_for): Ditto.
4477         (create_expression_by_pieces): Ditto.
4478         (insert_into_preds_of_block): Ditto.
4479         * tree-sra.c (create_access_replacement): Ditto.
4480         (get_replaced_param_substitute): Ditto.
4481
4482 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
4483
4484         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4485         automata_options.
4486         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4487         (l1w, s1w, l2w, s2w): Define in the main automaton.
4488         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4489         units.
4490         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4491         (c6x_unit_names): Add the new units.
4492         (c6x_unit_codes): New static array.
4493         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4494         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4495         UNIT_QID_SIDE_OFFSET): New macros.
4496         (RESERVATION_S2): Adjust value.
4497         (c6x_option_override): Compute c6x_unit_codes.
4498         (assign_reservations): Take the unit_mask of the last instruction
4499         into account.  Detect floating point reservations by looking for
4500         the new units.  Don't assign reservations if the field is already
4501         nonzero.
4502         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4503         (init_sched_state): Initialize it.
4504         (c6x_clear_sched_context): Free it.
4505         (insn_set_clock): Clear reservation.
4506         (prev_cycle_state): New static variable.
4507         (c6x_init_sched_context): Save it.
4508         (c6x_sched_init): Allocate space for it and clear it.
4509         (c6x_sched_dfa_pre_cycle_insn): New static function.
4510         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4511         (c6x_variable_issue): Only record units in the unit_mask that
4512         were not set at the start of the cycle.
4513         (c6x_variable_issue): Compute and store the unit_mask from the
4514         current state.
4515         (reorg_split_calls): Ensure the new information remains correct.
4516         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4517         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4518         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4519         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4520         Add special reservations.
4521         * config/c6x/c6x-sched.md: Regenerate.
4522
4523 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4524
4525         * ipa-prop.h (ipa_node_params): Removed fields
4526         called_with_var_arguments and node_versionable.
4527         (ipa_set_called_with_variable_arg): Removed.
4528         (ipa_is_called_with_var_arguments): Likewise.
4529         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4530         (determine_versionability): Do not check for type attributes and va
4531         builtins.  Record versionability into inline summary.
4532         (initialize_node_lattices): Do not check
4533         ipa_is_called_with_var_arguments.
4534         (propagate_constants_accross_call): Likewise, ignore arguments we do
4535         not have PARM_DECLs for, set variable flag for parameters that were
4536         not passed a value.
4537         (create_specialized_node): Dump info that we cannot change signature.
4538         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4539         number of arguments.
4540         (ipa_make_edge_direct_to_target): Likewise.
4541         (ipa_update_after_lto_read): Likewise.
4542         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4543         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4544         they were remapped.
4545
4546 2011-09-02  Richard Guenther  <rguenther@suse.de>
4547
4548         PR tree-optimization/27460
4549         PR middle-end/29269
4550         * doc/md.texi (vcond): Document.
4551         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4552         optab with two modes.
4553         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4554         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4555         (vcond_optab): Adjust.
4556         (vcondu_optab): Likewise.
4557         (expand_vec_cond_expr_p): Adjust prototype.
4558         * optabs.c (get_vcond_icode): Adjust.
4559         (expand_vec_cond_expr_p): Likewise.
4560         (expand_vec_cond_expr): Likewise.
4561         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4562         vector type.
4563         (vectorizable_condition): Allow differing types for comparison
4564         and result.
4565         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4566         for the comparison.
4567         * config/i386/sse.md (vcond<mode>): Split to
4568         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4569         vcond<V_128:mode><VI124_128:mode> and
4570         vcondu<V_128:mode><VI124_128:mode>.
4571         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4572         (vconduv2di): Likewise.
4573         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4574         (vcondu<mode>): Likewise.
4575         * config/ia64/vect.md (vcond<mode>): Likewise.
4576         (vcondu<mode>): Likewise.
4577         (vcondv2sf): Likewise.
4578         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4579         * config/rs6000/paired.md (vcondv2sf): Likewise.
4580         * config/rs6000/vector.md (vcond<mode>): Likewise.
4581         (vcondu<mode>): Likewise.
4582         * config/spu/spu.md (vcond<mode>): Likewise.
4583         (vcondu<mode>): Likewise.
4584
4585 2011-09-02  Richard Guenther  <rguenther@suse.de>
4586
4587         * pretty-print.h (pp_unsigned_wide_integer): New.
4588         * tree-pretty-print.c (dump_generic_node): Print unsigned
4589         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4590
4591 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
4592
4593         PR target/49987
4594         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4595         valid CONST_VECTOR operands.
4596         (rs6000_expand_vector_init): Likewise.
4597
4598 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4599
4600         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4601         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4602         BINFO_VTABLE.  Parameter delta removed, all callers updated.
4603         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4604         BINFO_VTABLE.
4605         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4606         all calls.
4607         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4608         handling of thunk_delta.
4609         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4610         (devirtualization_time_bonus): Do not handle thunk deltas.
4611         (ipcp_discover_new_direct_edges): Likewise.
4612         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4613         (try_make_edge_direct_simple_call): Likewise.
4614         (try_make_edge_direct_virtual_call): Likewise.
4615         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4616         parameter set as unused.
4617         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4618         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4619         parameter set as unused.
4620         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4621         (input_edge_opt_summary): Likewise.
4622         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4623         BINFO_VIRTUALS at all.
4624         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4625
4626 2011-09-02  Richard Guenther  <rguenther@suse.de>
4627
4628         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4629         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4630
4631 2011-08-31  Richard Guenther  <rguenther@suse.de>
4632
4633         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4634         handling here, from ...
4635         (expand_expr_real_1): ... here.
4636         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4637         and VEC_COND_EXPR.
4638         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4639         a GIMPLE_TERNARY_RHS.
4640         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4641         and VEC_COND_EXPR here ...
4642         (verify_gimple_assign_single): ... not here.
4643         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4644         * tree-object-size.c (cond_expr_object_size): Adjust.
4645         (collect_object_sizes_for): Likewise.
4646         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4647         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4648         (ssa_forward_propagate_and_combine): Adjust.
4649         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4650         as ternary.
4651         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4652         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4653         * tree-vect-stmt.c (vectorizable_condition): Likewise.
4654         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4655         (extract_range_from_assignment): Likewise.
4656
4657 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4658
4659         * config/i386/i386.md: Use (match_test ...) for attribute tests.
4660         * config/i386/mmx.md: Likewise.
4661         * config/i386/sse.md: Likewise.
4662         * config/i386/predicates.md (call_insn_operand): Use
4663         (not (match_test "...")) instead of (match_test "!...")
4664         * config/i386/constraints.md (w): Likewise.
4665
4666 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4667
4668         * doc/md.texi: Describe the use of match_tests in attribute tests.
4669         * rtl.def (MATCH_TEST): Update commentary.
4670         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4671         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4672
4673 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4674
4675         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4676         (attr_string): Use copy_md_ptr_loc.
4677
4678 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4679
4680         PR middle-end/49886
4681         * ipa-inline-analysis.c (compute_inline_parameters): Set
4682         can_change_signature of noes with typde attributes.
4683         * ipa-split.c (split_function): Do not skip any arguments if
4684         can_change_signature is set.
4685
4686 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4687
4688         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4689         check removed.
4690
4691 2011-08-31  Richard Guenther  <rguenther@suse.de>
4692
4693         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4694         special-casing.
4695
4696 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
4697
4698         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4699
4700 2011-08-31  Tom de Vries  <tom@codesourcery.com>
4701
4702         PR middle-end/43513
4703         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4704         * tree-ssa-ccp.c (params.h): Include.
4705         (fold_builtin_alloca_for_var): New function.
4706         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4707
4708 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
4709
4710         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4711         Handle FMA option.
4712
4713 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4714
4715         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4716         b3 and b4 unsigned.
4717
4718 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4719
4720         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4721         when code is SET.
4722
4723 2011-08-30  Richard Guenther  <rguenther@suse.de>
4724
4725         PR middle-end/48571
4726         * gimple.h (maybe_fold_offset_to_address): Remove.
4727         (maybe_fold_offset_to_reference): Likewise.
4728         (maybe_fold_stmt_addition): Likewise.
4729         (may_propagate_address_into_dereference): Likewise.
4730         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
4731         array references.
4732         * gimple-fold.c (canonicalize_constructor_val): Likewise.
4733         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4734         addresses instead.
4735         (may_propagate_address_into_dereference): Remove.
4736         (maybe_fold_offset_to_array_ref): Likewise.
4737         (maybe_fold_offset_to_reference): Likewise.
4738         (maybe_fold_offset_to_address): Likewise.
4739         (maybe_fold_stmt_addition): Likewise.
4740         (fold_gimple_assign): Do not reconstruct array references but
4741         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4742         MEM_REF addresses.
4743         (gimple_fold_stmt_to_constant_1): Likewise.
4744         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4745         * gimplify.c (gimplify_conversion): Likewise.
4746         (gimplify_expr): Likewise.
4747
4748 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
4749
4750         * config/i386/fmaintrin.h: New.
4751         * config.gcc: Add fmaintrin.h.
4752         * config/i386/i386.c
4753         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4754         <IX86_BUILTIN_VFMADDSD3>: Likewise.
4755         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4756         (*fmai_fmadd_<mode>): Likewise.
4757         (*fmai_fmsub_<mode>): Likewise.
4758         (*fmai_fnmadd_<mode>): Likewise.
4759         (*fmai_fnmsub_<mode>): Likewise.
4760         * config/i386/immintrin.h: Add fmaintrin.h.
4761
4762 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
4763
4764         * genautomata.c (NO_COMB_OPTION): New macro.
4765         (no_comb_flag): New static variable.
4766         (gen_automata_option): Handle NO_COMB_OPTION.
4767         (comb_vect_p): False if no_comb_flag.
4768         (add_vect): Move computation of min/max values.  Return early if
4769         no_comb_flag.
4770         * doc/md.texi (automata_option): Document no-comb-vect.
4771
4772         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4773         "__x86.get_pc_thunk".
4774
4775         * bb-reorder.c (insert_section_boundary_note): Only do it if
4776         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4777
4778 2011-08-30  Christian Bruel  <christian.bruel@st.com>
4779
4780         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4781         flag_profile_use.
4782
4783 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4784
4785         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4786         to off.  Document switch.
4787         * doc/invoke.texi (-msave-toc-indirect): Ditto.
4788
4789 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4790
4791         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4792         conditionals and comments inside macro arguments.
4793
4794 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4795             Richard Guenther  <rguenther@suse.de>
4796
4797         * tree.h (constant_boolean_node): Adjust prototype.
4798         * fold-const.c (fold_convert_loc): Move aggregate conversion
4799         leeway down.
4800         (constant_boolean_node): Make value parameter boolean, add
4801         vector type handling.
4802         (fold_unary_loc): Use constant_boolean_node.
4803         (fold_binary_loc): Preserve types properly when folding
4804         COMPLEX_EXPR <__real x, __imag x>.
4805         * gimplify.c (gimplify_expr): Handle vector comparison.
4806         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4807         comparison.
4808         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4809         comparisons.
4810
4811 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4812
4813         PR middle-end/48722
4814         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4815         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4816         (verify_rtl_sharing): Likewise and verify_rtx_sharing
4817         in there too.
4818         (unshare_all_rtl_in_chain): For CALL_INSNs
4819         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4820
4821 2011-08-29  Richard Guenther  <rguenther@suse.de>
4822
4823         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4824         on the built ADDR_EXPR.
4825
4826 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4827
4828         PR debug/50215
4829         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4830         before adding ENTRY_VALUE to val->locs.
4831
4832 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
4833
4834         PR bootstrap/50218
4835         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4836         comp.
4837
4838 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
4839
4840         * doc/rtl.texi (simple_return): Document.
4841         (parallel, PATTERN): Here too.
4842         * doc/md.texi (return): Mention it's allowed to expand to simple_return
4843         in some cases.
4844         (simple_return): Document standard pattern.
4845         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4846         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4847         * reorg.c (function_return_label, function_simple_return_label):
4848         New static variables, replacing...
4849         (end_of_function_label): ... this.
4850         (simplejump_or_return_p): New static function.
4851         (optimize_skip, steal_delay_list_from_fallthrough,
4852         fill_slots_from_thread): Use it.
4853         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
4854         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4855         (find_end_label): Take a new arg which is one of the two return
4856         rtxs.  Depending on which, set either function_return_label or
4857         function_simple_return_label.  All callers changed.
4858         (make_return_insns): Make both kinds.
4859         (dbr_schedule): Adjust for two kinds of end labels.
4860         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4861         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4862         (gen_expand, gen_split): Use ANY_RETURN_P.
4863         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4864         * rtl.def (SIMPLE_RETURN): New code.
4865         * ifcvt.c (find_if_case_1): Be more careful about
4866         redirecting jumps to the EXIT_BLOCK.
4867         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4868         returnjump_p_1): Handle SIMPLE_RETURNs.
4869         * print-rtl.c (print_rtx): Likewise.
4870         * rtl.c (copy_rtx): Likewise.
4871         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4872         * combine.c (simplify_set): Likewise.
4873         * resource.c (find_dead_or_set_registers, mark_set_resources):
4874         Likewise.
4875         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4876         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4877         (init_emit_regs): Initialize simple_return_rtx.
4878         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4879         force_nonfallthru_and_redirect.
4880         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4881         (GR_SIMPLE_RETURN): New enum value.
4882         (simple_return_rtx): New macro.
4883         * basic-block.h (force_nonfallthru_and_redirect): Adjust
4884         declaration.
4885         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4886         argument.  All callers changed.  Be careful about what kinds of
4887         returnjumps to generate.
4888         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4889         ix86_pad_short_function): Likewise.
4890         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4891         of return.
4892         * config/mips/mips.md (any_return): New code_iterator.
4893         (optab): Add cases for return and simple_return.
4894         (return): Expand to a simple_return.
4895         (simple_return): New pattern.
4896         (*<optab>, *<optab>_internal for any_return): New patterns.
4897         (return_internal): Remove.
4898         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4899         a simple_return_internal.
4900
4901 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4902
4903         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4904         (vec_extract_lo_<mode>): Prevent both operands in memory.
4905         (vec_extract_lo_v16hi): Ditto.
4906         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
4907
4908 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4909
4910         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
4911         (*sse2_mulv4si3): Ditto.
4912         (mulv2di3): Ditto.
4913         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
4914         notes to REG_EQUAL.
4915
4916 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4917
4918         PR target/50202
4919         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
4920         when all outputs are unused.
4921         (sse4_2_pcmpistr): Ditto.
4922
4923 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4924
4925         * config/i386/i386.md (round<mode>2): New expander.
4926         * config/i386/i386.c (enum ix86_builtins): Add
4927         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
4928         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
4929         descriptions.
4930         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
4931         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
4932
4933 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
4934
4935         PR middle-end/50083
4936         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
4937         only when TARGET_C99_FUNCTIONS.
4938         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
4939         <BUILT_IN_RINT{,F,L}>: Ditto.
4940
4941 2011-08-26  Michael Matz  <matz@suse.de>
4942             Jakub Jelinek  <jakub@redhat.com>
4943
4944         PR lto/50165
4945         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
4946         don't call strlen twice, use memcpy.
4947
4948 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4949
4950         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
4951         * config/i386/bmiintrin.h: Likewise.
4952         * config/i386/lzcntintrin.h: Likewise.
4953
4954         * config/i386/immintrin.h: Include <lzcntintrin.h>,
4955         <bmiintrin.h> and <bmi2intrin.h>.
4956
4957 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4958
4959         PR target/50166
4960         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
4961         * configure: Regenerate.
4962
4963 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
4964
4965         PR c/50179
4966         * c-typeck.c (c_process_expr_stmt): Skip over nops and
4967         call mark_exp_read even if exprv is ADDR_EXPR.
4968
4969 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
4970
4971         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
4972         to df_set_dead_notes_for_mw.
4973
4974 2011-08-26  Richard Guenther  <rguenther@suse.de>
4975
4976         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
4977
4978 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
4979             Tom de Vries  <tom@codesourcery.com>
4980
4981         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
4982         (struct ivopts_data): Add loop_single_exit_p field.
4983         (niter_for_exit): Change parameter desc_p into return value.  Return
4984         desc if desc->may_be_zero.  Free desc if unused.
4985         (niter_for_single_dom_exit): Change return type.
4986         (find_induction_variables): Handle changed return type of
4987         niter_for_single_dom_exit.  Dump may_be_zero.
4988         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
4989         (set_use_iv_cost): Add and handle comp parameter.
4990         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
4991         comp argument to set_use_iv_cost.
4992         (strip_wrap_conserving_type_conversions, expr_equal_p)
4993         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
4994         (may_eliminate_iv): Add comp parameter.  Handle new return type of
4995         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
4996         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
4997         and may_eliminate_iv.
4998         (rewrite_use_compare): Move call to iv_elimination_compare to ...
4999         (may_eliminate_iv): Here.
5000         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5001
5002 2011-08-26  Tom de Vries  <tom@codesourcery.com>
5003
5004         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5005         accessing TREE_TYPE.
5006
5007 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
5008
5009         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5010         (*ior_scc_scc_cmp): Likewise
5011         (*and_scc_scc): Likewise.
5012         (*and_scc_scc_cmp): Likewise.
5013         (*and_scc_scc_nodom): Likewise.
5014         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5015
5016 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5017
5018         * rtlanal.c (nonzero_bits1): Handle CLRSB.
5019
5020 2011-08-26  Richard Guenther  <rguenther@suse.de>
5021
5022         * expr.c (string_constant): Handle &MEM_REF.
5023
5024 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5025
5026         * config/arm/arm.c (struct four_ints): New type.
5027         (count_insns_for_constant): Delete function.
5028         (find_best_start): Delete function.
5029         (optimal_immediate_sequence): New function.
5030         (optimal_immediate_sequence_1): New function.
5031         (arm_gen_constant): Move constant splitting code to
5032         optimal_immediate_sequence.
5033         Rewrite constant negation/invertion code.
5034
5035 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5036
5037         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5038         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5039         Remove prototype. Remove static function type.
5040         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5041         Add arch attribute.
5042         * config/arm/constraints.md (Pj, PJ): New constraints.
5043
5044 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5045
5046         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5047         ("cortex_a9_multiply_long"): New and use above.  Handle all
5048         long multiply cases.
5049         ("cortex_a9_multiply"): Handle smmul and smmulr.
5050         ("cortex_a9_mac"): Handle smmla.
5051
5052 2011-08-25  Richard Henderson  <rth@redhat.com>
5053
5054         PR 50132
5055         PR 49864
5056         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5057         non-constant stack adjutment.
5058         * expr.c (find_args_size_adjust): Break out from ...
5059         (fixup_args_size_notes): ... here.
5060         * rtl.h (find_args_size_adjust): Declare.
5061
5062 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
5063
5064         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5065         sse4 and sse4_noavx.
5066         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5067         (*pushdf_rex64): Change Y2 register constraint to x.
5068         (*movdf_internal_rex64): Ditto.
5069         (*zero_extendsidi2_rex64): Ditto.
5070         (*movdi_internal): Change Y2 register constraint to x
5071         and update "isa" attribute.
5072         (*pushdf): Ditto.
5073         (*movdf internal): Ditto.
5074         (zero_extendsidi2_1): Ditto.
5075         (*truncdfdf_mixed): Ditto.
5076         (*truncxfdf2_mixed): Ditto.
5077         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5078         register constraint to x.
5079         (*movv2sf_internal_rex64): Ditto.
5080         (*mov<mode>_internal): Change Y2 register constraint to x
5081         and add "isa" attribute.
5082         (*movv2sf_internal): Ditto.
5083         (*vec_extractv2si_1): Ditto.
5084         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5085         constraints to x and update "isa" attribute.
5086         (*vec_interleave_highv2df): Change Y3 registerconstraint
5087         to x and update "isa" attribute.
5088         (*vec_interleave_lowv2df): Ditto.
5089         (*vec_concatv2df): Change Y2 register constraint to x and
5090         update "isa" attribute.
5091         (sse2_loadld): Ditto.
5092         (*vec_extractv2di_1): Ditto.
5093         (*vec_dupv4si): Ditto.
5094         (*vec_dupv2di): Ditto.
5095         (*vec_concatv4si): Ditto.
5096         (vec_concatv2di): Ditto.
5097         * config/i386/constraints.md (Y2): Remove.
5098         (Y3): Ditto.
5099         (Y4): Ditto.
5100
5101 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5102
5103         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5104         dump_def_use_chain): Don't declare.
5105         (mark_conflict, create_new_chain): Move before users.
5106         (regrename_optimize): Move to near end of file.
5107
5108 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5109
5110         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5111         (secondary_input_reload_class): Remove Prototype.
5112         * config/avr/avr.c (byte_immediate_operand): Remove Function.
5113         * config/avr/avr.md (setmemhi): Use u8_operand.
5114         (strlenhi): Use const0_rtx for comparison.
5115         * config/avr/avr.h (avr_reg_order): Remove Declaration.
5116
5117 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5118
5119         * config/avr/avr.c (reg_class_tab): Make local to
5120         avr_regno_reg_class.  Return smallest register class available.
5121
5122 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5123
5124         * config/avr/avr.c (STR_PREFIX_P): New Define.
5125         (avr_asm_declare_function_name): Use it.
5126         (avr_asm_named_section): Use it.
5127         (avr_section_type_flags): Use it.
5128
5129 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5130
5131         * doc/md.texi (automata_option): Document collapse-ndfa.
5132         * genautomata.c (COLLAPSE_OPTION): New macro.
5133         (collapse_flag): New static variable.
5134         (struct description): New member normal_decls_num.
5135         (struct automaton): New members advance_ainsn and collapse_ainsn.
5136         (gen_automata_option): Check for COLLAPSE_OPTION.
5137         (collapse_ndfa_insn_decl): New static variable.
5138         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
5139         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
5140         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
5141         necessary.  Use normal_decls_num rather than decls_num, remove
5142         test for special decls.
5143         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
5144         (make_automaton); Likewise.  Use the new advance_cycle_insn member
5145         of struct automaton.
5146         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
5147         is set.
5148         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
5149         transition.  Create the necessary transitions for it.
5150         (create_ainsns): Return void.  Take an automaton_t argument, and
5151         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
5152         callers changed.
5153         (COLLAPSE_NDFA_VALUE_NAME): New macro.
5154         (output_tables): Output code to define it.
5155         (output_internal_insn_code_evaluation): Output code to accept
5156         const0_rtx as collapse-ndfa transition.
5157         (output_default_latencies, output_print_reservation_func,
5158         output_print_description): Reorganize loops to use normal_decls_num
5159         as loop bound; remove special case for advance_cycle_insn_decl.
5160         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
5161         (check_automata_insn_issues): Check for collapse_ainsn.
5162         (expand_automate): Allocate sufficient space.  Initialize
5163         normal_decls_num.
5164
5165 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5166
5167         * config/avr/avr.md: Fix indentation from r177991.
5168
5169 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5170
5171         * regrename.c (struct du_head): Remove member terminated.
5172         (create_new_chain): Don't initialize it.
5173         (scan_rtx_reg): Don't set or test it, test the open_chains_set
5174         bitmap instead.
5175         (tick, this_tick): New global variables, moved out of
5176         regrename_optimize.
5177         (current_id, open_chains, closed_chains, open_chains_set,
5178         live_in_chains, live_hard_regs): Reorder declarations.
5179         (dump_def_use_chain): Move function earlier in the file.
5180         (rename_chains): New static function, broken out of
5181         regrename_optimize.
5182         (regrename_optimize): Use it.  Remove #if 0'ed code.
5183
5184 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5185
5186         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
5187
5188 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
5189
5190         PR target/50172
5191         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
5192
5193 2011-08-24  Richard Guenther  <rguenther@suse.de>
5194
5195         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
5196         ref in the basic-block case.  Move stripping array-refs
5197         to the place we create an access-function for it.  Remove
5198         bogus stripping down a MEM_REF to its base.
5199
5200 2011-08-24  Richard Guenther  <rguenther@suse.de>
5201
5202         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
5203         with -fno-strict-overflow.
5204
5205 2011-08-24  Richard Guenther  <rguenther@suse.de>
5206
5207         * tree-vectorizer.c (vect_print_dump_info): Avoid the
5208         file and location clutter when dumping to dump files.
5209
5210 2011-08-24  Simon Baldwin  <simonb@google.com>
5211
5212         * gengtype-state.c (write_state): Remove timestamped header line.
5213
5214 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5215
5216         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
5217         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
5218         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
5219         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
5220         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
5221         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
5222         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
5223         rules.
5224         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
5225
5226 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5227
5228         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
5229
5230 2011-08-24  Richard Guenther  <rguenther@suse.de>
5231
5232         PR tree-optimization/50067
5233         * tree-data-ref.c (dr_analyze_indices): Do not add an access
5234         function for a MEM_REF base that has no evolution in the loop
5235         nest or that is not analyzable.
5236
5237 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
5238
5239         * ira.c (ira_init_register_move_cost): Check small subclasses
5240         through ira_reg_class_max_nregs and ira_available_class_regs.
5241
5242 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5243
5244         * config/i386/constraints.md (Yp): New register constraint.
5245         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
5246         Yp register constraint.
5247         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
5248         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
5249         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
5250
5251 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5252
5253         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
5254
5255 2011-08-23  Mark Heffernan  <meheff@google.com>
5256
5257         PR middle-end/38509
5258         * common.opt (Wfree-nonheap-object): New option.
5259         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
5260         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
5261         to warning.
5262         (expand_builtin): Make warning conditional.
5263
5264 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5265
5266         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
5267         (length_immediate): Handle imulx, ishiftx and rotatex.
5268         (imm_disp): Ditto.
5269         (isa): Add bmi2.
5270         (enabled): Handle bmi2.
5271         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
5272         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
5273         (*bmi2_umulditi3_1): New insn pattern.
5274         (*bmi2_umulsidi3_1): Ditto.
5275         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
5276         (*bmi2_ashl<mode>3_1): New insn pattern.
5277         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
5278         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
5279         (*bmi2_ashlsi3_1_zext): New insn pattern.
5280         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
5281         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
5282         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
5283         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5284         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5285         flags dependency.
5286         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5287         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5288         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5289         flags dependency.
5290         (*bmi2_rorx<mode>3_1): New insn pattern.
5291         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5292         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5293         (*rotatert<mode>3_1 splitter): Ditto.
5294         (*bmi2_rorxsi3_1_zext): New insn pattern.
5295         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5296         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5297         (*rotatertsi3_1_zext splitter): Ditto.
5298
5299 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5300
5301         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5302         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5303         (ix86_handle_option): Handle OPT_mbmi2 case.
5304         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5305         (x86_64-*-*): Likewise.
5306         * config/i386/bmi2intrin.h: New file.
5307         * config/i386/cpuid.h (bit_BMI2): New.
5308         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5309         BMI2 feature.
5310         * config/i386/i386-c.c (ix86_target_macros_internal):
5311         Conditionally define __BMI2__.
5312         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5313         Handle BMI2 option.
5314         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5315         (print_reg): New code.
5316         (ix86_print_operand): Likewise.
5317         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5318         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5319         IX86_BUILTIN_PEXT64.
5320         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5321         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5322         IX86_BUILTIN_PEXT64.
5323         * config/i386/i386.h (TARGET_BMI2): New.
5324         * config/i386/i386.md (UNSPEC_PDEP): New.
5325         (UNSPEC_PEXT): Likewise.
5326         (*bmi2_bzhi_<mode>3): Likewise.
5327         (*bmi2_pdep_<mode>3): Likewise.
5328         (*bmi2_pext_<mode>3): Likewise.
5329         * config/i386/i386.opt (mbmi2): New.
5330         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5331         is defined.
5332         * doc/extend.texi: Document BMI2 built-in functions.
5333         * doc/invoke.texi: Document -mbmi2.
5334
5335 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
5336
5337         PR middle-end/50161
5338         * simplify-rtx.c (simplify_const_unary_operation): If
5339         op is CONST_INT, don't look at op_mode, but use instead mode.
5340         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5341         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5342         operation and TRUNCATE/ZERO_EXTEND if needed.
5343         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5344         Document that operand mode must be same as operation mode,
5345         or VOIDmode.
5346         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5347         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5348         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5349         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5350         use the mode of operand for the operation and add truncate
5351         or zero_extend around if needed.
5352         * config/c6x/c6x.md (ctzdi2): Likewise.
5353         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5354
5355 2011-08-12  Michael Matz  <matz@suse.de>
5356
5357         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5358         (gimple_expand_cfg): Merge alignment info for coalesced pointer
5359         SSA names.
5360
5361 2011-08-23  Richard Guenther  <rguenther@suse.de>
5362
5363         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5364         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5365         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5366         from ...
5367         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5368         (mem_refs_may_alias_p): Adjust.
5369         * tree-data-ref.h (dr_may_alias_p): Adjust.
5370         * tree-data-ref.c: Include tree-affine.h.
5371         (dr_analyze_indices): Do nothing for the non-loop case.
5372         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
5373         more cases in the non-loop case.
5374         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5375         calls to dr_may_alias_p.
5376         (write_alias_graph_to_ascii_ecc): Likewise.
5377         (write_alias_graph_to_ascii_dot): Likewise.
5378         (build_alias_set_optimal_p): Likewise.
5379
5380 2011-08-23  Richard Guenther  <rguenther@suse.de>
5381
5382         PR tree-optimization/50162
5383         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5384
5385 2011-08-23  Richard Guenther  <rguenther@suse.de>
5386
5387         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5388         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5389         (create_data_ref): Also dump access functions for the created data-ref.
5390
5391 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
5392             Kirill Yukhin  <kirill.yukhin@intel.com>
5393
5394         PR target/50155
5395         * config/i386/sse.md (VI_AVX2): New.
5396         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5397         (*<plusminus_insn><mode>3): Ditto.
5398         (<sse2_avx2>_andnot<mode>3): Ditto.
5399         (*andnot<mode>3): Fix order of cond operands.
5400         Add asserts for correct TARGET_xxx.
5401         (*<any_logic:code><mode>3): Ditto.
5402
5403 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
5404
5405         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5406         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5407         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5408         regclass argument type to reg_class_t. Change 'max' and 'v' vars
5409         and return types to unsigned char. Use reg_class_contents instead
5410         of class_contents.
5411         (TARGET_CLASS_MAX_NREGS): Define.
5412
5413 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
5414
5415         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5416         to make computed_jump_p return true.
5417
5418 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5419
5420         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5421         (PICFLAG_FOR_TARGET): Substitute.
5422         * aclocal.m4: Regenerate.
5423         * configure: Regenerate.
5424
5425 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
5426
5427         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5428         after reading in the pch.
5429
5430 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5431
5432         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5433         * configure: Regenerated.
5434
5435 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
5436
5437         PR tree-optimization/50133
5438         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5439         from stmt instead of some statement around gsi.
5440
5441         PR middle-end/50141
5442         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5443         innerdecl is a VAR_DECL.
5444
5445 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5446
5447         * config/i386/avx2intrin.h: New file.
5448         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5449         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5450         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5451         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5452         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5453         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5454         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5455         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5456         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5457         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5458         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5459         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5460         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5461         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5462         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5463         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5464         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5465         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5466         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5467         VOID_FTYPE_PV8SI_V8SI_V8SI,
5468         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5469         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5470         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5471         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5472         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5473         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5474         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5475         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5476         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5477         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5478         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5479         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5480         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5481         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5482         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5483         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5484         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5485         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5486         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5487         V4DI_FTYPE_V4DI_INT_CONVERT,
5488         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5489         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5490         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5491         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5492         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5493         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5494         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5495         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5496         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5497         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5498         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5499         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5500         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5501         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5502         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5503         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5504         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5505         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5506         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5507         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5508         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5509         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5510         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5511         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5512         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5513         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5514         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5515         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5516         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5517         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5518         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5519         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5520         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5521         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5522         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5523         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5524         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5525         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5526         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5527         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5528         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5529         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5530         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5531         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5532         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5533         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5534         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5535         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5536         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5537         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5538         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5539         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5540         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5541         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5542         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5543         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5544         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5545         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5546         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5547         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5548         IX86_BUILTIN_VBROADCASTSS_PS256,
5549         IX86_BUILTIN_VBROADCASTSD_PD256,
5550         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5551         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5552         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5553         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5554         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5555         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5556         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5557         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5558         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5559         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5560         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5561         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5562         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5563         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5564         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5565         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5566         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5567         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5568         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5569         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5570         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5571         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5572         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5573         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5574         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5575         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5576         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5577         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5578         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5579         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5580         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5581         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
5582         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5583         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5584         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5585         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5586         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5587         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5588         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5589         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5590         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5591         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5592         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5593         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5594         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5595         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5596         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5597         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5598         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5599         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5600         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5601         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5602         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5603         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5604         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5605         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5606         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5607         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5608         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5609         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5610         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5611         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5612         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5613         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5614         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5615         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5616         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5617         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5618         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5619         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5620         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5621         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5622         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5623         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5624         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5625         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5626         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5627         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5628         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5629         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5630         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5631         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5632         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5633         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5634         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5635         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5636         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5637         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5638         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5639         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5640         IX86_BUILTIN_VBROADCASTSD_PD256,
5641         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5642         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5643         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5644         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5645         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5646         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5647         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5648         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5649         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5650         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5651         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5652         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5653         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5654         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5655         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5656         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5657         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5658         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5659         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5660         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5661         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5662         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5663         IX86_BUILTIN_GATHERDIV8SI.
5664         (ix86_preferred_simd_mode): Support AVX2 modes.
5665         (ix86_expand_args_builtin): Support AVX2 builtins.
5666         (ix86_expand_special_args_builtin): Likewise.
5667         (ix86_expand_builtin): Likewise.
5668         * config/i386/i386.md (UNSPEC_VPERMSI): New.
5669         (UNSPEC_VPERMDF): Likewise.
5670         (UNSPEC_VPERMSF): Likewise.
5671         (UNSPEC_VPERMDI): Likewise.
5672         (UNSPEC_VPERMTI): Likewise.
5673         (UNSPEC_GATHER): Likewise.
5674         (ssemodesuffix): Extend.
5675         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5676         is defined.
5677         * config/i386/predicates.md (const1248_operand): New.
5678         * config/i386/sse.md (VI1_AVX2): New mode iterator.
5679         (VI2_AVX2): Likewise.
5680         (VI4_AVX2): Likewise.
5681         (VI8_AVX2): Likewise.
5682         (VIMAX_AVX2): Likewise.
5683         (SSESCALARMODE): Likewise.
5684         (VI12_AVX2): Likewise.
5685         (VI24_AVX2): Likewise.
5686         (VI124_AVX2): Likewise.
5687         (VI248_AVX2): Likewise.
5688         (VI48_AVX2): Likewise.
5689         (VI4SD_AVX2): Likewise.
5690         (V48_AVX2): Likewise.
5691         (AVX256MODE2P): Likewise.
5692         (AVXMODE48P_DI): Likewise.
5693         (sse2_avx2): New mode attribute.
5694         (ssse3_avx2): Likewise.
5695         (sse4_1_avx2): Likewise.
5696         (avx_avx2): Likewise.
5697         (ssebytemode): Likewise.
5698         (AVXTOSSEMODE): Likewise.
5699         (AVXMODE48P_DI): Likewise.
5700         (gthrfirstp): Likewise.
5701         (gthrlastp): Likewise.
5702         (lshift): New code_iterator
5703         (lshift): New code attribute.
5704         (lshift): Likewise.
5705         (ssescalarmodesuffix): Update.
5706         (sseunpackmode): Likewise.
5707         (ssepackmode): Likewise.
5708         (avx2_vec_dupv4sf): New insn pattern.
5709         (avx2_vec_dupv8sf): Likewise.
5710         (avx2_interleave_highv4di): Likewise.
5711         (avx2_interleave_lowv4di): Likewise.
5712         (avx2_umulv4siv4di3): Likewise
5713         (*avx2_umulv4siv4di3): Likewise
5714         (avx2_pmaddwd): Likewise.
5715         (*avx2_pmaddwd): Likewise.
5716         (avx2_lshrqv4di3): Likewise.
5717         (avx2_lshlqv4di3): Likewise.
5718         (avx2_lshl<mode>3): Likewise.
5719         (avx2_<umaxmin:code><mode>3): Likewise.
5720         (*avx2_<umaxmin:code><mode>3): Likewise.
5721         (avx2_<smaxmin:code><mode>3): Likewise.
5722         (*avx2_<smaxmin:code><mode>3): Likewise.
5723         (avx2_eq<mode>3): Likewise.
5724         (*avx2_eq<mode>3): Likewise.
5725         (avx2_gt<mode>3): Likewise.
5726         (avx2_interleave_highv32qi): New.
5727         (avx2_interleave_lowv32qi): Likewise.
5728         (avx2_interleave_highv16hi): Likewise.
5729         (avx2_interleave_lowv16hi): Likewise.
5730         (avx2_interleave_highv8si): Likewise.
5731         (avx2_interleave_lowv8si): Likewise.
5732         (avx2_pshufd): Likewise.
5733         (avx2_pshufd_1): Likewise.
5734         (avx2_pshuflwv3): Likewise.
5735         (avx2_pshuflw_1): Likewise.
5736         (avx2_pshufhwv3): Likewise.
5737         (avx2_pshufhw_1): Likewise.
5738         (avx2_uavgv32qi3): Likewise.
5739         (*avx2_uavgv32qi3): Likewise.
5740         (avx2_uavgv16hi3): Likewise.
5741         (*avx2_uavgv16hi3): Likewise.
5742         (avx2_pmovmskb): Likewise.
5743         (avx2_phaddwv16hi3): Likewise.
5744         (avx2_phadddv8si3): Likewise.
5745         (avx2_phaddswv16hi3): Likewise.
5746         (avx2_phsubwv16hi3): Likewise.
5747         (avx2_phsubdv8si3): Likewise.
5748         (avx2_phsubswv16hi3): Likewise.
5749         (avx2_pmaddubsw256): Likewise.
5750         (avx2_umulhrswv16hi3): Likewise.
5751         (*avx2_umulhrswv16hi3): Likewise.
5752         (avx2_packusdw): Likewise.
5753         (avx2_pblendd<mode>): Likewise.
5754         (avx2_<code>v16qiv16hi2): Likewise.
5755         (avx2_<code>v8qiv8si2): Likewise.
5756         (avx2_<code>v8hiv8si2): Likewise.
5757         (avx2_<code>v4qiv4di2): Likewise.
5758         (avx2_<code>v4hiv4di2): Likewise.
5759         (avx2_<code>v4siv4di2): Likewise.
5760         (avx2_pbroadcast<mode>): Likewise.
5761         (avx2_permvarv8si): Likewise.
5762         (avx2_permv4df): Likewise.
5763         (avx2_permvarv8sf): Likewise.
5764         (avx2_permv4di): Likewise.
5765         (avx2_permv2ti): Likewise.
5766         (avx2_vec_dupv4df): Likewise.
5767         (avx2_vbroadcasti128_<mode>): Likewise.
5768         (avx2_vec_set_lo_v4di): Likewise.
5769         (avx2_vec_set_hi_v4di): Likewise.
5770         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5771         (avx2_extracti128): Likewise.
5772         (avx2_inserti128): Likewise.
5773         (avx2_ashrvv8si): Likewise.
5774         (avx2_ashrvv4si): Likewise.
5775         (avx2_<lshift>vv8si): Likewise.
5776         (avx2_<lshift>v<mode>): Likewise.
5777         (avx2_<lshift>vv2di): Likewise.
5778         (avx2_gathersi<mode>): Likewise.
5779         (*avx2_gathersi<mode>): Likewise.
5780         (avx2_gatherdi<mode>): Likewise.
5781         (*avx2_gatherdi<mode>): Likewise.
5782         (avx2_gatherdi<mode>256): Likewise.
5783         (*avx2_gatherdi<mode>256): Likewise.
5784         (<plusminus_insn><mode>3): Use VI mode iterator.
5785         (*<plusminus_insn><mode>3): Use VI mode iterator.
5786         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5787         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5788         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5789         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5790         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
5791         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
5792         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5793         Use VI2_AVX2 mode iterator.
5794         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5795         Use VI2_AVX2 mode iterator.
5796         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
5797         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
5798         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5799         Use VI4_AVX2 mode iterator.
5800         (ashr<mode>3): Use VI24_AVX2 mode iterator.
5801         (lshr<mode>3): Use VI248_AVX2 mode iterator.
5802         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5803         Use VIMAX_AVX2 mode iterator.
5804         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5805         Use VI mode iterator.
5806         (*andnot<mode>3): Update for AVX2.
5807         (*<any_logic:code><mode>3): Likewise.
5808         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5809         Use VI1_AVX mode iterator.
5810         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
5811         Use VI2_AVX mode iterator.
5812         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5813         Use VI1_AVX mode iterator.
5814         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5815         Use VI8_AVX2 mode iterator.
5816         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5817         Use VI1_AVX2 mode iterator.
5818         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5819         Use VI124_AVX2 mode iterator.
5820         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5821         Use SSESCALARMODE mode iterator.
5822         (abs<mode>2): Use VI124_AVX2 mode iterator.
5823         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5824         Use VI8_AVX2 mode iterator.
5825         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5826         Use VI1_AVX2 mode iterator.
5827         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5828         Use VI1_AVX2 mode iterator.
5829         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5830         Use VI2_AVX2 mode iterator.
5831         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5832         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5833         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5834         avx_maskstore<ssemodesuffix><avxsizesuffix>.
5835         Use V48_AVX2 mode iterator.
5836         * doc/extend.texi: Document AVX2 built-in functions.
5837         * doc/invoke.texi: Document -mavx2.
5838
5839 2011-08-22  Matthias Klose <doko@debian.org>
5840
5841         Revert:
5842         2011-07-11  Arthur Loiret  <aloiret@debian.org>
5843                     Matthias Klose <doko@debian.org>
5844         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5845         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5846         convention.
5847         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5848
5849 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
5850
5851         PR bootstrap/50146
5852         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5853         to #ifndef HONOR_REG_ALLOC_ORDER block.
5854
5855 2011-08-21  Richard Henderson  <rth@redhat.com>
5856
5857         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5858         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5859         * resource.c (next_insn_no_annul): Likewise.
5860         (mark_set_resources): Likewise.
5861         * reorg.c (delete_from_delay_slot): Likewise.
5862         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5863         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5864
5865 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
5866
5867         * config/i386/i386.md (any_div): Remove.
5868         (sgnprefix): Update for removal.
5869         (u): Ditto.
5870
5871 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
5872
5873         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5874         for ira_reg_class_max_nregs.  Increase pressure by 1.
5875         (mark_pseudo_regno_subword_dead): Use allocno class
5876         for ira_reg_class_max_nregs.
5877
5878 2011-08-20  Richard Henderson  <rth@redhat.com>
5879
5880         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5881         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5882         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5883         config/c6x/ltf.c: Adjust include path for soft-fp.
5884
5885 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5886
5887         PR other/46770
5888         * config.gcc (tm_file): Add initfini-array.h if
5889         .init_arrary/.fini_array are supported.
5890
5891         * crtstuff.c: Don't generate .ctors nor .dtors sections if
5892         USE_INITFINI_ARRAY is defined.
5893
5894         * output.h (default_elf_init_array_asm_out_constructor): New.
5895         (default_elf_fini_array_asm_out_destructor): Likewise.
5896         * varasm.c (elf_init_array_section): Likewise.
5897         (elf_fini_array_section): Likewise.
5898         (get_elf_initfini_array_priority_section): Likewise.
5899         (default_elf_init_array_asm_out_constructor): Likewise.
5900         (default_elf_fini_array_asm_out_destructor): Likewise.
5901
5902         * config/initfini-array.h: New.
5903
5904 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5905
5906         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
5907         OK for ST_REGS and FP_REGS before taking those classes into account.
5908
5909 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5910
5911         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
5912         before checking for annulled branches.
5913
5914 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5915
5916         * config/i386/i386.c (ix86_binary_operator_ok): Use
5917         satisfies_constraint_L.
5918
5919 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
5920             Michael Matz  <matz@suse.de>
5921
5922         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
5923         trunc (a + copysign (nextafter (0.5, 0.0), a)).
5924
5925 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
5926
5927         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5928         * doc/tm.texi: Regenerate.
5929         * targhooks.c (default_preferred_output_reload_class): Don't use
5930         PREFERRED_OUTPUT_RELOAD_CLASS macro.
5931         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
5932
5933 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
5934
5935         PR tree-optimization/48739
5936         * tree-ssa.c: Include cfgloop.h.
5937         (execute_update_addresses_taken): When updating ssa, if in loop closed
5938         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
5939         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
5940
5941 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
5942
5943         PR rtl-optimization/49936
5944         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5945         for calculation of max register move costs.
5946
5947 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5948
5949         * c-parser.c (c_parser_postfix_expression): Convert operands of
5950         __builtin_complex to their semantic types.
5951
5952 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5953
5954         PR middle-end/49721
5955         * explow.c (convert_memory_address_addr_space): Also permute the
5956         conversion and addition of constant for zero-extend.
5957
5958 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
5959
5960         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
5961         * doc/extend.texi (__builtin_complex): Document.
5962
5963 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5964
5965         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
5966         beyond conversions.
5967         (convert_mult_to_widen): Convert constant inputs to the right type.
5968         (convert_plusminus_to_widen): Don't automatically reject inputs that
5969         are not an SSA_NAME.
5970         Convert constant inputs to the right type.
5971
5972 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5973
5974         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
5975         to the correct type.
5976
5977 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5978
5979         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
5980         unsigned inputs of different modes.
5981         (convert_plusminus_to_widen): Likewise.
5982
5983 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5984
5985         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
5986         'type'.
5987         Use 'type' from caller, not inferred from 'rhs'.
5988         Don't reject non-conversion statements. Do return lhs in this case.
5989         (is_widening_mult_p): Add new argument 'type'.
5990         Use 'type' from caller, not inferred from 'stmt'.
5991         Pass type to is_widening_mult_rhs_p.
5992         (convert_mult_to_widen): Pass type to is_widening_mult_p.
5993         (convert_plusminus_to_widen): Likewise.
5994
5995 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
5996
5997         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
5998         Ensure the the larger type is the first operand.
5999
6000 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6001
6002         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6003         unsupported unsigned multiplies to signed.
6004         (convert_plusminus_to_widen): Likewise.
6005
6006 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6007
6008         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6009         conversion statement separating multiply-and-accumulate.
6010
6011 2011-08-19  Richard Guenther  <rguenther@suse.de>
6012
6013         PR tree-optimization/50067
6014         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6015         offset only if we accounted for it.
6016
6017 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6018
6019         * config/arm/arm.md (maddhidi4): Remove '*' from name.
6020         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6021         * optabs.c (find_widening_optab_handler_and_mode): New function.
6022         (expand_widen_pattern_expr): Use find_widening_optab_handler.
6023         (expand_binop_directly): Likewise.
6024         (expand_binop): Likewise.
6025         * optabs.h (find_widening_optab_handler): New macro define.
6026         (find_widening_optab_handler_and_mode): New prototype.
6027         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6028         type precision rules.
6029         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6030         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6031         (is_widening_mult_rhs_p): Allow widening by more than one mode.
6032         Explicitly disallow mis-matched input types.
6033         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6034         input types to fit the new handler.
6035         (convert_plusminus_to_widen): Likewise.
6036
6037 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6038
6039         * expr.c (expand_expr_real_2): Use widening_optab_handler.
6040         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6041         (gen_insn): $N now means $a must be wider than $b, not consecutive.
6042         * optabs.c (widened_mode): New function.
6043         (expand_widen_pattern_expr): Use widening_optab_handler.
6044         (expand_binop_directly): Likewise.
6045         (expand_binop): Likewise.
6046         * optabs.h (widening_optab_handlers): New struct.
6047         (optab_d): New member, 'widening'.
6048         (widening_optab_handler): New function.
6049         (set_widening_optab_handler): New function.
6050         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6051         widening_optab_handler.
6052         (convert_plusminus_to_widen): Likewise.
6053
6054 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6055
6056         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6057         pedantic.
6058         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6059         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6060
6061 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6062
6063         * opth-gen.awk: Do not declare target save/restore structures and
6064         functions if IN_RTS defined.
6065
6066 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6067
6068         PR target/49437
6069         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6070         when stack was realigned in interrupt handler prologue.
6071
6072 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
6073
6074         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6075         (quals_from_declspecs): Assert _Noreturn not present.
6076         (grokdeclarator): Handle _Noreturn.
6077         (build_null_declspecs): Initialize noreturn_p.
6078         (declspecs_add_scspec): Handle RID_NORETURN.
6079         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6080         (c_parser_attributes): Handle RID_NORETURN.
6081         * c-tree.h (struct c_declspecs): Add noreturn_p.
6082         * ginclude/stdnoreturn.h: New.
6083         * Makefile.in (USER_H): Add stdnoreturn.h.
6084
6085 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6086
6087         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6088         (OPTION_MASK_ISA_AVX_UNSET): Update.
6089         (OPTION_MASK_ISA_AVX2_UNSET): New.
6090         (ix86_handle_option): Handle OPT_mavx2 case.
6091         * config/i386/cpuid.h (bit_AVX2): New.
6092         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6093         AVX2 feature.
6094         * config/i386/i386-c.c (ix86_target_macros_internal):
6095         Conditionally define __AVX2__.
6096         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6097         Define "core-avx2" processor alias.  Handle avx2 option.
6098         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6099         * config/i386/i386.h (TARGET_AVX2): New.
6100         * config/i386/i386.opt (mavx2): New.
6101         * doc/invoke.texi: Document -mavx2.
6102
6103 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
6104
6105         PR rtl-optimization/49890
6106         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6107         subclasses of class which is superset of a pressure class.
6108
6109 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6110             Igor Zamyatin <igor.zamyatin@intel.com>
6111
6112         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6113         with HOST_WIDE_INT for isa_flag.
6114         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6115         isa variables.
6116
6117         * config/i386/i386.c (ix86_target_string): Replace int with
6118         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
6119         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6120         (pta_flags): Removed.
6121         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6122         (pta): Use HOST_WIDE_INT on flags.
6123         (builtin_isa): Use HOST_WIDE_INT on isa.
6124         (ix86_add_new_builtins): Likewise.
6125         (def_builtin): Use HOST_WIDE_INT on mask.
6126         (def_builtin_const): Likewise.
6127         (builtin_description): Likewise.
6128
6129         * config/i386/i386.opt (ix86_isa_flags): Replace int with
6130         HOST_WIDE_INT.
6131         (ix86_isa_flags_explicit): Likewise.
6132         (x_ix86_isa_flags_explicit): Likewise.
6133
6134 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
6135
6136         PR rtl-optimization/50107
6137         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
6138         (ira_hard_reg_in_set_p): New.
6139
6140         * ira-color.c (calculate_saved_nregs): New.
6141         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
6142         hard regs.
6143         (allocno_reload_assign, fast_allocation): Use
6144         ira_hard_reg_set_intersection_p instead of
6145         ira_hard_reg_not_in_set_p.
6146
6147         * ira.c (setup_reg_renumber): Use
6148         ira_hard_reg_set_intersection_p instead of
6149         ira_hard_reg_not_in_set_p.
6150         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
6151         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
6152
6153         * ira-costs.c (ira_tune_allocno_costs): Use
6154         ira_hard_reg_set_intersection_p instead of
6155         ira_hard_reg_not_in_set_p.
6156
6157 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6158             Igor Zamyatin <igor.zamyatin@intel.com>
6159
6160         * hwint.h (HOST_WIDE_INT_1): New.
6161
6162         * opt-functions.awk (switch_bit_fields): Initialize the
6163         host_wide_int field.
6164         (host_wide_int_var_name): New.
6165         (var_type_struct): Check and return HOST_WIDE_INT.
6166
6167         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
6168
6169         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
6170
6171         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
6172         check masks for HOST_WIDE_INT.
6173
6174         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
6175         (option_enabled): Likewise.
6176         (get_option_state): Likewise.
6177
6178         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
6179         to HOST_WIDE_INT.
6180
6181 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6182             Marc Glisse  <marc.glisse@normalesup.org>
6183
6184         PR libstdc++-v3/1773
6185         * target.def (decl_mangling_context): New C++ hook.
6186         * doc/tm.texi: Regenerate.
6187         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
6188         * config/sol2-protos.h: Group by source file.
6189         (solaris_cxx_decl_mangling_context): Declare.
6190         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
6191         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
6192         Use $<.
6193         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
6194         Add sol2-stubs.o to extra_objs.
6195
6196 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
6197
6198         PR target/50009
6199         * stor-layout.c (update_alignment_for_field): Don't ICE on
6200         packed flexible array members if ms_bitfield_layout_p.
6201
6202         PR target/50092
6203         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
6204         on the result before returning it.
6205
6206         PR debug/50017
6207         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
6208         is a debug stmt, use location of the first non-debug stmt after it.
6209
6210 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6211
6212         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
6213         (arm_size_rtx_costs): Likewise.
6214
6215 2011-08-18  Richard Guenther  <rguenther@suse.de>
6216
6217         * tree.h (tree_int_cst_msb): Remove.
6218         * tree.c (tree_int_cst_msb): Likewise.
6219         (tree_int_cst_sign_bit): Move from ...
6220         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
6221
6222 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6223
6224         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
6225         * doc/tm.texi: Regenerate.
6226         * target.def (rtx_costs): Add an opno parameter.
6227         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6228         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6229         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6230         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6231         * cse.c (COST_IN): Add an opno parameter.
6232         (notreg_cost): Likewise.  Update call to rtx_cost.
6233         (COST, fold_rtx): Update accordingly.
6234         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
6235         * expmed.c (emit_store_flag): Likewise.
6236         * optabs.c (avoid_expensive_constant): Add an opno parameter.
6237         Update call to rtx_cost.
6238         (expand_binop_directly, expand_binop): Likewise.
6239         (expand_twoval_binop, prepare_cmp_insn): Likewise.
6240         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
6241         (set_src_cost, get_full_set_src_cost): Update accordingly.
6242         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
6243         to target hook.
6244         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
6245         (default_adress_cost): Update calls to rtx_cost.
6246
6247         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
6248         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
6249         (arm_rtx_costs): Add an opno parameter.
6250         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
6251         adjust any recursive rtx-cost calls.
6252         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
6253         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6254         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6255         * config/cris/cris.c (cris_rtx_costs): Likewise.
6256         * config/frv/frv.c (frv_rtx_costs): Likewise.
6257         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6258         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6259         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6260         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6261         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6262         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6263         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6264         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6265         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6266         * config/mep/mep.c (mep_rtx_cost): Likewise.
6267         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6268         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
6269         (mips_zero_extend_cost): Add an opno parameter.
6270         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6271         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
6272         to rtx_cost.
6273         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
6274         rtx-cost calls.
6275         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6276         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6277         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
6278         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6279         (rs6000_debug_rtx_costs): Likewise.
6280         * config/s390/s390.c (s390_rtx_costs): Likewise.
6281         * config/score/score-protos.h (score_rtx_costs): Likewise.
6282         * config/score/score.c (score_rtx_costs): Likewise.
6283         * config/sh/sh.c (andcosts): Update call to rtx_cost.
6284         (sh_rtx_costs): Add an opno parameter.
6285         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6286         * config/spu/spu.c (spu_rtx_costs): Likewise.
6287         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6288         * config/v850/v850.c (v850_rtx_costs): Likewise.
6289         * config/vax/vax.c (vax_rtx_costs): Likewise.
6290         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6291
6292 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6293
6294         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6295         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6296         rtx_cost.
6297         * calls.c (precompute_register_parameters): Likewise.
6298         * combine.c (expand_compound_operation, make_extraction): Likewise.
6299         (force_to_mode, distribute_and_simplify_rtx): Likewise.
6300         * dse.c (find_shift_sequence): Likewise.
6301         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6302         * expr.c (compress_float_constant): Likewise.
6303         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6304         * gcse.c (want_to_gcse_p): Likewise.
6305         * ifcvt.c (noce_try_sign_mask): Likewise.
6306         * loop-doloop.c (doloop_optimize): Likewise.
6307         * loop-invariant.c (create_new_invariant): Likewise.
6308         * optabs.c (avoid_expensive_constant): Likewise.
6309         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6310         (try_replace_in_use, reload_cse_move2add): Likewise.
6311         * reload1.c (calculate_elim_costs_all_insns): Likewise.
6312         (note_reg_elim_costly): Likewise.
6313         * rtlanal.c (insn_rtx_cost): Likewise.
6314         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6315         * stmt.c (lshift_cheap_p): Likewise.
6316         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6317         * config/avr/avr.c (final_prescan_insn): Likewise.
6318         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6319         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6320
6321 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6322
6323         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6324         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6325         * cfgloopanal.c (seq_cost): Likewise.
6326         * loop-invariant.c (create_new_invariant): Likewise.
6327         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6328         (reload_cse_move2add): Use get_full_set_rtx_cost.
6329
6330 2011-08-18  Richard Guenther  <rguenther@suse.de>
6331
6332         * expr.c (get_inner_reference): Fix typo in last change.
6333
6334 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
6335             Joseph Myers  <joseph@codesourcery.com>
6336
6337         PR tree-optimization/49963
6338         * hwint.c (absu_hwi): Define.
6339         * hwint.h (absu_hwi): Declare.
6340         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6341         of abs_hwi.
6342         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6343         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6344
6345 2011-08-18  Richard Guenther  <rguenther@suse.de>
6346
6347         * expr.c (get_inner_reference): Sign-extend the constant
6348         twos-complement offset before doing arbitrary precision
6349         arithmetic on it.
6350         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6351         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6352         to get_constraint_for_ptr_offset.
6353
6354 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6355
6356         PR target/50068
6357         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6358
6359 2011-08-17  Richard Guenther  <rguenther@suse.de>
6360
6361         * tree.h (convert_to_ptrofftype_loc): New function.
6362         (convert_to_ptrofftype): Define.
6363         * builtins.c (expand_builtin_bzero): Use size_type_node.
6364         (fold_builtin_bzero): Likewise.
6365         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6366         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6367         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6368         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6369         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6370         * fold-const.c (build_range_check): Negate using the original type.
6371         (fold_unary_loc): Use fold_build_pointer_plus_loc.
6372         * gimple-fold.c (gimple_adjust_this_by_delta): Use
6373         convert_to_ptrofftype.
6374         * gimplify.c (gimplify_self_mod_expr): Likewise.
6375         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6376         (graphite_create_new_loop_guard): Likewise.
6377         * graphite-sese-to-poly.c (my_long_long): Remove.
6378         (scop_ivs_can_be_represented): Adjust.
6379         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6380         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6381         * tree-loop-distribution.c (build_size_arg_loc): Use
6382         size_type_node.
6383         (generate_memset_zero): Simplify.
6384         * tree-mudflap.c: Use fold_convert, not convert.
6385         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6386         its own type.
6387         (determine_offset): Likewise for DR_STEP.
6388         (valid_initializer_p): Likewise.
6389         * tree-profile.c (prepare_instrumented_value): Convert the pointer
6390         to an integer type of same size.
6391         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6392         to sizetype without need.
6393         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6394         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6395         * tree-ssa-loop-manip.c (create_iv): Likewise.
6396         (determine_exit_conditions): Adjust comment.
6397         * tree-ssa-pre.c (create_expression_by_pieces): Use
6398         convert_to_ptrofftype.
6399         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6400         * varasm.c (array_size_for_constructor): Compute using double_ints.
6401
6402 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6403
6404         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6405         when generating an integer result where possible.  Short-cut
6406         comparison against 0 also for QImode.
6407
6408 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6409
6410         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6411         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6412         prototype.
6413         * config/spu/spu.c (spu_legitimize_reload_address): New function.
6414         (spu_legitimate_address_p): Do not check displacement if the base
6415         is an eliminable stack register.
6416
6417 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
6418
6419         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6420         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6421         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6422         m32c_preferred_output_reload_class): Remove.
6423         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6424         Change rclass argument and return types to reg_class_t. Use
6425         reg_class_subset_p instead of class_sizes.
6426         (m32c_preferred_output_reload_class): Make static. Change rclass
6427         argument and return types to reg_class_t.
6428         (TARGET_PREFERRED_RELOAD_CLASS,
6429         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6430
6431 2011-08-16  Kai Tietz  <ktietz@redhat.com>
6432
6433         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6434
6435 2011-08-16  Richard GUenther  <rguenther@suse.de>
6436
6437         PR tree-optimization/50082
6438         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6439         warnings here, instead of ...
6440         (ssa_forward_propagate_and_combine): ... here.
6441         (forward_propagate_into_comparison_1): Adjust.
6442         (forward_propagate_into_comparison): Likewise.
6443         (forward_propagate_into_gimple_cond): Likewise.
6444         (forward_propagate_into_cond): Likewise.
6445
6446 2011-08-16  Andreas Schwab  <schwab@redhat.com>
6447
6448         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6449         instead of ggc_alloc_zone_vec_rtvec_def.
6450
6451 2011-08-16  Richard Guenther  <rguenther@suse.de>
6452
6453         * tree.h (ptrofftype_p): New helper function.
6454         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6455         offset verification.
6456         (verify_gimple_assign_binary): Likewise.
6457         * tree.c (build2_stat): Likewise.
6458         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6459         (reset_evolution_in_loop): Likewise.
6460         * tree-chrec.h (build_polynomial_chrec): Likewise.
6461
6462 2011-08-16  Liang Wang  <lwang1@marvell.com>
6463
6464         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6465         ggc_alloc_zone_vec_rtvec_def.
6466
6467 2011-08-16  Richard Guenther  <rguenther@suse.de>
6468
6469         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6470         helper factored out from ...
6471         (extract_range_from_binary_expr_1): ... here.  Re-structure
6472         to not glob handling too different tree codes.
6473
6474 2011-08-15  Richard Henderson  <rth@redhat.com>
6475
6476         PR middle-end/50006
6477         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6478         setting out to include allocate_stack named pattern as well.
6479         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6480         * stmt.c (expand_stack_restore): Likewise.
6481
6482 2011-08-15  Richard Guenther  <rguenther@suse.de>
6483
6484         PR middle-end/50082
6485         * fold-const.c (maybe_canonicalize_comparison_1): Properly
6486         convert the modified operand to the other operand type.
6487         (fold_comparison): Call maybe_canonicalize_comparison_1 with
6488         useless conversions stripped from comparison operands.
6489
6490 2011-08-15  Richard Guenther  <rguenther@suse.de>
6491
6492         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6493         (extract_range_from_unary_expr_1): Restructure.
6494
6495 2011-08-15  Richard Guenther  <rguenther@suse.de>
6496
6497         PR tree-optimization/50058
6498         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6499         copy matching.
6500
6501 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6502
6503         PR target/50022
6504         * config/arm/arm.c (output_move_double): Add 2 parameters
6505         to count the number of insns emitted and whether to emit or not.
6506         Use the flag to decide when to emit and count number of instructions
6507         that will be emitted.
6508         Handle case where output_move_double might be called for calculating
6509         lengths with an invalid constant.
6510         (arm_count_output_move_double_insns): Define.
6511         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6512         (output_move_double): Adjust prototype.
6513         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6514         output_move_double.
6515         ("*movdi_vfp_cortexa8"): Likewise and add attribute
6516         for ce_count.
6517         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6518         ("*movdf_soft_insn"): Likewise.
6519         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6520         ("*cirrus_thumb2_movdi"): Likewise.
6521         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6522         ("*cirrus_movdf_hard_insn"): Likewise.
6523         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6524         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6525         ("mov<mode>_internal VMMX"): Likewise.
6526         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6527
6528 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
6529
6530         * config/i386/i386.c (ix86_expand_round_sse4): New function.
6531         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6532         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6533         for TARGET_ROUND.
6534
6535         (rint<mode>2): Simplify TARGET_ROUND check.
6536         (floor<mode>2): Ditto.
6537         (ceil<mode>2): Ditto.
6538         (btrunc<mode>2): Ditto.
6539
6540 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
6541
6542         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6543         as mmix_preferred_output_reload_class.
6544
6545 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
6546
6547         * PR target/49903
6548         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6549         (branch_unspec): New insn.
6550         (branch): Beauty farm.
6551         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
6552         to be IF_THEN_ELSE.
6553         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6554         New static functions.
6555         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
6556         Use CONST_INT_P.  Beauty.
6557
6558 2011-08-12  Richard Henderson  <rth@redhat.com>
6559
6560         PR rtl-opt/49994
6561         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6562         * sched-deps.c (init_deps): Clear it.
6563         (deps_analyze_insn): Consume it.
6564         (sched_analyze_insn): Fill it.
6565
6566 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6567
6568         PR target/48328
6569         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6570         for tbh instructions.
6571
6572 2011-08-12  Diego Novillo  <dnovillo@google.com>
6573
6574         * data-streamer.h (streamer_write_zero): Rename from output_zero.
6575         (streamer_write_uhwi): Rename from lto_output_uleb128.
6576         (streamer_write_hwi): Rename from output_sleb128.
6577         (streamer_write_string): Rename from lto_output_string.
6578         (streamer_string_index): Rename from lto_string_index.
6579         (streamer_write_string_with_length): Rename from
6580         lto_output_string_with_length.
6581         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6582         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6583         (streamer_read_string): Rename from lto_input_string.
6584         (streamer_read_indexed_string): Rename from input_string_internal.
6585         (streamer_read_uhwi): Rename from lto_input_uleb128.
6586         (streamer_read_hwi): Rename from lto_input_sleb128.
6587         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6588         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6589         (streamer_write_enum): Rename from lto_output_enum.
6590         (streamer_read_enum): Rename from lto_input_enum.
6591         (streamer_write_record_start): Rename from output_record_start.
6592         (streamer_read_record_start): Rename from input_record_start.
6593         (streamer_write_bitpack): Rename from lto_output_bitpack.
6594         (streamer_read_bitpack): Rename from lto_input_bitpack.
6595         (streamer_write_char_stream): Rename from lto_output_1_stream.
6596         (streamer_read_uchar): Rename from lto_input_1_unsigned.
6597         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6598         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6599         (streamer_read_string_cst): Rename from input_string_cst.
6600         (streamer_read_chain): Rename from lto_input_chain.
6601         (streamer_alloc_tree): Rename from lto_materialize_tree.
6602         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6603         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6604         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6605         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6606         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6607         (streamer_write_chain): Rename from lto_output_chain.
6608         (streamer_write_tree_header): Rename from lto_output_tree_header.
6609         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6610         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6611         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6612         (streamer_write_builtin): Rename from lto_output_builtin_tree.
6613         (streamer_check_handled_ts_structures): Rename from
6614         check_handled_ts_structures.
6615         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6616         (streamer_tree_cache_insert_at): Rename from
6617         lto_streamer_cache_insert_at.
6618         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6619         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6620         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6621         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6622         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6623         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6624         (write_identifier): Rename from output_identifier.
6625         (write_ts_common_tree_pointers): Rename from
6626         lto_output_ts_common_tree_pointers.
6627         (write_ts_vector_tree_pointers): Rename from
6628         lto_output_ts_vector_tree_pointers.
6629         (write_ts_complex_tree_pointers): Rename from
6630         lto_output_ts_complex_tree_pointers.
6631         (write_ts_decl_minimal_tree_pointers): Rename from
6632         lto_output_ts_decl_minimal_tree_pointers.
6633         (write_ts_decl_common_tree_pointers): Rename from
6634         lto_output_ts_decl_common_tree_pointers.
6635         (write_ts_decl_non_common_tree_pointers): Rename from
6636         lto_output_ts_decl_non_common_tree_pointers.
6637         (write_ts_decl_with_vis_tree_pointers): Rename from
6638         lto_output_ts_decl_with_vis_tree_pointers.
6639         (write_ts_field_decl_tree_pointers): Rename from
6640         lto_output_ts_field_decl_tree_pointers.
6641         (write_ts_function_decl_tree_pointers): Rename from
6642         lto_output_ts_function_decl_tree_pointers.
6643         (write_ts_type_common_tree_pointers): Rename from
6644         lto_output_ts_type_common_tree_pointers.
6645         (write_ts_type_non_common_tree_pointers): Rename from
6646         lto_output_ts_type_non_common_tree_pointers.
6647         (write_ts_list_tree_pointers): Rename from
6648         lto_output_ts_list_tree_pointers.
6649         (write_ts_vec_tree_pointers): Rename from
6650         lto_output_ts_vec_tree_pointers.
6651         (write_ts_exp_tree_pointers): Rename from
6652         lto_output_ts_exp_tree_pointers.
6653         (write_ts_block_tree_pointers): Rename from
6654         lto_output_ts_block_tree_pointers.
6655         (write_ts_binfo_tree_pointers): Rename from
6656         lto_output_ts_binfo_tree_pointers.
6657         (write_ts_constructor_tree_pointers): Rename from
6658         lto_output_ts_constructor_tree_pointers.
6659         (write_ts_target_option): Rename from lto_output_ts_target_option.
6660         (write_ts_translation_unit_decl_tree_pointers): Rename from
6661         lto_output_ts_translation_unit_decl_tree_pointers.
6662         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6663         Rename from lto_streamer_cache_add_to_node_array.
6664         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6665         (record_common_node): Rename from lto_record_common_node.
6666
6667         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6668         declarations.
6669         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6670         function.
6671         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6672         unused function.
6673         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6674         (ipa-reference.o): Likewise.
6675         * lto-section-out.c: Include data-streamer.h.
6676         * ipa-reference.c: Include data-streamer.h.
6677
6678 2011-08-12  Nick Clifton  <nickc@redhat.com>
6679
6680         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6681         * doc/md.texi (cmpstrn): Note that the comparison stops if both
6682         fetched bytes are zero.
6683         (cmpstr): Likewise.
6684         (cmpmem): Note that the comparison does not stop if both of the
6685         fetched bytes are zero.
6686
6687 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
6688
6689         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6690         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6691         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6692         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6693         to integer_type_node.
6694         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6695         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6696         * builtins.c (expand_builtin_in): Ditto.
6697         (mathfn_built_in_1): Ditto.
6698         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6699         BUILT_IN_IFLOOR.
6700         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6701         BUILT_IN_IROUND.
6702         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6703         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6704         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6705
6706 2011-08-12  Richard Guenther  <rguenther@suse.de>
6707
6708         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6709
6710 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
6711
6712         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6713
6714 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
6715
6716         * config/arm/arm.c (get_label_padding): New function.
6717         (create_fix_barrier, arm_reorg): Use it.
6718
6719 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
6720
6721         PR target/49781
6722         * config/i386/i386.md (*lea_5_zext): New.
6723         (*lea_6_zext): Ditto.
6724         * config/i386/predicates.md (const_32bit_mask): New predicate.
6725         (lea_address_operand): Reject AND.
6726         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6727         const_32bit_mask immediate.
6728         (ix86_print_operand_address): Handle AND.
6729         (memory_address_length): Ditto.
6730
6731 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
6732             Brian Hackett  <bhackett1024@gmail.com>
6733
6734         * plugin.def: Add event for finish_decl.
6735         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6736         * c-decl.c (finish_decl): Invoke callbacks on above event.
6737         * doc/plugins.texi: Document above event.
6738
6739 2011-08-11  Richard Guenther  <rguenther@suse.de>
6740
6741         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6742         lookups, make looking through aggregate copies stronger.
6743
6744 2011-08-11  Richard Henderson  <rth@redhat.com>
6745
6746         PR bootstrap/50018
6747         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6748
6749 2011-08-11  Richard Guenther  <rguenther@suse.de>
6750
6751         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6752         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6753         (vrp_visit_stmt): Likewise.
6754
6755 2011-08-11  Richard Guenther  <rguenther@suse.de>
6756
6757         PR middle-end/50040
6758         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6759         load of the other piece with TREE_NO_WARNING.
6760         * tree-flow.h (warn_uninit): Adjust prototype.
6761         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6762         the base variable and the expression that is used separately.
6763         Properly query all TREE_NO_WARNING flags.
6764         (struct walk_data): Remove.
6765         (warn_uninitialized_var): Likewise.
6766         (warn_uninitialized_vars): Do not walk gimple pieces but simply
6767         look at all SSA uses of the statement.  Handle unused memory
6768         separately.
6769         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6770
6771 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
6772
6773         * config/rx/rx.md (movsicc): Allow register to register transfers.
6774         (*movsicc): Likewise.
6775         (*stcc): Restrict this pattern to EQ and NE compares.
6776         (*stcc_reg): New pattern.  Works for any comparison but only for
6777         register transfers.
6778
6779 2011-08-11   Diego Novillo  <dnovillo@google.com>
6780
6781         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6782         Call stream_write_tree instead of output_record_start.
6783         (lto_output_ts_binfo_tree_pointers): Likewise.
6784
6785         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6786         Convert it to a macro.
6787         (stream_read_tree): Likewise.
6788
6789         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6790         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6791
6792         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6793         and tree_read_bitfields.
6794         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6795         (lto_write_tree): Call it.
6796         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6797         * streamer-hooks.h (struct streamer_hooks): Remove fields
6798         name, is_streamable and alloc_tree. Update all users.
6799         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6800         (lto_materialize_tree): ... here.
6801         Handle CALL_EXPR codes.
6802         Remove call to lto_streamer_cache_append.
6803         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6804         * tree-streamer.h (tree_read_bitfields): Declare.
6805
6806         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6807         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6808         * tree-streamer.h (stream_read_tree): New.  Replace all calls
6809         to lto_input_tree with it.
6810         (stream_write_tree): New.  Replace all calls to lto_output_tree,
6811         lto_output_tree_ref and lto_output_tree_or_ref with it.
6812         * lto-streamer-in.c (lto_read_tree): Inline code from
6813         lto_streamer_read_tree.
6814         (lto_input_tree): Move from tree-streamer-in.c.
6815         * lto-streamer-out.c (lto_output_tree_ref): Make static.
6816         Remove handling of NULL values for EXPR.
6817         Do not handle EXPRs that are not indexable.
6818         (lto_write_tree): Move from tree-streamer-out.c.
6819         Inline lto_streamer_write_tree.
6820         (lto_output_tree): Move from tree-streamer-out.c.
6821         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6822         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6823         (lto_preload_common_nodes): Likewise.
6824         Remove assertions and adjustments for nodes
6825         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6826         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6827         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6828         * lto-streamer.h (lto_input_tree): Declare.
6829         (lto_output_tree_ref): Remove.
6830         * streamer-hooks.h (struct streamer_hooks): Remove fields
6831         preload_common_nodes, indexable_with_decls_p,
6832         pack_value_fields, unpack_value_fields and output_tree_header.
6833         Update all users.
6834         * tree-streamer-in.c (lto_materialize_tree): Make extern.
6835         (lto_input_tree_pointers): Likewise.
6836         (lto_read_tree): Move to lto-streamer-in.c.
6837         (lto_input_integer_cst): Make extern.
6838         (lto_get_pickled_tree): Likewise.
6839         (lto_get_builtin_tree): Likewise.
6840         (lto_input_tree): Move to lto-streamer-in.c.
6841         * tree-streamer-out.c (pack_value_fields): Make extern.
6842         (lto_output_tree_or_ref): Remove.  Replace all callers with
6843         calls to stream_write_tree.
6844         (lto_output_builtin_tree): Make extern.
6845         (lto_streamer_write_tree): Inline into lto_write_tree.
6846         (lto_output_tree_pointers): Make extern.
6847         (lto_output_tree_header): Likewise.
6848         (lto_output_integer_cst): Likewise.
6849         (lto_write_tree): Move to lto-streamer-out.c.
6850         (lto_output_tree): Likewise.
6851         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6852         (preload_common_nodes): Likewise.
6853         (lto_streamer_cache_create): Call it.
6854         * tree-streamer.h: Include streamer-hooks.h.
6855         (stream_write_tree): New.
6856         (stream_read_tree): New.
6857         (lto_input_tree): Remove.
6858         (lto_materialize_tree): Declare.
6859         (lto_input_tree_pointers): Declare.
6860         (lto_get_pickled_tree): Declare.
6861         (lto_get_builtin_tree): Declare.
6862         (lto_input_integer_cst): Declare.
6863         (lto_output_tree_header): Declare.
6864         (pack_value_fields): Declare.
6865         (lto_output_tree_pointers): Declare.
6866         (lto_output_integer_cst): Declare.
6867         (lto_output_builtin_tree): Declare.
6868
6869 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6870
6871         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6872         only if producer writes to the register given by regno.
6873
6874 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6875             Alexander Monakov  <amonakov@ispras.ru>
6876
6877         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6878         (sched_get_condition_with_rev_uncached): ... this.  Factor out
6879         condition caching logic into ...
6880         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
6881         attempt to use cache for instructions with zero luid.
6882         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6883         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6884
6885 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6886
6887         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6888         get_seqno_for_a_jump.  Update the caller.
6889         (get_seqno_by_succs): New.  Use it ...
6890         (get_seqno_for_a_jump): ... here to find a seqno if looking at
6891         predecessors was not sufficient.
6892         (get_seqno_by_preds): Include head in iteration range, exclude insn.
6893
6894 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6895
6896         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6897
6898 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6899
6900         * sel-sched-ir.h (register_unavailable_p): Declare.
6901         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
6902         (set_unavailable_target_for_expr): ... here to properly test
6903         availability of a register.
6904         (speculate_expr): Ditto.
6905         * sel-sched.c (substitute_reg_in_expr): Ditto.
6906         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
6907
6908 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6909
6910         * sel-sched.c (verify_target_availability): Fix usage of
6911         hard_regno_nregs.
6912
6913 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6914
6915         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
6916         recognized by cannot_copy_insn_p hook and volatile instructions.
6917
6918 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6919
6920         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
6921
6922 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
6923
6924         * doc/md.texi (define_bypass): Say that the instruction names can
6925         be filename-style globs.
6926         * Makefile.in (FNMATCH_H): Define.
6927         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
6928         * genattrtab.c: Include fnmatch.h.
6929         (bypass_list): Change field name from "insn" to "pattern".
6930         (gen_bypass_1): Update accordingly.
6931         (process_bypasses): Use fnmatch to check for matches between
6932         insn reservations and define_bypasses.
6933         * genautomata.c: Include fnmatch.h.
6934         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
6935         and out_pattern respectively.
6936         (gen_bypass, insert_bypass): Update accordingly.
6937         (for_each_matching_insn, process_bypass_2, process_bypass_1)
6938         (process_bypass): New functions.
6939         (process_decls): Use process_bypass.  Update after field name changes.
6940
6941 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
6942
6943         PR target/49687
6944         * config/avr/avr.md (smulqi3_highpart): New insn.
6945         (umulqi3_highpart): New insn.
6946         (*subqi3.ashiftrt7): New insn.
6947         (smulhi3_highpart): New expander.
6948         (umulhi3_highpart): Nex expander.
6949         (*smulhi3_highpart_call): New insn.
6950         (*umulhi3_highpart_call): New insn.
6951         (extend_u): New code attribute.
6952         (extend_prefix): Rename code attribute to extend_su.
6953         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
6954         widening QI/HI multiply.
6955
6956 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
6957
6958         PR tree-optimization/50039
6959         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
6960         that DEF_STMT has a stmt_vec_info.
6961
6962 2011-08-10  Richard Guenther  <rguenther@suse.de>
6963
6964         * tree.h (can_trust_pointer_alignment): Remove.
6965         * builtins.c (can_trust_pointer_alignment): Remove.
6966
6967 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6968
6969         * c-typeck.c (scalar_to_vector): New function. Try scalar to
6970         vector conversion.
6971         (stv_conv): New enum for scalar_to_vector return type.
6972         (build_binary_op): Adjust.
6973         * doc/extend.texi: Description of scalar to vector expansion.
6974
6975 2011-08-10  Richard Guenther  <rguenther@suse.de>
6976
6977         * tree.h (get_pointer_alignment): Remove max-align argument.
6978         (get_object_alignment): Likewise.
6979         * builtins.c (get_object_alignment_1): Adjust.
6980         (get_object_alignment): Remove max-align argument.
6981         (get_pointer_alignment): Likewise.
6982         (expand_builtin_strlen): Adjust.
6983         (expand_builtin_memcpy): Likewise.
6984         (expand_builtin_mempcpy_args): Likewise.
6985         (expand_builtin_strncpy): Likewise.
6986         (expand_builtin_memset_args): Likewise.
6987         (expand_builtin_memcmp): Likewise.
6988         (expand_builtin_strcmp): Likewise.
6989         (expand_builtin_strncmp): Likewise.
6990         (get_builtin_sync_mem): Likewise.
6991         (fold_builtin_memset): Likewise.
6992         (fold_builtin_memory_op): Likewise.
6993         (expand_builtin_memory_chk): Likewise.
6994         * emit-rtl.c (get_mem_align_offset): Likewise.
6995         (set_mem_attributes_minus_bitpos): Likewise.
6996         * expr.c (expand_assignment): Likewise.
6997         (expand_expr_real_1): Likewise.
6998         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
6999         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7000         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7001         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7002         * value-prof.c (gimple_stringops_transform): Likewise.
7003
7004 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
7005
7006         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7007         * doc/tm.texi: Regenerate.
7008
7009 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
7010
7011         PR target/29560
7012         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7013         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7014         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7015         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7016         shift target is unused.
7017
7018 2011-08-10  Richard Guenther  <rguenther@suse.de>
7019
7020         PR tree-optimization/49937
7021         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7022         using get_object_alignment_1.
7023
7024 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7025
7026         * config/i386/i386.c (ix86_emit_i387_round): New function.
7027         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7028         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7029         Use ix86_emit_i387_round to expand round function for i387 math.
7030         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7031         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7032
7033 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7034
7035         * config/sync.c: Move to ../libgcc.
7036         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7037         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7038         Remove.
7039
7040 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7041
7042         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7043         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7044         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7045         Change 'from' and 'to' arguments type to reg_class_t.
7046         (TARGET_REGISTER_MOVE_COST): Define.
7047
7048 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
7049
7050         PR target/50026
7051         Revert:
7052         PR rtl-optimization/49990
7053         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7054         ignore classes which can not change mode.
7055         (find_costs_and_classes): Ditto.
7056
7057 2011-08-09  Richard Guenther  <rguenther@suse.de>
7058
7059         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7060         information for ranges with only negative values.
7061         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7062         BIT_AND_EXPR handling to handle ranges with negative values.
7063
7064 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
7065
7066         * config/i386/i386.c: Remove traling spaces.
7067         * config/i386/sse.md: Likewise.
7068         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7069         (*fma_fmsub_<mode>): Likewise.
7070         (*fma_fnmadd_<mode>): Likewise.
7071         (*fma_fnmsub_<mode>): Likewise.
7072
7073 2011-08-09  Nick Clifton  <nickc@redhat.com>
7074
7075         * config/rx/rx.md: Disable extender peepholes at -O3.
7076
7077 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7078
7079         PR target/49781
7080         * config/i386/i386.md (reload_noff_load): New.
7081         (reload_noff_store): Ditto.
7082         * config/i386/i386.c (ix86_secondary_reload): Use
7083         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7084         double-word moves from/to non-offsetable addresses instead of
7085         generating XMM temporary.
7086
7087 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7088
7089         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7090
7091 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
7092
7093         PR tree-optimization/50014
7094         * tree-vect-loop.c (vectorizable_reduction): Get def type before
7095         calling vect_get_vec_def_for_stmt_copy ().
7096
7097 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
7098
7099         PR rtl-optimization/49990
7100         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7101         ignore classes which can not change mode.
7102         (find_costs_and_classes): Ditto.
7103
7104 2011-08-08  Richard Henderson  <rth@redhat.com>
7105
7106         PR middle-end/49990
7107         * config/i386/i386.c (ix86_expand_prologue): Call
7108         for SEH target gen_prologue_use instead of gen_blockage
7109         at prologue's end.
7110
7111 2011-08-08  Martin Jambor  <mjambor@suse.cz>
7112
7113         PR middle-end/49923
7114         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7115         memory alignment.
7116
7117 2011-08-08   Diego Novillo  <dnovillo@google.com>
7118
7119         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7120         (DATA_STREAMER_H): New.
7121         (GIMPLE_STREAMER_H): New.
7122         (TREE_STREAMER_H): New.
7123         (STREAMER_HOOKS_H): New.
7124         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7125         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7126         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7127         (data-streamer.o): New.
7128         (data-streamer-in.o): New.
7129         (data-streamer-out.o): New.
7130         (gimple-streamer-in.o): New.
7131         (gimple-streamer-out.o): New.
7132         (streamer-hooks.o): New.
7133         (tree-streamer.o): New.
7134         (tree-streamer-in.o): New.
7135         (tree-streamer-out.o): New.
7136         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7137         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
7138         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7139         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
7140         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7141         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
7142         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7143         (ipa-inline-analysis.o): Likewise.
7144         (ipa-pure-const.o): Likewise.
7145         * data-streamer-in.c: New.
7146         * data-streamer-out.c: New.
7147         * data-streamer.c: New.
7148         * data-streamer.h: New.
7149         * gimple-streamer-in.c: New.
7150         * gimple-streamer-out.c: New.
7151         * gimple-streamer.h: New.
7152         * ipa-inline-analysis.c: Include data-streamer.h.
7153         * ipa-prop.c: Include data-streamer.h.
7154         * ipa-pure-const.c: Include data-streamer.h.
7155         * lto-cgraph.c: Include data-streamer.h.
7156         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
7157         (lto_input_widest_uint_uleb128): Likewise.
7158         (lto_input_sleb128): Likewise.
7159         (bp_unpack_var_len_unsigned): Likewise.
7160         (bp_unpack_var_len_int): Likewise.
7161         * lto-section-out.c (lto_output_uleb128_stream): Move to
7162         data-streamer-out.c.
7163         (lto_output_widest_uint_uleb128_stream): Likewise.
7164         (lto_output_sleb128_stream): Likewise.
7165         (bp_pack_var_len_unsigned): Likewise.
7166         (bp_pack_var_len_int): Likewise.
7167         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
7168         (struct string_slot): Remove.  Update all users.
7169         (lto_tag_check_set): Make extern.
7170         (lto_tag_check_range): Move to lto-streamer.h.
7171         (lto_tag_check): Likewise.
7172         (hash_string_slot_node): Remove.  Update all users.
7173         (eq_string_slot_node): Remove.  Update all users.
7174         (string_for_index): Move to data-streamer-in.c
7175         (input_string_internal): Likewise.
7176         (input_string_cst): Move to tree-streamer-in.c.
7177         (input_identifier): Likewise.
7178         (lto_input_string): Move to data-streamer-in.c
7179         (input_record_start): Move to data-streamer.h
7180         (canon_file_name): Use new definition of struct string_slot
7181         from data-streamer.h.  Set S_SLOT.LEN.
7182         (lto_input_location): Make extern.
7183         (lto_input_chain): Move to tree-streamer-in.c.
7184         (lto_init_eh): Make extern.
7185         (input_phi): Move to gimple-streamer-in.c.
7186         (input_gimple_stmt): Likewise.
7187         (input_bb): Likewise.
7188         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
7189         (unpack_ts_real_cst_value_fields): Likewise.
7190         (unpack_ts_fixed_cst_value_fields): Likewise.
7191         (unpack_ts_decl_common_value_fields): Likewise.
7192         (unpack_ts_decl_wrtl_value_fields): Likewise.
7193         (unpack_ts_decl_with_vis_value_fields): Likewise.
7194         (unpack_ts_function_decl_value_fields): Likewise.
7195         (unpack_ts_type_common_value_fields): Likewise.
7196         (unpack_ts_block_value_fields): Likewise.
7197         (unpack_ts_translation_unit_decl_value_fields): Likewise.
7198         (unpack_value_fields): Likewise.
7199         (lto_materialize_tree): Likewise.
7200         (lto_input_ts_common_tree_pointers): Likewise.
7201         (lto_input_ts_vector_tree_pointers): Likewise.
7202         (lto_input_ts_complex_tree_pointers): Likewise.
7203         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7204         (lto_input_ts_decl_common_tree_pointers): Likewise.
7205         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
7206         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
7207         (lto_input_ts_field_decl_tree_pointers): Likewise.
7208         (lto_input_ts_function_decl_tree_pointers): Likewise.
7209         (lto_input_ts_type_common_tree_pointers): Likewise.
7210         (lto_input_ts_type_non_common_tree_pointers): Likewise.
7211         (lto_input_ts_list_tree_pointers): Likewise.
7212         (lto_input_ts_vec_tree_pointers): Likewise.
7213         (lto_input_ts_exp_tree_pointers): Likewise.
7214         (lto_input_ts_block_tree_pointers): Likewise.
7215         (lto_input_ts_binfo_tree_pointers): Likewise.
7216         (lto_input_ts_constructor_tree_pointers): Likewise.
7217         (lto_input_ts_target_option): Likewise.
7218         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
7219         (lto_input_tree_pointers): Likewise.
7220         (lto_get_pickled_tree): Likewise.
7221         (lto_get_builtin_tree): Likewise.
7222         (lto_read_tree): Likewise.
7223         (lto_input_integer_cst): Likewise.
7224         (lto_input_tree): Likewise.
7225         * lto-streamer-out.c: Include data-streamer.h,
7226         gimple-streamer.h and streamer-hooks.h.
7227         (struct string_slot): Move to data-streamer.h.
7228         (hash_string_slot_node): Likewise.
7229         (eq_string_slot_node): Likewise.
7230         (lto_string_index): Move to data-streamer-out.c.
7231         (lto_output_string_with_length): Likewise.
7232         (lto_output_string): Likewise.
7233         (output_string_cst): Move to tree-streamer-out.c.
7234         (output_identifier): Likewise.
7235         (output_zero): Move to data-streamer-out.c
7236         (output_uleb128): Likewise.
7237         (output_sleb128): Likewise.
7238         (output_record_start): Move to data-streamer.h
7239         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
7240         (pack_ts_real_cst_value_fields): Likewise.
7241         (pack_ts_fixed_cst_value_fields): Likewise.
7242         (pack_ts_decl_common_value_fields): Likewise.
7243         (pack_ts_decl_wrtl_value_fields): Likewise.
7244         (pack_ts_decl_with_vis_value_fields): Likewise.
7245         (pack_ts_function_decl_value_fields): Likewise.
7246         (pack_ts_type_common_value_fields): Likewise.
7247         (pack_ts_block_value_fields): Likewise.
7248         (pack_ts_translation_unit_decl_value_fields): Likewise.
7249         (pack_value_fields): Likewise.
7250         (lto_output_chain): Likewise.
7251         (lto_output_ts_common_tree_pointers): Likewise.
7252         (lto_output_ts_vector_tree_pointers): Likewise.
7253         (lto_output_ts_complex_tree_pointers): Likewise.
7254         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
7255         (lto_output_ts_decl_common_tree_pointers): Likewise.
7256         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
7257         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
7258         (lto_output_ts_field_decl_tree_pointers): Likewise.
7259         (lto_output_ts_function_decl_tree_pointers): Likewise.
7260         (lto_output_ts_type_common_tree_pointers): Likewise.
7261         (lto_output_ts_type_non_common_tree_pointers): Likewise.
7262         (lto_output_ts_list_tree_pointers): Likewise.
7263         (lto_output_ts_vec_tree_pointers): Likewise.
7264         (lto_output_ts_exp_tree_pointers): Likewise.
7265         (lto_output_ts_block_tree_pointers): Likewise.
7266         (lto_output_ts_binfo_tree_pointers): Likewise.
7267         (lto_output_ts_constructor_tree_pointers): Likewise.
7268         (lto_output_ts_target_option): Likewise.
7269         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
7270         (lto_output_tree_pointers): Likewise.
7271         (lto_output_tree_header): Likewise.
7272         (lto_output_builtin_tree): Likewise.
7273         (lto_write_tree): Likewise.
7274         (lto_output_integer_cst): Likewise.
7275         (lto_output_tree): Likewise.
7276         (output_phi): Move to gimple-streamer-out.c.
7277         (output_gimple_stmt): Likewise.
7278         (output_bb): Likewise.
7279         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
7280         (streamer_hooks): Move to streamer-hooks.c.
7281         (check_handled_ts_structures): Move to tree-streamer.c
7282         (lto_streamer_cache_add_to_node_array): Likewise.
7283         (lto_streamer_cache_insert_1): Likewise.
7284         (lto_streamer_cache_insert): Likewise.
7285         (lto_streamer_cache_insert_at): Likewise.
7286         (lto_streamer_cache_append): Likewise.
7287         (lto_streamer_cache_lookup): Likewise.
7288         (lto_streamer_cache_get): Likewise.
7289         (lto_record_common_node): Likewise.
7290         (lto_preload_common_nodes): Likewise.
7291         (lto_streamer_cache_create): Likewise.
7292         (lto_streamer_cache_delete): Likewise.
7293         (streamer_hooks_init): Move to streamer-hooks.c.
7294         * lto-streamer.h: Include diagnostic.h
7295         (struct output_block, struct lto_input_block,
7296         struct data_in, struct bitpack_d): Remove forward declarations.
7297         (struct bitpack_d): Move to data-streamer.h.
7298         (struct lto_streamer_cache_d): Move to tree-streamer.h.
7299         (struct streamer_hooks): Move to streamer-hooks.h.
7300         (bp_pack_var_len_unsigned): Move to data-streamer.h.
7301         (bp_pack_var_len_int): Likewise.
7302         (bp_unpack_var_len_unsigned): Likewise.
7303         (bp_unpack_var_len_int): Likewise.
7304         (lto_input_location): Declare.
7305         (lto_tag_check_set): Declare.
7306         (lto_init_eh): Declare.
7307         (lto_output_tree_ref): Declare.
7308         (lto_output_location): Declare.
7309         (bitpack_create): Move to data-streamer.h.
7310         (bp_pack_value): Likewise.
7311         (lto_output_bitpack): Likewise.
7312         (lto_input_bitpack): Likewise.
7313         (bp_unpack_value): Likewise.
7314         (lto_output_1_stream): Likewise.
7315         (lto_input_1_unsigned): Likewise.
7316         (lto_output_int_in_range): Likewise.
7317         (lto_input_int_in_range): Likewise.
7318         (bp_pack_int_in_range): Likewise.
7319         (bp_unpack_int_in_range): Likewise.
7320         (lto_output_enum): Likewise.
7321         (lto_input_enum): Likewise.
7322         (bp_pack_enum): Likewise.
7323         (bp_unpack_enum): Likewise.
7324         * streamer-hooks.c: New.
7325         * streamer-hooks.h: New.
7326         * tree-streamer-in.c: New.
7327         * tree-streamer-out.c: New.
7328         * tree-streamer.c: New.
7329         * tree-streamer.h: New.
7330
7331 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7332
7333         * gthr-posix95.h: Remove.
7334         * gthr.h [_PTHREADS95]: Remove.
7335         * configure.ac (enable_threads): Remove posix95.
7336         * configure: Regenerate.
7337         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7338
7339 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
7340
7341         PR target/49781
7342         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7343         SImode addresses.
7344         (ix86_print_operand_address): Handle zero-extended addresses.
7345         (memory_address_length): Add length of addr32 prefix for
7346         zero-extended addresses.
7347         (ix86_secondary_reload): Handle moves to/from double-word general
7348         registers from/to zero-extended addresses.
7349         * config/i386/predicates.md (lea_address_operand): Reject
7350         zero-extended operands.
7351
7352 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
7353
7354         PR other/48007
7355         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7356
7357         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7358         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7359
7360         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7361         (_Unwind_Context_Reg_Val): Likewise.
7362         (_Unwind_Get_Unwind_Word): Likewise.
7363         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7364         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7365         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7366         for EXTENDED_CONTEXT_BIT.
7367         (__frame_state_for): Likewise.
7368         (uw_init_context_1): Likewise.
7369         (_Unwind_GetGR): Updated.
7370         (_Unwind_SetGR): Likewise.
7371         (_Unwind_GetGRPtr): Likewise.
7372         (_Unwind_SetGRPtr): Likewise.
7373         (_Unwind_SetGRValue): Likewise.
7374         (_Unwind_GRByValue): Likewise.
7375         (uw_install_context_1): Likewise.
7376
7377         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7378         ASSUME_EXTENDED_UNWIND_CONTEXT.
7379         * doc/tm.texi: Regenerated.
7380
7381 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7382
7383         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7384
7385 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7386
7387         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7388         Linux/GNU-specific.
7389         (DEC Alpha Options, -mtune): Likewise.
7390         (MIPS Options, -march): native is supported on IRIX.
7391
7392 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7393
7394         * config/sparc/driver-sparc.c: New file.
7395         * config/sparc/x-sparc: New file.
7396         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7397         * config/sparc/sparc.opt (native): New value for enum processor_type.
7398         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7399         * config/sparc/sparc.c (sparc_option_override): Abort if
7400         PROCESSOR_NATIVE gets here.
7401         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7402         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7403         DRIVER_SELF_SPECS): Define.
7404         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7405         (SPARC Options, -mtune): Likewise.
7406         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7407         Substitute result.
7408         * configure: Regenerate.
7409         * Makefile.in (EXTRA_GCC_LIBS): Set.
7410         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7411         (cpp$(exeext)): Likewise.
7412
7413 2011-08-08  Richard Guenther  <rguenther@suse.de>
7414
7415         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7416         split out from ...
7417         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
7418         by composition.
7419
7420 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
7421
7422         PR tree-optimization/50005
7423         * ipa-inline-analysis (remap_predicate): Add cast to
7424         silence signed/unsigned comparison warning.
7425
7426 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7427
7428         * modulo-sched.c (get_sched_window): Use a table for the debug output.
7429         Print the current ii.
7430         (sms_schedule_by_order): Reduce whitespace in dump line.
7431
7432 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7433
7434         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7435         and one loop for successors.  Fix upper bound of memory range.
7436
7437 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7438
7439         PR target/50001
7440         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7441         (TARGET_INSTANTIATE_DECLS): New define.
7442
7443 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
7444             Mikael Morin   <mikael.morin@sfr.fr>
7445
7446         * Makefile.in (INCLUDES_FOR_TARGET): New.
7447         (LIBGCC2_CFLAGS): Use it.
7448         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7449
7450 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7451
7452         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7453         frame->save_regs_using_mov calculation.
7454
7455 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7456
7457         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7458         * config/i386/sse.md (castmode): New mode attribute.
7459         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7460         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7461
7462 2011-08-05  Jan Hubicka  <jh@suse.cz>
7463
7464         PR middle-end/49494
7465         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7466
7467 2011-08-05  Jan Hubicka  <jh@suse.cz>
7468
7469         PR middle-end/49500
7470         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7471         handle aliases.
7472         (create_emultls_var):New function.
7473         (ipa_lower_emutls): Handle aliases correctly.
7474
7475 2011-08-05  Jan Hubicka  <jh@suse.cz>
7476
7477         PR middle-end/49735
7478         * ipa-inline.c (recursive_inlining): Look through aliases.
7479
7480 2011-08-05  Jason Merrill  <jason@redhat.com>
7481
7482         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7483         declarations to beginning of function.
7484
7485 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7486
7487         PR rtl-optimization/49900
7488         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7489         ensure basic blocks stay in the same order.
7490
7491 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
7492
7493         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7494         store_bit_field.
7495         (s390_expand_atomic): Same.
7496
7497 2011-08-05  Richard Henderson  <rth@redhat.com>
7498
7499         PR rtl-opt/49977
7500         * dwarf2cfi.c (scan_insn_after): Split out of ...
7501         (scan_trace): ... here.  Correctly place notes wrt sequences.
7502
7503 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7504             Richard Henderson  <rth@redhat.com>
7505
7506         PR rtl-opt/49982
7507         * expr.c (fixup_args_size_notes): Look through no-op moves.
7508
7509 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7510
7511         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7512         of "m" for operand 0.  Add type and mode attribute.
7513         (*pushxf_nointeger"): Use "<" constraint for operand 0.
7514         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
7515         constraint instead of "o" for opreand 1.
7516         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
7517         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7518         operand 0, alternative 4.
7519         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7520
7521 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7522
7523         * config/i386/predicates.md (lea_address_operand): Rename from
7524         no_seg_address_operand.
7525         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7526         (*lea_1_zext): Ditto.
7527         (*lea_2): Ditto.
7528         (*lea_2_zext): Ditto.
7529
7530 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7531
7532         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7533         parts.base and parts.index.
7534         * config/i386/predicates.md (aligned_operand): Ditto.
7535         (cmpxchg8b_pic_memory_operand): Ditto.
7536
7537 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7538
7539         * config/soft-fp: Move to ../libgcc.
7540         * Makefile.in (SFP_MACHINE): Remove.
7541         (libgcc-support): Remove $(SFP_MACHINE) dependency.
7542         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7543         * config/arm/t-arm-softfp: Move to
7544         ../libgcc/config/arm/t-softfp.
7545         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7546         * config/c6x/t-c6x-softfp: Remove.
7547         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7548         * config/i386/t-fprules-softfp: Move to
7549         ../libgcc/config/t-softfp-tf.
7550         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7551         * config/ia64/t-fprules-softfp: Remove.
7552         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7553         * config/lm32/t-fprules-softfp: Remove.
7554         * config/moxie/sfp-machine.h: Remove.
7555         * config/moxie/t-moxie-softfp: Remove.
7556         * config/rs6000/darwin-ldouble-format: Move to
7557         ../libgcc/config/rs6000/ibm-ldouble-format.
7558         * config/rs6000/darwin-ldouble.c: Move to
7559         ../libgcc/config/rs6000/ibm-ldouble.c
7560         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7561         * config/rs6000/libgcc-ppc64.ver: Likewise.
7562         * config/rs6000/sfp-machine.h: Likewise.
7563         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7564         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7565         (LIB2FUNCS_EXTRA): Remove.
7566         (TARGET_LIBGCC2_CFLAGS): Remove.
7567         * config/rs6000/t-aix52: Likewise
7568         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7569         $(srcdir)/config/rs6000/darwin-ldouble.c.
7570         (SHLIB_MAPFILES): Remove.
7571         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7572         $(srcdir)/config/rs6000/darwin-ldouble.c.
7573         * config/rs6000/t-fprules-softfp: Move to
7574         ../libgcc/config/t-softfp-sfdf.
7575         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7576         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7577         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7578         $(srcdir)/config/rs6000/darwin-ldouble.c.
7579         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7580         * config/score/t-score-softfp: Remove.
7581         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7582         soft-fp/t-softfp from tmake_file.
7583         (arm*-*-uclinux*): Likewise.
7584         (arm*-*-ecos-elf): Likewise.
7585         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7586         (arm*-*-rtems*): Likewise.
7587         (arm*-*-elf): Likewise.
7588         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7589         tmake_file.
7590         (moxie-*-uclinux*): Likewise.
7591         (moxie-*-rtems*): Likewise.
7592         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7593         tmake_file.
7594         (lm32-*-rtems*): Likewise.
7595         (lm32-*-uclinux*): Likewise.
7596         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7597         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7598         (powerpc-*-linux*, powerpc64-*-linux*): Remove
7599         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7600         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7601         tmake_file.
7602         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7603         tmake_file.
7604         (tic6x-*-uclinux): Likewise.
7605         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7606         soft-fp/t-softfp from tmake_file.
7607         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7608         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7609         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7610         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7611         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7612
7613 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7614
7615         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7616         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7617         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7618         TPBIT, TPBIT_FUNCS.
7619         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7620         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7621         Remove.
7622         * config/arm/t-vxworks: Likewise.
7623         * config/arm/t-wince-pe: Likewise.
7624         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7625         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7626         * config/bfin/t-bfin-elf: Likewise.
7627         * config/bfin/t-bfin-linux: Likewise.
7628         * config/bfin/t-bfin-uclinux: Likewise.
7629         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7630         Remove.
7631         * config/fr30/t-fr30: Likewise.
7632         * config/frv/t-frv: Likewise.
7633         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7634         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7635         * config/m32c/t-m32c: Likewise.
7636         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7637         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7638         * config/mcore/t-mcore: Likewise.
7639         * config/mep/t-mep: Likewise.
7640         * config/microblaze/t-microblaze: Likewise.
7641         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7642         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7643         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7644         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7645         * config/mn10300/t-linux: Remove.
7646         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7647         * config/pdp11/t-pdp11: Likewise.
7648         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7649         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7650         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7651         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7652         * config/rs6000/t-aix52: Likewise.
7653         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7654         $(srcdir)/config/rs6000/ppc64-fp.c.
7655         * config/rs6000/t-fprules-fpbit: Remove.
7656         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7657         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7658         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7659         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7660         * config/sparc/t-elf: Likewise.
7661         * config/sparc/t-leon: Likewise.
7662         * config/sparc/t-leon3: Likewise.
7663         * config/spu/t-spu-elf: Likewise.
7664         (DPBIT_FUNCS): Remove.
7665         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7666         * config/v850/t-v850: Likewise.
7667         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7668         (avr-*-*): Likewise.
7669         (h8300-*-rtems*): Set libgcc_tm_file.
7670         (h8300-*-elf*): Likewise.
7671         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7672         tmake_file.
7673         (powerpc-*-eabisim*): Likewise.
7674         (powerpc-*-elf*): Likewise.
7675         (powerpc-*-eabialtivec*): Likewise.
7676         (powerpc-xilinx-eabi*): Likewise.
7677         (powerpc-*-eabi*): Likewise.
7678         (powerpc-*-rtems*): Likewise.
7679         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7680         (powerpcle-*-elf*): Likewise.
7681         (powerpcle-*-eabisim*): Likewise.
7682         (powerpcle-*-eabi*): Likewise.
7683         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7684         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7685         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7686         Remove.
7687
7688 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7689
7690         * Makefile.in (UNWIND_H): Remove.
7691         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7692         ../libgcc/Makefile.in.
7693         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7694         (LIBUNWINDDEP): Remove.
7695         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7696         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7697         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7698         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7699         Don't copy $(UNWIND_H).
7700         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7701         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7702         * aclocal.m4: Regenerate.
7703         * configure: Regenerate.
7704         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7705         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7706         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7707         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7708         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7709         * config/arm/libunwind.S, config/arm/pr-support.c,
7710         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7711         ../libgcc/config/arm.
7712         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7713         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7714         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7715         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7716         ($(T)frvend$(objext)): Likewise.
7717         * config/ia64/t-glibc (LIB2ADDEH): Remove.
7718         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7719         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7720         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7721         ../libgcc/config/ia64.
7722         * config/ia64/t-hpux (LIB2ADDEH): Remove.
7723         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7724         * config/ia64/t-vms (LIB2ADDEH): Remove.
7725         * config/ia64/vms.h (UNW_IVMS_MODE,
7726         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7727         * config/picochip/t-picochip (LIB2ADDEH): Remove.
7728         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
7729         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
7730         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
7731         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
7732         $(srcdir)/../libgcc to refer to unwinder sources.
7733         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7734         * config/t-darwin (LIB2ADDEH): Remove.
7735         * config/t-freebsd (LIB2ADDEH): Remove.
7736         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7737         * config/t-libunwind-elf: Move to ../libgcc/config.
7738         * config/t-linux (LIB2ADDEH): Remove.
7739         * config/t-sol2 (LIB2ADDEH): Remove.
7740         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7741         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7742
7743 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
7744
7745         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7746
7747         * doc/invoke.texi: Document core-avx-i.
7748
7749 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7750
7751         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7752
7753 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
7754
7755         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7756         result of multiple results reduction when extracting the final
7757         value using scalar code.
7758
7759 2011-08-05  Richard Guenther  <rguenther@suse.de>
7760
7761         PR tree-optimization/49984
7762         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7763
7764 2011-08-05  Richard Guenther  <rguenther@suse.de>
7765
7766         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7767         return true for constant integer ranges.
7768         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7769         BIT_IOR_EXPR handling.
7770
7771 2011-08-04  Kai Tietz  <ktietz@redhat.com>
7772
7773         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7774         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7775
7776 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
7777
7778         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7779         pattern def statement, and its access macro.
7780         (NUM_PATTERNS): Set to 5.
7781         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7782         pattern def statement.
7783         (vect_transform_loop): Likewise.
7784         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7785         function vect_recog_over_widening_pattern ().
7786         (vect_operation_fits_smaller_type): New function.
7787         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7788         Likewise.
7789         (vect_pattern_recog_1): Move the code that marks pattern
7790         statements to vect_mark_pattern_stmts (), and call it.  Update
7791         documentation.
7792         * tree-vect-stmts.c (vect_supportable_shift): New function.
7793         (vect_analyze_stmt): Handle pattern def statement.
7794         (new_stmt_vec_info): Initialize pattern def statement.
7795
7796 2011-08-04  Richard Henderson  <rth@redhat.com>
7797
7798         PR target/49964
7799         * config/i386/i386.c (ix86_expand_call): Don't create nested
7800         PARALLELs for TARGET_VZEROUPPER.
7801         (ix86_split_call_vzeroupper): Fix extraction of the original call.
7802         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7803         recognize nested PARALLELs.
7804         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7805         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7806         *sibcall_value_pop_vzeroupper): Likewise.
7807
7808 2011-08-04  Richard Henderson  <rth@redhat.com>
7809
7810         PR middle-end/49968
7811         * calls.c (expand_call): Use fixup_args_size_notes for
7812         emit_stack_restore.
7813         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7814         in non-standard modes.
7815
7816 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7817
7818         * gcc.c (self_spec): New variable.
7819         (static_specs): Add self_spec.
7820         (main): Call do_self_spec on "self_spec" specs after reading
7821         user specs files.  Move compare_debug handling right after that.
7822
7823 2011-08-04  Richard Guenther  <rguenther@suse.de>
7824
7825         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7826         (value_range_nonnegative_p): New function.
7827         (ssa_name_nonnegative_p): Use it.
7828         (value_range_constant_singleton): New function.
7829         (op_with_constant_singleton_value_range): Use it.
7830         (extract_range_from_binary_expr_1): New function, split out from ...
7831         (extract_range_from_binary_expr): ... this.  Remove fallback
7832         constant folding done here.
7833
7834 2011-08-04  Richard Guenther  <rguenther@suse.de>
7835
7836         PR tree-optimization/49806
7837         * tree-vrp.c (op_with_boolean_value_range_p): New function.
7838         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
7839         a new statement for a final conversion to bool.
7840
7841 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
7842
7843         * gengtype-state.c: Include "bconfig.h" if
7844         GENERATOR_FILE is defined, "config.h" otherwise.
7845         * gengtype.c: Likewise.
7846         * gengtype-lex.l: Likewise.
7847         * gengtype-parse.c: Likewise.
7848         * Makefile.in (gengtype-lex.o-warn): New variable.
7849         (plugin_resourcesdir): Likewise.
7850         (plugin_bindir): Likewise.
7851         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7852         (MOSTLYCLEANFILES): Add gengtype$(exeext).
7853         (native): Depend on gengtype$(exeext) is $enable_plugin
7854         is set to "yes".
7855         (gtype.state): Depend on s-gtype. Use temporary file.
7856         (gengtype-lex.o): New rule.
7857         (gengtype-parse.o): Likewise.
7858         (gengtype-state.o): Likewise.
7859         (gengtype$(exeext)): Likewise.
7860         (install-gengtype): Likewise.
7861         (gengtype.o): Likewise.
7862         (build/gengtype.o): Depend on version.h.
7863         (build/gengtype-state): Depend on double-int.h, version.h,
7864         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7865         (install-plugin): Depend on install-gengtype.
7866
7867 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7868
7869         PR middle-end/49905
7870         * tree.h (init_attributes): New prototype.
7871         * attribs.c (init_attributes): No longer static.
7872
7873 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7874
7875         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7876         maybe_suffix.
7877
7878 2011-08-03   David Li  <davidxl@google.com>
7879
7880         * tree-optimize.c (execute_fixup_cfg): Fix up entry
7881         outgoing edge counts after inlining.
7882
7883 2011-08-03   David Li  <davidxl@google.com>
7884
7885         * profile.c (compute_branch_probabilities): Compute
7886         function frequency after profile annotation.
7887
7888 2011-08-04  Alan Modra  <amodra@gmail.com>
7889
7890         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7891         use_backchain_to_restore_sp initialisation.
7892         (rs6000_legitimate_offset_address_p): Simplify offset test.
7893
7894 2011-08-03  Richard Henderson  <rth@redhat.com>
7895
7896         * config/spu/spu.md: Use define_c_enum instead of define_constants.
7897         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7898         (UNSPECV_NOP): New.
7899
7900 2011-08-03  Richard Henderson  <rth@redhat.com>
7901
7902         PR target/34888
7903         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7904
7905 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
7906
7907         PR tree-optimization/49948
7908         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
7909
7910 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
7911
7912         * config/m32c/m32c.c (class_sizes): Remove.
7913         (reduce_class): Change arguments and return type to reg_class_t.
7914         Change type cc var to HARD_REG_SET. Change type best var to
7915         reg_class_t. Change type best_size var to unsigned int. Remove
7916         initialization class_sizes var. Use reg_class_size array instead
7917         of class_sizes. Use reg_class_contents array instead
7918         of class_contents.
7919
7920 2011-08-03  Richard Guenther  <rguenther@suse.de>
7921
7922         PR middle-end/49958
7923         * fold-const.c (fold_binary_loc): Only associate
7924         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
7925         overflow wraps.
7926
7927 2011-08-03  Alan Modra  <amodra@gmail.com>
7928
7929         PR rtl-optimization/49941
7930         * jump.c (mark_jump_label): Comment.
7931         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
7932         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
7933         (mark_used_flags): Don't mark RETURN.
7934
7935 2011-08-03  Richard Guenther  <rguenther@suse.de>
7936
7937         PR tree-optimization/49938
7938         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
7939         deal with a POLYNOMIAL_CHREC.
7940
7941 2011-08-03  Revital Eres  <revital.eres@linaro.org>
7942
7943         * modulo-sched.c (calculate_stage_count,
7944         calculate_must_precede_follow, get_sched_window,
7945         try_scheduling_node_in_cycle, remove_node_from_ps): Add
7946         declaration.
7947         (update_node_sched_params, set_must_precede_follow, optimize_sc):
7948         New functions.
7949         (reset_sched_times): Call update_node_sched_params.
7950         (sms_schedule): Call optimize_sc.
7951         (get_sched_window): Change function arguments.
7952         (sms_schedule_by_order): Update call to get_sched_window.
7953         Call set_must_precede_follow.
7954         (calculate_stage_count): Add function argument.
7955
7956 2011-08-02  Richard Henderson  <rth@redhat.com>
7957
7958         PR target/49864
7959         PR target/49879
7960         * reg-notes.def (REG_ARGS_SIZE): New.
7961         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
7962         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
7963         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
7964         different stack levels.
7965         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
7966         (maybe_move_args_size_note): New.
7967         (combine_stack_adjustments_for_block): Use it.
7968         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
7969         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
7970         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
7971         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
7972         (cur_cfa): New.
7973         (queued_args_size): Remove.
7974         (add_cfi_args_size): Assert size is non-negative.
7975         (stack_adjust_offset, dwarf2out_args_size): Remove.
7976         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
7977         (notice_args_size, notice_eh_throw): New.
7978         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
7979         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7980         (dwarf2out_frame_debug_cfa_offset): Likewise.
7981         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
7982         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
7983         (change_cfi_row): Don't emit args_size.
7984         (maybe_record_trace_start_abnormal): Split out from ...
7985         (maybe_record_trace_start): Here.  Set args_size_undefined.
7986         (create_trace_edges): Update to match.
7987         (scan_trace): Handle REG_ARGS_SIZE.
7988         (connect_traces): Connect args_size between EH insns.
7989         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
7990         * explow.c (suppress_reg_args_size): New.
7991         (adjust_stack_1): Split out from ...
7992         (adjust_stack): ... here.
7993         (anti_adjust_stack): Use it.
7994         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
7995         * expr.c (mem_autoinc_base): New.
7996         (fixup_args_size_notes): New.
7997         (emit_single_push_insn_1): Rename from emit_single_push_insn.
7998         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
7999         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8000         * reload1.c (reload_as_needed): Likewise.
8001         * rtl.h (fixup_args_size_notes): Declare.
8002
8003 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
8004
8005         PR bootstrap/49914
8006         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8007         of abs.
8008         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8009         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8010
8011 2011-08-02  Richard Henderson  <rth@redhat.com>
8012
8013         * config/h8300/h8300.c (push, pop): Return the insn.
8014         (h8300_swap_into_er6): Generate correct unwind info.
8015         (h8300_swap_out_of_er6): Likewise.
8016         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8017         complex cfa expression.
8018         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8019
8020 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8021
8022         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8023
8024 2011-08-02  Richard Henderson  <rth@redhat.com>
8025
8026         PR target/49878
8027         * config/h8300/h8300.c (h8300_move_ok): New.
8028         * config/h8300/h8300-protos.h: Declare it.
8029         * config/h8300/h8300.md (P): New mode iterator.
8030         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8031         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8032         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8033         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8034         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8035         and pushqi1_h8300hs_normal; use PRE_MODIFY and
8036         register_no_sp_elim_operand.
8037         (*pushhi1_h8300hs_<P>): Similarly.
8038         (pushqi1, pushhi1, pushhi1_h8300): Remove.
8039         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8040
8041 2011-08-02  Richard Henderson  <rth@redhat.com>
8042
8043         PR target/49881
8044         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8045
8046 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8047
8048         * c-parser.c (enum c_parser_prec): New enum, moved from within
8049         c_parser_binary_expression.
8050         (c_parser_binary_expression): Add PREC argument.  Stop parsing
8051         if operator has lower or equal precedence than PREC.
8052         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8053         callers.
8054         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8055         Adjust c_finish_omp_atomic caller.
8056         (c_parser_omp_taskyield): New function.
8057         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8058         (c_parser_omp_clause_name): Handle final and mergeable clauses.
8059         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8060         functions.
8061         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8062         and PRAGMA_OMP_CLAUSE_MERGEABLE.
8063         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8064         (c_parser_omp_clause_reduction): Handle min and max.
8065         * c-typeck.c (c_finish_omp_clauses): Don't complain about
8066         const qualified predetermined vars in firstprivate clause.
8067         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8068         Handle MIN_EXPR and MAX_EXPR.
8069         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8070         and OMP_CLAUSE_MERGEABLE.
8071         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8072         and OMP_ATOMIC_CAPTURE_NEW.
8073         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8074         OMP_CLAUSE_MERGEABLE.
8075         (omp_clause_code_name): Likewise.
8076         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8077         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8078         and OMP_CLAUSE_MERGEABLE.
8079         (OMP_CLAUSE_FINAL_EXPR): Define.
8080         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8081         OMP_CLAUSE_MERGEABLE.
8082         (expand_task_call): Likewise.
8083         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8084         (expand_omp_atomic_fetch_op): Handle cases where old or new
8085         value is needed afterwards.
8086         (expand_omp_atomic): Call expand_omp_atomic_load resp.
8087         expand_omp_atomic_store.
8088         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8089         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8090         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8091         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8092         * tree-nested.c (convert_nonlocal_omp_clauses,
8093         convert_local_omp_clauses): Likewise.
8094         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8095         OMP_ATOMIC_CAPTURE_NEW): New.
8096         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8097         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8098         New inlines.
8099         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8100         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8101         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8102
8103 2011-08-02  Kai Tietz  <ktietz@redhat.com>
8104
8105         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8106         boolean-type.
8107         (ssa_forward_propagate_and_combine): Interprete result of
8108         forward_propagate_comparison.
8109         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8110         boolean-typed operands for comparisons.
8111
8112 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
8113
8114         * config/avr/libgcc.S: Gather related function in the
8115         same input section.
8116         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8117         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8118         references.
8119         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8120         __udivmodsi4, __divmodsi4, __prologue_saves__,
8121         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8122         __do_copy_data, __do_clear_bss, __do_global_ctors,
8123         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8124
8125 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
8126
8127         PR target/47766
8128         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8129         (stack_protect_test): The pattern compares ptr_mode value.
8130
8131 2011-08-02  Alan Modra  <amodra@gmail.com>
8132
8133         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8134         note for save_LR_around_toc_setup sequence.
8135
8136 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8137
8138         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
8139
8140 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8141             Joseph Myers  <joseph@codesourcery.com>
8142
8143         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
8144         * hwint.c: Include diagnostic-core.h.
8145         (abs_hwi): New.
8146         (gcd): Moved here...
8147         (pos_mul_hwi): New.
8148         (mul_hwi): New.
8149         (least_common_multiple): Moved here...
8150         * hwint.h (gcd): ... from here.
8151         (least_common_multiple): ... from here.
8152         (HOST_WIDE_INT_MIN): New.
8153         (HOST_WIDE_INT_MAX): New.
8154         (abs_hwi): Declared.
8155         (gcd): Declared.
8156         (pos_mul_hwi): Declared.
8157         (mul_hwi): Declared.
8158         (least_common_multiple): Declared.
8159         * omega.c (check_pos_mul): Removed.
8160         (check_mul): Removed.
8161         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
8162         mul_hwi instead of check_mul.
8163
8164 2011-08-01  Richard Henderson  <rth@redhat.com>
8165
8166         PR target/49881
8167         * config/avr/avr.h (PUSH_ROUNDING): New.
8168         * config/avr/avr.md (pushqi1): Rename from *pushqi.
8169         (*pushhi, *pushsi, *pushsf): Remove.
8170         (MPUSH): New mode iterator.
8171         (push<MPUSH>1): New expander.
8172
8173 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
8174
8175         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
8176         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8177         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
8178         mmix_preferred_output_reload_class): Remove.
8179         * config/mmix/mmix.c (mmix_preferred_reload_class,
8180         mmix_preferred_output_reload_class): Make static. Change rclass
8181         argument and return type to reg_class_t.
8182         (TARGET_PREFERRED_RELOAD_CLASS,
8183         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8184
8185 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8186
8187         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
8188         handling.
8189
8190 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8191
8192         PR target/47766
8193         * config/i386/i386.md (PTR): New.
8194         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
8195         (stack_protect_test): Likewise.
8196         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
8197         (stack_tls_protect_set_<mode>): Likewise.
8198         (stack_tls_protect_test_<mode>): Likewise.
8199
8200 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
8201
8202         PR target/49927
8203         * config/i386/i386.c (ix86_address_subreg_operand): New.
8204         (ix86_decompose_address): Use ix86_address_subreg_operand.
8205         (ix86_legitimate_address_p): Do not assert that subregs satisfy
8206         register_no_elim_operand in DImode.
8207
8208 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
8209
8210         PR tree-optimization/49926
8211         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
8212         in a chain doesn't have uses both inside and outside the loop.
8213
8214 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8215
8216         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
8217         * config/avr/avr-devices.c (avr_mcu_types): Use it.
8218         * config/avr/avr-mcus.def (AVR_MCU): Use it.
8219         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
8220         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
8221         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
8222         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
8223         to detect if XJMP must not be skipped.
8224
8225 2011-08-02  Alan Modra  <amodra@gmail.com>
8226
8227         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
8228         Delete.
8229         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
8230         (rs6000_emit_prologue): Don't prematurely return when
8231         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
8232         save_toc_in_prologue case.
8233         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
8234         calls_alloca.
8235
8236 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8237
8238         * config/avr/avr-devices.c: Delete SVN property svn:executable.
8239         * config/avr/predicates.md: Ditto.
8240         * config/avr/driver-avr.c: Ditto.
8241         * config/avr/genopt.sh: Set SVN property svn:executable to *.
8242
8243 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8244
8245         * calls.c (emit_library_call_value_1): Declare size only if
8246         BLOCK_REG_PADDING is defined.
8247
8248 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
8249
8250         PR target/49547
8251         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
8252         (x86_64-*-*): Likewise.
8253         * config/i386/i386.opt (mlzcnt): New.
8254         * config/i386/abmintrin.h: File removed.
8255         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
8256         * config/i386/lzcntintrin.h: ... here.  New file.
8257         (__lzcnt): Rename to ...
8258         (__lzcnt32): ... this.
8259         * config/i386/bmiintrin.h (head): Update copyright year.
8260         (__lzcnt_u16): Removed.
8261         (__lzcnt_u32): Likewise.
8262         (__lzcnt_u64): Likewise.
8263         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
8264         is defined, remove abmintrin.h.
8265         * config/i386/cpuid.h (bit_LZCNT): New.
8266         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8267         LZCNT feature.
8268         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8269         __LZCNT__ if needed.
8270         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
8271         (ix86_option_override_internal): Handle LZCNT option.
8272         (ix86_valid_target_attribute_inner_p): Likewise.
8273         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
8274         * config/i386/i386.h (TARGET_LZCNT): New.
8275         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
8276         * config/i386/i386.md (clz<mode>2): Update insn constraint.
8277         (clz<mode>2_lzcnt): Likewise.
8278         * doc/invoke.texi: Mention -mlzcnt option.
8279         * doc/extend.texi: Likewise.
8280
8281 2011-08-01  Julian Brown  <julian@codesourcery.com>
8282
8283         * configure.ac (fixed-point): Add ARM support.
8284         * configure: Regenerate.
8285         * config/arm/arm.c (arm_fixed_mode_set): New struct.
8286         (arm_set_fixed_optab_libfunc): New.
8287         (arm_set_fixed_conv_libfunc): New.
8288         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8289         ARM-specific names.
8290         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8291         return values in SImode.
8292         (arm_return_in_msb): Return fixed-point types in the msb.
8293         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8294         upwards.
8295         (arm_scalar_mode_supported_p): Support fixed-point modes.
8296         (arm_vector_mode_supported_p): Support vector fixed-point modes.
8297         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8298         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8299         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8300         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8301         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8302         New mode iterators.
8303         (qaddsub_suf): New mode attribute.
8304         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8305         vector modes.
8306         * config/arm/predicates.md (sat_shift_operator): New predicate.
8307         * config/arm/arm-fixed.md: New.
8308         * config/arm/arm.md: Include arm-fixed.md.
8309         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8310
8311 2011-08-01  Julian Brown  <julian@codesourcery.com>
8312
8313         * calls.c (emit_library_call_value_1): Support padding for libcall
8314         arguments and return values.
8315         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8316         downwards in big-endian mode.
8317
8318 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8319
8320         PR debug/49887
8321         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8322         * config/sol2-protos.h: Likewise.
8323         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8324         solaris_code_end.
8325         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8326         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8327         solaris_file_end.
8328         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8329
8330 2011-08-01  Julian Brown  <julian@codesourcery.com>
8331
8332         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8333
8334 2011-08-01  Julian Brown  <julian@codesourcery.com>
8335
8336         * final.c (output_addr_const): Print fixed-point constants as
8337         decimal not hex.
8338
8339 2011-08-01  Richard Guenther  <rguenther@suse.de>
8340
8341         * stor-layout.c (initialize_sizetypes): Properly sign-extend
8342         bitsiztype TYPE_MAX_VALUE.
8343
8344 2011-08-01  Julian Brown  <julian@codesourcery.com>
8345
8346         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8347         comparison helpers.
8348
8349 2011-07-31  Richard Henderson  <rth@redhat.com>
8350
8351         * config/h8300/crti.asm: Add flags to .section directive.
8352         * config/h8300/crtn.asm: Likewise.
8353
8354 2011-07-31  Richard Henderson  <rth@redhat.com>
8355
8356         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8357         * tree.c (build_common_tree_nodes): Likewise.
8358
8359 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8360
8361         PR target/49880
8362         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8363         (divsi3_i1): Likewise.
8364
8365 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8366
8367         PR tree-optimization/49749
8368         * tree-ssa-reassoc.c (get_rank): New forward declaration.
8369         (PHI_LOOP_BIAS): New macro.
8370         (phi_rank): New function.
8371         (loop_carried_phi): Likewise.
8372         (propagate_rank): Likewise.
8373         (get_rank): Add calls to phi_rank and propagate_rank.
8374
8375 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8376
8377         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8378         of TARGET_64BIT.
8379         (PTRDIFF_TYPE): Likewise.
8380
8381 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
8382
8383         PR target/49920
8384         * config/i386/i386.md (strset): Do not expand strset_singleop
8385         when %eax or $edi are fixed.
8386         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8387         (*strsetsi_1): Ditto.
8388         (*strsethi_1): Ditto.
8389         (*strsetqi_1): Ditto.
8390         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8391         (*rep_stossi): Ditto.
8392         (*rep_stosqi): Ditto.
8393         (*strlenqi_1): Ditto.
8394         (cmpstrnsi): Also fail when %ecx is fixed.
8395         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8396         (*cmpstrnqi_1): Ditto.
8397         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8398         (*strmovsi_1): Ditto.
8399         (*strmovhi_1): Ditto.
8400         (*strmovqi_1): Ditto.
8401         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8402         (*rep_movsi): Ditto.
8403         (*rep_movqi): Ditto.
8404
8405 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
8406
8407         PR target/47908
8408         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8409         Disable instruction scheduling for non-ColdFire targets.
8410         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8411
8412 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8413
8414         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8415         of anti-dep edge from a branch.
8416         (add_cross_iteration_register_deps): Create anti-dep edge from
8417         a branch.
8418
8419 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8420
8421         * modulo-sched.c: Change comment.
8422         (reset_sched_times): Fix print message.
8423         (print_partial_schedule): Add print info.
8424
8425 2011-07-31  Tom de Vries  <tom@codesourcery.com>
8426
8427         PR middle-end/43513
8428         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8429         get_object_alignment and TYPE_ALIGN.
8430
8431 2011-07-30  Tom de Vries  <tom@codesourcery.com>
8432
8433         PR middle-end/43513
8434         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8435         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8436
8437 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8438
8439         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8440         <sys/sbd.h>.
8441         (cpu_types): New array.
8442         (cputype): New function.
8443         (host_detect_local_cpu): Only define buf, f if !__sgi__.
8444         Use scaninvent instead of /proc/cpuinfo if __sgi__.
8445         * config.host: Also use driver-native.o, mips/x-native on
8446         mips-sgi-irix*.
8447         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8448         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8449         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8450
8451 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
8452
8453         PR middle-end/49897
8454         PR middle-end/49898
8455         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8456         in nested parallel and outer is a gimple_reg, mark it as addressable
8457         and set its bit in task_shared_vars bitmap too.
8458
8459 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8460
8461         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8462
8463 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8464
8465         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8466         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8467         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8468         AMASK_LOCKPFTCHOK): Define.
8469         (host_detect_local_cpu): Remove buf, f, cpu_names.
8470         Define cpu_types, implver, amask.
8471         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8472         native CPU.
8473         * config.host: Also use driver-alpha.o, alpha/x-alpha on
8474         alpha*-dec-osf*.
8475         * config/alpha/osf5.h [__alpha__ || __alpha]
8476         (host_detect_local_cpu): Declare.
8477         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8478         (DRIVER_SELF_SPECS): Define.
8479
8480 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8481
8482         PR target/47715
8483         * config/i386/i386.md (*load_tp_x32): New.
8484         (*load_tp_x32_zext): Ditto.
8485         (*add_tp_x32): Ditto.
8486         (*add_tp_x32_zext): Ditto.
8487         (*load_tp_<mode>): Disable for TARGET_X32 targets.
8488         (*add_tp_<mode>): Ditto.
8489         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8490         ptr_mode and convert to Pmode if needed.
8491
8492 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8493
8494         PR target/49687
8495         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8496         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8497         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8498         Add X to register footprint: Clobber r26/r27.
8499
8500 2011-07-29  Richard Guenther  <rguenther@suse.de>
8501
8502         * builtins.c (fold_builtin_signbit): Build the comparison
8503         with a proper type.
8504
8505 2011-07-29  Richard Guenther  <rguenther@suse.de>
8506
8507         PR tree-optimization/49893
8508         * tree-predcom.c (suitable_reference_p): Volatile references
8509         are not suitable.
8510
8511 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8512
8513         PR target/49313
8514         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8515         (__ctzsi2): Result for 0 may be undefined.
8516         (__ctzhi2): Result for 0 may be undefined.
8517         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8518         (__popcountsi2): Ditto. And don't clobber r26.
8519         (__popcountdi2): Ditto. And don't clobber r27.
8520         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8521         (parityhi2): New expand.
8522         (paritysi2): New expand.
8523         (popcounthi2): New expand.
8524         (popcountsi2): New expand.
8525         (clzhi2): New expand.
8526         (clzsi2): New expand.
8527         (ctzhi2): New expand.
8528         (ctzsi2): New expand.
8529         (ffshi2): New expand.
8530         (ffssi2): New expand.
8531         (copysignsf3): New insn.
8532         (bswapsi2): New expand.
8533         (*parityhi2.libgcc): New insn.
8534         (*parityqihi2.libgcc): New insn.
8535         (*paritysihi2.libgcc): New insn.
8536         (*popcounthi2.libgcc): New insn.
8537         (*popcountsi2.libgcc): New insn.
8538         (*popcountqi2.libgcc): New insn.
8539         (*popcountqihi2.libgcc): New insn-and-split.
8540         (*clzhi2.libgcc): New insn.
8541         (*clzsihi2.libgcc): New insn.
8542         (*ctzhi2.libgcc): New insn.
8543         (*ctzsihi2.libgcc): New insn.
8544         (*ffshi2.libgcc): New insn.
8545         (*ffssihi2.libgcc): New insn.
8546         (*bswapsi2.libgcc): New insn.
8547
8548 2011-07-29  Richard Guenther  <rguenther@suse.de>
8549
8550         * tree-vrp.c (get_value_range): Only set parameter default
8551         definitions to varying, leave others at undefined.
8552         (extract_range_from_binary_expr): Fix undefined handling.
8553         (vrp_visit_phi_node): Handle merged undefined state.
8554
8555 2011-07-29  Wei Guozhi  <carrot@google.com>
8556
8557         PR rtl-optimization/49799
8558         * combine.c (make_compound_operation): Check if the bit field is valid
8559         before change it to bit field extraction.
8560
8561 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8562
8563         PR rtl-optimization/49891
8564         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8565         newly created returnjumps.
8566
8567 2011-07-28  DJ Delorie  <dj@redhat.com>
8568
8569         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8570         local frame in a naked function, and produce a suitable error for
8571         that specific case.
8572
8573         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8574         registers to be reloaded in HI classes when the target is HI.
8575
8576 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8577
8578         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8579         bound_one, bound_two.
8580
8581 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8582
8583         PR middle-end/48648
8584         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8585         CLAST assignments.
8586         (translate_clast): Same.
8587         (translate_clast_assignment): New.
8588
8589 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8590
8591         PR tree-optimization/49876
8592         * sese.c (rename_uses): Do not return false on gloog_error: set
8593         the new_expr to integer_zero_node and continue code generation.
8594         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8595
8596 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8597
8598         PR debug/49846
8599         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8600         arguments also check if they aren't initialized with a MODE_INT
8601         mode of the same size.
8602
8603 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
8604
8605         * expr.c (get_bit_range): Handle *MEM_REF's.
8606
8607 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
8608
8609         * rtlanal.c (tablejump_p): False for returns.
8610         * reorg.c (first_active_target_insn): New static function.
8611         (find_end_label): Set JUMP_LABEL for a new returnjump.
8612         (optimize_skip, get_jump_flags, rare_destination,
8613         mostly_true_jump, get_branch_condition,
8614         steal_delay_list_from_target, own_thread_p,
8615         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8616         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8617         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8618         * jump.c (delete_related_insns): Likewise.
8619         (jump_to_label_p): New function.
8620         (redirect_target): New static function.
8621         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
8622         (redirect_jump_1): Assert that the new label is nonnull.
8623         (redirect_jump): Likewise.
8624         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8625         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8626         exit block.
8627         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
8628         changed.  Ensure that the right label is passed to redirect_jump.
8629         * function.c (emit_return_into_block,
8630         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8631         ret_rtx in their JUMP_LABEL.
8632         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8633         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8634         pass ret_rtx as label.
8635         * cfglayout.c (fixup_reorder_chain): Use
8636         force_nonfallthru_and_redirect rather than force_nonfallthru.
8637         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8638         * rtl.h (ANY_RETURN_P): New macro.
8639         (jump_to_label_p): Declare.
8640         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8641         JUMP_LABELs.
8642         (mark_target_live_regs): Likewise.
8643         * basic-block.h (force_nonfallthru_and_redirect): Declare.
8644         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8645         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8646         alpha_tablejump_best_label): Remove functions.
8647         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8648         alpha_tablejump_best_label): Remove declarations.
8649         * config/sh/sh.c (barrier_align, split_branches): Adjust for
8650         ret_rtx in JUMP_LABELs.
8651         * config/arm/arm.c (is_jump_table): Likewise.
8652
8653 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8654
8655         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8656         special predicate.  Remove explicit mode checks.
8657
8658 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8659
8660         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8661         DW_AT_data_member_location containing just DW_OP_plus_uconst.
8662
8663         PR debug/49871
8664         * dwarf2out.c (size_of_die, value_format, output_die): Use
8665         DW_FORM_udata instead of DW_FORM_data[48] for
8666         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8667
8668 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8669
8670         * config/i386/i386.md (*tls_global_dynamic_64): Update
8671         length attribute.
8672
8673 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8674
8675         PR target/47715
8676         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8677         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
8678         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8679         (tls_dynamic_gnu2_64): Ditto.
8680         (*tls_dynamic_gnu2_lea_64): Ditto.
8681         (*tls_dynamic_gnu2_call_64): Ditto.
8682         (*tls_dynamic_gnu2_combine_64): Ditto.
8683
8684 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8685
8686         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8687
8688 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8689
8690         PR target/47364
8691         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8692
8693 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8694
8695         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8696         before the core constraints. Adjust attributes.
8697         ("*thumb2_movdf_vfp"): Likewise.
8698
8699 2011-07-28  Kai Tietz  <ktietz@redhat.com>
8700
8701         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8702         (simplify_truth_ops_using_ranges): Likewise.
8703         (build_assert_expr_for): Likewise.
8704         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8705         and handle BIT_NOT_EXPR for truth-operation.
8706
8707 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8708
8709         PR target/49313
8710         Undo r176835 from trunk
8711         2011-07-27  Georg-Johann Lay
8712
8713 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8714
8715         PR target/49687
8716         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8717         Add _muluhisi3, _mulshisi3, _usmulhisi3.
8718         * config/avr/libgcc.S (__mulsi3): Rewrite.
8719         (__mulhisi3): Rewrite.
8720         (__umulhisi3): Rewrite.
8721         (__usmulhisi3): New.
8722         (__muluhisi3): New.
8723         (__mulshisi3): New.
8724         (__mulohisi3): New.
8725         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8726         declare.
8727         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
8728         (pseudo_register_or_const_int_operand): New.
8729         (combine_pseudo_register_operand): New.
8730         (u16_operand): New.
8731         (s16_operand): New.
8732         (o16_operand): New.
8733         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8734         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8735         (any_extend, any_extend2): New code iterators.
8736         (extend_prefix): New code attribute.
8737         (mulsi3): Rewrite. Turn insn to expander.
8738         (mulhisi3): Ditto.
8739         (umulhisi3): Ditto.
8740         (usmulhisi3): New expander.
8741         (*mulsi3): New insn-and-split.
8742         (mulu<mode>si3): New insn-and-split.
8743         (muls<mode>si3): New insn-and-split.
8744         (mulohisi3): New insn-and-split.
8745         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8746         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8747         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8748         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8749         insn-and-split.
8750         (*mulsi3_call): Rewrite.
8751         (*mulhisi3_call): Rewrite.
8752         (*umulhisi3_call): Rewrite.
8753         (*usmulhisi3_call): New insn.
8754         (*muluhisi3_call): New insn.
8755         (*mulshisi3_call): New insn.
8756         (*mulohisi3_call): New insn.
8757         (extendqihi2): Use combine_pseudo_register_operand as predicate
8758         for operand 1.
8759         (extendqisi2): Ditto.
8760         (zero_extendqihi2): Ditto.
8761         (zero_extendqisi2): Ditto.
8762         (zero_extendhisi2): Ditto.
8763         (extendhisi2): Ditto. Don't early-clobber operand 0.
8764
8765 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8766
8767         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8768
8769 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8770
8771         PR tree-optimization/49471
8772         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8773         iv only when the largest type is unsigned.  Do not call
8774         lang_hooks.types.type_for_size.
8775
8776 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8777
8778         PR middle-end/45450
8779         * graphite-poly.c (apply_poly_transforms): Disable legality check
8780         after an openscop read.
8781
8782 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8783
8784         PR middle-end/47691
8785         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8786         copy_bb_and_scalar_dependences.
8787         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
8788         (graphite_copy_stmts_from_block): Update call to rename_uses.
8789         (copy_bb_and_scalar_dependences): Update call to
8790         graphite_copy_stmts_from_block.
8791         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8792
8793 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
8794
8795         PR target/49313
8796         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8797         (__ctzsi2): Result for 0 may be undefined.
8798         (__ctzhi2): Result for 0 may be undefined.
8799         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8800         (__popcountsi2): Ditto. And don't clobber r26.
8801         (__popcountdi2): Ditto. And don't clobber r27.
8802         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8803         (parityhi2): New expand.
8804         (paritysi2): New expand.
8805         (popcounthi2): New expand.
8806         (popcountsi2): New expand.
8807         (clzhi2): New expand.
8808         (clzsi2): New expand.
8809         (ctzhi2): New expand.
8810         (ctzsi2): New expand.
8811         (ffshi2): New expand.
8812         (ffssi2): New expand.
8813         (copysignsf3): New insn.
8814         (bswapsi2): New expand.
8815         (*parityhi2.libgcc): New insn.
8816         (*parityqihi2.libgcc): New insn.
8817         (*paritysihi2.libgcc): New insn.
8818         (*popcounthi2.libgcc): New insn.
8819         (*popcountsi2.libgcc): New insn.
8820         (*popcountqi2.libgcc): New insn.
8821         (*popcountqihi2.libgcc): New insn-and-split.
8822         (*clzhi2.libgcc): New insn.
8823         (*clzsihi2.libgcc): New insn.
8824         (*ctzhi2.libgcc): New insn.
8825         (*ctzsihi2.libgcc): New insn.
8826         (*ffshi2.libgcc): New insn.
8827         (*ffssihi2.libgcc): New insn.
8828         (*bswapsi2.libgcc): New insn.
8829
8830 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8831
8832         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8833         the mode of symbolic_opreand RTXes.
8834
8835 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8836
8837         * config/i386/predicates.md (x86_64_movabs_operand): Return false
8838         for pic_32bit_operand RTXes.
8839         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8840         in DImode.
8841
8842 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8843
8844         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8845         for 32-bit, too.
8846         (ix86_handle_abi_attribute): Allow function attributes
8847         ms_abi/sysv_abi in 32-bit mode, too.
8848         * doc/extend.texi: Adjust attribute documentation.
8849
8850         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8851         expression handling.
8852         (and_var_with_comparison_1): Likewise.
8853
8854 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
8855
8856         * params.h (ALLOW_STORE_DATA_RACES): New.
8857         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8858         * Makefile.in (expr.o): Depend on PARAMS_H.
8859         * machmode.h (get_best_mode): Add argument.
8860         * fold-const.c (optimize_bit_field_compare): Add argument to
8861         get_best_mode.
8862         (fold_truthop): Same.
8863         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8864         * expr.c (emit_group_store): Same.
8865         (copy_blkmode_from_reg): Same.
8866         (write_complex_part): Same.
8867         (optimize_bitfield_assignment_op): Add argument.
8868         Add argument to get_best_mode.
8869         (get_bit_range): New.
8870         (expand_assignment): Calculate maxbits and pass it down accordingly.
8871         (store_field): New argument.
8872         (expand_expr_real_2): New argument to store_field.  Include params.h.
8873         * expr.h (store_bit_field): New argument.
8874         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8875         into account maxbits.
8876         * calls.c (store_unaligned_arguments_into_pseudos): New argument
8877         to store_bit_field.
8878         * expmed.c (store_bit_field_1): New argument.  Use it.
8879         (store_bit_field): Same.
8880         (store_fixed_bit_field): Same.
8881         (store_split_bit_field): Same.
8882         (extract_bit_field_1): Pass new argument to get_best_mode.
8883         (extract_bit_field): Same.
8884         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8885         * doc/invoke.texi: Document parameter allow-store-data-races.
8886
8887 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
8888
8889         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8890
8891 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8892
8893         * tree-vrp.c (extract_range_from_binary_expr): Remove
8894         TRUTH-binary cases and add new bitwise-cases.
8895         (extract_range_from_assignment): Likewise.
8896         (register_edge_assert_for_1): Likeiwise.
8897         (register_edge_assert_for): Likewise.
8898         (simplify_truth_ops_using_ranges): Likewise.
8899         (simplify_stmt_using_ranges): Likewise.
8900
8901 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8902
8903         PR target/47372
8904         * config/i386/i386.c (ix86_delegitimize_address): Call
8905         simplify_gen_subreg for PIC with mode of x only if modes of
8906         x and orig_x are different.
8907
8908 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
8909
8910         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
8911         to GC allocated copy of the string.
8912         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
8913         before .debug_line, not after it.
8914
8915 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8916
8917         PR middle-end/47046
8918         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
8919         evolution_function_is_affine_p on CHREC_RIGHT.
8920
8921 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8922
8923         * tree-data-ref.c (max_stmt_executions_tree): Do not call
8924         lang_hooks.types.type_for_size.
8925
8926 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8927
8928         PR middle-end/47653
8929         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
8930         loops using wrapping semantics.
8931
8932 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
8933
8934         PR middle-end/48805
8935         * tree-scalar-evolution.c (instantiate_scev_r): Return
8936         chrec_dont_know for ADDR_EXPR.
8937
8938 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8939             H.J. Lu  <hongjiu.lu@intel.com>
8940
8941         PR target/47369
8942         PR target/49853
8943         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
8944         if legitimize_tls_address returned operand in wrong mode. Allow
8945         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
8946         if legitimize_pic_address returned operand in wrong mode.
8947
8948 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8949
8950         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
8951         return false for invariants.
8952
8953 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8954
8955         * config/i386/i386.md (add->lea splitter): Implement using SWI
8956         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
8957         (add->lea zext splitter): Change operand 2 predicate to
8958         x86_64_nonmemory_operand.
8959
8960 2011-07-26  Richard Guenther  <rguenther@suse.de>
8961
8962         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
8963         frequency makes everything hot.
8964
8965 2011-07-26  Richard Guenther  <rguenther@suse.de>
8966
8967         PR tree-optimization/49840
8968         * tree-vrp.c (range_fits_type_p): Properly handle full
8969         double-int precision.
8970
8971 2011-07-26  Martin Jambor  <mjambor@suse.cz>
8972
8973         PR bootstrap/49786
8974         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
8975         counts.
8976         (update_specialized_profile): Likewise.
8977
8978 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
8979             H.J. Lu  <hongjiu.lu@intel.com>
8980
8981         PR target/47381
8982         PR target/49832
8983         PR target/49833
8984         * config/i386/i386.md (i): Change SImode attribute to "e".
8985         (g): Change SImode attribute to "rme".
8986         (di): Change SImode attribute to "nF".
8987         (general_operand): Change SImode attribute to x86_64_general_operand.
8988         (general_szext_operand): Change SImode attribute to
8989         x86_64_szext_general_operand.
8990         (immediate_operand): Change SImode attribute to
8991         x86_64_immediate_operand.
8992         (nonmemory_operand): Change SImode attribute to
8993         x86_64_nonmemory_operand.
8994         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
8995         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
8996         (*lea_1): Use SWI48 mode iterator.
8997         (*lea_1_zext): New insn pattern.
8998         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
8999         (*bt<mode>): Ditto.
9000         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9001         Update operand constraints.
9002         (addsi_1_zext): Ditto.
9003         (*add<mode>2): Ditto.
9004         (*addsi_3_zext): Ditto.
9005         (*subsi_1_zext): Ditto.
9006         (*subsi_2_zext): Ditto.
9007         (*subsi_3_zext): Ditto.
9008         (*addsi3_carry_zext): Ditto.
9009         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9010         (*mulsi3_1_zext): Ditto.
9011         (*andsi_1): Ditto.
9012         (*andsi_1_zext): Ditto.
9013         (*andsi_2_zext): Ditto.
9014         (*<any_or:code>si_1_zext): Ditto.
9015         (*<any_or:code>si_2_zext): Ditto.
9016         (*test<mode>_1): Use <general_operand> predicate for operand 1.
9017         (*and<mode>_2): Ditto.
9018         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
9019         (add->lea splitter): Check operand modes in insn constraint.  Extend
9020         operands less than SImode wide to SImode.
9021         (add->lea zext splitter): Do not extend input operands to DImode.
9022         (*lea_general_1): Handle only QImode and HImode operands.
9023         (*lea_general_2): Ditto.
9024         (*lea_general_3): Ditto.
9025         (*lea_general_1_zext): Remove.
9026         (*lea_general_2_zext): Ditto.
9027         (*lea_general_3_zext): Ditto.
9028         (*lea_general_4): Check operand modes in insn constraint.  Extend
9029         operands less than SImode wide to SImode.
9030         (ashift->lea splitter): Ditto.
9031         * config/i386/i386.c (ix86_print_operand_address): Print address
9032         registers with 'q' modifier on 64bit targets.
9033         * config/i386/predicates.md (pic_32bit_opreand): Define as special
9034         predicate.  Reject non-SI and non-DI modes.
9035
9036 2011-07-25  Andrew Pinski  <apinski@cavium.com>
9037
9038         PR tree-opt/49671
9039         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9040         TREE_THIS_NOTRAP into the inner most MEM_REF.
9041         Always copy TREE_THIS_VOLATILE.
9042         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9043         arguments are not volatile references.
9044
9045 2011-07-25  Richard Henderson  <rth@redhat.com>
9046
9047         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9048         * final.c (final_scan_insn): Don't test for it.
9049         (rest_of_clean_state): Likewise.
9050
9051 2011-07-25  Richard Henderson  <rth@redhat.com>
9052
9053         PR debug/49841
9054         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9055         (emit_frame_save): Likewise.
9056         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9057         insn onto a dummy blockage insn after the join label.
9058
9059 2011-07-25  Richard Henderson  <rth@redhat.com>
9060
9061         * dwarf2cfi.c (dw_trace_info): Add ID member.
9062         (get_trace_index): Remove.  Change users to use ID member.
9063         (before_next_cfi_note): New.
9064         (connect_traces): Remove unreachable traces before the main loop.
9065         Look across one trace and generate remember/restore_state if needed.
9066
9067 2011-07-25  Richard Henderson  <rth@redhat.com>
9068
9069         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9070
9071 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
9072
9073         * genattr.c (write_upcase, gen_attr <enum definition writing>):
9074         Move to ...
9075         * genattr-common.c ... here.
9076         (main): Call gen_attr.
9077         * optc-gen.awk: Make generated program include insn-attr-common.h .
9078         * Makefile.in (oprions.o): Depend on insn-attr-common.h
9079
9080 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9081
9082         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9083         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9084         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9085         m32c_print_operand, m32c_print_operand_address): Remove.
9086         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9087         Change return type to bool. Change argument type to bool.
9088         (m32c_print_operand, m32c_print_operand_address): Make static.
9089         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9090         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9091
9092 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9093
9094         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9095         attributes): Document mmap.
9096
9097 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9098
9099         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9100         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9101         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9102         mmix_print_operand, mmix_print_operand_address): Remove.
9103         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9104         Change return type to bool. Change argument type to bool.
9105         (mmix_print_operand, mmix_print_operand_address): Make static.
9106         (mmix_intval, mmix_output_condition): Change 'x' argument type
9107         to const_rtx.
9108         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9109         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9110
9111 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
9112
9113         PR target/39386
9114         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9115         shift counter for x << x and x >> x shifts.
9116
9117 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9118
9119         PR target/47124
9120         * config.gcc: Reject *-*-solaris2 configuration.
9121
9122 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
9123
9124         PR tree-optimization/49809
9125         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9126         gimple_get_lhs instead of gimple_assign_lhs.
9127
9128 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9129
9130         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9131
9132 2011-07-25  Richard Guenther  <rguenther@suse.de>
9133
9134         PR tree-optimization/49822
9135         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9136         more.  Make sure to preserve stmts with side-effects.  Properly
9137         handle virtual defs, follow a longer def chain.
9138
9139 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
9140
9141         PR plugins/45348
9142         PR plugins/48425
9143         PR plugins/46577
9144         * Makefile.in: Do not flatten c-family directory when installing
9145         plugin headers.
9146
9147 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9148
9149         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
9150         original nodes if we are dealing with virtual clones.
9151
9152 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
9153
9154         * common/config/c6x/c6x-common.c: New file.
9155
9156 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
9157
9158         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9159
9160 2011-07-25  Richard Guenther  <rguenther@suse.de>
9161
9162         PR tree-optimization/49715
9163         * tree-vrp.c: Include expr.h and optabs.h.
9164         (range_fits_type_): New function.
9165         (simplify_float_conversion_using_ranges): Likewise.
9166         (simplify_stmt_using_ranges): Call it.
9167         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
9168         * optabs.c (can_float_p): Export.
9169         * optabs.h (can_float_p): Declare.
9170
9171 2011-07-25  Richard Guenther  <rguenther@suse.de>
9172
9173         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
9174         (get_value_range): For out-of-range SSA names or names created
9175         after propagation return a read-only varying range.
9176         (dump_all_value_ranges): Adjust.
9177         (vrp_initialize): Likewise.
9178         (vrp_finalize): Likewise.
9179
9180 2011-07-24  Richard Henderson  <rth@redhat.com>
9181
9182         PR debug/49831
9183         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
9184         them entirely.
9185
9186 2011-07-24  Richard Henderson  <rth@redhat.com>
9187
9188         PR debug/49825
9189         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
9190         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
9191
9192 2011-07-24  Richard Henderson  <rth@redhat.com>
9193
9194         PR debug/49827
9195         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
9196
9197 2011-07-24  Richard Henderson  <rth@redhat.com>
9198
9199         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
9200         Zero args_size for abnormal edges.  Adjust all callers.
9201
9202 2011-07-24  Richard Henderson  <rth@redhat.com>
9203
9204         PR debug/49825
9205         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
9206
9207 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9208
9209         PR bootstrap/49835
9210         * collect2.c (demangle_flag): Removed.
9211
9212 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
9213
9214         * configure.ac (demangler_in_ld): Default to yes.
9215         * configure: Regenerated.
9216         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
9217         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
9218         --no-demangle options straight through to ld.  When
9219         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
9220         way that has the intended effect on Windows.
9221
9222 2011-07-23  Richard Henderson  <rth@redhat.com>
9223
9224         * dwarf2cfi.c: Include basic-block.h.
9225         (dw_label_info): Remove.
9226         (trace_work_list, trace_index): New.
9227         (remember_row, emit_cfa_remember): Remove.
9228         (dw_trace_info_hash, dw_trace_info_eq): New.
9229         (get_trace_index, get_trace_info): New.
9230         (save_point_p): New.
9231         (free_cfi_row): Remove.
9232         (add_cfi): Do not emit DW_CFA_remember_state.
9233         (cfa_row_equal_p): New.
9234         (barrier_args_size): Remove.
9235         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
9236         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
9237         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
9238         (dwarf2out_cfi_begin_epilogue): Remove.
9239         (dwarf2out_frame_debug_restore_state): Remove.
9240         (connect_traces, create_pseudo_cfg): New.
9241         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
9242         * Makefile.in (dwarf2cfi.o): Update.
9243
9244 2011-07-23  Richard Henderson  <rth@redhat.com>
9245
9246         * dwarf2cfi.c (dw_trace_info): New.
9247         (dw_label_info): New.
9248         (cie_return_save): New.
9249         (cur_trace): New.
9250         (queued_args_size): Rename from args_size.  Update all users.
9251         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
9252         (def_cfa_1): Use cur_trace instead of cfa_*.
9253         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
9254         (clobbers_queued_reg_save, reg_saved_in): Likewise.
9255         (dwarf2out_frame_debug_expr): Likewise.
9256         (create_cie_data): Split out from ...
9257         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
9258
9259 2011-07-23  Richard Henderson  <rth@redhat.com>
9260
9261         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
9262         Update all users to match.
9263         (execute_dwarf2_frame): Free reg_saved_in_data.
9264
9265 2011-07-23  Richard Henderson  <rth@redhat.com>
9266
9267         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
9268         (queued_reg_saves): Don't GTY.  Change to a VEC.
9269         (queue_reg_save): Update to match.
9270         (dwarf2out_flush_queued_reg_saves): Likewise.
9271         (clobbers_queued_reg_save): Likewise.
9272         (reg_saved_in): Likewise.
9273         (execute_dwarf2_frame): Free queued_reg_saves.
9274
9275 2011-07-23  Richard Henderson  <rth@redhat.com>
9276
9277         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
9278
9279 2011-07-23  Richard Henderson  <rth@redhat.com>
9280
9281         * dwarf2cfi.c (add_cfi_args_size): Split out from...
9282         (dwarf2out_args_size): ... here.
9283         (add_cfi_restore): Split out from ...
9284         (dwarf2out_frame_debug_cfa_restore): ... here.
9285         (def_cfa_0): Split out from ...
9286         (def_cfa_1): ... here.
9287         (cfi_oprnd_equal_p, cfi_equal_p): New.
9288         (change_cfi_row): New.
9289         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9290         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9291         (output_cfis): Remove.
9292         * dwarf2out.c (output_fde): Simplify output_cfi loop.
9293         (dwarf2out_switch_text_section): Don't call output_cfis.
9294         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9295         * dwarf2out.h: Update decls.
9296         (enum dw_val_class): Add dw_val_class_none.
9297
9298 2011-07-23  Richard Henderson  <rth@redhat.com>
9299
9300         * dwarf2cfi.c (update_row_reg_save): New.
9301         (dwarf2out_frame_debug_cfa_expression): Use it.
9302         (dwarf2out_frame_debug_cfa_restore): Likewise.
9303         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
9304
9305 2011-07-23  Richard Henderson  <rth@redhat.com>
9306
9307         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
9308
9309 2011-07-23  Richard Henderson  <rth@redhat.com>
9310
9311         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9312         (cie_cfi_row): New.
9313         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9314         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9315         (cur_row, remember_row): New.
9316         (def_cfa_1): Use cur_row instead of the old_* variables.
9317         (dwarf2out_frame_debug_restore_state): Similarly.
9318         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9319         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9320         (dwarf2out_frame_debug_adjust_cfa): Likewise.
9321         (dwarf2out_frame_debug_cfa_offset): Likewise.
9322         (dwarf2out_frame_debug_expr): Likewise.
9323         (execute_dwarf2_frame): Set up cur_row.
9324         * dwarf2out.h (struct cfa_loc): Mark for GTY.
9325
9326 2011-07-23  Richard Henderson  <rth@redhat.com>
9327
9328         * basic-block.h (EDGE_PRESERVE): New.
9329         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9330         * bb-reorder.c: Include except.h.
9331         (fix_up_crossing_landing_pad): New.
9332         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9333         landing pads in the right partition.  Duplicate as necessary.
9334         (partition_hot_cold_basic_blocks): Fix up DF info after
9335         duplicating landing pads.
9336         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9337         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9338         is set properly.  Validate that EH edges are not CROSSING.
9339         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9340         (dw2_build_landing_pads): ... here.
9341         (convert_to_eh_region_ranges): Remove code to fixup crossing
9342         landing pads.
9343         * except.h (expand_dw2_landing_pad_for_region): Declare.
9344         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9345
9346 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
9347
9348         PR target/49816
9349         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9350
9351 2011-07-22  Jason Merrill  <jason@redhat.com>
9352
9353         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9354
9355 2011-07-22  Richard Henderson  <rth@redhat.com>
9356
9357         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9358
9359 2011-07-22  Richard Henderson  <rth@redhat.com>
9360
9361         * jump.c (maybe_propagate_label_ref): Split out of...
9362         (mark_all_labels): ... here.  Do not attempt label_ref
9363         propagation while in cfglayout mode.
9364
9365 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9366
9367         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9368         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9369         (dwarf_attr_name): Handle DW_AT_GNU_macros.
9370         (dwarf2out_define): If the vector is empty and
9371         lineno is 0, emit a dummy entry first.
9372         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
9373         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9374         optimize_macinfo_range): New functions.
9375         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
9376         mergeable, optimize longer strings using
9377         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9378         optimize longer sequences of define/undef ops from headers
9379         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
9380         emit a section headers.
9381         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9382         and macinfo_section_label to DEBUG_MACRO_SECTION
9383         resp. DEBUG_MACRO_SECTION_LABEL.
9384         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9385         instead of DW_AT_macro_info.
9386
9387         PR other/32998
9388         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9389         options.
9390         * dwarf2out.c: Include opts.h.
9391         (dchar_p): New typedef.  Define heap VEC for it.
9392         (producer_string): New variable.
9393         (gen_producer_string): New function.
9394         (gen_compile_unit_die): Use it.
9395         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9396         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9397         * doc/invoke.texi: Document -grecord-gcc-switches and
9398         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9399         to -frecord-gcc-switches description.
9400
9401 2011-07-22  Jason Merrill  <jason@redhat.com>
9402
9403         PR c++/30112
9404         * c-decl.c (c_linkage_bindings): Define.
9405
9406 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9407
9408         PR debug/49815
9409         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9410
9411 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
9412
9413         * config/i386/i386.c (ix86_option_override_internal): Disallow
9414         MS ABI in x32 mode.
9415         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9416         only for TARGET_LP64.
9417         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9418
9419 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9420
9421         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9422         avoid warnings when GCC is built with a C++ compiler.
9423
9424 2011-07-22  Martin Jambor  <mjambor@suse.cz>
9425
9426         PR lto/49796
9427         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9428         if decl node is in another partition, call cgraph_get_node only once.
9429
9430 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
9431
9432         * config.gcc (x86_64-*-linux*): Set
9433         default_gnu_indirect_function to yes.
9434
9435 2011-07-22  Richard Guenther  <rguenther@suse.de>
9436
9437         PR tree-optimization/45819
9438         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9439         preserve volatile and notrap flags.
9440
9441 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9442             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9443
9444         PR bootstrap/49794
9445         * configure.ac: Test AM_ICONV with CXX.
9446         * configure: Regenerate.
9447         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9448
9449 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9450
9451         PR bootstrap/49797
9452         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9453         (set_cloog_options): Use it.
9454
9455 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9456
9457         PR c++/49756
9458         * gcc.c (main): Call stack_limit_increase (64MB).
9459         * toplev.c (toplev_main): Likewise.
9460
9461 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9462
9463         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9464         instead of force_reg.
9465
9466 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9467
9468         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9469         needed and use force_reg after convert.
9470         (ix86_expand_call): Likewise.
9471         (ix86_expand_special_args_builtin): Likewise.
9472         (ix86_expand_builtin): Likewise.
9473
9474 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9475
9476         PR middle-end/47654
9477         PR middle-end/49649
9478         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9479         in parameter.  Initialize v1 and v2 based on the values returned
9480         by clast_name_to_lb_ub.
9481         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9482         values.
9483         (type_for_clast_bin): Same.
9484         (type_for_clast_expr): Same.
9485         (type_for_clast_eq): Update calls to type_for_clast_expr.
9486         (type_for_clast_for): Same.
9487         (build_iv_mapping): Same.
9488         * graphite-ppl.h (value_min): New.
9489
9490 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9491
9492         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9493         types whenever possible.
9494
9495 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9496
9497         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9498         and ub fields.
9499         (new_clast_name_index): Add lb and ub parameters.
9500         (free_clast_name_index): New.
9501         (clast_name_to_lb_ub): New.
9502         (save_clast_name_index): Add lb and ub parameters.
9503         (compute_bounds_for_param): New.
9504         (type_for_level): Removed.
9505         (type_for_clast_for): Removed level parameter.  Do not call
9506         type_for_level.
9507         (graphite_create_new_loop): Store the lb and ub for the clast_name
9508         of the iterator of the loop that has been generated.
9509         (graphite_create_new_loop_guard): Remove parameter level.
9510         (create_params_index): Store the lb and ub of each parameter.
9511         (gloog): Use free_clast_name_index.  Pass to create_params_index
9512         the current scop.
9513
9514 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9515
9516         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9517         (max_precision_type): Inline max_signed_precision_type.
9518         (type_for_clast_red): Use max_precision_type.
9519         (type_for_clast_bin): Same.
9520         (type_for_clast_for): Same.
9521
9522 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9523
9524         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9525         type_for_interval.
9526         (gcc_type_for_value): Renamed type_for_value.
9527         (gcc_type_for_clast_term): Renamed type_for_clast_term.
9528         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9529         (gcc_type_for_clast_red): Renamed type_for_clast_red.
9530         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9531         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9532         (graphite_translate_clast_equation): Update calls.
9533         (compute_type_for_level): Renamed type_for_level.
9534         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9535         (build_iv_mapping): Update calls.
9536         (graphite_create_new_loop_guard): Same.
9537
9538 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9539
9540         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9541         comment.
9542
9543 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9544
9545         * graphite-clast-to-gimple.c (struct ivs_params): New.
9546         (clast_name_to_gcc): Use ivs_params to pass around parameters.
9547         (clast_to_gcc_expression): Same.
9548         (clast_to_gcc_expression_red): Same.
9549         (gcc_type_for_clast_term): Same.
9550         (gcc_type_for_clast_expr): Same.
9551         (gcc_type_for_clast_red): Same.
9552         (gcc_type_for_clast_bin): Same.
9553         (gcc_type_for_clast_eq): Same.
9554         (graphite_translate_clast_equation): Same.
9555         (graphite_create_guard_cond_expr): Same.
9556         (graphite_create_new_guard): Same.
9557         (graphite_create_new_loop): Same.
9558         (build_iv_mapping): Same.
9559         (translate_clast_user): Same.
9560         (graphite_create_new_loop_guard): Same.
9561         (translate_clast): Same.
9562         (translate_clast_for_loop): Same.
9563         (translate_clast_for): Same.
9564         (translate_clast_guard): Same.
9565         (initialize_cloog_names): Fix typo.
9566         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9567
9568 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9569
9570         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9571         (new_clast_name_index): Add level parameter.
9572         (clast_name_to_level): New.
9573         (save_clast_name_index): Add level parameter.
9574         (newivs_to_depth_to_newiv): Removed.
9575         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9576         (graphite_create_new_loop): Add level parameter.  Pass level to
9577         save_clast_name_index.
9578         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9579         (create_params_index): Pass level to save_clast_name_index.
9580
9581 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9582
9583         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9584         recompute type, lb, and ub.  Get them from...
9585         (graphite_create_new_loop_guard): ...here.  Pass in parameter
9586         pointers to type, lb, and ub.
9587         (translate_clast_for_loop): Update function calls.
9588         (translate_clast_for): Same.
9589
9590 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9591
9592         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9593         psct_dynamic_dim.
9594         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9595         (gcc_type_for_iv_of_clast_loop): Update use of level.
9596         (gloog): Start counting nesting level from 0.
9597         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9598         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9599         psct_dynamic_dim on level.
9600
9601 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9602
9603         * config/i386/i386.c (ix86_legitimize_address): Convert to
9604         Pmode if needed.
9605
9606 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9607
9608         * config/i386/i386.c (function_value_64): Always return pointers
9609         in Pmode.
9610         (ix86_promote_function_mode): New.
9611         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9612
9613 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9614
9615         PR tree-optimization/49749
9616         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9617         remove no-longer-used maxrank variable.
9618
9619 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9620
9621         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9622
9623 2011-07-21  Jason Merrill  <jason@redhat.com>
9624
9625         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9626         * recog.h (struct insn_data_d): Check it instead of
9627         HAVE_DESIGNATED_INITIALIZERS.
9628         * genoutput.c (output_insn_data): Likewise.
9629
9630 2011-07-21  Richard Guenther  <rguenther@suse.de>
9631
9632         PR tree-optimization/49770
9633         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9634         valueized any operand.  Renamed from ...
9635         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
9636         (valueize_shared_reference_ops_from_ref): Return whether we
9637         valueized any operand.
9638         (vn_reference_lookup): Only when we valueized any operand
9639         use the valueized reference for alias analysis.  Do not preserve
9640         the original reference tree in this case.
9641
9642 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
9643
9644         * config/i386/i386.c (ix86_decompose_address): Reject all but
9645         register operands and subregs of DImode hard registers in index.
9646
9647 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9648
9649         * fold-const.c (fold_unary_loc): Preserve indirect
9650         comparison cast to none-boolean type.
9651         * tree-ssa.c (useless_type_conversion_p): Preserve cast
9652         from/to boolean-type.
9653         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9654         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9655         * tree-cfg.c (verify_gimple_comparison): Check result
9656         type of comparison expression.
9657         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9658         of condition result and disallow type-cast sinking into comparison.
9659
9660 2011-07-21  Richard Guenther  <rguenther@suse.de>
9661
9662         * tree-ssa-forwprop.c (combine_conversions): Return whether
9663         we have to run cfg-cleanup.  Properly remove dead stmts.
9664         (ssa_forward_propagate_and_combine): Adjust.
9665
9666 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
9667
9668         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9669
9670 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9671
9672         * tree-ssa-propagate.c (substitute_and_fold): Use
9673         do_dce flag to deside, if BB's statements are scanned
9674         in last to first, or first to last order.
9675
9676 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9677
9678         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9679
9680 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
9681             Uros Bizjak  <ubizjak@gmail.com>
9682             Richard Henderson  <rth@redhat.com>
9683
9684         * config/i386/constraints.md (w): New.
9685
9686         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9687         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9688
9689         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9690         instead of TARGET_64BIT.
9691
9692         * config/i386/i386.md (indirect_jump): Replace
9693         nonimmediate_operand with indirect_branch_operand.
9694         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
9695         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9696         Convert operand 0 to Pmode for x32 if not PIC.
9697         (*tablejump_1): Replace nonimmediate_operand with
9698         indirect_branch_operand.  Replace constraint "m" with "w".
9699         (*call_vzeroupper): Replace constraint "m" with "w".
9700         (*call): Likewise.
9701         (*call_rex64_ms_sysv_vzeroupper): Likewise.
9702         (*call_rex64_ms_sysv): Likewise.
9703         (*call_value_vzeroupper): Likewise.
9704         (*call_value): Likewise.
9705         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9706         (*call_value_rex64_ms_sysv): Likewise.
9707         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9708
9709         * config/i386/predicates.md (indirect_branch_operand): New.
9710         (call_insn_operand): Support x32.
9711
9712 2011-07-20  Michael Eager  <eager@eagercon.com>
9713
9714         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9715
9716 2011-07-20  Richard Henderson  <rth@redhat.com>
9717
9718         * cfg.c (dump_bb_info): Dump basic_block->flags.
9719         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9720
9721 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9722
9723         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9724         of DImode hard registers in index.
9725         (ix86_legitimate_address_p): Allow subregs of base and index to span
9726         more than a word.  Assert that subregs of base and index satisfy
9727         register_no_elim_operand predicates.  Reject addresses where
9728         base and index have different modes.
9729
9730 2011-07-20  Robert Millan  <rmh@gnu.org>
9731
9732         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
9733
9734 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9735
9736         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9737         removing now-unnecessary assignment.
9738
9739 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9740
9741         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9742         memory address space to the type's address space.
9743
9744 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9745
9746         PR target/36467
9747         PR target/49687
9748         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9749         and expand appropriately if there is a CONST_INT in operand2.
9750         (usmulqihi3): New insn.
9751         (*sumulqihi3): New insn.
9752         (*osmulqihi3): New insn.
9753         (*oumulqihi3): New insn.
9754         (*muluqihi3.uconst): New insn_and_split.
9755         (*muluqihi3.sconst): New insn_and_split.
9756         (*mulsqihi3.sconst): New insn_and_split.
9757         (*mulsqihi3.uconst): New insn_and_split.
9758         (*mulsqihi3.oconst): New insn_and_split.
9759         (*ashifthi3.signx.const): New insn_and_split.
9760         (*ashifthi3.signx.const7): New insn_and_split.
9761         (*ashifthi3.zerox.const): New insn_and_split.
9762         (mulsqihi3): New insn.
9763         (muluqihi3): New insn.
9764         (muloqihi3): New insn.
9765         * config/avr/predicates.md (const_2_to_7_operand): New.
9766         (const_2_to_6_operand): New.
9767         (u8_operand): New.
9768         (s8_operand): New.
9769         (o8_operand): New.
9770         (s9_operand): New.
9771         (register_or_s9_operand): New.
9772
9773 2011-07-20  Kai Tietz  <ktietz@redhat.com>
9774
9775         * builtins.c (fold_builtin_expect): See through the cast
9776         from truthvalue_type_node to long.
9777
9778 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9779
9780         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9781         where we can use them from the standard and altivec instruction
9782         sets, instead of always using the 3 operand VSX forms that require
9783         the destination to overlap one of the inputs.
9784         (vsx_fms*): Ditto.
9785         (vsx_fnma*): Ditto.
9786         (vsx_fnms*): Ditto.
9787
9788         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9789         for DF types.
9790         (fmsdf4_fpr): Ditto.
9791         (nfmadf4_fpr): Ditto.
9792         (nfmsdf4_fpr): Ditto.
9793
9794 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
9795
9796         * genrecog.c (make_insn_sequence): Correct position numbering
9797         when filtering out match_scratch and match_dup.
9798
9799 2011-07-20  Richard Guenther  <rguenther@suse.de>
9800
9801         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9802         against already removed statements.
9803         (forward_propagate_into_comparison): Remove dead defining stmts.
9804         (forward_propagate_into_gimple_cond): Likewise.
9805         (forward_propagate_into_cond): Simplify.
9806         (ssa_forward_propagate_and_combine): Handle changed cfg from
9807         forward_propagate_into_comparison.
9808         * tree-ssa-phiopt.c (conditional_replacement): Use proper
9809         locations for newly built statements.
9810
9811 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9812
9813         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9814
9815 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9816
9817         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9818         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9819
9820 2011-07-20  Richard Guenther  <rguenther@suse.de>
9821
9822         PR middle-end/18908
9823         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9824         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9825         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
9826
9827 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
9828
9829         * config/frv/frv.c (frv_register_move_cost): Define explicitly
9830         costs for subclasses of GR_REGS.
9831
9832 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9833
9834         PR target/49780
9835         * config/i386/predicates.md (no_seg_addres_operand): No more special.
9836         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9837         of DImode hard registers in base.
9838         (ix86_legitimate_address_p): Allow SImode and DImode base and index
9839         registers.
9840
9841 2011-07-20  Richard Guenther  <rguenther@suse.de>
9842
9843         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9844         (unify_nodes): Deal with that.
9845         (solve_graph): Likewise.
9846
9847 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
9848
9849         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9850         canonicalize left operand from ZERO_EXTEND to AND.
9851
9852 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
9853
9854         * target.def (class_max_nregs): New hook.
9855         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9856         * doc/tm.texi: Regenerate.
9857         * targhooks.c (default_class_max_nregs): New function.
9858         * targhooks.h (default_class_max_nregs): Declare.
9859         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9860         x_ira_reg_class_min_nregs arrays to unsigned char.
9861         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9862         hook instead of CLASS_MAX_NREGS macro.
9863         * reginfo.c (restore_register_info): Ditto.
9864         * ira-conflicts.c (process_regs_for_copy): Use
9865         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9866         Change type rclass and aclass vars to reg_class_t.
9867         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9868         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9869         reg_class_t.
9870         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9871         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9872
9873         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9874         * config/i386/i386.c (ix86_class_max_nregs): New function.
9875         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9876         instead of CLASS_MAX_NREGS macro.
9877         (TARGET_CLASS_MAX_NREGS): Define.
9878         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9879         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9880         * config/avr/avr.c (class_max_nregs): Remove function.
9881         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9882         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9883         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9884         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9885         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9886         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9887         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9888         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9889         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9890         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9891         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9892         * config/score/score.h (CLASS_MAX_NREGS): Remove.
9893         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9894         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9895         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9896
9897 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9898
9899         * cif-code.def (OVERWRITABLE): Fix typo and move around.
9900         (TARGET_OPTIMIZATION_MISMATCH): Delete.
9901         (EH_PERSONALITY): Fix typo.
9902         (NON_CALL_EXCEPTIONS): Fix message.
9903         (OPTIMIZATION_MISMATCH): Adjust message.
9904         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9905
9906 2011-07-19  Ian Lance Taylor  <iant@google.com>
9907
9908         * doc/install.texi (Configuration): Document
9909         --enable-build-poststage1-with-cxx.
9910
9911 2011-07-19  Robert Millan  <rmh@gnu.org>
9912
9913         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
9914         (GLIBC_DYNAMIC_LINKER): Remove.
9915
9916         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
9917         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9918         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9919         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
9920         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
9921         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
9922
9923         * config/mips/linux.h: Remove everything except for ...
9924         (GLIBC_DYNAMIC_LINKER): ... this macro.
9925
9926         * config/mips/linux64.h: Remove everything except for ...
9927         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
9928         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
9929         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
9930         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
9931         (GNU_USER_LINK_EMULATIONN32): New macros.
9932
9933         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
9934         Use the new headers.
9935
9936 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9937
9938         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
9939         Add offset_known_p and size_known_p fields.
9940         (MEM_OFFSET_KNOWN_P): Update accordingly.
9941         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
9942         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
9943         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
9944         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
9945         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
9946         (init_emit_regs): Likewise.
9947
9948 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9949
9950         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
9951         (MEM_OFFSET): Change from returning an rtx to returning a
9952         HOST_WIDE_INT.
9953         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
9954         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
9955         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9956         (clear_mem_offset): Declare.
9957         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
9958         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
9959         MEM_OFFSET to get a HOST_WIDE_INT offset.
9960         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
9961         (adjust_offset_for_component_ref): Take a bool "known_p"
9962         parameter and a HOST_WIDE_INT "offset" parameter.
9963         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
9964         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
9965         than an rtx.  Use clear_mem_offset to clear the offset.
9966         * cfgcleanup.c (merge_memattrs): Likewise.
9967         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
9968         * function.c (assign_parm_find_stack_rtl): Likewise.
9969         (assign_parm_setup_stack): Likewise.
9970         * print-rtl.c (print_rtx): Likewise.
9971         * reload.c (find_reloads_subreg_address): Likewise.
9972         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9973         * var-tracking.c (INT_MEM_OFFSET): Likewise.
9974         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9975         (get_mem_align_offset): Likewise.
9976         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
9977         (clear_mem_offset): New function.
9978         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
9979         offset rather than an rtx.  Assume both the expressio and offset
9980         are available.
9981         (r10k_needs_protection_p_1): Update accordingly, checking the
9982         expression and offset availability here instead.
9983
9984 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9985
9986         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
9987         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
9988         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
9989         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
9990         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9991         (clear_mem_size): Declare.
9992         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
9993         (clear_mem_size): New function.
9994         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
9995         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
9996         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
9997         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
9998         to clear the size.
9999         (nonoverlapping_memrefs_p): Likewise.
10000         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10001         (expand_builtin_init_trampoline): Likewise.
10002         * calls.c (compute_argument_addresses): Likewise.
10003         * cfgcleanup.c (merge_memattrs): Likewise.
10004         * dce.c (find_call_stack_args): Likewise.
10005         * dse.c (record_store, scan_insn): Likewise.
10006         * dwarf2out.c (dw_sra_loc_expr): Likewise.
10007         * expr.c (emit_block_move_hints): Likewise.
10008         * function.c (assign_parm_find_stack_rtl): Likewise.
10009         * print-rtl.c (print_rtx): Likewise.
10010         * reload.c (find_reloads_subreg_address): Likewise.
10011         * rtlanal.c (may_trap_p_1): Likewise.
10012         * var-tracking.c (track_expr_p): Likewise.
10013         * varasm.c (assemble_trampoline_template): Likewise.
10014         * config/arm/arm.c (arm_print_operand): Likewise.
10015         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10016         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10017         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10018         (expand_constant_setmem_prologue): Likewise.
10019         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10020         * config/rs6000/rs6000.c (expand_block_move): Likewise.
10021         (adjacent_mem_locations): Likewise.
10022         * config/s390/s390.c (s390_expand_setmem): Likewise.
10023         (s390_expand_insv): Likewise.
10024         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10025         (*extendqi<mode>2_short_displ): Likewise.
10026         * config/sh/sh.c (expand_block_move): Likewise.
10027         * config/sh/sh.md (extv, extzv): Likewise.
10028
10029 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10030
10031         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10032         (mem_attrs_htab_eq): ...here.
10033         (find_mem_attrs): Replace with...
10034         (set_mem_attrs): ...this function.  Take a mem_attrs structure
10035         rather than individual fields.
10036         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10037         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10038         (set_mem_size, change_address, adjust_address_1, offset_address)
10039         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10040         Update accordingly.
10041
10042 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10043
10044         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10045         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10046         Provide a dummy definition of MEM_ADDR_SPACE for generators.
10047         (target_rtl): Add x_mode_mem_attrs.
10048         (mode_mem_attrs): New macro.
10049         (get_mem_attrs): New function.
10050         * emit-rtl.c (get_mem_attrs): Rename to...
10051         (find_mem_attrs): ...this.
10052         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10053         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10054         (set_mem_size, change_address, adjust_address_1, offset_address)
10055         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10056         Update accordingly.
10057         (init_emit_regs): Initialize mode_mem_attrs.
10058
10059 2011-07-19  Richard Guenther  <rguenther@suse.de>
10060
10061         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10062         TRUTH_*_EXPR handling.
10063         * tree-ssa-operands.c (get_expr_operands): Likewise.
10064         * tree-ssa-pre.c (fully_constant_expression): Likewise.
10065         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10066         Likewise.
10067         (is_and_or_or): Likewise.
10068         (is_norm_cond_subset_of): Likewise.
10069
10070 2011-07-19  Richard Guenther  <rguenther@suse.de>
10071
10072         * tree.h (fold_build_pointer_plus_loc): New helper function.
10073         (fold_build_pointer_plus_hwi_loc): Likewise.
10074         (fold_build_pointer_plus): Define.
10075         (fold_build_pointer_plus_hwi): Likewise.
10076         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10077         (fold_builtin_memory_op): Likewise.
10078         (fold_builtin_stpcpy): Likewise.
10079         (fold_builtin_memchr): Likewise.
10080         (fold_builtin_strstr): Likewise.
10081         (fold_builtin_strchr): Likewise.
10082         (fold_builtin_strrchr): Likewise.
10083         (fold_builtin_strpbrk): Likewise.
10084         (fold_builtin_strcat): Likewise.
10085         (expand_builtin_memory_chk): Likewise.
10086         (fold_builtin_memory_chk): Likewise.
10087         * c-typeck.c (build_unary_op): Likewise.
10088         * cgraphunit.c (thunk_adjust): Likewise.
10089         * fold-const.c (build_range_check): Likewise.
10090         (fold_binary_loc): Likewise.
10091         * omp-low.c (extract_omp_for_data): Likewise.
10092         (expand_omp_for_generic): Likewise.
10093         (expand_omp_for_static_nochunk): Likewise.
10094         (expand_omp_for_static_chunk): Likewise.
10095         * tree-affine.c (add_elt_to_tree): Likewise.
10096         * tree-data-ref.c (split_constant_offset_1): Likewise.
10097         * tree-loop-distribution.c (generate_memset_zero): Likewise.
10098         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10099         * tree-predcom.c (ref_at_iteration): Likewise.
10100         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10101         (add_to_parts): Likewise.
10102         (create_mem_ref): Likewise.
10103         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10104         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10105         (number_of_iterations_le): Likewise.
10106         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10107         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10108         (vect_create_addr_base_for_vector_ref): Likewise.
10109         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10110         (vect_create_cond_for_alias_checks): Likewise.
10111         * tree-vrp.c (extract_range_from_assert): Likewise.
10112         * config/alpha/alpha.c (alpha_va_start): Likewise.
10113         (alpha_gimplify_va_arg_1): Likewise.
10114         * config/i386/i386.c (ix86_va_start): Likewise.
10115         (ix86_gimplify_va_arg): Likewise.
10116         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10117         * config/mep/mep.c (mep_expand_va_start): Likewise.
10118         (mep_gimplify_va_arg_expr): Likewise.
10119         * config/mips/mips.c (mips_va_start): Likewise.
10120         (mips_gimplify_va_arg_expr): Likewise.
10121         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10122         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10123         (rs6000_gimplify_va_arg): Likewise.
10124         * config/s390/s390.c (s390_va_start): Likewise.
10125         (s390_gimplify_va_arg): Likewise.
10126         * config/sh/sh.c (sh_va_start): Likewise.
10127         (sh_gimplify_va_arg_expr): Likewise.
10128         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10129         * config/spu/spu.c (spu_va_start): Likewise.
10130         (spu_gimplify_va_arg_expr): Likewise.
10131         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10132         Likewise.
10133         (xstormy16_gimplify_va_arg_expr): Likewise.
10134         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10135         (xtensa_gimplify_va_arg_expr): Likewise.
10136
10137 2011-07-19  Richard Guenther  <rguenther@suse.de>
10138
10139         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
10140         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
10141         handling.
10142
10143         PR middle-end/18908
10144         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
10145         result of BIT_*_EXPR to bitfield precision.
10146
10147 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
10148
10149         PR tree-optimization/49742
10150         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
10151         as a potential write.
10152
10153 2011-07-19  Richard Guenther  <rguenther@suse.de>
10154
10155         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
10156         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
10157         (forward_propagate_comparison): Simplify, remove obsolete code.
10158
10159 2011-07-19  Richard Guenther  <rguenther@suse.de>
10160
10161         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
10162         BIT_XOR_EXPR, same as the RTL expander does.
10163         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
10164         (verify_gimple_assign_unary): Likewise.
10165         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
10166         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
10167         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
10168
10169 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
10170
10171         PR tree-optimization/49768
10172         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
10173         if offset is smaller than bitoffset, but offset+size is bigger
10174         than bitoffset.
10175
10176 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
10177
10178         PR tree-optimization/49771
10179         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
10180         zero step, set segment length to the size of the data-ref's type.
10181
10182 2011-07-18  Martin Jambor  <mjambor@suse.cz>
10183
10184         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
10185         comments.
10186         (ipcp_values_pool): Declare.
10187         (ipcp_sources_pool): Likewise.
10188         (ipcp_lattice): Changed to forward declaration.
10189         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
10190         cannot_devirtualize.
10191         (ipa_node_params): New fields descriptors, lattices, known_vals,
10192         clone_for_all_contexts and node dead, removed fields params and
10193         count_scale.
10194         (ipa_set_param_count): Removed.
10195         (ipa_get_param_count): Made to work with descriptors vector.
10196         (ipa_get_param): Updated.
10197         (ipa_param_cannot_devirtualize_p): Removed.
10198         (ipa_param_types_vec_empty): Likewise.
10199         (ipa_set_param_used): New function.
10200         (ipa_get_param_used): Updated to use descriptors vector.
10201         (ipa_func_list): Removed.
10202         (ipa_init_func_list): Removed declaration.
10203         (ipa_push_func_to_list_1): Likewise.
10204         (ipa_pop_func_from_list): Likewise.
10205         (ipa_push_func_to_list): Removed.
10206         (ipa_lattice_from_jfunc): Remove declaration.
10207         (ipa_get_jf_pass_through_result): Declare.
10208         (ipa_get_jf_ancestor_result): Likewise.
10209         (ipa_value_from_jfunc): Likewise.
10210         (ipa_get_lattice): Update.
10211         (ipa_lat_is_single_const): New function.
10212         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
10213         (ipa_init_func_list): Likewise.
10214         (ipa_pop_func_from_list): Likewise.
10215         (ipa_get_param_decl_index): Fix coding style.
10216         (count_formal_params): Removed.
10217         (count_formal_params_1): Renamed to count_formal_params.
10218         (ipa_populate_param_decls): Update to use descriptors vector.
10219         (ipa_initialize_node_params): Likewise.
10220         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
10221         (ipa_analyze_params_uses): Likewise.
10222         (ipa_free_node_params_substructures): Likewise and free also lattices
10223         and known values.
10224         (duplicate_array): Removed.
10225         (ipa_edge_duplication_hook): Add the new edge to the list of edge
10226         clones.
10227         (ipa_node_duplication_hook): Update to use new lattices.
10228         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
10229         (ipa_free_all_structures_after_iinln): Likewise.
10230         (ipa_write_node_info): Update to use new lattices.
10231         (ipa_read_node_info): Likewise.
10232         (ipa_get_jf_pass_through_result): New function.
10233         (ipa_get_jf_ancestor_result): Likewise.
10234         (ipa_value_from_jfunc): Likewise.
10235         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
10236         * ipa-cp.c: Reimplemented.
10237         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
10238         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
10239         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
10240         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
10241         * doc/invoke.texi (devirt-type-list-size): Removed description.
10242         (ipa-cp-value-list-size): Added description.
10243
10244 2011-07-18  Richard Henderson  <rth@redhat.com>
10245
10246         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
10247         before calling create_basic_block.
10248
10249 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
10250
10251         PR middle-end/49675
10252         * tree.c (build_common_builtin_nodes): Register
10253         __builtin_return_address, __cyg_profile_func_enter
10254         and __cyg_profile_func_exit.
10255
10256 2011-07-18  Richard Henderson  <rth@redhat.com>
10257
10258         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
10259         (add_labels_and_missing_jumps): ... here.
10260         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
10261
10262 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
10263
10264         PR target/47744
10265         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10266         of DImode hard registers in PLUS address chains.
10267
10268 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10269
10270         PR bootstrap/49769
10271         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
10272         (alpha*-*-freebsd*): Likewise.
10273         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10274         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10275         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
10276         crtprec80.o, crtfastmath.o to extra_parts for all targets.
10277         (ia64*-*-elf*): Remove extra_parts.
10278         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
10279         (sparc64-*-linux*): Likewise.
10280         (sparc64-*-freebsd*): Likewise.
10281
10282         Revert:
10283         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10284         (ia64*-*-linux*): Likewise.
10285         (mips64*-*-linux*): Likewise.
10286         (mips*-*-linux*): Likewise.
10287
10288 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
10289
10290         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10291
10292 2011-07-18  Richard Guenther  <rguenther@suse.de>
10293
10294         * gimplify.c (gimplify_expr): Use input_location, not saved_location
10295         when building new trees.
10296
10297 2011-07-18  Richard Guenther  <rguenther@suse.de>
10298
10299         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10300         expansion result to bitfield precision if required.
10301
10302 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10303
10304         * config.gcc (i[3456x]86-*-netware*): Remove.
10305
10306         * gthr-nks.h: Remove.
10307         * configure.ac (enable_threads): Remove nks.
10308         * configure: Regenerate.
10309
10310         * config/i386/i386.c (ix86_encode_section_info): Remove netware
10311         reference.
10312         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10313         <netware.h> reference.
10314
10315         * config/i386/netware-libgcc.c,
10316         gcc/config/i386/netware-libgcc.def,
10317         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10318         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10319         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10320         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10321
10322         * doc/extend.texi (Function Attributes,
10323         callee_pop_aggregate_return): Remove i?86-netware reference.
10324         * doc/install.texi (Configuration, --enable-threads): Remove nks.
10325
10326 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10327
10328         PR target/49746
10329         Revert:
10330         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10331
10332         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10333         patterns.
10334
10335 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
10336
10337         PR middle-end/49732
10338         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10339
10340 2011-07-16  Matthias Klose  <doko@ubuntu.com>
10341
10342         * doc/install.texi: Document --enable-static-libjava.
10343
10344 2011-07-15  Richard Henderson  <rth@redhat.com>
10345
10346         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10347         Replace all three arguments by returning a VEC of edges.
10348         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10349         pointers and counts.
10350         (fix_edges_for_rarely_executed_code): Merge ...
10351         (rest_of_handle_partition_blocks): ... into...
10352         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
10353         any work was performed.
10354         (pass_partition_blocks): Clear todo_flags_finish.
10355
10356 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
10357             Jakub Jelinek  <jakub@redhat.com>
10358             Jonathan Wakely  <jwakely.gcc@gmail.com>
10359
10360         PR libstdc++/49745
10361         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10362         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10363
10364 2011-07-15  Jason Merrill  <jason@redhat.com>
10365
10366         PR testsuite/49741
10367         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10368         rather than --tool_opts.
10369
10370 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
10371
10372         * doc/plugins.texi (Building GCC plugins): gengtype needs its
10373         corresponding gtype.state.
10374
10375 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10376
10377         PR target/49723
10378         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10379
10380 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10381
10382         PR target/48220
10383         * doc/md.texi (Standard Names): Document window_save.
10384         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10385         expand_debug_expr and expand_debug_source_expr.  If the target has
10386         a window_save instruction, adjust the ENTRY_VALUE_EXP.
10387         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10388         SSA_NAME_VAR is a parameter.
10389         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10390         * var-tracking.c (parm_reg_t): New type and associated vector type.
10391         (windowed_parm_regs): New variable.
10392         (adjust_insn): If the target has a window_save instruction and this
10393         is the instruction, make its effect on parameter registers explicit.
10394         (next_non_note_insn_var_location): New function.
10395         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10396         (vt_add_function_parameter): If the target has a window_save insn,
10397         adjust the incoming RTL and record that in windowed_parm_regs.
10398         (vt_finalize): Free windowed_parm_regs.
10399
10400 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10401
10402         * doc/invoke.texi (C6X Options): New section.
10403         * doc/md.texi (TI C6X family): New section.
10404         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10405         tic6x-*-uclinux.
10406         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10407         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10408         Provide C6X definitions.
10409         * config/c6x/c6x.md: New file.
10410         * config/c6x/constraints.md: New file.
10411         * config/c6x/predicates.md: New file.
10412         * config/c6x/c6x-sched.md.in: New file.
10413         * config/c6x/c6x-sched.md: New file.
10414         * config/c6x/gensched.sh: New file.
10415         * config/c6x/c6x-mult.md.in: New file.
10416         * config/c6x/genmult.sh: New file.
10417         * config/c6x/c6x-mult.md: New file.
10418         * config/c6x/sync.md: New file.
10419         * config/c6x/c6x-protos.h: New file.
10420         * config/c6x/sfp-machine.h: New file.
10421         * config/c6x/c6x.c: New file.
10422         * config/c6x/c6x.h: New file.
10423         * config/c6x/crti.s: New file.
10424         * config/c6x/crtn.s: New file.
10425         * config/c6x/lib1funcs.asm: New file.
10426         * config/c6x/c6x-modes.def: New file.
10427         * config/c6x/genopt.sh: New file.
10428         * config/c6x/c6x.opt: New file.
10429         * config/c6x/c6x-tables.opt: New file.
10430         * config/c6x/c6x-opts.h: New file.
10431         * config/c6x/c6x-isas.def: New file.
10432         * config/c6x/elf.h: New file.
10433         * config/c6x/elf-common.h: New file.
10434         * config/c6x/uclinux-elf.h: New file.
10435         * config/c6x/t-c6x: New file.
10436         * config/c6x/t-c6x-elf: New file.
10437         * config/c6x/t-c6x-uclinux: New file.
10438         * config/c6x/t-c6x-softfp: New file.
10439         * config/c6x/gtd.c: New file.
10440         * config/c6x/gtf.c: New file.
10441         * config/c6x/ltd.c: New file.
10442         * config/c6x/ltf.c: New file.
10443         * config/c6x/ged.c: New file.
10444         * config/c6x/gef.c: New file.
10445         * config/c6x/led.c: New file.
10446         * config/c6x/lef.c: New file.
10447         * config/c6x/eqd.c: New file.
10448         * config/c6x/eqf.c: New file.
10449         * config/c6x/libgcc-c6xeabi.ver: New file.
10450
10451         Revert
10452         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10453         PR rtl-optimization/11320
10454         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10455         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10456         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10457         current_sched_info->compute_jump_reg_dependencies. Record which
10458         registers are used and which registers are set by the jump.
10459         Clear deps->reg_conditional_sets after a barrier.
10460         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10461         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10462         (init_deps): Initialize reg_conditional_sets.
10463         (free_deps): Clear reg_conditional_sets.
10464         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10465         Mark registers live on entry of the fallthrough block and conditionally
10466         set as set by the jump. Mark registers live on entry of non-fallthrough
10467         blocks as used by the jump.
10468         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10469         Mark new parameters as unused.
10470
10471 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
10472
10473         PR tree-opt/49309
10474         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10475         Use fold_build2_loc instead of build2.
10476         Use the correct type for the new tree.
10477
10478 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10479
10480         PR rtl-optimization/11320
10481         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10482         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10483
10484 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10485
10486         PR target/49487
10487         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10488         of REG.
10489         (*rotw<mode>): Use const_int_operand for operand2.
10490         Use match_scatch for operand3.
10491         (*rotb<mode>): Ditto
10492         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10493
10494 2011-07-14  Richard Guenther  <rguenther@suse.de>
10495
10496         PR tree-optimization/49651
10497         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10498         handle dereferences with subvariables.
10499
10500 2011-07-14  Richard Guenther  <rguenther@suse.de>
10501
10502         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10503         (fold_stmt_1): Do it here directly on gimple and as a first thing.
10504
10505 2011-07-14  Richard Guenther  <rguenther@suse.de>
10506
10507         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10508         not bool_var when folding bool_var != 1 or bool_var == 0.
10509
10510 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10511
10512         * haifa-sched.c (schedule_insns): Remove outdated comment.
10513         (schedule_block): When computing a known value for TODO_SPEC,
10514         just set it rather than using logical operations.
10515         (try_ready): Likewise.  Use a local variable rather than a
10516         pointer to TODO_SPEC.  Reorder an if statement to move the
10517         easy case to the then block.
10518         * sched-deps.c (dep_spec_p): New static function.
10519         (update_dep): Use it to decide whether to call
10520         change_spec_dep_to_hard.
10521         (get_back_and_forw_lists): Use it.
10522         (sd_resolve_dep): Likewise.
10523         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10524         (haifa_note_mem_dep): Likewise.
10525         (check_dep): Likewise.
10526         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10527         (sched_free_deps): Free in two passes.
10528
10529 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
10530
10531         PR middle-end/49736
10532         * expr.c (all_zeros_p): Undo bogus part of last change.
10533
10534 2011-07-14  Matthias Klose <doko@ubuntu.com>
10535
10536         * doc/extend.texi (optimize attribute): Fix typo.
10537
10538 2011-07-14  Richard Guenther  <rguenther@suse.de>
10539
10540         * gimplify.c (gimplify_expr): Only do required conversions.
10541
10542 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10543
10544         PR target/43746
10545         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10546         i.e. use default_elf_select_section.
10547         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10548         (READONLY_DATA_SECTION_ASM_OP): Remove.
10549         (TARGET_ASM_NAMED_SECTION): Move from here...
10550         * config/avr/avr.c: ...to here.
10551         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10552         (avr_asm_named_section): Make static.
10553
10554 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10555
10556         PR bootstrap/49739
10557         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10558         and crtfastmath.o for Linux/x86.
10559
10560 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10561
10562         * haifa-sched.c: Include "hashtab.h"
10563         (sched_no_dce): New global variable.
10564         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10565         SHADOW_P): New macros.
10566         (last_clock_var, cycle_issued_insns): Move declarations.
10567         (must_backtrack): New static variable.
10568         (struct delay_pair): New structure.
10569         (delay_htab, delay_htab_i2): New static variables.
10570         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10571         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10572         functions.
10573         (dep_cost_1): If delay pairs exist, try to look up the insns and
10574         use the correct pair delay if we find them.
10575         (rank-for_schedule): Tweak priority for insns that must be scheduled
10576         soon to avoid backtracking.
10577         (queue_insn): Detect conditions which force backtracking.
10578         (ready_add): Likewise.
10579         (struct sched_block_state): Add member shadows_only_p.
10580         (struct haifa_save_data): New structure.
10581         (backtrack_queue): New static variable.
10582         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10583         unschedule_insns_until, restore_last_backtrack_point,
10584         free_topmost_backtrack_point, free_backtrack_queue,
10585         estimate_insn_tick, estimate_shadow_tick): New functions.
10586         (prune_ready_list): New arg shadows_only_p.  All callers changed.
10587         If true, remove everything that isn't SHADOW_P.  Look up delay
10588         pairs and estimate ticks to avoid scheduling the first insn too early.
10589         (verify_shadows): New function.
10590         (schedule_block): Add machinery to enable backtracking.
10591         (sched_init): Take sched_no_dce into account when setting
10592         DF_LR_RUN_DCE.
10593         (free_delay_pairs): New function.
10594         (init_h_i_d): Initialize INSN_EXACT_TICK.
10595         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10596         * sched-deps.c (sd_unresolve_dep): New function.
10597         * sched-int. (struct haifa_sched_info): New fields save_state
10598         and restore_state.
10599         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10600         feeds_backtrack_insn and shadow_p.
10601         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10602         (sched_no_dce): Declare variable.
10603         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10604         sd_unresolve_dep): Declare functions.
10605         * modulo-sched.c (sms_sched_info): Clear the two new fields.
10606         * sched-rgn.c (rgn_const_sched_info): Likewise.
10607         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10608         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10609         (ebb_sched_info): Add them for the two new fields.
10610         (add_deps_for_risky_insns): Call add_delay_dependencies.
10611
10612 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10613
10614         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10615         Rename -mr11.
10616         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10617         (rs6000_call_indirect_aix): Ditto.
10618         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10619         (call_indirect_aix<ptrsize>_internal): Ditto.
10620         (call_indirect_aix<ptrsize>_nor11): Ditto.
10621         (call_indirect_aix<ptrsize>_internal2): Ditto.
10622         (call_value_indirect_aix<ptrsize>): Ditto.
10623         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10624         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10625         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10626         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10627
10628 2011-07-13  Jason Merrill  <jason@redhat.com>
10629
10630         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10631
10632 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10633
10634         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10635         * config/spu/spu.md ("clrsb<mode>2"): New expander.
10636
10637 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
10638
10639         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10640         * configure: Regenerate.
10641
10642 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10643
10644         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10645         (asm_file_start): Remove.
10646         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10647         free_bb_for_insn around code that modifies insns before
10648         restarting df analysis.
10649
10650 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10651
10652         PR target/49541
10653         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
10654         (LINK_SPEC): ... here.
10655
10656 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10657
10658         * haifa-sched.c (struct sched_block_state): New.
10659         (schedule_block): Move some local variables into such a structure.
10660
10661 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10662
10663         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10664         * config/i386/t-crtpc: Remove.
10665         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10666         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10667         tmake_file.
10668         (x86_64-*-darwin*): Likewise.
10669         (i[34567]86-*-linux*): Likewise.
10670         (x86_64-*-linux*): Likewise.
10671
10672         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10673         Handle -mpc32, -mpc64, -mpc80.
10674
10675 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10676
10677         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10678         * config/alpha/t-crtfm: Remove.
10679         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10680         * config/i386/t-crtfm: Remove.
10681         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10682         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10683         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10684         * config/sparc/t-crtfm: Remove.
10685
10686         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10687         (alpha*-*-freebsd*): Likewise.
10688         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10689         (x86_64-*-darwin*): Likewise.
10690         (i[34567]86-*-linux*): Likewise.
10691         (x86_64-*-linux*): Likewise.
10692         (x86_64-*-mingw*): Likewise.
10693         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10694         (ia64*-*-freebsd*): Likewise.
10695         (ia64*-*-linux*): Likewise.
10696         (mips64*-*-linux*): Likewise.
10697         (mips*-*-linux*): Likewise.
10698         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10699         (sparc64-*-linux*): Likewise.
10700         (sparc64-*-freebsd*): Likewise.
10701
10702 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10703
10704         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10705         * config/darwin-crt3.c: Move to ../libgcc/config.
10706         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10707         ($(T)crt3$(objext)): Remove.
10708         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10709         ($(T)crt2$(objext)): Remove.
10710         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10711         (powerpc64-*-darwin*): Likewise.
10712
10713 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10714
10715         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10716
10717         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10718         (addsi_1_zext): This.
10719
10720 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10721
10722         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10723         * doc/tm.texi: Regenerate.
10724         * target.def (mergeable_rodata_prefix): New defhookpod.
10725         * varasm.c (mergeable_string_section, mergeable_constant_section):
10726         Use it. Allocate name with alloca.
10727
10728 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10729
10730         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
10731
10732 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10733
10734         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10735         overlap check.
10736
10737 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10738
10739         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
10740         (count_type_elements): Delete.
10741         (complete_ctor_at_level_p): Declare.
10742         * expr.c (flexible_array_member_p): New function, split out from...
10743         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
10744         parameter with for_ctor_p.  When for_ctor_p is true, return the
10745         number of elements that should appear in the top-level constructor,
10746         otherwise return an estimate of the number of scalars.
10747         (categorize_ctor_elements): Replace p_must_clear with p_complete.
10748         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
10749         (complete_ctor_at_level_p): New function, borrowing union logic
10750         from old categorize_ctor_elements_1.
10751         (mostly_zeros_p): Return true if the constructor is not complete.
10752         (all_zeros_p): Update call to categorize_ctor_elements.
10753         * gimplify.c (gimplify_init_constructor): Update call to
10754         categorize_ctor_elements.  Don't call count_type_elements.
10755         Unconditionally prevent clearing for variable-sized types,
10756         otherwise rely on categorize_ctor_elements to detect
10757         incomplete initializers.
10758
10759 2011-07-13  Richard Guenther  <rguenther@suse.de>
10760
10761         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10762         the final type is integral.
10763
10764 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10765
10766         * sched-int.h (struct _dep): Add member cost.
10767         (DEP_COST, UNKNOWN_DEP_COST): New macros.
10768         * sched-deps.c (init_dep_1): Initialize DEP_COST.
10769         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10770         (sched_change_pattern): Reset it for dependent insns.
10771
10772 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10773
10774         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10775         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10776         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10777         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10778         (CRT0_S, MCRT0_S): Remove.
10779         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10780         Remove.
10781         (s-crt0): Remove.
10782         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10783
10784 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10785
10786         * cse.c (insert_with_costs): Put semi-colon after empty loop body
10787         on the next line.
10788         * emit-rtl.c (push_to_sequence): Likewise.
10789         * haifa-sched.c (max_issue): Likewise.
10790         * matrix-reorg.c (add_allocation_site): Likewise.
10791         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10792         * reload.c (alternative_allows_const_pool_ref): Likewise.
10793         * sched-rgn.c (rgn_add_block): Likewise.
10794         (rgn_fix_recovery_cfg): Likewise.
10795         * tree.c (attribute_list_contained): Likewise.
10796
10797 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
10798
10799         * config/i386/i386.c: Tidy processor feature bitmasks.
10800         (m_P4_NOCONA): New.
10801
10802 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
10803
10804         PR rtl-opt/49474
10805         * cprop.c (find_implicit_sets): Correct the condition.
10806
10807 2011-07-12  Richard Henderson  <rth@redhat.com>
10808
10809         PR target/49713
10810         * dwarf2out.h (dwarf_frame_regnum): Remove.
10811         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
10812         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
10813         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10814         (execute_dwarf2_frame): Initialize them.
10815         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10816         users of the macros with the variables.
10817         (expand_builtin_dwarf_sp_column): Revert last change.
10818         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
10819         result of DWARF_FRAME_REGNUM into a local variable.
10820
10821 2011-07-12  Richard Henderson  <rth@redhat.com>
10822
10823         PR target/49714
10824         * config/i386/i386.c (x86_output_mi_thunk): Use
10825         machopic_indirect_call_target instead of machopic_indirection_name
10826         directly.
10827
10828 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
10829             Eric Botcazou  <ebotcazou@adacore.com>
10830
10831         * prefix.h: Wrap up in extern "C" block.
10832
10833 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
10834
10835         AMD bdver2 Enablement
10836         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10837         (case ${target}): Add bdver2.
10838         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10839         -march=native recognize bdver2 processors.
10840         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10841         bdver2 def_and_undef
10842         * config/i386/i386.c (struct processor_costs bdver2_cost): New
10843         bdver2 cost table.
10844         (m_BDVER2): New definition.
10845         (m_AMD_MULTIPLE): Includes m_BDVER2.
10846         (initial_ix86_tune_features): Add bdver2 tuning.
10847         (processor_target_table): Add bdver2 entry.
10848         (static const char *const cpu_names): Add bdver2 entry.
10849         (ix86_option_override_internal): Add bdver2 instruction sets.
10850         (ix86_issue_rate): Add bdver2.
10851         (ix86_adjust_cost): Add bdver2.
10852         (has_dispatch): Add bdver2.
10853         * config/i386/i386.h (TARGET_BDVER2): New definition.
10854         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10855         (enum processor_type): Add PROCESSOR_BDVER2.
10856         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10857         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10858         description.
10859
10860 2011-07-12  Richard Henderson  <rth@redhat.com>
10861
10862         PR target/49714
10863         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10864         destination address in memory on some paths.
10865
10866 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
10867
10868         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10869         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10870         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10871         * function.c (locate_and_pad_parm): Take it into account.
10872         * target.def (function_arg_round_boundary): New hook.
10873         * targhooks.c (default_function_arg_round_boundary): New function.
10874         * targhooks.h (default_function_arg_round_boundary): Declare.
10875         * doc/tm.texi: Regenerate.
10876
10877 2011-07-12  Richard Guenther  <rguenther@suse.de>
10878
10879         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10880         Do not perform no-op changes.
10881
10882 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
10883
10884         * config/arm/predicates.md (neon_struct_operand): Make a normal
10885         predicate.
10886         (neon_struct_or_register_operand): New predicate.
10887         * config/arm/neon.md (movmisalign<mode>): Replace predicates
10888         with neon_struct_or_register_operand.
10889         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10890         neon_struct_operand instead of memory_operand.
10891
10892 2011-07-12  Martin Jambor  <mjambor@suse.cz>
10893
10894         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10895         * cgraph.c (cgraph_get_node_or_alias): Removed.
10896         (change_decl_assembler_name): Changed all calls to
10897         cgraph_get_node_or_alias to a call to cgraph_get_node.
10898         (cgraph_make_decl_local): Likewise.
10899         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10900         * varasm.c (default_binds_local_p_1): Likewise.
10901         (decl_binds_to_current_def_p): Likewise.
10902
10903 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
10904
10905         PR tree-optimization/49712
10906         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
10907
10908 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
10909
10910         * genautomata.c (add_arc): Return void.  All callers changed.
10911         (make_automaton): Remove dead code.
10912
10913 2011-07-11  Richard Henderson  <rth@redhat.com>
10914
10915         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
10916         (DW_FRAME_POINTER_REGNUM): New.
10917         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
10918         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
10919         (dwf_regno): New.
10920         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
10921         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
10922         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
10923         Use it.
10924         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
10925         * dwarf2out.h (dwarf_frame_regnum): New.
10926         (struct cfa_loc): Document the domain of the reg member.
10927
10928 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
10929
10930         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
10931         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
10932
10933 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
10934
10935         PR debug/49676
10936         * dwarf2out.c (int_shift_loc_descriptor): New function.
10937         (int_loc_descriptor): If shorter, emit i as
10938         (i >> shift), shift, DW_OP_shl for suitable shift value.
10939         Similarly, try to optimize large negative values using
10940         DW_OP_neg of a positive value if shorter.
10941         (size_of_int_shift_loc_descriptor): New function.
10942         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
10943         changes.
10944         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
10945         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
10946         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
10947         is shorter.
10948         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
10949         addend as added DW_OP_plus if it is shorter.
10950
10951 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10952
10953         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
10954         (DTORS_SECTION_ASM_OP): Define.
10955
10956 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10957
10958         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
10959         * config/t-dfprules: Move to ../libgcc/config.
10960         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10961         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10962         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
10963         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
10964         Likewise.
10965         (i[34567]86-*-cygwin*): Likewise.
10966         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
10967         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
10968         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
10969         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
10970         D64PBIT_FUNCS, D128PBIT_FUNCS.
10971
10972 2011-07-11  Richard Guenther  <rguenther@suse.de>
10973
10974         * tree-vrp.c (simplify_conversion_using_ranges): Manually
10975         translate the source value-range through the conversion chain.
10976
10977 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
10978
10979         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
10980
10981 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10982
10983         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
10984         a bi-arch compiler defaulting to 31-bit. In this case:
10985         (tmake_file): Add s390/t-linux64.
10986         * doc/install.texi: Add s390-linux to the list of targets supporting
10987         --enable-targets=all.
10988
10989 2011-07-11  Arthur Loiret  <aloiret@debian.org>
10990             Matthias Klose <doko@debian.org>
10991
10992         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
10993         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
10994         (tm_file): Add mips/linux64.h.
10995         (tmake_file): Add mips/t-linux64.
10996         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10997         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
10998         instead of hardcoded mabi=n32.
10999         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11000         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11001         convention.
11002
11003 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11004
11005         * passes.c (init_optimization_passes): Add invariant motion pass
11006         after induction variable optimization.
11007
11008 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
11009
11010         PR target/39633
11011         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11012         offsets 1..5 set cc0 in a usable way.
11013
11014 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
11015
11016         * tree.h (call_expr_arg): Remove.
11017         (call_expr_argp): Likewise.
11018
11019 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
11020
11021         * config/sparc/sparc.md (save_register_window_1): Rename to...
11022         (window_save): ...this.
11023         * config/sparc/sparc.c (emit_save_register_window): Rename to...
11024         (emit_window_save): ...this.
11025         (sparc_expand_prologue): Adjust to above renaming.
11026
11027 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11028
11029         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11030         of movabs for x32.
11031
11032 2011-07-10  Richard Henderson  <rth@redhat.com>
11033
11034         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11035         run final, instead of emitting text directly.
11036
11037 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11038
11039         * config/i386/i386.c (ix86_option_override_internal): Turn on
11040         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
11041         small PIC models for TARGET_X32.
11042
11043 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
11044
11045         PR target/49684
11046         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11047         $(LIBGCC2_CFLAGS).
11048
11049         PR bootstrap/49680
11050         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11051         stray notes and debug insns by using prev_nonnote_nondebug_insn
11052         instead of PREV_INSN.
11053
11054 2011-07-09  Richard Henderson  <rth@redhat.com>
11055
11056         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11057         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11058         * dwarf2out.c: ... here.
11059         (output_all_cfis): Remove.
11060         (dwarf2out_switch_text_section): Use output_cfis directly.
11061         (size_of_locs): Export.
11062         (output_loc_sequence, output_loc_sequence_raw): Export.
11063         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11064         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11065         output_cfa_loc_raw): Move to ...
11066         * dwarfcfi.c: ... here.
11067         * dwarf2out.h: Update decls.
11068
11069 2011-07-09  Richard Henderson  <rth@redhat.com>
11070
11071         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11072         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11073         * dwarf2cfi.c: ... here.
11074         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11075         (DWARF_ROUND, DWARF_CIE_ID): Remove.
11076         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11077         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11078         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11079
11080 2011-07-09  Richard Henderson  <rth@redhat.com>
11081
11082         * dwarf2cfi.c (cie_return_save): New.
11083         (queue_reg_save): Use compare_reg_or_pc.
11084         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11085         (dwarf2out_frame_debug_expr): Likewise.
11086         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11087         (initial_return_save): Likewise.
11088         (execute_dwarf2_frame): Save and restore initial return save from
11089         the cie to the fde.
11090         * config/mips/mips.c (mips_frame_set): Remove special case for
11091         DWARF_FRAME_RETURN_COLUMN.
11092
11093 2011-07-09  Richard Henderson  <rth@redhat.com>
11094
11095         * dwarf2cfi.c (lookup_cfa): Remove.
11096         (execute_dwarf2_frame): Assert queues are empty on entry.
11097         Setup initial cfa directly, not via lookup_cfa.
11098         Don't clear args_size state here.
11099
11100 2011-07-09  Richard Henderson  <rth@redhat.com>
11101
11102         * dwarf2cfi.c (add_cfi_vec): New.
11103         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
11104         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
11105         (execute_dwarf2_frame): Set add_cfi_vec.
11106
11107 2011-07-09  Richard Henderson  <rth@redhat.com>
11108
11109         * defaults.h (ASM_COMMENT_START): Move here...
11110         * dwarf2asm.c: ... from here.
11111         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11112         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11113         * varasm.c: Likewise.
11114
11115 2011-07-09  Richard Henderson  <rth@redhat.com>
11116
11117         PR debug/49686
11118         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11119         (create_cfi_notes): ... do it here instead.
11120
11121 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
11122
11123         PR debug/49676
11124         * dwarf2out.c (size_of_int_loc_descriptor): New function.
11125         (address_of_int_loc_descriptor): Use it.
11126         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11127
11128 2011-07-09  Richard Henderson  <rth@redhat.com>
11129
11130         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11131         (prologue, epilogue): New.
11132         (return, *rts): New.
11133         (blockage, setd, seti): New.
11134         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11135         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11136         (pdp11_saved_regno): New.
11137         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
11138         generate rtl instead of text.
11139         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
11140         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
11141         * config/pdp11/pdp11-protos.h: Update.
11142
11143 2011-07-09  Richard Henderson  <rth@redhat.com>
11144
11145         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
11146         try to insert an rtl prologue here.
11147         (rs6000_output_function_epilogue): Similarly.
11148         * config/rs6000/rs6000.md (prologue): Emit a barrier to
11149         satisfy !TARGET_SCHED_PROLOG.
11150         (epilogue, sibcall_epilogue): Likewise.
11151
11152 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
11153
11154         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
11155         (FP_REG_P): Delete.
11156         (IN_OR_GLOBAL_P): Likewise.
11157
11158 2011-07-08  Jason Merrill  <jason@redhat.com>
11159
11160         PR c++/45437
11161         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
11162         compound assignment.
11163
11164         * cgraph.c (cgraph_add_to_same_comdat_group): New.
11165         * cgraph.h: Declare it.
11166         * ipa.c (function_and_variable_visibility): Make sure thunks
11167         have the right visibility.
11168
11169 2011-07-08  Richard Henderson  <rth@redhat.com>
11170
11171         PR bootstrap/49680
11172         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
11173         any tablejump vector.
11174
11175         PR bootstrap/49680
11176         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11177         end of the prologue.
11178
11179 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
11180
11181         PR target/49621
11182         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
11183         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
11184         * config/rs6000/vector.md (vector_select_<mode>,
11185         vector_select_<mode>_uns): Change second operand of NE to
11186         CONST0_RTX (<MODE>mode) instead of const0_rtx.
11187         * config/rs6000/altivec.md (*altivec_vsel<mode>,
11188         *altivec_vsel<mode>_uns): Expect second operand of NE to be
11189         zero_constant of the corresponding vector mode.
11190         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
11191         Likewise.
11192
11193 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
11194
11195         * graphite-dependences.c (build_alias_set_powerset): Remove
11196         continue from loop, add one more assert.
11197
11198 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11199
11200         PR target/46779
11201         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11202         In particular, allow 8-bit values in r28 and r29.
11203         (avr_hard_regno_scratch_ok): Disallow any register that might be
11204         part of the frame pointer.
11205         (avr_hard_regno_rename_ok): Same.
11206         (avr_legitimate_address_p): Don't allow SUBREGs.
11207
11208 2011-07-08  Julian Brown  <julian@codesourcery.com>
11209
11210         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
11211         big-endian mode.
11212         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
11213         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
11214         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
11215         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
11216         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
11217         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
11218         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
11219         registers in big-endian mode.
11220
11221 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11222
11223         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
11224         in terms of another.
11225         (write_attr_value): Write a cast if necessary.
11226
11227         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
11228         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
11229         (REG_WORDS_BIG_ENDIAN): Document.
11230         * doc/tm.texi: Regenerate.
11231         * reload.c (operands_match_p): Take it into account.
11232         (reload_adjust_reg_for_mode): Likewise.
11233         * rtlanal.c (subreg_get_info): Likewise.
11234
11235 2011-07-08  Richard Guenther  <rguenther@suse.de>
11236
11237         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
11238         folding.
11239
11240 2011-07-08  Kai Tietz  <ktietz@redhat.com>
11241
11242         * fold-const.c (fold_truth_andor): Factored out truth_andor
11243         label from fold_binary as function.
11244         (fold_binary_loc): Replace truth_andor lable
11245         by function fold_truth_andor.
11246
11247 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
11248
11249         PR middle-end/49519
11250         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
11251         check if address is stored in register. If so - give up.
11252         (check_sibcall_argument_overlap_1): Do not perform check of
11253         overlapping when it is call to address.
11254
11255 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11256
11257         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
11258         of magic '31'.
11259
11260 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11261
11262         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
11263         GET_MODE_BITSIZE where appropriate.
11264         (widen_leading, expand_parity, expand_ctz, expand_ffs,
11265         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
11266         expand_float, expand_fix): Likewise.
11267         * expr.c (convert_move, convert_modes, expand_expr_real_2,
11268         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11269         * stor-layout.c (get_mode_bounds): Likewise.
11270         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
11271         Likewise.
11272         * convert.c (convert_to_integer): Likewise.
11273         * expmed.c (expand_shift_1): Likewise.
11274
11275         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
11276         a bitsize.
11277
11278         * optabs.c (expand_binop): Tighten conditions for doubleword
11279         expansions.
11280         (widen_bswap): Assert that mode bitsize and precision are the same.
11281         * stor-layout.c (get_best_mode): Skip modes that have lower
11282         precision than bitsize.
11283         * recog.c (simplify_while_replacing): Assert that bitsize and
11284         precision are the same.
11285
11286 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11287
11288         * Makefile.in (LIBGCOV): Remove.
11289         (libgcc.mvars): Remove LIBGCOV.
11290         * libgov.c: Move to ../libgcc.
11291
11292 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11293
11294         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11295
11296 2011-07-08  Martin Jambor  <mjambor@suse.cz>
11297
11298         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11299         is too big for total scalarization.
11300
11301 2011-07-07  Richard Henderson  <rth@redhat.com>
11302
11303         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11304         (DBX_DEBUGGING_INFO): Undef.
11305
11306 2011-07-07  Richard Henderson  <rth@redhat.com>
11307
11308         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
11309         Handle some opcodes specially for debugging.
11310         * print-rtl.c: Include dwarf2out.h
11311         (print_rtx): Handle NOTE_INSN_CFI.
11312         * Makefile.in (print-rtl.o): Update.
11313
11314 2011-07-07  Richard Henderson  <rth@redhat.com>
11315
11316         * tree-pass.h (pass_dwarf2_frame): Declare.
11317         * passes.c (init_optimization_passes): Add it.
11318         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11319         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11320         make static, do not call add_cfis_to_fde.
11321         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11322         dwarf2out_frame_init): Merge into...
11323         (execute_dwarf2_frame): ... here.  New function.
11324         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
11325         saved_do_cfi_asm to a tri-state variable.
11326         (gate_dwarf2_frame, pass_dwarf2_frame): New.
11327         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11328         if it has yet to be done.  Don't call dwarf2cfi_function_init.
11329         * dwarf2out.h, debug.h: Update decls.
11330         * final.c (final_start_function): Don't call
11331         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11332         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11333         * toplev.c (lang_dependent_init): Likewise.
11334
11335 2011-07-07  Richard Henderson  <rth@redhat.com>
11336
11337         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11338         FDE_TABLE_INCREMENT): Replace with...
11339         (fde_vec): ... this, a new vector.
11340         (current_fde): Remove.  Replace all users with cfun->fde.
11341         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11342         (size_of_aranges, dwarf2out_finish): Likewise.
11343         (dwarf2out_alloc_current_fde): Break out from ...
11344         (dwarf2out_begin_prologue): ... here.
11345         (dwarf2out_frame_init): Remove.
11346         * dwarf2cfi.c: Update all users of current_fde.
11347         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11348         * dwarf2out.h: Update decls.
11349         (dw_fde_node): Add fde_index member.
11350         * function.h (struct function): Add fde member.
11351
11352 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11353             Richard Henderson  <rth@redhat.com>
11354
11355         * dwarf2cfi.c (add_cfi): Remove.
11356         (dwarf2out_cfi_label): Remove force argument.  Only generate the
11357         label name.
11358         (add_fde_cfi): Simplify the different code paths.
11359         (add_cie_cfi): New.
11360         (old_cfa, old_cfa_remember): New.
11361         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11362         (last_reg_save_label): Remove.
11363         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11364         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11365         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11366         dwarf2out_frame_debug_cfa_expression,
11367         dwarf2out_frame_debug_cfa_restore,
11368         dwarf2out_frame_debug_cfa_window_save,
11369         dwarf2out_frame_debug_expr): Remove label parameter.
11370         (cfi_label_required_p, add_cfis_to_fde): New.
11371         (dwarf2out_frame_debug_after_prologue): New.
11372         (dwarf2cfi_frame_init): Initialize old_cfa.
11373         (dwarf2out_frame_debug_restore_state): Likewise.
11374         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11375         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11376         * final.c (final_start_function): Call
11377         dwarf2out_frame_debug_after_prologue.
11378
11379 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11380             Richard Henderson  <rth@redhat.com>
11381
11382         * dwarf2cfi.c (cfi_insn): New.
11383         (dwarf2out_cfi_label): Don't emit cfi label here.
11384         (add_fde_cfi): Create a NOTE_INSN_CFI.
11385         (dwarf2out_frame_debug): Setup cfi_insn.
11386         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11387         (dwarf2out_cfi_begin_epilogue): Make static.
11388         (dwarf2out_frame_debug_restore_state): Make static.
11389         * dwarf2out.c (output_cfi_directive): Make static.
11390         (dwarf2out_emit_cfi): New.
11391         * dwarf2out.h: Update.
11392         * final.c (final): Remove CFI notes.
11393         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11394         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11395         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11396         * insn-notes.def (NOTE_INSN_CFI): New.
11397         (NOTE_INSN_CFI_LABEL): New.
11398         * rtl.h (union rtunion_def): Add rt_cfi member.
11399         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11400
11401 2011-07-07  Richard Henderson  <rth@redhat.com>
11402
11403         * dwarf2cfi.c: New file.
11404         * Makefile.in (OBJS): Add it.
11405         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11406         * gengtype.c (open_base_files): Include dwarf2out.h.
11407         * coretypes.h (enum var_init_status): Move from ...
11408         * rtl.h: ... here.
11409         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11410         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11411         expand_builtin_dwarf_sp_column, init_return_column_size,
11412         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11413         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11414         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11415         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11416         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11417         compute_barrier_args_size, dwarf2out_args_size,
11418         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11419         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11420         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11421         queue_reg_save, dwarf2out_flush_queued_reg_saves,
11422         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11423         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11424         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11425         dwarf2out_frame_debug_cfa_expression,
11426         dwarf2out_frame_debug_cfa_restore,
11427         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11428         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11429         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11430         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11431         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11432         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11433         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11434         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11435         dw_loc_descr_node): Move to dwarf2out.h.
11436         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11437         mem_loc_descriptor): Export.
11438         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
11439         (dwarf2out_frame_init): Extract CIE generation code to
11440         dwarf2cfi_frame_init.
11441
11442 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
11443
11444         PR target/49660
11445         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11446         MASK_V8PLUS, remove commented out flag and reorder.
11447
11448 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11449
11450         PR c/49644
11451         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11452         one non-complex and one complex argument, call c_save_expr on both
11453         operands.
11454
11455 2011-07-07  Martin Jambor  <mjambor@suse.cz>
11456
11457         PR middle-end/49495
11458         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11459         (verify_cgraph_node): Some functinality moved to
11460         verify_edge_corresponds_to_fndecl, call it.
11461
11462 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11463
11464         * config.gcc (*local*): Remove.
11465         * doc/install-old.texi: Don't mention local configurations.
11466
11467 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11468
11469         PR debug/49522
11470         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11471         referencing debug insns that have been reset.
11472         (dead_debug_insert_before): Don't assert reg is non-NULL,
11473         instead return immediately if it is NULL.
11474
11475 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11476
11477         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11478
11479 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11480
11481         * hw-doloop.c: New file.
11482         * hw-doloop.h: New file.
11483         * Makefile.in (OBJS): Add hw-doloop.o.
11484         (hw-doloop.o): New rule.
11485         ($(obj_out_file)): Add hw-doloop.h dependency.
11486         * config/bfin/bfin.c: Include "hw-doloop.h".
11487         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11488         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11489         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
11490         type changed to hwloop_info.  Return bool, true if the loop was
11491         successfully optimized.  Remove code that was moved to
11492         hw-doloop.c, and adjust other parts.
11493         (hwloop_fail): New static function, containing parts that used
11494         to be in bfin_optimize_loop.
11495         (bfin_discover_loop, bfin_discover_loops, free_loops,
11496         bfin_reorder_loops): Remove.
11497         (hwloop_pattern_reg): New static function.
11498         (bfin_doloop_hooks): New variable.
11499         (bfin_reorg_loops): Remove most code, call reorg_loops.
11500         * config/bfin/bfin.md (doloop_end splitter): Also enable if
11501         loop counter is a memory_operand.
11502
11503 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11504
11505         * config.gcc: Support --with-multilib-list for x86 Linux targets.
11506
11507         * configure.ac: Mention x86-64 for --with-multilib-list.
11508         * configure: Regenerated.
11509
11510         * config/i386/gnu-user64.h (SPEC_64): Support x32.
11511         (SPEC_32): Likewise.
11512         (ASM_SPEC): Likewise.
11513         (LINK_SPEC): Likewise.
11514         (TARGET_THREAD_SSP_OFFSET): Likewise.
11515         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11516         (SPEC_X32): New.
11517
11518         * config/i386/i386.h (TARGET_X32): New.
11519         (TARGET_LP64): New.
11520         (LONG_TYPE_SIZE): Likewise.
11521         (POINTER_SIZE): Likewise.
11522         (POINTERS_EXTEND_UNSIGNED): Likewise.
11523         (OPT_ARCH64): Support x32.
11524         (OPT_ARCH32): Likewise.
11525
11526         * config/i386/i386.opt (mx32): New.
11527
11528         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11529         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11530         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11531         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11532
11533         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11534         (BIONIC_DYNAMIC_LINKERX32): Likewise.
11535         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11536
11537         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11538
11539         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11540
11541         * doc/invoke.texi: Document -mx32.
11542
11543 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11544
11545         * doc/invoke.texi (mwords-little-endian): Deprecate.
11546         * config/arm/arm.opt (mwords-little-endian): Likewise.
11547         * config/arm/arm.c (arm_option_override): Warn about the deprecation
11548         of -mwords-little-endian.
11549
11550 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11551
11552         * reload1.c (choose_reload_regs): Use mode sizes to check whether
11553         an old reload register completely defines the required value.
11554
11555 2011-07-07  Richard Guenther  <rguenther@suse.de>
11556
11557         * fold-const.c (fold_unary_loc): Do not strip sign-changes
11558         for NEGATE_EXPR.
11559
11560 2011-07-07  Richard Guenther  <rguenther@suse.de>
11561
11562         * tree-vrp.c (simplify_conversion_using_ranges): New function.
11563         (simplify_stmt_using_ranges): Call it.
11564
11565 2011-07-07  Kai Tietz  <ktietz@redhat.com>
11566
11567         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11568         (lookup_logical_inverted_value): Likewise.
11569         (simplify_bitwise_binary_1): Likewise.
11570         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11571
11572 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11573
11574         * gcc.c (%[Spec]): Don't document.
11575         (struct spec_list): Update comment.
11576         (do_spec_1): Don't handle %[Spec].
11577         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11578
11579 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11580
11581         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11582         default based on TARGET_ASM_NAMED_SECTION.
11583         * common/common-target.def (have_named_sections): Default to true.
11584         * common/config/default-common.c: Don't include tm.h.
11585         * common/config/picochip/picochip-common.c
11586         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11587         * common/config/m32c/m32c-common.c: Remove.
11588         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11589         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11590         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11591         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11592         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11593         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11594         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11595
11596 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11597
11598         PR middle-end/49640
11599         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11600         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11601
11602 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11603
11604         PR libmudflap/49550
11605         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11606
11607 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11608
11609         PR target/39150
11610         * configure.ac (gcc_cv_as_hidden): Also accept
11611         x86_64-*-solaris2.1[0-9]*.
11612         (gcc_cv_as_cfi_directive): Likewise.
11613         (gcc_cv_as_comdat_group_group): Likewise.
11614         (set_have_as_tls): Likewise.
11615         * configure: Regenerate.
11616         * config.gcc (i[34567]86-*-solaris2*): Also handle
11617         x86_64-*-solaris2.1[0-9]*.
11618         * config.host (i[34567]86-*-solaris2*): Likewise.
11619         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11620         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11621         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11622         (TARGET_LD_EMULATION): Use it.
11623         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11624         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11625         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11626         (ASM_CPU64_DEFAULT_SPEC): Define.
11627         (ASM_CPU_SPEC): Use %(asm_cpu_default).
11628         (ASM_SPEC): Redefine.
11629         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11630         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11631         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11632         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11633         configuration.
11634         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11635
11636 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11637
11638         * config/sol2.h (ASM_SPEC): Split into ...
11639         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11640         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11641         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11642         (ASM_SPEC): Use ASM_SPEC_BASE.
11643         * config/sparc/sol2.h (ASM_SPEC): Redefine.
11644
11645 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
11646
11647         * config/avr/avr.md (*reload_insi): Change predicate #1 to
11648         const_int_operand.  Ditto for peep2 producing this insn.
11649         Add argument to output_reload_insisf call.
11650         (*movsi,*movsf): Add argument to output_movsisf call.
11651         (*reload_insf): New insn and new peep2 to produce it.
11652         * config/avr/avr-protos.h (output_movsisf): Change prototype.
11653         (output_reload_insisf): Change prototype.
11654         * config/avr/avr.c (avr_asm_len): New function.
11655         (output_reload_insisf): Rewrite.
11656         (output_movsisf): Change prototype.  output_reload_insisf for
11657         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
11658         (adjust_insn_length): Add argument to output_movsisf and
11659         output_reload_insisf call.
11660
11661 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11662
11663         * emit-rtl.c (paradoxical_subreg_p): New function.
11664         * rtl.h (paradoxical_subreg_p): Declare.
11665         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11666         apply_distributive_law, simplify_comparison, simplify_set): Use it.
11667         * cse.c (record_jump_cond, cse_insn): Likewise.
11668         * expr.c (force_operand): Likewise.
11669         * rtlanal.c (num_sign_bit_copies1): Likewise.
11670         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11671         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11672         (push_reload): Use precision to check for paradoxical subregs.
11673         * expmed.c (extract_bit_field_1): Likewise.
11674
11675         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11676         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11677         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11678         simplify_set, simplify_logical, expand_compound_operation,
11679         make_extraction, force_to_mode, if_then_else_cond, extended_count,
11680         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11681         record_value_for_reg): Likewise.
11682         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11683         * simplify-rtx. c (simplify_unary_operation_1,
11684         simplify_binary_operation_1, simplify_const_relational_operation):
11685         Likewise.
11686
11687         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11688         instead of GET_MODE_BITSIZE where appropriate.
11689         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11690         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11691         init_num_sign_bit_copies_in_rep): Likewise.
11692         * cse.c (fold_rtx, cse_insn): Likewise.
11693         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11694         * simplify-rtx.c (simplify_unary_operation_1,
11695         simplify_const_unary_operation, simplify_binary_operation_1,
11696         simplify_const_binary_operation, simplify_ternary_operation,
11697         simplify_const_relational_operation, simplify_subreg): Likewise.
11698         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11699         simplify_if_then_else, simplify_set, expand_compound_operation,
11700         expand_field_assignment, make_extraction, if_then_else_cond,
11701         make_compound_operation, force_to_mode, make_field_assignment,
11702         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11703         extended_count, try_widen_shift_mode, simplify_shift_const_1,
11704         simplify_comparison, record_promoted_value, simplify_compare_const,
11705         record_dead_and_set_regs_1): Likewise.
11706
11707         Revert:
11708         * simplify-rtx.c (simplify_const_binary_operation): Use the
11709         shift_truncation_mask hook instead of performing modulo by width.
11710         Compare against mode precision, not bitsize.
11711         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11712         Use shift_truncation_mask instead of constructing the value manually.
11713
11714 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11715
11716         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11717         declaration.
11718         (rs6000_save_toc_in_prologue_p): Ditto.
11719
11720         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11721         up the static chain (r11) during indirect function calls.
11722         (-msave-toc-indirect): New undocumented debug switch.
11723
11724         * config/rs6000/rs6000.c (struct machine_function): Add
11725         save_toc_in_prologue field to note whether the prologue needs to
11726         save the TOC value in the reserved stack location.
11727         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
11728         to save the TOC in the prologue, do so.
11729         (rs6000_trampoline_init): Don't allow creating AIX style
11730         trampolines if -mno-r11 is in effect.
11731         (rs6000_call_indirect_aix): New function to create AIX style
11732         indirect calls, adding support for -mno-r11 to suppress loading
11733         the static chain, and saving the TOC in the prologue instead of
11734         the call body.
11735         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11736         TOC in the prologue.
11737
11738         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11739         register numbers.
11740         (TOC_REGNUM): Ditto.
11741         (STATIC_CHAIN_REGNUM): Ditto.
11742         (ARG_POINTER_REGNUM): Ditto.
11743         (SFP_REGNO): Delete, unused.
11744         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11745         function descriptor offsets.
11746         (TOC_SAVE_OFFSET_64BIT): Ditto.
11747         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11748         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11749         (AIX_FUNC_DESC_SC_32BIT): Ditto.
11750         (AIX_FUNC_DESC_SC_64BIT): Ditto.
11751         (ptrload): New mode attribute for the appropriate load of a pointer.
11752         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11753         (call_indirect_aix64): Ditto.
11754         (call_value_indirect_aix32): Ditto.
11755         (call_value_indirect_aix64): Ditto.
11756         (call_indirect_nonlocal_aix32_internal): Ditto.
11757         (call_indirect_nonlocal_aix32): Ditto.
11758         (call_indirect_nonlocal_aix64_internal): Ditto.
11759         (call_indirect_nonlocal_aix64): Ditto.
11760         (call): Rewrite AIX indirect function calls.  Add support for
11761         eliminating the static chain, and for moving the save of the TOC
11762         to the function prologue.
11763         (call_value): Ditto.
11764         (call_indirect_aix<ptrsize>): Ditto.
11765         (call_indirect_aix<ptrsize>_internal): Ditto.
11766         (call_indirect_aix<ptrsize>_internal2): Ditto.
11767         (call_indirect_aix<ptrsize>_nor11): Ditto.
11768         (call_value_indirect_aix<ptrsize>): Ditto.
11769         (call_value_indirect_aix<ptrsize>_internal): Ditto.
11770         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11771         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11772         (call_nonlocal_aix32): Relocate in the rs6000.md file.
11773         (call_nonlocal_aix64): Ditto.
11774
11775         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11776         -mno-r11 documentation.
11777
11778 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11779
11780         PR other/49658
11781         * doc/extend.texi (Compound Literals): Fix typo.
11782
11783 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
11784
11785         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11786
11787 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
11788
11789         * configure.ac (plugin-version.h): Generate
11790         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11791         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11792         macros.
11793
11794         * configure: Regenerate.
11795
11796         * doc/plugins.texi (Building GCC plugins): Mention
11797         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11798
11799 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11800
11801         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11802         * combine.c (make_extraction, gen_lowpart_or_truncate,
11803         apply_distributive_law, simplify_comparison,
11804         reg_truncated_to_mode, record_truncated_value): Use it.
11805         * cse.c (notreg_cost): Likewise.
11806         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11807         * expr.c (convert_move, convert_modes): Likewise.
11808         * optabs.c (expand_binop, expand_unop): Likewise.
11809         * postreload.c (move2add_last_label): Likewise.
11810         * regmove.c (optimize_reg_copy_3): Likewise.
11811         * rtlhooks.c (gen_lowpart_general): Likewise.
11812         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11813
11814 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
11815
11816         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11817
11818 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11819
11820         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11821         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11822         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11823         (simplify_const_unary_operation, simplify_binary_operation_1,
11824         simplify_const_binary_operation, simplify_const_relational_operation):
11825         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
11826         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11827         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11828         simplify_shift_const_1, simplify_comparison): Likewise.
11829         * expr.c (convert_modes): Likewise.
11830         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11831         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11832         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11833
11834         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11835
11836 2011-07-06  Richard Guenther  <rguenther@suse.de>
11837
11838         PR tree-optimization/49645
11839         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11840         register variables.
11841         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11842         in type qualification here ...
11843         (copy_reference_ops_from_ref): ... not here.
11844         (vn_reference_lookup_3): ... or here.
11845         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11846         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11847
11848 2011-07-06  Ian Lance Taylor  <iant@google.com>
11849
11850         * doc/install.texi (Configuration): It's
11851         --enable-gnu-indirect-function, not --enable-indirect-function.
11852
11853 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11854
11855         * simplify-rtx.c (simplify_const_binary_operation): Use the
11856         shift_truncation_mask hook instead of performing modulo by width.
11857         Compare against mode precision, not bitsize.
11858         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11859         Use shift_truncation_mask instead of constructing the value manually.
11860
11861 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11862
11863         PR middle-end/47383
11864         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11865         address computation and convert to address_mode if needed.
11866
11867 2011-07-06  Richard Guenther  <rguenther@suse.de>
11868
11869         * tree.c (build_common_tree_nodes_2): Merge with
11870         build_common_tree_nodes.
11871         * tree.h (build_common_tree_nodes): Adjust prototype.
11872         (build_common_tree_nodes_2): Remove.
11873         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11874         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11875
11876 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11877
11878         PR tree-optimization/49618
11879         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11880         t recurse on the decl.
11881         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11882         return true if expr isn't known to be defined in current
11883         TU or some other LTO partition.
11884
11885 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11886
11887         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11888         override CASE_VALUES_THRESHOLD.
11889
11890         * stmt.c (toplevel): Include params.h.
11891         (case_values_threshold): Use the --param case-values-threshold
11892         value if non-zero, otherwise use machine dependent value.
11893         (expand_case): Use case_values_threshold.
11894
11895         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11896
11897         * doc/invoke.texi (--param case-values-threshold): Document.
11898
11899 2011-07-05  Richard Henderson  <rth@redhat.com>
11900
11901         * dwarf2out.c (dwarf2out_cfi_label): Make static.
11902         (dwarf2out_flush_queued_reg_saves): Make static.
11903         (dwarf2out_reg_save): Remove.
11904         (dwarf2out_return_save): Remove.
11905         (dwarf2out_return_reg): Remove.
11906         (dwarf2out_reg_save_reg): Remove.
11907         (dwarf2out_def_cfa): Merge into ...
11908         (dwarf2out_frame_init): ... here.
11909         * dwarf2out.h, tree.h: Remove declarations as necessary.
11910
11911 2011-07-05  Richard Henderson  <rth@redhat.com>
11912
11913         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
11914         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11915         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
11916         the alloc insn.
11917
11918         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
11919         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
11920         (process_epilogue): Don't call dwarf2out_def_cfa.
11921
11922         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
11923         indicate the return address save.
11924         (process_cfa_register): Likewise.
11925
11926         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
11927         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
11928
11929         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
11930         for ar.pfs save at alloc insn.
11931
11932 2011-07-05  Richard Henderson  <rth@redhat.com>
11933
11934         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
11935         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11936         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
11937         stack pointer save.
11938         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
11939         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
11940         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
11941         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
11942
11943 2011-07-05  Richard Henderson  <rth@redhat.com>
11944
11945         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
11946         VUNSPEC_* constants here instead of via define_constants.
11947         (VUNSPEC_PEM): New constant.
11948         (procedure_entry_mask): New insn.
11949         (prologue): New expander.
11950         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
11951         (vax_expand_prologue): Rename from vax_output_function_prologue;
11952         emit rtl instead of text.
11953         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11954         (print_operand): Add 'x' prefix.
11955
11956 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11957
11958         PR middle-end/47715
11959         * calls.c (precompute_register_parameters): Promote the function
11960         argument before checking non-legitimate constant.
11961
11962 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11963
11964         PR tree-optimization/47654
11965         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
11966         (lst_do_strip_mine_loop): Return an int.
11967         (lst_do_strip_mine): Same.
11968         (scop_do_strip_mine): Same.
11969         (scop_do_block): Loop blocking should strip-mine at least two loops.
11970         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
11971         (scop_do_interchange): Same.
11972         * graphite-poly.h (scop_do_interchange): Update declaration.
11973         (scop_do_strip_mine): Same.
11974
11975 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11976
11977         * graphite-clast-to-gimple.c (precision_for_value): Removed.
11978         (precision_for_interval): Removed.
11979         (gcc_type_for_interval): Use mpz_sizeinbase.
11980
11981 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11982
11983         * graphite-ppl.h (value_max): Correct computation of max.
11984
11985 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
11986
11987         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
11988
11989 2011-07-05  Richard Guenther  <rguenther@suse.de>
11990
11991         * c-decl.c (c_init_decl_processing): Defer building common
11992         tree nodes to c_common_nodes_and_builtins.
11993
11994 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
11995
11996         PR tree-optimization/49580
11997         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
11998         the loop's number of iterations.
11999         * tree-parloops.c (transform_to_exit_first_loop): Add the
12000         handling of the loop's number of iterations before the call
12001         to gimple_duplicate_sese_tail.
12002         Insert the stmt caclculating the new rhs of the loop's
12003         condition stmt to the preheader instead of iters_bb.
12004
12005 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12006
12007         PR rtl-optimization/47449
12008         * fwprop.c (forward_propagate_subreg): Don't propagate hard
12009         register nor zero/sign extended hard register.
12010
12011 2011-07-05  Richard Guenther  <rguenther@suse.de>
12012
12013         PR tree-optimization/49518
12014         PR tree-optimization/49628
12015         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12016         irrelevant and invariant data-references.
12017         (vect_analyze_data_ref_access): For invariant loads clear the
12018         group association.
12019
12020 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
12021
12022         PR rtl-optimization/49619
12023         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12024         pass VOIDmode as op0_mode to recursive call, and return temp even
12025         when different from tor, just if it is not IOR of the original
12026         PLUS arguments.
12027
12028         PR rtl-optimization/49472
12029         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12030         negating MULT, negate the second operand instead of first.
12031         (simplify_binary_operation_1) <case MULT>: If one operand is
12032         a NEG and the other is MULT, don't attempt to optimize by negation
12033         of the MULT operand if it only moves the NEG operation around.
12034
12035         PR debug/49602
12036         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12037         get_current_def return value if it can't be trusted to be
12038         the current value of the variable in the current bb.
12039
12040 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
12041
12042         PR target/49600
12043         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12044         general register to memory for !TARGET_INTER_UNIT_MOVES.
12045
12046 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12047
12048         PR target/44643
12049         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12050         instead of TREE_READONLY.
12051
12052 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12053
12054         * doc/extend.texi (AVR Built-in Functions): Update documentation
12055         of __builtin_avr_fmul*.
12056         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12057         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12058         * config/avr/avr.md (fmul): Rename to fmul_insn.
12059         (fmuls): Rename to fmuls_insn.
12060         (fmulsu): Rename to fmulsu_insn.
12061         (fmul,fmuls,fmulsu): New expander.
12062         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12063         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12064         * config/avr/libgcc.S (__fmul): New function.
12065         (__fmuls): New function.
12066         (__fmulsu,__fmulsu_exit): New function.
12067
12068 2011-07-04  Richard Guenther  <rguenther@suse.de>
12069
12070         PR tree-optimization/49615
12071         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12072         basic-block index check.
12073
12074 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12075
12076         * longlong.h (count_leading_zeros, count_trailing_zeros,
12077         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12078         resp. 64.
12079
12080 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
12081
12082         PR tree-optimization/49610
12083         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12084         a basic block.
12085
12086 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12087             Olivier Hainque  <hainque@adacore.com>
12088             Nicolas Setton  <setton@adacore.com>
12089
12090         * tree.h (TYPE_ARTIFICIAL): New flag.
12091         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12092         the DIE of the type if it is artificial.
12093         (gen_array_type_die): Likewise.
12094         (gen_enumeration_type_die): Likewise.
12095         (gen_struct_or_union_type_die): Likewise.
12096         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12097         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12098
12099 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12100
12101         * tree-object-size.c (pass_through_call): Handle
12102         BUILT_IN_ASSUME_ALIGNED.
12103
12104 2011-07-01  Martin Jambor  <mjambor@suse.cz>
12105
12106         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12107
12108 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
12109
12110         PR middle-end/48016
12111         * explow.c (update_nonlocal_goto_save_area): Use proper mode
12112         for stack save area.
12113         * function.c (expand_function_start): Likewise.
12114
12115 2011-07-01  Richard Guenther  <rguenther@suse.de>
12116
12117         PR middle-end/49596
12118         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12119         may have unknown refs.
12120
12121 2011-07-01  Kai Tietz  <ktietz@redhat.com>
12122
12123         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12124
12125 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12126
12127         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12128         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12129         (Specific, mips-sgi-irix6): Likewise.
12130
12131 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12132
12133         PR libmudflap/49549
12134         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12135
12136 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12137
12138         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
12139         [idx]= and [idx1 ... idx2]= before initializers if needed for
12140         array initializers.
12141
12142 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
12143
12144         * config.gcc (score-*-elf): Remove score7.o.
12145         * config/score/t-score-elf: Likewise.
12146         * config/score/score.c: Merge score7 to score.c and
12147         remove forwarding functions.
12148         * config/score/score7.c: Deleted.
12149         * config/score/score7.h: Deleted.
12150
12151 2011-07-01  Richard Guenther  <rguenther@suse.de>
12152
12153         PR tree-optimization/49603
12154         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
12155
12156 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12157
12158         * tree-sra.c (struct access): Rename total_scalarization to
12159         grp_total_scalarization
12160         (completely_scalarize_var): New function.
12161         (sort_and_splice_var_accesses): Set total_scalarization in the
12162         representative access.
12163         (analyze_access_subtree): Propagate total scalarization accross the
12164         tree, no holes in totally scalarized trees, simplify coverage
12165         computation.
12166         (analyze_all_variable_accesses): Call completely_scalarize_var instead
12167         of completely_scalarize_record.
12168
12169 2011-06-30  Richard Henderson  <rth@redhat.com>
12170
12171         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
12172         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
12173         * config/i386/i386.c: Don't include dwarf2out.h.
12174         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
12175         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
12176         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
12177         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
12178         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
12179
12180 2011-06-30  Richard Henderson  <rth@redhat.com>
12181
12182         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
12183         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12184         * final.c (final_scan_insn): Look for it, and invoke
12185         dwarf2out_frame_debug before the insn if found.
12186
12187 2011-06-30  Richard Henderson  <rth@redhat.com>
12188
12189         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
12190         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
12191
12192 2011-06-30  Richard Henderson  <rth@redhat.com>
12193
12194         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
12195         Define a vector of this type.
12196         (regs_saved_in_regs): Use a VEC.
12197         (num_regs_saved_in_regs): Remove.
12198         (compare_reg_or_pc): New.
12199         (record_reg_saved_in_reg): Split out from...
12200         (dwarf2out_flush_queued_reg_saves): ... here.
12201         (clobbers_queued_reg_save): Update for VEC.
12202         (reg_saved_in): Likewise.
12203         (dwarf2out_frame_debug_init): Likewise.
12204         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
12205         (dwarf2out_frame_debug_cfa_register): Likewise.
12206
12207 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12208
12209         PR tree-optimization/49572
12210         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
12211         type of the RHS instead of that of the LHS for the expression type.
12212
12213 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12214
12215         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
12216         unconditionally.
12217
12218 2011-06-30  Richard Guenther  <rguenther@suse.de>
12219
12220         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
12221         * tree-ssa-structalias.c (create_variable_info_for): Do not
12222         add initial constraints for non-var-decls.  Properly handle
12223         globals in other ltrans partitions.
12224         (intra_create_variable_infos): Manually create constraints for
12225         the fake no-alias parameter.
12226         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
12227         and assert there are no clones.
12228
12229 2011-06-30  Richard Guenther  <rguenther@suse.de>
12230
12231         PR tree-optimization/46787
12232         * tree-data-ref.c (dr_address_invariant_p): Remove.
12233         (find_data_references_in_stmt): Invariant accesses are ok now.
12234         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
12235         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12236         invariant loads.
12237
12238 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12239
12240         PR tree-optimization/49094
12241         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
12242         (build_accesses_from_assign): Use it.
12243
12244 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12245
12246         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12247         handling of BUILT_IN_ASSUME_ALIGNED.
12248
12249         PR debug/49364
12250         * dwarf2out.c (output_abbrev_section): Don't return early
12251         if abbrev_die_table_in_use is 1.
12252         (dwarf2out_finish): Instead don't call output_abbrev_section
12253         nor emit abbrev_section_label in that case.
12254
12255 2011-06-30  Nick Clifton  <nickc@redhat.com>
12256
12257         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
12258         for the V850E.
12259
12260 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12261
12262         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12263         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
12264
12265 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
12266
12267         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12268         both pattern and original statements if necessary.
12269         (vect_transform_loop): Likewise.
12270         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
12271         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
12272         Mark the pattern statement only if the original statement doesn't
12273         have its own uses.
12274         (process_use): Call vect_mark_relevant with additional parameter.
12275         (vect_mark_stmts_to_be_vectorized): Likewise.
12276         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
12277         (vect_analyze_stmt): Handle both pattern and original statements
12278         if necessary.
12279         (vect_transform_stmt): Don't store vectorized pattern statement
12280         in the original statement.
12281         (vect_is_simple_use_1): Use related pattern statement only if the
12282         original statement is irrelevant.
12283         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12284
12285 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
12286
12287         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12288         option.
12289         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12290         entry.
12291         (TARGET_AVX128_OPTIMAL): New definition.
12292         * config/i386/i386.c (initial_ix86_tune_features): Initialize
12293         X86_TUNE_AVX128_OPTIMAL entry.
12294         (ix86_option_override_internal): Enable the generation
12295         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12296         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12297         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12298
12299 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12300
12301         PR tree-optimization/49539
12302         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12303         names by means of stmt_references_abnormal_ssa_name.
12304         (associate_plusminus): Call can_propagate_from before propagating
12305         from definition statements.
12306         (ssa_forward_propagate_and_combine): Remove superfluous newline.
12307
12308 2011-06-29  Richard Guenther  <rguenther@suse.de>
12309
12310         * doc/invoke.texi: Document -scev dump modifier.
12311         * tree-pass.h (TDF_SCEV): New dump flag.
12312         * tree-dump.c (dump_option_value_in): Add scev.
12313         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12314         * tree-scalar-evolution.c: Likewise.
12315
12316 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
12317
12318         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12319         (cxa_type_match): Correct declaration.
12320         (__gnu_unwind_pr_common): Reconstruct additional indirection
12321         when __cxa_type_match returns succeeded_with_ptr_to_base.
12322
12323 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12324
12325         PR rtl-optimization/49114
12326         * reload.c (struct replacement): Remove SUBREG_LOC member.
12327         (push_reload): Do not set it.
12328         (push_replacement): Likewise.
12329         (subst_reload): Remove dead code.
12330         (copy_replacements): Remove assertion.
12331         (copy_replacements_1): Do not handle SUBREG_LOC.
12332         (move_replacements): Likewise.
12333         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
12334         Detect subregs via recursive descent instead of via SUBREG_LOC.
12335
12336 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12337
12338         * config/avr/avr.c (avr_encode_section_info): Dispatch to
12339         default_encode_section_info.
12340
12341 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
12342
12343         PR tree-optimization/49545
12344         * builtins.c (get_object_alignment_1): Update function comment.
12345         Do not use DECL_ALIGN for functions, but test
12346         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12347         * fold-const.c (get_pointer_modulus_and_residue): Don't check
12348         for functions here.
12349         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12350
12351 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
12352
12353         PR debug/49567
12354         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12355         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12356
12357 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12358
12359         PR target/34734
12360         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12361         about uninitialized data attributed 'progmem' from here...
12362         (avr_encode_section_info): ...to this new function.
12363         (TARGET_ENCODE_SECTION_INFO): New define.
12364         (avr_section_type_flags): For data in ".progmem.data", remove
12365         section flag SECTION_WRITE.
12366
12367 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12368
12369         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12370         _xmulhisi3_exit.
12371         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12372         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
12373         (__umulhisi3): Ditto.
12374         * config/avr/avr.md (mulhisi3): New insn expender.
12375         (umulhisi3): New insn expender.
12376         (*mulhisi3_call): New insn.
12377         (*umulhisi3_call): New insn.
12378
12379 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12380
12381         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12382
12383 2011-06-28  Richard Henderson  <rth@redhat.com>
12384
12385         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
12386         all code and arguments that handled pushes.  Update all callers.
12387
12388 2011-06-28  Richard Henderson  <rth@redhat.com>
12389
12390         * config/arm/arm.c (arm_output_function_prologue): Don't call
12391         thumb1_output_function_prologue.
12392         (arm_expand_prologue): Avoid dead store.
12393         (number_of_first_bit_set): Use ctz_hwi.
12394         (thumb1_emit_multi_reg_push): New.
12395         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12396         to emit the entire prologue as rtl.
12397         (thumb1_output_interwork): Split out from
12398         thumb1_output_function_prologue.
12399         (thumb1_output_function_prologue): Remove.
12400         (arm_attr_length_push_multi): Handle thumb1.
12401         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12402         (prologue_thumb1_interwork): New.
12403         (*push_multi): Allow thumb1; use push_mult_memory_operand.
12404         * config/arm/predicates.md (push_mult_memory_operand): New.
12405
12406 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12407
12408         * config/sparc/sync.md (*stbar): Delete.
12409         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12410
12411 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12412
12413         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12414
12415 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12416
12417         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12418         (TARGET_64BIT_DEFAULT): Define.
12419         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12420         of tm_file.
12421         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12422
12423 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12424
12425         * common.opt (in_lto_p): New Variable entry.
12426         * flags.h (in_lto_p): Move to common.opt.
12427         * gcc.c: Include params.h.
12428         (set_option_handlers): Also use common_handle_option and
12429         target_handle_option.
12430         (main): Call global_init_params, finish_params and init_options_struct.
12431         * opts.c (debug_type_names): Move from toplev.c.
12432         (print_filtered_help): Access quiet_flag through opts pointer.
12433         (common_handle_option): Return early in the driver for some options.
12434         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12435         opts pointer.
12436         * toplev.c (in_lto_p): Move to common.opt.
12437         (debug_type_names): Move to opts.c.
12438         * Makefile.in (OBJS): Remove opts.o.
12439         (OBJS-libcommon-target): Add opts.o.
12440         (gcc.o): Update dependencies.
12441
12442 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12443
12444         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12445
12446 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12447
12448         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12449         with '=' constraint modifier.
12450         (*divdf3_vfp): Likewise.
12451         ("*mulsf3_vfp"): Likewise.
12452         ("*muldf3_vfp"): Likewise.
12453         ("*mulsf3negsf_vfp"): Likewise.
12454         ("*muldf3negdf_vfp"): Likewise.
12455
12456 2011-06-28  Nick Clifton  <nickc@redhat.com>
12457
12458         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12459         relaxation when performing an incremental link.
12460
12461 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12462
12463         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12464         within BB from last to first.
12465
12466 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12467
12468         * genattr-common.c: New.  Based on genattr.c.
12469         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12470         (MOSTLYCLEANFILES): Add insn-attr-common.h.
12471         (opts.o): Update dependencies.
12472         (.PRECIOUS): Add insn-attr-common.h.
12473         (simple_rtl_generated_h): Add insn-attr-common.h.
12474         (build/genattr-common.o): New.
12475         (genprogrtl): Add attr-common.
12476         * genattr.c (main): Include insn-attr-common.h.  Don't generate
12477         definitions of DELAY_SLOTS or INSN_SCHEDULING.
12478         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12479
12480 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
12481
12482         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12483         avr-*-* and avr-*-rtems* targets.
12484
12485         * config/avr/elf.h: New file.
12486         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12487         (TARGET_ASM_SELECT_SECTION): Define.
12488         (INIT_SECTION_ASM_OP): Undefine.
12489         (FINI_SECTION_ASM_OP): Undefine.
12490         (READONLY_DATA_SECTION_ASM_OP): Undefine.
12491         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12492         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12493         * config/avr/avr.h:
12494         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12495         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12496         (MAX_OFILE_ALIGNMENT): Move to elf.h.
12497         (STRING_LIMIT): Move to elf.h.
12498         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12499         (ASM_DECLARE_OBJECT_NAME): Remove.
12500         (ESCAPES): Remove.
12501         (ASM_OUTPUT_SKIP): Remove.
12502         (DWARF2_DEBUGGING_INFO): Remove.
12503         (OBJECT_FORMAT_ELF): Remove.
12504         (USER_LABEL_PREFIX): Remove.
12505         (ASM_OUTPUT_EXTERNAL): Remove.
12506         (ASM_OUTPUT_ASCII): Remove.
12507         (TYPE_ASM_OP): Remove.
12508         (SIZE_ASM_OP): Remove.
12509         (WEAK_ASM_OP): Remove.
12510         (STRING_ASM_OP): Remove.
12511         (SET_ASM_OP): Remove.
12512         (ASM_WEAKEN_LABEL): Remove.
12513         (TYPE_OPERAND_FMT): Remove.
12514         (ASM_DECLARE_FUNCTION_SIZE): Remove.
12515         (ASM_FINISH_DECLARE_OBJECT): Remove.
12516         (NO_DOLLAR_IN_LABEL): Remove.
12517         (ASM_GENERATE_INTERNAL_LABEL): Remove.
12518         (ASM_OUTPUT_CASE_LABEL): Remove.
12519         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12520         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12521         (gas_output_ascii): Remove.
12522         (gas_output_limited_string): Remove.
12523         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12524         * config/avr/avr-protos.h
12525         (gas_output_ascii): Remove prototye.
12526         (gas_output_limited_string): Remove prototype.
12527
12528 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
12529
12530         PR target/48637
12531         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
12532         asm operands.
12533
12534 2011-06-27  Jan Hubicka  <jh@suse.cz>
12535
12536         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12537         node instead of references in node.
12538
12539 2011-06-27  Richard Henderson  <rth@redhat.com>
12540
12541         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12542         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12543         inside ifdef.
12544
12545 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
12546
12547         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12548
12549         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12550         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12551         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12552         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12553         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12554         (evaluate_stmt, execute_fold_all_builtins): Handle
12555         BUILT_IN_ASSUME_ALIGNED.
12556         * tree-ssa-dce.c (propagate_necessity): Likewise.
12557         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12558         call_may_clobber_ref_p_1): Likewise.
12559         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12560         (expand_builtin_assume_aligned): New function.
12561         * doc/extend.texi (__builtin_assume_aligned): Document.
12562
12563         PR debug/49544
12564         * cselib.c (promote_debug_loc): If cselib_preserve_constants
12565         and l has two DEBUG_INSN owned locs instead of just one, adjust
12566         the second location's setting_insn too.
12567
12568 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12569
12570         PR libmudflap/38738
12571         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12572
12573 2011-06-27  Nick Clifton  <nickc@redhat.com>
12574
12575         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12576         bit position of highest bit set into a count of the high zero bits.
12577
12578 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12579
12580         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12581
12582 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12583
12584         PR lto/48492
12585         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12586         to a NULL parent.
12587
12588 2011-06-27  Richard Guenther  <rguenther@suse.de>
12589
12590         PR tree-optimization/49394
12591         * passes.c (execute_one_pass): Restore current_pass after
12592         applying IPA transforms.
12593
12594 2011-06-27  Kai Tietz  <ktietz@redhat.com>
12595
12596         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12597         out of type precision after operation.
12598         (find_bswap): Take for limit value the integer auto-promotion
12599         into account.
12600
12601 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12602
12603         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12604         forward scan as well.
12605
12606 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12607
12608         PR target/44241
12609         * config/vms/vms-protos.h: New file.
12610         * config/vms/vms-crtlmap.map: New file.
12611         * config/vms/vms.c: New file.
12612         * config/vms/make-crtlmap.awk: New file.
12613         * config/vms/vms-crtl.h: File removed.
12614         * config/vms/vms-crtl-64.h: File removed.
12615         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12616         * config/alpha/vms64.h: Do not include vms-crtl-64.h
12617         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12618         clear some builtins on VMS.  Calls vms_patch_builtins.
12619         (avms_asm_output_external): Remove.
12620         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12621         (struct crtl_name_spec): Remove
12622         (DO_CTRL_NAMES): Remove.
12623         * config/ia64/vms.h (struct crtl_name_spec): Remove
12624         (DO_CTRL_NAMES): Remove.
12625         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12626         clear some builtins on VMS.  Calls vms_patch_builtins.
12627         (ia64_asm_output_external): Remove DO_CRTL_NAME.
12628         * config/ia64/vms64.h: Do not include vms-crtl-64.h
12629         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12630
12631 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12632
12633         * config/alpha/alpha.c (alpha_end_function): Always generate .end
12634         directive on VMS.
12635
12636 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12637
12638         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12639         the function receives nonlocal gotos.
12640
12641 2011-06-27  Richard Guenther  <rguenther@suse.de>
12642
12643         PR tree-optimization/49536
12644         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12645         For non-scalar inner types use a scalar type according to
12646         the scalar inner mode.
12647
12648 2011-06-27  Richard Guenther  <rguenther@suse.de>
12649
12650         PR tree-optimization/49365
12651         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12652
12653 2011-06-27  Richard Guenther  <rguenther@suse.de>
12654
12655         PR tree-optimization/49169
12656         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12657         the alignment of function decls.
12658
12659 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
12660
12661         PR target/47997
12662         * config/darwin.c (darwin_mergeable_string_section): Place string
12663         constants in '.cstring' rather than '.const' when CF/NSStrings are
12664         active.
12665
12666 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12667
12668         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12669         (emit_save_register_window): Likewise.
12670         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12671         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
12672         Swap back %o7/%i7 in register naming.
12673
12674 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
12675
12676         PR driver/49371
12677         * config/darwin.c (darwin_override_options): Improve warning when
12678         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12679         is given with fpie/fPIE.
12680         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12681         * config/darwin9.h (PIE_SPEC): New.
12682
12683 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
12684
12685         * timevar.c (timevar_print): Increase width for display of timevar
12686         name.
12687
12688 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
12689
12690         PR c++/46400
12691         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12692         instead of TYPE_CHAIN for chain_next for types.
12693
12694 2011-06-24  Richard Henderson  <rth@redhat.com>
12695
12696         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12697         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12698         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12699         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12700         (sparc_flat_expand_prologue): Emit individual instructions
12701         instead of one of the above.
12702
12703 2011-06-24  Easwaran Raman  <eraman@google.com>
12704
12705         PR rtl-optimization/49429
12706         PR target/49454
12707         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
12708         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12709         used to copy y into x.
12710         * calls.c (initialize_argument_information): Mark
12711         an argument addressable if it is passed by invisible reference.
12712         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
12713         if it is passed by reference.
12714
12715 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12716
12717         PR rtl-optimization/49504
12718         * rtlanal.c (nonzero_bits1): Properly handle addition or
12719         subtraction of a pointer in Pmode if pointers extend unsigned.
12720         (num_sign_bit_copies1): Likewise.
12721
12722 2011-06-24  Martin Jambor  <mjambor@suse.cz>
12723
12724         PR tree-optimizations/49516
12725         * tree-sra.c (sra_modify_assign): Choose the safe path for
12726         aggregate copies if we also did scalar replacements.
12727
12728 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12729
12730         PR target/49335
12731         * config/arm/predicates.md (add_operator): New.
12732         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
12733
12734 2011-06-24  Andi Kleen  <ak@linux.intel.com>
12735
12736         * tree-sra.c (type_internals_preclude_sra_p): Add msg
12737         parameter. Split up ifs and report reason in *msg.
12738         (reject): Add.
12739         (find_var_candiate): Add msg variable.
12740         Split up ifs and report reason to reject.
12741         (find_param_candidates): Add msg variable.
12742         Pass msg to type_internals_preclude_sra_p.
12743
12744 2011-06-23  Jeff Law  <law@redhat.com>
12745
12746         PR middle-end/48770
12747         * reload.h (reload): Change to return a bool.
12748         * ira.c (ira): If requested by reload, run a fast DCE pass after
12749         reload has completed.  Fix comment typo.
12750         * reload1.c (need_dce): New file scoped static.
12751         (reload): Set reload_completed here.  Return whether or not a DCE
12752         pass after reload is needed.
12753         (delete_dead_insn): Set need_dce as needed.
12754
12755         PR middle-end/49465
12756         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12757         to detect threading through joiner block.  If there was already
12758         an edge to the new target, then do not change the PHI nodes.
12759
12760 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
12761
12762         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12763         get_pointer_alignment to see if base isn't sufficiently aligned.
12764
12765 2011-06-23  Jan Hubicka  <jh@suse.cz>
12766
12767         PR tree-optimize/49373
12768         * tree-pass.h (all_late_ipa_passes): Declare.
12769         * cgraphunit.c (init_lowered_empty_function): Fix properties.
12770         (cgraph_optimize): Execute late passes; remove unreachable funcions
12771         after materialization.
12772         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12773         LTOing.
12774         * passes.c (all_late_ipa_passes): Declare.
12775         (dump_passes, register_pass): Handle late ipa passes.
12776         (init_optimization_passes): Move ipa_pta to late passes; schedule
12777         fixup_cfg at beggining of all_passes.
12778         (apply_ipa_transforms): New function.
12779         (execute_one_pass): When doing simple ipa pass, apply all transforms.
12780
12781 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
12782
12783         * params.c: Include common/common-target.h.  Don't include tm.h.
12784         (lang_independent_params): Move from toplev.c.
12785         (global_init_params): New.
12786         * params.h (global_init_params): Declare.
12787         * target.def (default_params): Move to common-target.def.
12788         * toplev.c (lang_independent_options): Remove.
12789         (lang_independent_params): Move to params.c.
12790         (general_init): Use global_init_params.
12791         * common/common-target.def (option_default_params): Move from
12792         target.def.
12793         * common/config/ia64/ia64-common.c: Include params.h.
12794         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12795         from ia64.c.
12796         * common/config/rs6000/rs6000-common.c: Include params.h.
12797         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12798         from rs6000.c.
12799         * common/config/sh/sh-common.c: Include params.h.
12800         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12801         from sh.c.
12802         * common/config/spu/spu-common.c: Include params.h.
12803         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12804         from spu.c.
12805         * config/ia64/ia64.c (ia64_option_default_params,
12806         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12807         * config/rs6000/rs6000.c (rs6000_option_default_params,
12808         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12809         * config/sh/sh.c (sh_option_default_params,
12810         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12811         * config/spu/spu.c (spu_option_default_params,
12812         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12813         * Makefile.in (OBJS): Remove params.o.
12814         (OBJS-libcommon-target): Add params.o.
12815         (params.o, $(common_out_object_file)): Update dependencies.
12816         * doc/tm.texi: Regenerate.
12817
12818 2011-06-23  Alan Modra  <amodra@gmail.com>
12819
12820         PR bootstrap/49383
12821         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12822         invocation for 2011-06-09 changes.
12823
12824 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12825
12826         PR libgomp/49490
12827         * omp-low.c (expand_omp_for_static_nochunk): Only
12828         use n ceil/ nthreads size for the first n % nthreads threads in the
12829         team instead of all threads except for the last few ones which
12830         get less work or none at all.
12831
12832         PR debug/49496
12833         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12834         uses.
12835
12836 2011-06-22  Richard Guenther  <rguenther@suse.de>
12837
12838         PR tree-optimization/49493
12839         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12840         Refer to the alias target of variables.
12841         (associate_varinfo_to_alias_1): Remove.
12842         (ipa_pta_execute): Do not associate aliases with anything.
12843         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12844         (cgraph_function_node): Likewise.
12845         (cgraph_function_or_thunk_node): Likewise.
12846         (varpool_variable_node): Likewise.
12847
12848 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12849
12850         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12851         * config.gcc (arm*-*-linux*): Default to gnu tls.
12852         (arm*-*-*): Add --with-tls option.
12853         (all_defaults): Add 'tls'.
12854
12855 2011-06-22  Richard Henderson  <rth@redhat.com>
12856
12857         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12858         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12859         (dwarf2out_frame_debug_cfa_window_save): Rename from
12860         dwarf2out_window_save; make static.
12861         * tree.h (dwarf2out_window_save): Don't declare.
12862
12863         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12864         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12865         (emit_save_register_window): Rename from gen_save_register_window;
12866         emit the insn and add REG_CFA_* notes.
12867         (sparc_expand_prologue): Update to match.
12868         * config/sparc/sparc.md (save_register_window_1): Simplify from
12869         save_register_window<P:mode>.
12870
12871 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12872
12873         PR target/49497
12874         * config/i386/i386.md (*lea_general_2): Always allow SImode.
12875         (*lea_general_2_zext): Likewise.
12876         (imul to lea peepholes): Use const359_operand and check
12877         TARGET_PARTIAL_REG_STALL.
12878
12879         * config/i386/predicates.md (const359_operand): New.
12880
12881 2011-06-22  Michael Matz  <matz@suse.de>
12882
12883         * cgraphunit.c (assemble_thunk): Use correct return type.
12884
12885 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
12886             Dmitry Melnik  <dm@ispras.ru>
12887
12888         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12889         (neon_output_shift_immediate): Ditto.
12890         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12891         prototype.
12892         (neon_output_shift_immediate): Ditto.
12893         * config/arm/neon.md (vashl<mode>3): Modified constraint.
12894         (vashr<mode>3_imm): New insn pattern.
12895         (vlshr<mode>3_imm): Ditto.
12896         (vashr<mode>3): Modified constraint.
12897         (vlshr<mode>3): Ditto.
12898         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12899         predicate.
12900         (imm_for_neon_rshift_operand): Ditto.
12901         (imm_lshift_or_reg_neon): Ditto.
12902         (imm_rshift_or_reg_neon): Ditto.
12903
12904         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12905
12906 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12907
12908         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
12909         builtin calls even if likelyvalue is not CONSTANT.
12910         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
12911         Return get_value_for_expr of first operand
12912         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
12913         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12914         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
12915         their non-checking counterparts.
12916         (call_may_clobber_ref_p_1): Likewise.
12917         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
12918         like their non-checking counterparts.
12919         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12920         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
12921         like their non-checking counterparts.
12922         (find_func_clobbers): Likewise.
12923         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
12924         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
12925
12926         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
12927         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
12928         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
12929         of base type reference as argument.
12930         (resolve_addr_in_expr): Likewise.  Fix keep computation.
12931         (convert_descriptor_to_signed): Renamed to...
12932         (convert_descriptor_to_mode): ... this.  For wider types convert to
12933         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
12934         (typed_binop): New function.
12935         (scompare_loc_descriptor, ucompare_loc_descriptor,
12936         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
12937         default to unsigned type instead of signed.
12938
12939         PR debug/47858
12940         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
12941         (gimple_build_debug_source_bind_stat): New prototype.
12942         (gimple_build_debug_source_bind): Define.
12943         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
12944         gimple_debug_source_bind_get_value,
12945         gimple_debug_source_bind_get_value_ptr,
12946         gimple_debug_source_bind_set_var,
12947         gimple_debug_source_bind_set_value): New inlines.
12948         * gimple.c (gimple_build_debug_source_bind_stat): New function.
12949         * gimple-pretty-print.c (dump_gimple_debug): Handle
12950         GIMPLE_DEBUG_SOURCE_BIND.
12951         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
12952         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12953         * tree-parloops.c (eliminate_local_variables,
12954         separate_decls_in_region): Likewise.
12955         (separate_decls_in_region_debug): Renamed from
12956         separate_decls_in_region_debug_bind.  Handle
12957         gimple_debug_source_bind_p.
12958         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
12959         prototypes.
12960         (DECL_HAS_DEBUG_ARGS_P): Define.
12961         (struct tree_function_decl): Add has_debug_args_flag field.
12962         * tree.c (debug_args_for_decl): New variable.
12963         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
12964         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
12965         (rewrite_debug_stmt_uses): New function.
12966         (rewrite_stmt): Use it to rewrite debug stmt uses.
12967         * rtl.def (DEBUG_PARAMETER_REF): New.
12968         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
12969         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
12970         DEBUG_PARAMETER_REF.
12971         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
12972         * print-rtl.c (print_rtx): Likewise.
12973         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
12974         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
12975         debug stmts in the first bb.
12976         * tree-inline.c (remap_ssa_name): If remapping default def
12977         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
12978         a source bind debug stmt.
12979         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
12980         (maybe_move_debug_stmts_to_successors): Likewise.
12981         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
12982         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
12983         debug args vector from old_decl to new_decl.
12984         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
12985         or modified parameters, add debug bind stmts before call
12986         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
12987         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
12988         on DECL_DEBUG_EXPRs from debug args vector.
12989         (expand_debug_source_expr): New function.
12990         (expand_debug_locations): Use it for source bind insns.
12991         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
12992         * var-tracking.c (prepare_call_arguments): Add debug args
12993         to call_arguments if any.
12994         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
12995         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
12996         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
12997         (get_ref_die_offset, parameter_ref_descriptor): New functions.
12998         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
12999         (gen_subprogram_die): Handle parameters identified by
13000         DEBUG_PARAMETER_REF.
13001
13002 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
13003
13004         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13005         * doc/install.texi (Configuration): Document --with-tls.
13006         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13007         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13008         (arm_tls_descseq_addr): New.
13009         (legitimize_tls_address): Add tlsdesc support.
13010         (arm_cannot_copy_insn_p): Check for tlscall.
13011         (arm_emit_tls_decoration): Likewise.
13012         * config/arm/arm.h (TARGET_GNU2_TLS): New.
13013         (OPTION_DEFAULT_SPECS): Add with-tls support.
13014         * config/arm/arm.md (R1_REGNUM): Define.
13015         (tlscall): New.
13016         * config/arm/arm.opt (tls_type): New enumeration type and values.
13017         (mtls-dialect): New switch.
13018         * config/arm/arm-opts.h (enum tls_type): New.
13019
13020 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13021
13022         * attribs.c (register_attribute): Added assert to check that all
13023         attribute specs are registered with a name that is not empty and
13024         does not start with '_'.
13025         (decl_attributes): Avoid the lookup of the "naked" attribute spec
13026         if the function has no attributes.
13027         * tree.c (is_attribute_with_length_p): Removed.
13028         (is_attribute_p): Removed.
13029         (private_is_attribute_p): New.
13030         (private_lookup_attribute): New.
13031         (lookup_attribute): Removed.
13032         (lookup_ident_attribute): New.
13033         (remove_attribute): Require the first argument to be in the form
13034         'text', not '__text__'.  Updated asserts.
13035         (merge_attributes): Use lookup_ident_attributes instead of
13036         lookup_attribute.
13037         (merge_dllimport_decl_attributes): Use remove_attribute.
13038         (attribute_list_contained): Likewise.
13039         (attribute_list_equal): Immediately return 1 if the arguments are
13040         identical pointers.
13041         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
13042         'int'.  Require the first argument to be in the form 'text', not
13043         '__text__'.  Require the second argument to be an identifier.
13044         (lookup_attribute): Made inline.  Require the first argument to be
13045         in the form 'text', not '__text__'.
13046         (private_is_attribute_p, private_lookup_attribute): New.
13047         Updated comments.
13048
13049 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13050
13051         * builtins.c: Add sync_ or SYNC__ to builtin names.
13052         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13053         * omp-low.c: Add sync_ or SYNC__ to builtin names.
13054
13055 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13056
13057         PR target/33049
13058         * config/avr/avr.md (extzv): New expander.
13059         (*extzv): New insn.
13060         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13061         * config/avr/constraints.md (C04): New constraint.
13062         * doc/md.texi (Machine Constraints): Document it.
13063
13064 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13065
13066         PR middle-end/49489
13067         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13068         unsignedp argument instead of 1 for clrsb_optab.
13069         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13070         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
13071         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13072         * optabs.c (widen_leading): Call widen_operand and expand_unop
13073         with 0 as unsignedp argument instead of 1 for clrsb_optab.
13074         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13075
13076 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13077
13078         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13079
13080 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
13081
13082         * gensupport.c (add_define_attr): New static function.
13083         (is_predicable): Allow multi-alternative lists for the "predicable"
13084         attribute.
13085         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13086         (process_one_cond_exec): Call alter_attrs_for_insn.
13087         * doc/md.texi (Defining Attributes): Mention some standard names.
13088         (Conditional Execution): Update documentation for "predicable".
13089
13090         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13091         __builtin_clrsbll): Document.
13092         * doc/rtl.texi (clrsb): New entry.
13093         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
13094         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
13095         (expand_unop): Handle clrsb_optab.
13096         (init_optabs): Initialize it.
13097         * optabs.h (enum optab_index): New entry OTI_clrsb.
13098         (clrsb_optab): Define.
13099         * genopinit.c (optabs): Add an entry for it.
13100         * builtins.c (expand_builtin): Handle clrsb builtin functions.
13101         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13102         BUILT_IN_CLRSBLL): New.
13103         * rtl.def (CLRSB): New code.
13104         * dwarf2out.c (mem_loc_descriptor): Handle it.
13105         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13106         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13107         and popcount.
13108         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13109         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13110         (__ctzDI2): Move declaration.
13111         * config/bfin/bfin.md (clrsbsi2): New expander.
13112         (signbitssi2): Use the CLRSB rtx.
13113         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
13114         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13115
13116 2011-06-21  Richard Guenther  <rguenther@suse.de>
13117
13118         * ipa-inline-transform.c (inline_transform): Fix previous change.
13119
13120 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
13121
13122         PR tree-optimization/49478
13123         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13124         with constant operand.
13125
13126 2011-06-21  Richard Guenther  <rguenther@suse.de>
13127
13128         * ipa-inline-transform.c (inline_transform): Fix typo.
13129
13130 2011-06-21  Richard Guenther  <rguenther@suse.de>
13131
13132         PR tree-optimization/49483
13133         * tree-vect-stmts.c (vectorizable_assignment): Also handle
13134         VIEW_CONVERT_EXPR conversions.
13135
13136 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
13137
13138         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
13139         * config/avr/avr-tables.opt: New file (generated).
13140         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
13141         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
13142         avr-mcus.def.
13143         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
13144         (avr_option_override): Don't process -mmcu= argument here.  Set
13145         avr_current_device using avr_mcu_index.
13146         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
13147         * config/avr/avr.opt (mmcu=): Use Enum.
13148         * config/avr/t-avr (avr-devices.o): Update dependencies.
13149         ($(srcdir)/config/avr/avr-tables.opt): New.
13150         * target.def (help): Remove.
13151         * doc/tm.texi.in (TARGET_HELP): Remove.
13152         * doc/tm.texi: Regenerate.
13153         * opts.c: Don't include target.h.
13154         (common_handle_option): Don't call targetm.help.
13155         * system.h (TARGET_HELP): Poison.
13156         * Makefile.in (opts.o): Update dependencies.
13157
13158 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13159
13160         * config/usegld.h: New file.
13161         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
13162         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
13163         (LIB_SPEC): Likewise.  Search /lib.
13164         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
13165         (RDYNAMIC_SPEC): Handle GNU ld.
13166         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
13167         Define.
13168         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
13169         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
13170         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
13171         (STACK_CHECK_STATIC_BUILTIN): Define.
13172         * config/sol2.opt (compat-bsd): Remove.
13173         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
13174         * config/sol2-bi.h: New file.
13175         * config/sol2-gld.h: Remove.
13176         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
13177         (NO_DBX_BNSYM_ENSYM): Remove.
13178         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13179         (STACK_CHECK_STATIC_BUILTIN): Remove.
13180         Test USE_GLD instead of TARGET_GNU_LD.
13181         * config/i386/sol2-10.h: Rename to ...
13182         * config/i386/sol2-bi.h .. this.
13183         (SUBTARGET_EXTRA_SPECS): Redefine.
13184         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
13185         (MULTILIB_DEFAULTS): Remove.
13186         (DEFAULT_ARCH32_P): Define.
13187         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
13188         (ARCH64_SUBDIR): Define.
13189         Test USE_GLD instead of TARGET_GNU_LD.
13190         (I386_EMULATION): Rename to ...
13191         (ARCH32_EMULATION): ... this.
13192         (X86_64_EMULATION): Rename to ...
13193         (ARCH64_EMULATION): ... this.
13194         (TARGET_LD_EMULATION): Remove.
13195         (LINK_ARCH_SPEC): Remove.
13196         * config/i386/sol2-gas.h: Remove.
13197         * config/i386/t-sol2-10: Rename to ...
13198         * config/i386/t-sol2-64: ... this.
13199         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
13200         (AS_SPARC64_FLAG): Define.
13201         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
13202         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
13203         depending on TARGET_CPU_DEFAULT.
13204         (CPP_CPU_SPEC): Redefine.
13205         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
13206         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
13207         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
13208         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
13209         ASM_ARCH_DEFAULT_SPEC): Redefine.
13210         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13211         LINK_ARCH_DEFAULT_SPEC.
13212         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
13213         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
13214         (ARCH64_SUBDIR): Define.
13215         (LINK_ARCH64_SPEC): Redefine.
13216         (CC1_SPEC): Redefine.
13217         (OPTION_DEFAULT_SPECS): Redefine.
13218         (MULTILIB_DEFAULTS): Define.
13219         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
13220         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
13221         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
13222         (NO_DBX_BNSYM_ENSYM): Remove.
13223         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13224         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
13225         (TARGET_ASM_NAMED_SECTION): Likewise.
13226         (STACK_CHECK_STATIC_BUILTIN): Remove.
13227         * config/sparc/sol2-bi.h: Remove.
13228         * config/sparc/sol2-gas-bi.h: Remove.
13229         * config/sparc/sol2-gas.h: Remove.
13230         * config/sparc/sol2-gld-bi.h: Remove.
13231         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
13232         common parts ...
13233         (*-*-solaris2*): ... here.
13234
13235 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13236
13237         PR other/43564
13238         * ipa-inline.c (can_inline_edge_p): Check
13239         !DECL_DISREGARD_INLINE_LIMITS.
13240
13241 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13242
13243         PR middle-end/49139
13244         * cgraphunit.c (process_function_and_variable_attributes): warn when
13245         always_inline functions that are not inline.
13246         * ipa-inline-transform.c (inline_transform): Always call
13247         optimize_inline.
13248         * tree-inline.c (tree_inlinable_function_p): Use error instead
13249         of sorry.
13250         (expand_call_inline): Likewise.
13251
13252 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13253
13254         * Makefile.in (dg_target_exps): Set.
13255         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
13256         instead of 7, try to divide it more evenly.
13257
13258 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
13259
13260         PR target/49089
13261         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
13262         (avx256_split_unaligned_store): New definition.
13263         (ix86_option_override_internal): Enable avx256 unaligned load/store
13264         splitting only when avx256_split_unaligned_load/store is set.
13265
13266 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13267
13268         * regrename.c (scan_rtx_reg): Handle the case where we write to an
13269         open chain in a smaller mode without failing the entire block.
13270
13271 2011-06-21  Alan Modra  <amodra@gmail.com>
13272
13273         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
13274         CONST high part large-toc address.
13275         (rs6000_tls_referenced_p): Make static.
13276         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
13277
13278 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13279
13280         PR target/49385
13281         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
13282         one of the operands is a register.
13283
13284 2011-06-20  Kai Tietz  <ktietz@redhat.com>
13285
13286         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13287         operations in combination with binary and.
13288
13289 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13290
13291         * regrename.c (do_replace): Don't update notes.
13292
13293 2011-06-20  Alan Modra  <amodra@gmail.com>
13294
13295         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13296         of toc-relative address in CONST.
13297         (rs6000_delegitimize_address): Recognize changed address.
13298         (rs6000_legitimize_reload_address): Likewise.
13299         (rs6000_emit_move): Don't force these constants to memory.
13300         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13301         toc-relative address in CONST.
13302         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13303         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13304
13305 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13306
13307         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13308         (count_trailing_zeros): Likewise.
13309
13310 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13311
13312         PR other/49325
13313         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13314         .init_array can be used with .ctors on targets.
13315         * configure: Regenerated.
13316
13317 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13318
13319         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13320         if the element type is volatile.
13321
13322 2011-06-18  Jan Hubicka  <jh@suse.cz>
13323
13324         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13325         extra name aliases.
13326         (lto_symtab_resolve_can_prevail_p): Likewise.
13327         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13328         * cgraphbuild.c (record_reference): Remove extra body alias code.
13329         (mark_load): Likewise.
13330         (mark_store): Likewise.
13331         * cgraph.h (varpool_node): Remove extra_name filed;
13332         add alias_of and extraname_alias.
13333         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13334         (varpool_alias_aliased_node): New inline function.
13335         (varpool_variable_node): New function.
13336         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13337         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13338         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13339         (input_varpool_node): Likewise.
13340         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13341         (varpool_externally_visible_p): Remove extra body alias code.
13342         (function_and_variable_visibility): Likewise.
13343         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13344         (ipa_pta_execute): Use it.
13345         * varpool.c (varpool_remove_node): Remove extra name alias code.
13346         (varpool_mark_needed_node): Likewise.
13347         (varpool_analyze_pending_decls): Analyze aliases.
13348         (assemble_aliases): New functoin.
13349         (varpool_assemble_decl): Use it.
13350         (varpool_create_variable_alias): New function.
13351         (varpool_extra_name_alias): Rewrite.
13352         (varpool_for_node_and_aliases): New function.
13353
13354 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
13355
13356         PR target/49411
13357         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13358         last_arg_constant and last argument doesn't match its predicate,
13359         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13360         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13361         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13362         spelling of error message.
13363         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13364         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13365         const_0_to_255_operand instead of const_int_operand.
13366
13367         Revert:
13368         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13369
13370         * config/i386/sse.md (blendbits): Remove mode attribute.
13371         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13372         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13373         Check integer value of operand 3 in insn constraint.
13374
13375 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
13376
13377         PR rtl-optimization/48542
13378         * reload.c (find_equiv_reg): Stop looking when finding a
13379         setjmp-type call.
13380         * reload1.c (reload_as_needed): Invalidate all reload
13381         registers when crossing a setjmp-type call.
13382
13383 2011-06-16  Jeff Law  <law@redhat.com>
13384
13385         * tree-ssa-threadupdate.c (struct redirection_data): New field
13386         intermediate_edge.
13387         (THREAD_TARGET2): Define.
13388         (redirection_data_eq): Also check that the intermediate edge is equal.
13389         (lookup_redirection_data): Drop useless argument.  Extract the
13390         outgoing_edge and intermediate edge from E.  Callers updated.
13391         (copy_phi_args, update_destination_phis): New functions.
13392         (fix_duplicate_block_edges): Likewise.
13393         (create_edge_and_update_destination_phis): Duplicate all the edges
13394         hung off e->aux.  Use copy_phi_args.
13395         (create_duplicates): Use fix_duplicate_block_edges.
13396         (fixup_template_block): Likewise.
13397         (redirect_edges): If necessary, redirect the joiner block's incoming
13398         edge to the duplicate of the joiner block.
13399         (thread_block): Don't muck up loops when threading through a joiner
13400         block.
13401         (thread_through_loop_header): Handle threading through a joiner block.
13402         (mark_threaded_blocks, register_jump_thread): Likewise.
13403         * tree-flow.h (register_jump_thread): Add new argument.  Callers
13404         updated.
13405         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13406         (thread_across_edge): Handle threading through a joiner block.
13407
13408 2011-06-16  Martin Jambor  <mjambor@suse.cz>
13409
13410         PR tree-optimization/49343
13411         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13412         calculate offset, provide 2nd operand for the new COMPONENT_REF.
13413
13414 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
13415
13416         * config/darwin-protos.h (machopic_select_rtx_section): Move to
13417         inside RTX_CODE ifdef.
13418
13419 2011-06-16  Tom de Vries  <tom@codesourcery.com>
13420
13421         PR target/45098
13422         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13423         Disallow NULL pointer for pointer arithmetic.
13424
13425 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13426
13427         PR target/49398
13428         Revert.
13429         2011-06-10  Wei Guozhi  <carrot@google.com>
13430
13431         PR target/45335
13432         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13433         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13434         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13435         related peephole2.
13436         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13437         related peephole2.
13438         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13439         (arm_legitimate_ldrd_p): New prototype.
13440         (arm_output_ldrd): New prototype.
13441         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13442         (arm_legitimate_ldrd_p): New function.
13443         (arm_output_ldrd): New function.
13444
13445 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
13446
13447         PR middle-end/46500
13448         * doc/tm.texi.in: Update Copyright date.
13449         * doc/tm.texi: Regenerate.
13450         * targhooks.c (default_setup_incoming_varargs): Replace
13451         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13452         (default_pretend_outgoing_varargs_named): Likewise.
13453         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13454         (hook_callee_copies_named): Likewise.
13455         (default_function_arg_advance): Likewise.
13456         (default_function_arg): Likewise.
13457         (default_function_incoming_arg): Likewise.
13458         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13459         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13460         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13461         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13462         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13463         * targhooks.h (default_setup_incoming_varargs): Likewise.
13464         (default_pretend_outgoing_varargs_named): Likewise.
13465         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13466         (hook_callee_copies_named): Likewise.
13467         (default_function_arg_advance): Likewise.
13468         (default_function_arg): Likewise.
13469         (default_function_incoming_arg): Likewise.
13470         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13471         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13472         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13473         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13474         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13475         * target.def (pass_by_reference): Likewise.
13476         (setup_incoming_varargs, strict_argument_naming): Likewise.
13477         (pretend_outgoing_varargs_named, callee_copies): Likewise.
13478         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13479         (function_incoming_arg): Likewise.
13480         * target.h: Don't include "tm.h" .
13481         (cumulative_args_t): New typedef.
13482         [GCC_TM_H] (get_cumulative_args): New static inline function.
13483         [GCC_TM_H] (pack_cumulative_args): Likewise.
13484         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13485         argument type with cumulative_args_t.
13486         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13487         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13488         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13489         (frv_arg_partial_bytes, frv_function_arg): Likewise.
13490         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13491         (frv_function_arg_1): Likewise.
13492         * config/s390/s390.c (s390_pass_by_reference): Likewise.
13493         (s390_function_arg_advance, s390_function_arg): Likewise.
13494         * config/m32c/m32c.c (m32c_function_arg): Likewise.
13495         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13496         (m32c_strict_argument_naming): Likewise.
13497         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13498         (spu_function_arg_advance): Likewise.
13499         (spu_setup_incoming_varargs): Likewise.  Make static.
13500         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13501         Remove prototype.
13502         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13503         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13504         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13505         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13506         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13507         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13508         (mep_pass_by_reference, mep_function_arg): Likewise.
13509         (mep_function_arg_advance): Likewise.
13510         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13511         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13512         (m32r_function_arg, m32r_function_arg_advance): Likewise.
13513         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13514         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13515         (ix86_function_arg, ix86_pass_by_reference): Likewise.
13516         (ix86_setup_incoming_varargs): Likewise.
13517         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13518         (sh_strict_argument_naming): Likewise.
13519         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13520         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13521         (sh_function_arg_advance, sh_function_arg): Likewise.
13522         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13523         (pdp11_function_arg_advance): Likewise.
13524         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13525         Likewise.
13526         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13527         * config/avr/avr.c (avr_function_arg): Likewise.
13528         (avr_function_arg_advance): Likewise.
13529         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13530         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13531         (xtensa_function_arg_1): Likewise.
13532         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13533         Likewise.
13534         (xstormy16_function_arg): Likewise.
13535         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13536         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13537         (fr30_function_arg_advance): Likewise.
13538         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13539         (lm32_function_arg, lm32_function_arg_advance): Likewise.
13540         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13541         (moxie_function_arg, moxie_function_arg_advance): Likewise.
13542         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13543         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13544         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13545         (cris_function_arg, cris_function_incoming_arg): Likewise.
13546         (cris_function_arg_advance, cris_function_arg_1): Likewise.
13547         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13548         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13549         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13550         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13551         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13552         (mn10300_arg_partial_bytes): Likewise.
13553         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13554         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13555         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13556         (ia64_function_arg_1): Likewise.
13557         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13558         (m68k_function_arg): Likewise.
13559         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13560         (rs6000_function_arg, setup_incoming_varargs): Likewise.
13561         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13562         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13563         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13564         (picochip_arg_advance): Likewise.
13565         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13566         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13567         (mcore_function_arg_advance): Likewise.
13568         * config/score/score.c (score_pass_by_reference): Likewise.
13569         (score_function_arg_advance): Likewise.
13570         (score_arg_partial_bytes): Likewise.  Make static.
13571         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13572         * config/arm/arm.c (arm_arg_partial_bytes): Replace
13573         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13574         (arm_function_arg, arm_function_arg_advance): Likewise.
13575         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13576         * config/pa/pa.c (pa_pass_by_reference): Likewise.
13577         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13578         (pa_function_arg): Likewise.
13579         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13580         (mips_function_arg, mips_function_arg_advance): Likewise.
13581         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13582         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13583         * config/vax/vax.c (vax_function_arg): Likewise.
13584         (vax_function_arg_advance): Likewise.
13585         * config/h8300/h8300.c (h8300_function_arg): Likewise.
13586         (h8300_function_arg_advance): Likewise.
13587         * config/v850/v850.c (v850_pass_by_reference): Likewise.
13588         (v850_strict_argument_naming, v850_function_arg): Likewise.
13589         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13590         (v850_setup_incoming_varargs): Likewise.
13591         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13592         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13593         (mmix_function_arg, mmix_pass_by_reference): Likewise.
13594         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13595         with const void *.
13596         * config/bfin/bfin.c (setup_incoming_varargs): Replace
13597         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13598         (bfin_function_arg_advance, bfin_function_arg): Likewise.
13599         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13600         * calls.c (emit_call_1): Change type of args_so_far to
13601         cumulative_args_t.  Changed all callers.
13602         (initialize_argument_information): Likewise.
13603         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13604         * dse.c (get_call_args): Likewise.
13605         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13606         * function.c (pass_by_reference, reference_callee_copied): Likewise.
13607         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13608         New member args_so_far_v.  Changed all users.
13609         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13610         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13611         * config/mips/mips.c (mips_output_args_xfer): Likewise.
13612         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13613         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13614         * config/microblaze/microblaze.c (microblaze_expand_prologue):
13615         Likewise.
13616         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13617         m32r_pass_by_reference.
13618
13619 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
13620
13621         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13622         argument to be a VEC of statements.
13623         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13624         assert that pattern statements have to have their vector type set.
13625         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13626         Change the first argument to be a VEC of statements.  Update
13627         documentation.
13628         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13629         (vect_handle_widen_mult_by_const): New function.
13630         (vect_recog_widen_mult_pattern):  Change the first argument to be a
13631         VEC of statements.  Update documentation.  Check that the constant is
13632         INTEGER_CST.  Support multiplication by a constant that fits an
13633         intermediate type - call vect_handle_widen_mult_by_const.
13634         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13635         call.  Handle additional pattern statements if necessary.
13636
13637 2011-06-16  Nick Clifton  <nickc@redhat.com>
13638
13639         PR target/49427
13640         * config.gcc: Set cpu_type to v850 for any V850 architecture.
13641         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13642         md_file, extra_modes, out_file and extra_options are these are all
13643         deduced from cpu_type.
13644
13645 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13646
13647         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13648         truncation mask to 63.
13649
13650 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13651
13652         PR target/49313
13653         PR target/29524
13654         * longlong.h: Add AVR support:
13655         (count_leading_zeros): New macro.
13656         (count_trailing_zeros): New macro.
13657         (COUNT_LEADING_ZEROS_0): New macro.
13658         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13659         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13660         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13661         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13662         (LIB2FUNCS_EXCLUDE): Add _clz.
13663         * config/avr/libgcc.S (XCALL): Move up in file.
13664         (XJMP): New C Macro.
13665         (DEFUN): New asm macro.
13666         (ENDF): New asm macro.
13667         (__ffssi2): New function.
13668         (__ffshi2): New function.
13669         (__loop_ffsqi2): New function.
13670         (__ctzsi2): New function.
13671         (__ctzhi2): New function.
13672         (__clzdi2): New function.
13673         (__clzsi2): New function.
13674         (__clzhi2): New function.
13675         (__paritydi2): New function.
13676         (__paritysi2): New function.
13677         (__parityhi2): New function.
13678         (__parityqi2): New function.
13679         (__popcounthi2): New function.
13680         (__popcountsi2): New function.
13681         (__popcountdi2): New function.
13682         (__popcountqi2): New function.
13683         (__bswapsi2): New function.
13684         (__bswapdi2): New function.
13685         (__ashldi3): New function.
13686         (__ashrdi3): New function.
13687         (__lshrdi3): New function.
13688         Fix suspicous lines.
13689
13690 2011-06-16  Richard Guenther  <rguenther@suse.de>
13691
13692         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13693         the same as x != 0.
13694         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13695         to (bool) X & 1.
13696         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13697         equality compares against zero for the lower bit.
13698
13699 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
13700
13701         PR tree-optimization/49419
13702         * tree-vrp.c (execute_vrp): Call init_range_assertions
13703         before estimate_numbers_of_iterations, call
13704         free_number_of_iterations_estimates before calling
13705         remove_range_assertions.
13706
13707 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13708
13709         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13710         (struct partial_schedule): Add rows_length field.
13711         (verify_partial_schedule): Check rows_length.
13712         (ps_insert_empty_row): Handle rows_length.
13713         (create_partial_schedule): Likewise.
13714         (free_partial_schedule): Likewise.
13715         (reset_partial_schedule): Likewise.
13716         (create_ps_insn): Remove rest_count argument.
13717         (remove_node_from_ps): Update rows_length.
13718         (add_node_to_ps): Update rows_length and call create_ps_insn
13719         without passing row_rest_count.
13720         (rotate_partial_schedule): Update rows_length.
13721
13722 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13723
13724         * ddg.c (add_intra_loop_mem_dep): New function.
13725         (build_intra_loop_deps): Call it.
13726
13727 2011-06-13  Jeff Law  <law@redhat.com>
13728
13729         * df-problems.c (df_lr_local_compute): Manually CSE
13730         PIC_OFFSET_TABLE_REGNUM.
13731         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
13732         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
13733
13734 2011-06-13  Jan Hubicka  <jh@suse.cz>
13735
13736         * cgraphunit.c (handle_alias_pairs): New function.
13737         (cgraph_finalize_compilation_unit): Use it.
13738         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13739         as externally visible.
13740
13741 2011-06-15  Richard Guenther  <rguenther@suse.de>
13742
13743         * expr.c (expand_expr_real_2): Reduce all integral types to
13744         bitfield precision.
13745         (expand_expr_real_1): Likewise.
13746
13747 2011-06-15  Martin Jambor  <mjambor@suse.cz>
13748
13749         PR tree-optimization/48613
13750         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13751         ipa_node_params_vector is NULL.
13752
13753 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
13754
13755         PR debug/49382
13756         * dwarf2out.c (dw_loc_list_node): Add force field.
13757         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13758         location in the list, even if it is modified before first real insn.
13759         (output_loc_list): Emit empty ranges with force flag set.
13760         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13761
13762 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
13763
13764         PR target/49349
13765         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13766         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
13767         above a fence.  Update comments.
13768         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13769         placed just above it.  Do not allow NULL place_to_insert.
13770
13771 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
13772
13773         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13774         (slpeel_tree_peel_loop_to_edge): Don't call
13775         remove_dead_stmts_from_loop.
13776         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13777         remove irrelevant pattern statements.  For irrelevant statements
13778         check if it is the last statement of a detected pattern, use
13779         corresponding pattern statement instead.
13780         (destroy_loop_vec_info): No need to remove pattern statements,
13781         only free stmt_vec_info.
13782         (vect_transform_loop): For irrelevant statements check if it is
13783         the last statement of a detected pattern, use corresponding
13784         pattern statement instead.
13785         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13786         pattern statements.  Set basic block for the new statement.
13787         (vect_pattern_recog): Update documentation.
13788         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13789         operands of pattern statements.
13790         (vectorizable_call): Fix printing.  In case of a pattern statement
13791         use the lhs of the original statement when creating a dummy
13792         statement to replace the original call.
13793         (vect_analyze_stmt): For irrelevant statements check if it is
13794         the last statement of a detected pattern, use corresponding
13795         pattern statement instead.
13796         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13797         statements use gsi of the original statement.
13798
13799 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13800
13801         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13802         common/common-target-def.h.
13803         * target.def (default_target_flags, handle_option,
13804         supports_split_stack, optimization_table, init_struct,
13805         except_unwind_info, unwind_tables_default, have_named_sections):
13806         Move to common/common-target.def.
13807         * target.h (enum opt_levels, struct default_options): Move to
13808         common/common-target.h.
13809         * targhooks.c (default_except_unwind_info,
13810         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13811         default_target_handle_option, empty_optimization_table): Move to
13812         common/common-targhooks.c.
13813         * targhooks.h (default_except_unwind_info,
13814         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13815         default_target_handle_option, empty_optimization_table): Move to
13816         common/common-targhooks.h.
13817         * common/common-target-def.h: Include common/common-targhooks.h.
13818         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13819         defined.
13820         * common/common-target.def (handle_option, option_init_struct,
13821         option_optimization_table, default_target_flags,
13822         except_unwind_info, supports_split_stack, unwind_tables_default,
13823         have_named_sections): Move from target.def.
13824         (HOOK_PREFIX): Undefine at end of file.
13825         * common/common-target.h: Include input.h.
13826         (enum opt_levels, struct default_options): Move from target.h.
13827         * common/common-targhooks.c, common/common-targhooks.h: New.
13828         * config.gcc (target_has_targetm_common): Default to yes.
13829         (moxie*): Set target_has_targetm_common=no.
13830         (hppa*-*-*): Don't set target_has_targetm_common=yes.
13831         * doc/tm.texi: Regenerate.
13832         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13833         (C_TARGET_DEF_H): Add common/common-targhooks.h.
13834         (GCC_OBJS): Remove vec.o.
13835         (OBJS): Remove hooks.o and vec.o.
13836         (OBJS-libcommon-target): Add vec.o, hooks.o and
13837         common/common-targhooks.o.
13838         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13839         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13840         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13841         cfglayout.o, $(out_object_file), $(common_out_object_file)):
13842         Update dependencies.
13843         (common/common-targhooks.o): New.
13844         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
13845         * common/config/pa/pa-common.c: Include more headers.  Take
13846         copyright dates from pa.c.
13847         (pa_option_optimization_table, pa_handle_option,
13848         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13849         TARGET_HANDLE_OPTION): Move from pa.c.
13850         * common/config/alpha/alpha-common.c,
13851         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13852         common/config/bfin/bfin-common.c,
13853         common/config/cris/cris-common.c,
13854         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13855         common/config/h8300/h8300-common.c,
13856         common/config/i386/i386-common.c,
13857         common/config/ia64/ia64-common.c,
13858         common/config/iq2000/iq2000-common.c,
13859         common/config/lm32/lm32-common.c,
13860         common/config/m32c/m32c-common.c,
13861         common/config/m32r/m32r-common.c,
13862         common/config/m68k/m68k-common.c,
13863         common/config/mcore/mcore-common.c,
13864         common/config/mep/mep-common.c,
13865         common/config/microblaze/microblaze-common.c,
13866         common/config/mips/mips-common.c,
13867         common/config/mmix/mmix-common.c,
13868         common/config/mn10300/mn10300-common.c,
13869         common/config/pdp11/pdp11-common.c,
13870         common/config/picochip/picochip-common.c,
13871         common/config/rs6000/rs6000-common.c,
13872         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13873         common/config/score/score-common.c, common/config/sh/sh-common.c,
13874         common/config/sparc/sparc-common.c,
13875         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13876         common/config/vax/vax-common.c,
13877         common/config/xstormy16/xstormy16-common.c,
13878         common/config/xtensa/xtensa-common.c: New.
13879         * config/alpha/alpha.c: Include common/common-target.h.
13880         (alpha_option_optimization_table, alpha_handle_option,
13881         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13882         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13883         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13884         * config/arm/arm.c (arm_option_optimization_table,
13885         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13886         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13887         arm-common.c.
13888         * config/avr/avr.c (avr_option_optimization_table,
13889         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13890         to avr-common.c.
13891         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13892         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13893         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13894         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13895         * config/cris/cris.c (cris_option_optimization_table,
13896         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13897         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13898         cris-common.c.
13899         * config/fr30/fr30.c (fr30_option_optimization_table,
13900         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13901         to fr30-common.c.
13902         * config/frv/frv.c (frv_option_optimization_table,
13903         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13904         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13905         * config/h8300/h8300.c (h8300_option_optimization_table,
13906         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13907         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
13908         * config/i386/i386-protos.h (ix86_handle_option): Declare.
13909         * config/i386/i386.c: Include common/common-target.h.
13910         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
13911         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
13912         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
13913         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
13914         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
13915         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
13916         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
13917         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
13918         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
13919         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
13920         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
13921         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
13922         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
13923         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
13924         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
13925         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
13926         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
13927         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
13928         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
13929         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
13930         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
13931         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
13932         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
13933         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
13934         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
13935         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
13936         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
13937         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
13938         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
13939         ix86_option_optimization_table, ix86_option_init_struct,
13940         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
13941         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
13942         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
13943         i386-common.c.
13944         * config/i386/t-i386 (i386.o): Update dependencies.
13945         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
13946         * config/ia64/ia64.c (ia64_option_optimization_table,
13947         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13948         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13949         ia64_handle_option): Move to ia64-common.c.
13950         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
13951         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
13952         * config/lm32/lm32.c (lm32_option_optimization_table,
13953         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13954         to lm32-common.c.
13955         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
13956         m32c-common.c.
13957         * config/m32r/m32r.c (m32r_option_optimization_table,
13958         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13959         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
13960         m32r_handle_option): Move to m32r-common.c.
13961         (m32r_memory_move_cost): Remove comment referring to
13962         TARGET_HANDLE_OPTION.
13963         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
13964         Move to m68k-common.c.
13965         * config/mcore/mcore.c (mcore_option_optimization_table,
13966         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13967         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
13968         * config/mep/mep.c (mep_option_optimization_table,
13969         mep_handle_option, TARGET_HANDLE_OPTION,
13970         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
13971         Move to mep-common.c.
13972         * config/microblaze/microblaze.c
13973         (microblaze_option_optimization_table,
13974         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13975         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
13976         * config/mips/mips.c (mips_handle_option,
13977         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13978         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
13979         mips-common.c.
13980         * config/mmix/mmix.c (mmix_option_optimization_table,
13981         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
13982         Move to mmix-common.c.
13983         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
13984         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
13985         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13986         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
13987         * config/pa/pa.c: Include common/common-target.h.
13988         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
13989         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13990         pa_handle_option): Move to pa-common.c.
13991         (pa_option_override): Use targetm_common.except_unwind_info.
13992         (pa_asm_output_mi_thunk, pa_function_section): Use
13993         targetm_common.have_named_sections.
13994         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
13995         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13996         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
13997         pdp11_handle_option, pdp11_option_init_struct): Move to
13998         pdp11-common.c.
13999         * config/picochip/picochip.c (picochip_option_optimization_table,
14000         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14001         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14002         * config/rs6000/rs6000.c: Include common/common-target.h.
14003         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14004         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14005         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14006         rs6000_handle_option): Move to rs6000-common.c.
14007         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14008         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14009         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14010         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14011         * config/s390/s390.c (processor_flags_table,
14012         s390_option_optimization_table, s390_option_init_struct,
14013         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14014         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14015         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14016         * config/s390/s390.h (processor_flags_table): Declare.
14017         * config/score/score.c (score_option_optimization_table,
14018         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14019         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14020         score_handle_option): Move to score-common.c.
14021         * config/sh/sh.c (sh_option_optimization_table,
14022         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14023         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14024         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14025         * config/sparc/sparc.c: Include common/common-target.h.
14026         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14027         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14028         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14029         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14030         spu_option_init_struct): Move to spu-common.c.
14031         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14032         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14033         * config/v850/v850.c (small_memory_physical_max,
14034         v850_handle_memory_optionn v850_handle_option,
14035         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14036         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14037         v850-common.c.
14038         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14039         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14040         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14041         Move to xtensa-common.c.
14042         * cfglayout.c: Include common/common-target.h.
14043         (fixup_reorder_chain): Use targetm_common.have_named_sections.
14044         * cfgrtl.c: Include common/common-target.h.
14045         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14046         targetm_common.have_named_sections.
14047         * dbxout.c: Include common/common-target.h.
14048         (dbxout_function_end): Use targetm_common.have_named_sections.
14049         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14050         targetm_common.except_unwind_info.
14051         * dwarf2out.c: Include common/common-target.h.
14052         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14053         dwarf2out_begin_prologue, dwarf2out_frame_init,
14054         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14055         targetm_common.except_unwind_info.
14056         * except.c: Include common/common-target.h.
14057         (init_eh, finish_eh_generation,
14058         output_one_function_exception_table): Use
14059         targetm_common.except_unwind_info.
14060         (switch_to_exception_section): Use targetm_common.have_named_sections.
14061         * explow.c: Include common/common-target.h.
14062         * expr.c: Include common/common-target.h.
14063         (build_personality_function): Use targetm_common.except_unwind_info.
14064         * function.c: Include common/common-target.h.
14065         (expand_function_end): Use targetm_common.except_unwind_info.
14066         * haifa-sched.c: Include common/common-target.h.
14067         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14068         * lto-opts.c: Include common/common-target.h instead of target.h.
14069         (lto_reissue_options): Use targetm_common.handle_option.
14070         * opts.c: Include common/common-target.h.
14071         (target_handle_option): Use targetm_common.handle_option.
14072         (init_options_struct): Update comment referring to
14073         targetm.target_option.optimization.  Use
14074         targetm_common.default_target_flags,
14075         targetm_common.unwind_tables_default and
14076         targetm_common.option_init_struct.
14077         (default_options_optimization): Use
14078         targetm_common.option_optimization_table.
14079         (finish_options): Use targetm_common.except_unwind_info,
14080         targetm_common.unwind_tables_default,
14081         targetm_common.have_named_sections and
14082         targetm_common.supports_split_stack.
14083         * toplev.c: Include common/common-target.h.
14084         (process_options): Use targetm_common.have_named_sections.
14085         * tree-tailcall.c: Include common/common-target.h.
14086         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14087         * tree.c: Include common/common-target.h.
14088         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14089         * varasm.c: Include common/common-target.h.
14090         (resolve_unique_section, hot_function_section,
14091         default_function_section): Use targetm_common.have_named_sections.
14092
14093 2011-06-14  Easwaran Raman  <eraman@google.com>
14094
14095         PR rtl-optimization/44194
14096         * dse.c: Include tree-flow.h
14097         (insn_info): Add new field non_frame_wild_read.
14098         (group_info): Add new fields escaped_n and escaped_p.
14099         (kill_on_calls): New variable.
14100         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14101         (dse_step0): Initialize kill_on_calls.
14102         (can_escape): New function.
14103         (set_usage_bits): Add additional parameter; record information
14104         about escaped locations.
14105         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14106         (dse_step2_nospill): Set kill_on_calls based on
14107         group->escaped_n and group->escaped_n.
14108         (add_wild_read): Refactor into...
14109         (reset_active_stores): ... New function, and
14110         (free_read_records): ... New function.
14111         (add_non_frame_wild_read): New function.
14112         (scan_insn): Call add_non_frame_wild_read on non-const calls.
14113         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14114         (dse_step5_nospill): Call scan_reads_nospill for instructions
14115         marked as non_frame_wild_read.
14116         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14117
14118 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
14119
14120         * common/common-target-def.h, common/common-target.def,
14121         common/common-target.h, common/config/default-common.c,
14122         common/config/pa/pa-common.c: New files.
14123         * Makefile.in (common_out_file, common_out_object_file,
14124         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14125         (OBJS-libcommon-target): Include $(common_out_object_file).
14126         (prefix.o): Update dependencies.
14127         ($(common_out_object_file), common/common-target-hooks-def.h,
14128         s-common-target-hooks-def-h): New.
14129         (s-tm-texi): Also check timestamp on common-target.def.
14130         (build/genhooks.o): Update dependencies.
14131         * config.gcc (common_out_file, target_has_targetm_common): Define.
14132         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14133         TARGET_ALWAYS_STRIP_DOTDOT.
14134         * configure.ac (common_out_object_file): Define.
14135         (common_out_file, common_out_object_file): Substitute.
14136         (common): Create directory.
14137         * configure: Regenerate.
14138         * doc/tm.texi.in (targetm_common): Document.
14139         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
14140         * doc/tm.texi: Regenerate.
14141         * genhooks.c (hook_array): Also include common/common-target.def.
14142         * prefix.c (tm.h): Don't include.
14143         (common/common-target.h): Include.
14144         (ALWAYS_STRIP_DOTDOT): Don't define.
14145         (update_path): Use targetm_common.always_strip_dotdot instead of
14146         ALWAYS_STRIP_DOTDOT.
14147         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
14148
14149 2011-06-14  David Li  <davidxl@google.com>
14150
14151         * passes.c (execute_function_todo): Remove TODO_dump_func.
14152         (execute_one_pass): Remove TODO_dump_func.
14153         (execute_function_dump): New function.
14154         * tree-vrp.c: Remove TODO_dump_func.
14155         * regrename.c: Remove TODO_dump_func.
14156         * fwprop.c: Remove TODO_dump_func.
14157         * tree-into-ssa.c: Remove TODO_dump_func.
14158         * tree-complex.c: Remove TODO_dump_func.
14159         * tracer.c: Remove TODO_dump_func.
14160         * tree-loop-distribution.c: Remove TODO_dump_func.
14161         * postreload-gcse.c: Remove TODO_dump_func.
14162         * postreload.c: Remove TODO_dump_func.
14163         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
14164         * tree-tailcall.c: Remove TODO_dump_func.
14165         * ipa-cp.c: Remove TODO_dump_func.
14166         * final.c: Remove TODO_dump_func.
14167         * tree-emutls.c: Remove TODO_dump_func.
14168         * omp-low.c: Remove TODO_dump_func.
14169         * tree-ssa-dse.c: Remove TODO_dump_func.
14170         * tree-ssa-uncprop.c: Remove TODO_dump_func.
14171         * auto-inc-dec.c: Remove TODO_dump_func.
14172         * reorg.c: Remove TODO_dump_func.
14173         * tree-ssa-copyrename.c: Remove TODO_dump_func.
14174         * tree-ssa-ccp.c: Remove TODO_dump_func.
14175         * compare-elim.c: Remove TODO_dump_func.
14176         * mode-switching.c: Remove TODO_dump_func.
14177         * modulo-sched.c: Remove TODO_dump_func.
14178         * tree-call-cdce.c: Remove TODO_dump_func.
14179         * cse.c: Remove TODO_dump_func.
14180         * web.c: Remove TODO_dump_func.
14181         * tree-stdarg.c: Remove TODO_dump_func.
14182         * lto-streamer-out.c: Remove TODO_dump_func.
14183         * tree-ssa-math-opts.c: Remove TODO_dump_func.
14184         * tree-ssa-dom.c: Remove TODO_dump_func.
14185         * tree-nrv.c: Remove TODO_dump_func.
14186         * loop-init.c: Remove TODO_dump_func.
14187         * gimple-low.c: Remove TODO_dump_func.
14188         * ipa-inline.c: Remove TODO_dump_func.
14189         * tree-ssa-sink.c: Remove TODO_dump_func.
14190         * jump.c: Remove TODO_dump_func.
14191         * ifcvt.c: Remove TODO_dump_func.
14192         * tree-ssa-loop.c: Remove TODO_dump_func.
14193         * recog.c: Remove TODO_dump_func.
14194         * dse.c: Remove TODO_dump_func.
14195         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
14196         * matrix-reorg.c: Remove TODO_dump_func.
14197         * tree-eh.c: Remove TODO_dump_func.
14198         * regmove.c: Remove TODO_dump_func.
14199         * function.c: Remove TODO_dump_func.
14200         * tree-vectorizer.c: Remove TODO_dump_func.
14201         * ipa-split.c: Remove TODO_dump_func.
14202         * gcse.c: Remove TODO_dump_func.
14203         * tree-if-conv.c: Remove TODO_dump_func.
14204         * init-regs.c: Remove TODO_dump_func.
14205         * tree-ssa-phiopt.c: Remove TODO_dump_func.
14206         * implicit-zee.c: Remove TODO_dump_func.
14207         * lower-subreg.c: Remove TODO_dump_func.
14208         * bt-load.c: Remove TODO_dump_func.
14209         * tree-dfa.c: Remove TODO_dump_func.
14210         * except.c: Remove TODO_dump_func.
14211         * emit-rtl.c: Remove TODO_dump_func.
14212         * store-motion.c: Remove TODO_dump_func.
14213         * cfgexpand.c: Remove TODO_dump_func.
14214         * tree-cfgcleanup.c: Remove TODO_dump_func.
14215         * cfgcleanup.c: Remove TODO_dump_func.
14216         * tree-ssa-pre.c: Remove TODO_dump_func.
14217         * tree-sra.c: Remove TODO_dump_func.
14218         * tree-mudflap.c: Remove TODO_dump_func.
14219         * tree-ssa-copy.c: Remove TODO_dump_func.
14220         * cfglayout.c: Remove TODO_dump_func.
14221         * tree-ssa-forwprop.c: Remove TODO_dump_func.
14222         * tree-ssa-dce.c: Remove TODO_dump_func.
14223         * ira.c: Remove TODO_dump_func.
14224         * tree-ssa.c: Remove TODO_dump_func.
14225         * integrate.c: Remove TODO_dump_func.
14226         * tree-optimize.c: Remove TODO_dump_func.
14227         * tree-ssa-phiprop.c: Remove TODO_dump_func.
14228         * tree-object-size.c: Remove TODO_dump_func.
14229         * combine.c: Remove TODO_dump_func.
14230         * bb-reorder.c: Remove TODO_dump_func.
14231         * cprop.c: Remove TODO_dump_func.
14232         * var-tracking.c: Remove TODO_dump_func.
14233         * tree-profile.c: Remove TODO_dump_func.
14234         * tree-vect-generic.c: Remove TODO_dump_func.
14235         * reg-stack.c: Remove TODO_dump_func.
14236         * sched-rgn.c: Remove TODO_dump_func.
14237         * tree-ssa-structalias.c: Remove TODO_dump_func.
14238         * tree-switch-conversion.c: Remove TODO_dump_func.
14239         * tree-cfg.c: Remove TODO_dump_func.
14240         * tree-ssa-reassoc.c: Remove TODO_dump_func.
14241         * combine-stack-adj.c: Remove TODO_dump_func.
14242         * dce.c: Remove TODO_dump_func.
14243         * tree-ssanames.c: Remove TODO_dump_func.
14244         * regcprop.c: Remove TODO_dump_func.
14245
14246 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14247
14248         PR middle-end/47364
14249         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
14250         and properly handle result not in Pmode.
14251
14252 2011-06-14  Robert Millan  <rmh@gnu.org>
14253
14254         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
14255         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
14256         `config/linux.h'.
14257
14258         * config/i386/kfreebsd-gnu64.h: New file.
14259         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
14260         with `i386/kfreebsd-gnu64.h'.
14261
14262         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
14263         (GNU_USER_LINK_EMULATION64): New macros.
14264         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
14265         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
14266         of hardcoding `elf_i386' and `elf_x86_64'.
14267
14268 2011-06-14  Nick Clifton  <nickc@redhat.com>
14269
14270         PR target/49403
14271         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
14272
14273         PR target/49402
14274         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
14275
14276 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
14277
14278         PR fortran/49103
14279         * tree.h (DECL_NONSHAREABLE): Define.
14280         (struct tree_decl_common): Change decl_common_unused to
14281         decl_nonshareable_flag.
14282         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
14283         Ignore vars with DECL_NONSHAREABLE bit set.
14284         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14285         on stores to automatic aggregate vars.
14286
14287         PR rtl-optimization/49390
14288         Revert:
14289         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
14290
14291         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14292         MEM_ALIAS_SET.
14293
14294 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
14295             Tom de Vries  <tom@codesourcery.com>
14296
14297         PR target/45098
14298         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14299         Document changed semantics.
14300         (max_stmt_executions, max_stmt_executions_int): Declare.
14301         * tree-data-ref.c (estimated_loop_iterations)
14302         (estimated_loop_iterations_int): Move functions...
14303         * tree-ssa-loop-niter.c (estimated_loop_iterations)
14304         (estimated_loop_iterations_int): here.
14305         (record_estimate): Change nb_iterations_upper_bound and
14306         nb_iterations_estimate semantics.
14307         (max_stmt_executions, max_stmt_executions_int): New function.
14308         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14309         (max_stmt_executions_tree): this.
14310         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14311         estimated_loop_iterations_tree.
14312         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14313         max_stmt_executions_int instead of estimated_loop_iterations_int.
14314         * predict.c (predict_loops): Idem.
14315         * tree-parloops.c (parallelize_loops): Idem.
14316         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14317         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14318         (init_omega_for_ddr_1): Idem.
14319         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14320         (loop_prefetch_arrays): Idem
14321         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14322         max_stmt_executions instead of estimated_loop_iterations.
14323         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14324         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14325         instead of nb_iterations_upper_bound.
14326
14327 2011-06-13  Jan Hubicka  <jh@suse.cz>
14328
14329         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14330
14331 2011-06-14  Richard Henderson  <rth@redhat.com>
14332
14333         PR debug/48459
14334         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14335         (based_loc_descr): Assert it's true.
14336         (compute_frame_pointer_to_fb_displacement): Set it, rather than
14337         aborting immediately.
14338
14339 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
14340             Mingfeng Wu  <mingfeng@faraday-tech.com>
14341
14342         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14343
14344 2011-06-13  Jan Hubicka  <jh@suse.cz>
14345
14346         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14347
14348 2011-06-13  Jan Hubicka  <jh@suse.cz>
14349
14350         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14351         similarly to DECL_COMDAT.
14352         * cgraphunit.c (cgraph_analyze_function): Likewise.
14353         * ipa.c (function_and_variable_visibility): Likewise.
14354
14355 2011-06-13  Jan Hubicka  <jh@suse.cz>
14356
14357         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14358         BINFO_VIRTUALS when streaming for ltrans unit.
14359
14360 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
14361
14362         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14363         (movdi_internal64): Same.
14364
14365 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
14366
14367         PR target/44618
14368         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14369         a set of similar patterns, where the MATCH_OPERAND for the function
14370         argument is replaced with individual references to hardware registers.
14371         (save_fpregs_<mode>): Ditto
14372         (restore_gpregs_<mode>): Ditto
14373         (return_and_restore_gpregs_<mode>): Ditto
14374         (return_and_restore_fpregs_<mode>): Ditto
14375         (return_and_restore_fpregs_aix_<mode>): Ditto
14376
14377 2011-06-13  Jan Hubicka  <jh@suse.cz>
14378
14379         * ipa-utils.c (postorder_stack): New structure.
14380         (ipa_reverse_postorder): Handle aliases.
14381
14382 2011-06-13  Jan Hubicka  <jh@suse.cz>
14383
14384         * ipa-inline.c (reset_edge_caches): Walk aliases.
14385         (update_caller_keys): Do not test inlinability of aliases.
14386         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14387         (do_estimate_growth): Fix typo.
14388
14389 2011-06-13  Jan Hubicka  <jh@suse.cz>
14390
14391         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14392         (can_remove_node_now_p): ... here; handle same comdat groups.
14393         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14394         (inline_call): Update use of can_remove_node_now_p.
14395
14396 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14397
14398         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14399         condition to disallow non-identical memory locations.
14400         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14401         preference to bit manipulation instructions.
14402
14403 2011-06-13  Jan Hubicka  <jh@suse.cz>
14404
14405         * cgraph.c (cgraph_for_node_thunks_and_aliases,
14406         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14407         (nonremovable_p): New function.
14408         (cgraph_can_remove_if_no_direct_calls_p): New function.
14409         (used_from_object_file_p): New functoin.
14410         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14411         references from aliases.
14412         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14413         * ipa-inline.c (check_caller_edge): New function.
14414         (want_inline_function_called_once_p): Use it; accept aliases called
14415         once, too.
14416         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14417
14418 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14419
14420         PR target/48454
14421         * config/arm/neon.md (vec_pack_trunc): Set the lengths
14422         correctly for the case with Quad vectors.
14423
14424 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
14425            Ira Rosen  <ira.rosen@linaro.org>
14426
14427         PR tree-optimization/49352
14428         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14429         all, make sure loop_use_stmt after the loop is a def stmt of a used
14430         SSA_NAME that is the only one defined inside of the loop.  Don't
14431         check for COND_EXPR and GIMPLE_BINARY_RHS.
14432         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14433         check_reduction is true.
14434
14435 2011-06-11  Jan Hubicka  <jh@suse.cz>
14436
14437         PR middle-end/49373
14438         * ipa.c (cgraph_externally_visible_p): Check resolution info.
14439
14440 2011-06-11  Jan Hubicka  <jh@suse.cz>
14441
14442         PR middle-end/48836
14443         * ipa-inline-transform.c: Include tree-pass.h
14444         (inline_transform): Set TODO_update_ssa_only_virtuals.
14445         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14446
14447 2011-06-11  Jan Hubicka  <jh@suse.cz>
14448
14449         PR middle-end/49378
14450         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14451         aliases and thunks.
14452
14453 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
14454
14455         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14456         Take number of iterations to peel into account for equally frequent
14457         misalignment values.
14458
14459 2011-06-11  Jan Hubicka  <jh@suse.cz>
14460
14461         * lto-streamer-out.c (produce_symtab): Stream out the newly
14462         represented aliases.
14463
14464 2011-06-11  Jan Hubicka  <jh@suse.cz>
14465
14466         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14467         varying args.
14468         (ipa_update_after_lto_read): Likewise.
14469         (ipa_write_node_info): Do not sream call_with_var_arguments.
14470         (ipa_read_node_info): Likewise.
14471
14472 2011-06-11  Jan Hubicka  <jh@suse.cz>
14473
14474         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14475
14476 2011-06-11  Jan Hubicka  <jh@suse.cz>
14477
14478         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14479         (lto_symtab_resolve_can_prevail_p): Likewise.
14480         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14481         * cgraph.c (same_body_aliases_done): New global var.
14482         (cgraph_same_body_alias_1): Rename to ...
14483         (cgraph_create_function_alias): ... this one; reorg to new
14484         representation.
14485         (cgraph_same_body_alias): Use cgraph_create_function_alias;
14486         record references when asked to.
14487         (cgraph_add_thunk): Fix formating.
14488         (cgraph_get_node): Kill same body alias code.
14489         (cgraph_node_for_asm): Likewise.
14490         (cgraph_remove_same_body_alias): Remove.
14491         (cgraph_remove_node): Kill same body alias code.
14492         (cgraph_mark_address_taken_node): Mark also the aliased function
14493         as having address taken.
14494         (dump_cgraph_node): Dump same body aliases.
14495         (cgraph_for_node_thunks_and_aliases): Update for new alias
14496         representation.
14497         (cgraph_for_node_and_aliases): Likewise.
14498         * cgraph.h (same_body): Kll pointer.
14499         (same_body_alias): Update comment.
14500         (same_body_aliases_done): Declare.
14501         (cgraph_remove_same_body_alias): Remove declaration.
14502         (cgraph_create_function_alias): Declare.
14503         (cgraph_process_same_body_aliases): Declare.
14504         (cgraph_function_with_gimple_body_p): Check for alias.
14505         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14506         (cgraph_alias_aliased_node): New function.
14507         (cgraph_function_node): Update for new aliases.
14508         (cgraph_function_or_thunk_node): Likewise.
14509         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14510         (inline_call): Remove dead aliases.
14511         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14512         name hack for same body aliases.
14513         (clone_of_p): Look through aliases.
14514         (verify_cgraph_node): Verify aliases.
14515         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14516         (cgraph_process_same_body_aliases): New function.
14517         (process_function_and_variable_attributes): Disable weakref warning on
14518         alias.
14519         (cgraph_analyze_functions): Handle aliases.
14520         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14521         (assemble_thunks): Rename to ...
14522         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14523         (cgraph_expand_function): Remove alias output code.
14524         (cgraph_output_in_order): Skip aliases.
14525         (cgraph_preserve_function_body_p): Aliases don't need preserving.
14526         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14527         (ipa_record_reference): Do not assert on alias references.
14528         (ipa_ref_has_aliases_p): New function.
14529         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14530         (ipa_ref_has_aliases_p): Declare.
14531         * lto-cgraph.c (lto_output_node): Handle aliases.
14532         (input_node): Likewise.
14533         * lto-streamer-out.c (lto_output): Skip aliases.
14534         (produce_symtab): Kill same_body_alias code.
14535         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14536         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14537         * ipa-inline.c (update_caller_keys): Walk aliases.
14538         (inline_small_functions): Fix thinko in previous patch.
14539         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14540         (function_and_variable_visibility): Do not walk same body aliases.
14541         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14542         (ipa_pta_execute): Use it.
14543
14544 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14545
14546         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14547         (*vec_dupv2df): Rename from vec_dupv2df.
14548         (vec_dupv2df): New expander.
14549
14550 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14551
14552         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14553
14554 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14555
14556         * config/i386/i386.md: Use default value in "isa" attribute.
14557         * config/i386/sse.md: Ditto.
14558         * config/i386/mmx.md: Ditto.
14559
14560 2011-06-10  Wei Guozhi  <carrot@google.com>
14561
14562         PR target/45335
14563         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14564         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14565         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14566         related peephole2.
14567         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14568         related peephole2.
14569         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14570         (arm_legitimate_ldrd_p): New prototype.
14571         (arm_output_ldrd): New prototype.
14572         * config/arm/arm.c (arm_check_ldrd_operands): New function.
14573         (arm_legitimate_ldrd_p): New function.
14574         (arm_output_ldrd): New function.
14575
14576 2011-06-10  David Li  <davidxl@google.com>
14577
14578         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14579         * passes.c (passr_eq): New function.
14580         (create_pass_tab): New function.
14581         (pass_traverse): New function.
14582         (dump_one_pass): New function.
14583         (dump_pass_list): New function.
14584         (dump_passes): New function.
14585
14586 2011-06-10  Jan Hubicka  <jh@suse.cz>
14587
14588         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14589         setting the nothrow flag.
14590         * ipa-reference.c (propagate): Skip aliases.
14591         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14592         (propagate_nothrow): Skip aliases; do not update cgraph.
14593         (local_pure_const): Do not update cgraph.
14594         * tree-profile.c (tree_profiling): Do fixup_cfg.
14595
14596 2011-06-10  Jan Hubicka  <jh@suse.cz>
14597
14598         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14599         (cgraph_local_node_p): ... here; handle aliases.
14600         (has_addr_references_p): Break out from ...;
14601         (cgraph_remove_unreachable_nodes) ... here.
14602
14603 2011-06-10  Jan Hubicka  <jh@suse.cz>
14604
14605         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14606         * common.opt (flag_inline_functions_called_once): Do not
14607         initialize to 1.
14608
14609 2011-06-10  Jan Hubicka  <jh@suse.cz>
14610
14611         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14612         (ipcp_initialize_node_lattices): Do not deal with aliases;
14613         Do not try to propagate through thunks.
14614         (ipcp_change_tops_to_bottom): Do not deal with aliases.
14615
14616 2011-06-10  Jan Hubicka  <jh@suse.cz>
14617
14618         * ipa-prop.c (ipa_write_node_info): Stream jump functions
14619         for indirect calls.
14620         (ipa_read_node_info): Likewise.
14621
14622 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14623
14624         PR lto/49302
14625         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14626         (build_and_insert_call): Likewise.
14627         (build_and_insert_ref): New.
14628         (gimple_expand_builtin_pow): Minor cleanup.
14629         (gimple_expand_builtin_cabs): New.
14630         (execute_cse_sincos): Add case for BUILT_IN_CABS.
14631
14632 2011-06-10  Jan Hubicka  <jh@suse.cz>
14633
14634         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14635         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14636         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14637         (ipcp_propagate_stage): Skip aliases when propagating.
14638         (ipcp_need_redirect_p): Skip aliases.
14639         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14640         collect_callers_of_node.
14641         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14642         for aliases.
14643         (ipa_compute_jump_functions): Look through aliases.
14644
14645 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14646
14647         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14648
14649 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14650
14651         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14652         Adjust comments.
14653         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14654
14655 2011-06-10  Jan Hubicka  <jh@suse.cz>
14656
14657         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14658         Update call of gimple_get_virt_method_for_binfo.
14659         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14660         refuse_thunks parameter.
14661         (gimple_fold_call): Update.
14662         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14663
14664 2011-06-10  Jan Hubicka  <jh@suse.cz>
14665
14666         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14667         (not_all_callers_have_enough_arguments_p): ... this one; turn into
14668         worker for cgraph_for_node_and_aliases.
14669         (convert_callers_for_node): Break out from ...
14670         (convert_callers): ... here.
14671         (modify_function): Use collect_callers_of_node.
14672         (ipa_early_sra): Use cgraph_for_node_and_aliases.
14673
14674 2011-06-10  Richard Guenther  <rguenther@suse.de>
14675
14676         PR tree-optimization/49361
14677         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14678         when not already in gimple form.
14679
14680 2011-06-10  Richard Guenther  <rguenther@suse.de>
14681
14682         PR bootstrap/49344
14683         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14684         FOR_EACH_PHI_OR_STMT_USE.
14685
14686 2011-06-10  Jan Hubicka  <jh@suse.cz>
14687
14688         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14689         (clone_inlined_nodes): ... here.
14690         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14691         to real destination prior inlining.
14692         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14693         can_early_inline_edge_p, want_early_inline_function_p,
14694         want_early_inline_function_p, want_inline_small_function_p,
14695         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14696         edge_badness, update_all_callee_keys, lookup_recursive_calls,
14697         add_new_edges_to_heap, inline_small_functions, flatten_function,
14698         inline_always_inline_functions, early_inline_small_functions): Use
14699         cgraph_function_or_thunk_node.
14700         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14701         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14702         (do_estimate_edge_growth_1): Break out from ...
14703         (do_estimate_growth) ... here; walk aliases.
14704         (inline_generate_summary): Skip aliases.
14705
14706 2011-06-10  Richard Guenther  <rguenther@suse.de>
14707
14708         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14709         forward when combining, visit inserted stmts when a stmt was changed.
14710
14711 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
14712
14713         * tree.h (error_operand_p): Add.
14714         * dbxout.c (dbxout_type_fields): Use the latter.
14715         * c-decl.c (add_stmt): Likewise.
14716         * gimplify.c (omp_add_variable, omp_notice_variable,
14717         gimplify_scan_omp_clauses): Likewise.
14718
14719 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
14720
14721         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14722         when a value is actually passed in regs.
14723
14724 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
14725             Laurent Rougé  <laurent.rouge@menta.fr>
14726
14727         * doc/invoke.texi (SPARC options): Add -mflat.
14728         * config/sparc/sparc.opt: Likewise.
14729         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
14730         (sparc_flat_expand_prologue): Declare.
14731         (sparc_flat_expand_epilogue): Likewise.
14732         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
14733         (CPP_ENDIAN_SPEC): Replace with...
14734         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
14735         (CPP_SPEC): Adjust to above change.
14736         (EXTRA_SPECS): Likewise.
14737         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14738         (INCOMING_REGNO): Likewise.
14739         (OUTGOING_REGNO): Likewise.
14740         (LOCAL_REGNO): Likewise.
14741         (SETUP_FRAME_ADDRESSES): Likewise.
14742         (FIXED_REGISTERS): Set 0 for %fp.
14743         (CALL_USED_REGISTERS): Likewise.
14744         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14745         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14746         (RETURN_ADDR_REGNUM): Define.
14747         (RETURN_ADDR_RTX): Use it.
14748         (INCOMING_RETURN_ADDR_REGNUM): Define.
14749         (INCOMING_RETURN_ADDR_RTX): Use it.
14750         (DWARF_FRAME_RETURN_COLUMN): Likewise.
14751         (EH_RETURN_REGNUM): Define.
14752         (EH_RETURN_STACKADJ_RTX): Use it.
14753         (EH_RETURN_HANDLER_RTX): Delete.
14754         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14755         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14756         Delete.
14757         (struct machine_function): Add frame_size, apparent_frame_size,
14758         frame_base_reg, frame_base_offset, n_global_fp_regs and
14759         save_local_in_regs_p fields.
14760         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14761         sparc_frame_base_offset, sparc_n_global_fp_regs,
14762         sparc_save_local_in_regs_p): New macros.
14763         (sparc_option_override): Error out if -fcall-saved-REG is specified
14764         for Out registers.
14765         (eligible_for_restore_insn): Fix formatting.
14766         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
14767         (eligible_for_sibcall_delay): Likewise.
14768         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14769         (sparc_legitimate_address_p): Adjust to above change.
14770         (save_global_or_fp_reg_p): New predicate.
14771         (return_addr_reg_needed_p): Likewise.
14772         (save_local_or_in_reg_p): Likewise.
14773         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
14774         (SORR_SAVE, SORR_RESTORE): Delete.
14775         (sorr_pred_t): New typedef.
14776         (sorr_act_t): New enum.
14777         (save_or_restore_regs): Rename to...
14778         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
14779         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14780         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
14781         mechanism.  Add CFI information for double-word saves in 32-bit mode.
14782         (emit_adjust_base_to_offset): New function extracted from...
14783         (emit_save_or_restore_regs): ...this.  Rename the rest to...
14784         (emit_save_or_restore_regs_global_fp_regs): ...this.
14785         (emit_save_or_restore_regs_local_in_regs): New function.
14786         (gen_create_flat_frame_[123]): New functions.
14787         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
14788         (sparc_flat_expand_prologue): New function.
14789         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14790         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
14791         (sparc_flat_expand_epilogue): New function.
14792         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14793         (output_return): Likewise.
14794         (output_sibcall): Likewise.
14795         (sparc_output_mi_thunk): Likewise.
14796         (sparc_frame_pointer_required): Likewise.
14797         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14798         function optimization.
14799         * config/sparc/sparc.md (flat): New attribute.
14800         (prologue): Add TARGET_FLAT handling.
14801         (save_register_window): Disable if TARGET_FLAT.
14802         (create_flat_frame_[123]): New patterns.
14803         (epilogue): Add TARGET_FLAT handling.
14804         (sibcall_epilogue): Likewise.
14805         (eh_return): New expander.
14806         (eh_return_internal): New insn and splitter.
14807         (return_internal): Add TARGET_FLAT handling.
14808         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14809         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14810         (nonlocal_goto): Add TARGET_FLAT handling.
14811         * config/sparc/t-elf: Add -mflat multilib.
14812         * config/sparc/t-leon: Likewise.
14813
14814 2011-06-10  Jan Hubicka  <jh@suse.cz>
14815
14816         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14817         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14818         (self_recursive_p): Use cgraph_function_node.
14819         (propagate_pure_const): Likewise.
14820         (propagate_nothrow): Likewise.
14821         * ipa-reference.c (ipa_reference_get_not_read_global): Use
14822         cgraph_function_node.
14823         (propagate_bits): Likewise.
14824         (propagate): Likewise.
14825
14826 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14827             Richard Earnshaw  <rearnsha@arm.com>
14828
14829         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14830         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14831         (*thumb2_movdi_vfp): Delete.
14832         (*arm_movdi_vfp_cortexa8): Delete.
14833         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14834         (*movdi_vfp_cortexa8): Likewise.
14835
14836 2011-06-10  Richard Guenther  <rguenther@suse.de>
14837
14838         * stor-layout.c (initialize_sizetypes): Give names to all
14839         sizetype kinds.
14840
14841 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
14842
14843         PR tree-optimization/49318
14844         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14845         irrelevant pattern statements.
14846
14847 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14848
14849         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14850
14851         PR bootstrap/49354
14852         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14853         to last assignment.
14854
14855 2011-06-09  Jan Hubicka  <jh@suse.cz>
14856
14857         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14858         do not recompute reachable flag.
14859         (cgraph_finalize_function, cgraph_analyze_functions): Set
14860         redefined_extern_inline here.
14861
14862 2011-06-09  Jan Hubicka  <jh@suse.cz>
14863
14864         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14865         (cgraph_only_called_directly_p): ... this one; bring offline.
14866         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14867         varpool_used_from_object_file_p): Drop names from the declaratoin.
14868         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14869         collect_callers_of_node): New.
14870         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14871         (cgraph_edge_recursive_p): Use cgraph_function_node.
14872         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14873         (cgraph_node_cannot_be_local_p_1): Break out from ...
14874         (cgraph_node_can_be_local_p): ... here; walk aliases.
14875         (cgraph_for_node_thunks_and_aliases): New function.
14876         (cgraph_for_node_and_aliases): New function.
14877         (cgraph_make_node_local_1): Break out from ...
14878         (cgraph_make_node_local) ... here; use
14879         cgraph_for_node_thunks_and_aliases.
14880         (cgraph_set_nothrow_flag_1): Break out from ...
14881         (cgraph_set_nothrow_flag) ... here;
14882         use cgraph_for_node_thunks_and_aliases.
14883         (cgraph_set_const_flag_1): Break out from ...
14884         (cgraph_set_const_flag) ... here;
14885         use cgraph_for_node_thunks_and_aliases.
14886         (cgraph_set_pure_flag_1): Break out from ...
14887         (cgraph_set_pure_flag) ... here;
14888         use cgraph_for_node_thunks_and_aliases.
14889         (cgraph_propagate_frequency_1): Break out from ...
14890         (cgraph_propagate_frequency) ... here; use
14891         cgraph_for_node_thunks_and_aliases.
14892         (cgraph_used_from_object_file_p): Do not care about aliases.
14893         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14894         New functions.
14895         (collect_callers_of_node_1, collect_callers_of_node): New functions.
14896
14897 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14898
14899         PR rtl-optimization/49154
14900         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14901         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14902         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14903         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14904         * config/cris/cris.h (cris_register_move_cost): Remove
14905         !TARGET_V32 code.  Tweak comments.
14906
14907 2011-06-09  Jan Hubicka  <jh@suse.cz>
14908
14909         * cgraphbuild.c (record_eh_tables): Mark personality function as having
14910         address taken.
14911
14912 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14913
14914         PR rtl-optimization/49154
14915         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
14916         is a matching slot in the hashtable, assign it to classes_ptr.
14917
14918         PR rtl-optimization/49154
14919         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
14920         register classes.
14921         * doc/tm.texi: Regenerate.
14922
14923 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14924
14925         PR target/49307
14926         * config/sh/sh.md (UNSPEC_CHKADD): New.
14927         (chk_guard_add): New define_insn_and_split.
14928         (symGOT_load): Use chk_guard_add instead of blockage.
14929
14930 2011-06-09  Kai Tietz  <ktietz@redhat.com>
14931
14932         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
14933
14934 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14935
14936         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
14937
14938 2011-06-09  Wei Guozhi  <carrot@google.com>
14939
14940         PR target/46975
14941         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
14942         (peephole2 for conditional move): Generate 16 bit instructions.
14943
14944 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
14945
14946         * config/i386/i386.md (*movdi_internal_rex64): Merge
14947         alternatives 6 and 8.
14948
14949 2011-06-09  David Li  <davidxl@google.com>
14950
14951         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14952         * passes.c (passr_eq): New function.
14953         (create_pass_tab): New function.
14954         (pass_traverse): New function.
14955         (dump_one_pass): New function.
14956         (dump_pass_list): New function.
14957         (dump_passes): New function.
14958
14959 2011-06-09  David Li  <davidxl@google.com>
14960
14961         * tree-complex.c (tree_lower_complex): Gate cleanup.
14962         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
14963         (execute_optimize_stdarg): Ditto.
14964         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
14965         (execute_cleanup_eh_1): Ditto.
14966         (execute_cleanup_eh): Ditto.
14967         * gcse.c (gate_rtl_pre): Ditto.
14968         (execute_rtl_pre): Ditto.
14969         * except.c (finish_eh_generation): Ditto.
14970         (convert_to_eh_region_ranges): Ditto.
14971         * cprop.c (one_cprop_pass): Ditto.
14972
14973 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
14974
14975         PR target/48673
14976         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
14977         in all basic blocks.
14978
14979 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14980
14981         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
14982         (HAVE_ENABLE_EXECUTE_STACK): Define.
14983         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
14984         (HAVE_ENABLE_EXECUTE_STACK): Define.
14985         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
14986         (HAVE_ENABLE_EXECUTE_STACK): Define.
14987         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
14988         (ENABLE_EXECUTE_STACK): Remove.
14989         (HAVE_ENABLE_EXECUTE_STACK): Define.
14990         [IN_LIBGCC2]: Don't include <windows.h>.
14991         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
14992         (HAVE_ENABLE_EXECUTE_STACK): Define.
14993         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
14994         (HAVE_ENABLE_EXECUTE_STACK): Define.
14995         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
14996         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
14997         (HAVE_ENABLE_EXECUTE_STACK): Define.
14998         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
14999         (HAVE_ENABLE_EXECUTE_STACK): Define.
15000         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15001         (HAVE_ENABLE_EXECUTE_STACK): Define.
15002         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15003         (HAVE_ENABLE_EXECUTE_STACK): Define.
15004         * config/alpha/alpha.c (alpha_trampoline_init): Test
15005         HAVE_ENABLE_EXECUTE_STACK.
15006         * config/i386/i386.c (ix86_trampoline_init): Likewise.
15007         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15008         (sparc64_initialize_trampoline): Likewise.
15009         * libgcc2.c [L_enable_execute_stack]: Remove.
15010         * system.h (ENABLE_EXECUTE_STACK): Poison.
15011         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15012         * doc/tm.texi: Regenerate.
15013         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15014
15015 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
15016
15017         PR middle-end/49308
15018         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15019         variable.  After resetting and rescanning insn continue with previous
15020         statement.
15021
15022 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15023
15024         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15025         (gcc_cv_ld_hidden): Likewise.
15026         * configure: Regenerate.
15027         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15028         (ix86_stack_protect_fail): Mark unused.
15029         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15030         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15031         [TARGET_MACHO]: Don't define.
15032         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15033         (TARGET_STACK_PROTECT_FAIL): Likewise.
15034         (rs6000_stack_protect_fail): Mark unused.
15035         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15036         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
15037
15038 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15039
15040         * varasm.c (get_section): Print location of other conflict
15041         for section conflicts.
15042
15043 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15044
15045         * config/i386/driver-i386.c (host_detect_local_cpu):
15046         Add model 0x2d Intel CPU.
15047
15048 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15049
15050         * reginfo.c (global_regs_decl): Add.
15051         (globalize_reg): Add decl parameter. Compute location.  Pass location
15052         to warnings and add inform. Store decl in global_regs_decl.
15053         * rtl.h (globalize_reg): Update prototype.
15054         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15055
15056 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
15057
15058         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15059
15060 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15061
15062         PR target/49305
15063         * config/sh/predicates.md (general_movsrc_operand): Check
15064         mode for memory with indexed address for QI and HImode.
15065         (general_movdst_operand): Likewise.
15066
15067 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15068
15069         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15070
15071 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
15072
15073         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15074         (num_ssa_operands): Likewise.
15075         (op_iter_init_phiuse): Forward-declare.
15076         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15077
15078 2011-06-08  Nick Clifton  <nickc@redhat.com>
15079
15080         * doc/invoke.texi (ARM Options): Update description of
15081         -mthumb-interwork.
15082
15083 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
15084
15085         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15086         unknown Intel family 0x6 CPUs.
15087
15088 2011-06-08  Martin Jambor  <mjambor@suse.cz>
15089
15090         * tree-sra.c (mark_rw_status): Removed.
15091         (analyze_access_subtree): New parameter parent instead of
15092         mark_read and mark_write, propagate from that.
15093
15094 2011-06-08  Julian Brown  <julian@codesourcery.com>
15095
15096         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15097         for double-precision helper functions in hard-float mode if only
15098         single-precision arithmetic is supported in hardware.
15099
15100 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
15101
15102         PR rtl-optimization/49303
15103         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
15104         code_motion_path_driver returned 0 or 1.
15105         (sel_region_finish): Clear h_d_i_d.
15106
15107 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15108
15109         * config/sh/sh.c (prepare_move_operands): Set pic register
15110         appropriately for global and local dynamic tls models even
15111         if flag_pic is unset.
15112
15113 2011-06-07  Jason Merrill  <jason@redhat.com>
15114
15115         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15116
15117 2011-06-07  Xinliang David Li  <davidxl@google.com>
15118         * passes.c (enable_disable_pass): Handle assembler name.
15119         (is_pass_explicitly_enabled_or_disabled): Ditto.
15120
15121 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15122
15123         PR tree-optimization/48497
15124         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15125
15126 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15127
15128         PR tree-optimization/46728
15129         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15130         to use gimple_val_nonnegative_real_p.
15131         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15132         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15133
15134 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
15135
15136         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15137
15138 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
15139
15140         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
15141         constant vectors.
15142
15143 2011-06-07  Richard Guenther  <rguenther@suse.de>
15144
15145         * stor-layout.c (initialize_sizetypes): Initialize all
15146         sizetypes based on target definitions.
15147         (set_sizetype): Remove.
15148         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
15149         * tree.h (set_sizetype): Remove.
15150
15151 2011-06-07  Nick Clifton  <nickc@redhat.com>
15152
15153         * config.gcc: Unify V850 architecture options and add support for
15154         newer V850 architectures.
15155         * config/v850/t-v850e: Delete.
15156
15157 2011-06-07  Richard Guenther  <rguenther@suse.de>
15158
15159         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
15160         Call set_sizetype from here.
15161
15162 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
15163
15164         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15165         (*maddhisi4tb, *maddhisi4tt): New define_insns.
15166
15167 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
15168             Andrew Stubbs  <ams@codesourcery.com>
15169
15170         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15171         multiplies.
15172         * doc/md.texi (Canonicalization of Instructions): Document widening
15173         multiply canonicalization.
15174
15175 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
15176
15177         PR gcov-profile/49299
15178         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
15179
15180 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
15181
15182         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
15183         a pointer.
15184         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
15185         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
15186         vect_recog_pow_pattern): Likewise.
15187         (vect_pattern_recog_1): Remove declaration.
15188         (widened_name_p): Remove declaration.  Add new argument to specify
15189         whether to check that both types are either signed or unsigned.
15190         (vect_recog_widen_mult_pattern): Update documentation.  Handle
15191         unsigned patterns and multiplication by constants.
15192         (vect_pattern_recog_1): Update vect_recog_func references.  Use
15193         statement information from the statement returned from pattern
15194         detection functions.
15195         (vect_pattern_recog): Update vect_recog_func reference.
15196         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
15197         multiplication by a constant use the type of the other operand.
15198
15199 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15200
15201         PR rtl-optimization/49145
15202         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
15203
15204 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
15205
15206         PR debug/49262
15207         * dwarf2out.c (native_encode_initializer): Decrement count in each
15208         iteration.
15209
15210         PR debug/49294
15211         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
15212         non-MODE_INT modes.
15213
15214         PR c++/49264
15215         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
15216         if stmt folded into nothing.
15217         * tree-inline.c (fold_marked_statements): If a builtin at the end of
15218         a bb folded into nothing, just update cgraph edges and move to next bb.
15219         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
15220         to be NULL.  Don't compute count and frequency if new_call is NULL.
15221
15222 2011-06-04  Diego Novillo  <dnovillo@google.com>
15223
15224         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
15225         (cgraph.o): Likewise.
15226         (cgraphunit.o): Likewise.
15227         * cgraphunit.c: Include lto-streamer.h
15228         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
15229         if LTO is enabled.
15230         * lto-streamer-in.c (unpack_value_fields): Call
15231         streamer_hooks.unpack_value_fields if set.
15232         (lto_materialize_tree): For unhandled nodes, first try to
15233         call lto_streamer_hooks.alloc_tree, if it exists.
15234         (lto_input_ts_decl_common_tree_pointers): Move reading of
15235         DECL_INITIAL to lto_streamer_read_tree.
15236         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
15237         (lto_streamer_read_tree): New.
15238         (lto_reader_init): Rename from lto_init_reader.
15239         Move initialization code to lto/lto.c.
15240         * lto-streamer-out.c (pack_value_fields): Call
15241         streamer_hooks.pack_value_fields if set.
15242         (lto_output_tree_ref): For tree nodes that are not normally indexable,
15243         call streamer_hooks.indexable_with_decls_p before giving up.
15244         (lto_output_ts_decl_common_tree_pointers): Move handling
15245         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
15246         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
15247         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
15248         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
15249         (lto_streamer_write_tree): New.
15250         (lto_output): Call lto_streamer_init directly.
15251         (lto_writer_init): Remove.
15252         * lto-streamer.c (streamer_hooks): New.
15253         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
15254         instead of lto_preload_common_nodes.
15255         (lto_is_streamable): Move from lto-streamer.h
15256         (lto_streamer_hooks_init): New.
15257         (streamer_hooks): New.
15258         (streamer_hooks_init): New.
15259         * lto-streamer.h (struct output_block): Forward declare.
15260         (struct lto_input_block): Likewise.
15261         (struct data_in): Likewise.
15262         (struct bitpack_d): Likewise.
15263         (struct streamer_hooks): Declare.
15264         (streamer_hooks): Declare.
15265         (lto_streamer_hooks_init): Declare.
15266         (lto_streamer_write_tree): Declare.
15267         (lto_streamer_read_tree): Declare.
15268         (streamer_hooks_init): Declare.
15269         (lto_is_streamable): Move to lto-streamer.c
15270
15271 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15272
15273         * longlong.h (smul_ppmm): The resulting register pair contains the
15274         higher order word first.
15275
15276 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15277
15278         PR tree-optimization/46728
15279         * builtins.c (powi_table): Remove.
15280         (powi_lookup_cost): Remove.
15281         (powi_cost): Remove.
15282         (expand_powi_1): Remove.
15283         (expand_powi): Remove.
15284         (expand_builtin_pow_root): Remove.
15285         (expand_builtin_pow): Remove.
15286         (expand_builtin_powi): Eliminate handling of constant exponent.
15287         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15288
15289 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15290
15291         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15292
15293 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15294
15295         * dce.c (reset_unmarked_insns_debug_uses): New.
15296         (delete_unmarked_insns): Skip debug insns.
15297         (prescan_insns_for_dce): Likewise.
15298         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15299         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15300         active reg can be found.
15301         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
15302         (convert_regs_1): Use it.
15303
15304 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15305
15306         * tree-pretty-print.c (dump_function_header): Add flags.
15307         Don't dump decl_uid with nouid.
15308         * tree-pretty-print.h (dump_function_header): Adjust.
15309         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15310         * passes.c (pass_init_dump_file): Pass dump_flags on.
15311         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15312
15313 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15314
15315         PR bootstrap/49270
15316         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15317
15318 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
15319
15320         PR tree-optimization/49243
15321         * calls.c (setjmp_call_p): Also check if fndecl has the
15322         returns_twice attribute.
15323
15324 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15325
15326         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15327         -ffast-math etc.
15328
15329 2011-06-06  Richard Henderson  <rth@redhat.com>
15330             Georg-Johann Lay  <avr@gjlay.de>
15331
15332         PR target/42210
15333         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15334         New predicates.
15335         * config/avr/avr.md ("insv"): New insn expander.
15336         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15337         "*insv.not.io", "*insv.reg"): New insns.
15338
15339 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
15340
15341         PR target/49285
15342         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15343         to nonimmediate_operand from memory_operand for the operand that is to
15344         be forced to memory by the expander.  Lose the constraints.
15345
15346 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15347
15348         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15349         EH return when delayed branches are disabled.
15350
15351 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
15352
15353         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15354         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
15355         calculation.
15356         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15357         Simplify MODE_V1DF and MODE_V2SF handling.
15358         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15359         Simplify MODE_SF handling.
15360
15361 2011-06-04  Jan Hubicka  <jh@suse.cz>
15362
15363         PR tree-optimization/48893
15364         PR tree-optimization/49091
15365         PR tree-optimization/49179
15366         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15367         Bounds check.
15368
15369 2011-06-04  Jan Hubicka  <jh@suse.cz>
15370
15371         PR lto/48954
15372         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15373         bitmaps.
15374
15375 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
15376
15377         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15378
15379 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15380
15381         PR target/49281
15382         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15383         to be strictly smaller than 1 << shiftcount.
15384
15385 2011-06-04  Jan Hubicka  <jh@suse.cz>
15386
15387         PR tree-optimize/48929
15388         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15389         of empty predicate.
15390
15391 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
15392
15393         PR debug/48333
15394         * calls.c (emit_call_1): Prefer the __builtin declaration of
15395         builtin functions.
15396
15397 2011-06-03   Diego Novillo  <dnovillo@google.com>
15398
15399         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15400         (lto_input_tree_pointers): Likewise.
15401         * lto-streamer-out.c (pack_value_fields): Likewise.
15402         (lto_output_tree_pointers): Likewise.
15403         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15404         and OPTIMIZATION_NODE.
15405
15406 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15407
15408         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15409         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15410         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15411         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15412         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15413         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15414         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15415         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15416         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15417         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15418         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15419         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15420         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15421         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15422         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15423         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15424         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15425         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15426         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15427         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15428         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15429         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15430         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15431         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15432         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15433         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15434         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15435         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15436         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15437         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15438         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15439         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15440         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15441         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15442         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15443         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15444         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15445         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15446         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15447         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15448         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15449         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15450         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15451         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15452         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15453         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15454         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15455         * system.h (MD_UNWIND_SUPPORT): Poison.
15456         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15457         * doc/tm.texi: Regenerate.
15458         * unwind-dw2.c: Include md-unwind-support.h instead of
15459         MD_UNWIND_SUPPORT.
15460         * config/ia64/unwind-ia64.c: Likewise.
15461         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15462
15463 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
15464
15465         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15466
15467 2011-06-03  Richard Henderson  <rth@redhat.com>
15468             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15469
15470         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15471         (sigill_hdlr): Correct insn, insn size.
15472         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15473
15474 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15475
15476         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15477         t-slibgcc-dummy.
15478         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15479         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15480         * config/mips/t-iris: Remove.
15481         * config/mips/t-irix6: New file.
15482         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15483
15484 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15485
15486         * Makefile.in (LIB2ADDEHDEP): Remove.
15487         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15488         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15489         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15490         * config/t-darwin (LIB2ADDEHDEP): Remove.
15491         * config/t-freebsd (LIB2ADDEHDEP): Remove.
15492         * config/t-linux (LIB2ADDEHDEP): Remove.
15493
15494 2011-06-03  Diego Novillo  <dnovillo@google.com>
15495
15496         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15497         (lto_register_var_decl_in_symtab): Likewise.
15498         (lto_register_function_decl_in_symtab): Likewise.
15499         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15500         logic to uniquify_nodes.
15501
15502 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15503
15504         * config/alpha/t-osf5: Remove.
15505         * config/alpha/t-osf-pthread: Remove.
15506         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15507         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15508
15509 2011-06-03  Julian Brown  <julian@codesourcery.com>
15510
15511         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15512         (strongarm1110): Use strongarm tuning.
15513         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15514         * config/arm/arm.c (arm_strongarm_tune): New.
15515         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15516         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15517         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15518         setting, using previous defaults or 1 for Cortex-A5.
15519         (arm_option_override): Set max_insns_skipped from current tuning.
15520
15521 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
15522
15523         * doc/install.texi (Options specification): Document --with-specs.
15524
15525 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15526
15527         * config/arm/neon.md (orndi3_neon): Actually split it.
15528
15529 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15530
15531         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15532         * var-tracking.c (reverse_op): Limite recurse depth to 5.
15533
15534 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15535
15536         PR debug/47590
15537         * target.def (delay_sched2, delay_vartrack): New.
15538         * doc/tm.texi.in: Update.
15539         * doc/tm.texi: Rebuild.
15540         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15541         * var-tracking.c (gate_handle_var_tracking): Likewise.
15542         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15543         (bfin_flag_var_tracking): Drop.
15544         (output_file_start): Don't save and override flag_var_tracking.
15545         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15546         (bfin_reorg): Test original variables.
15547         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15548         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15549         (ia64_flag_var_tracking): Drop.
15550         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15551         (ia64_file_start): Don't save and override flag_var_tracking.
15552         (ia64_override_options_after_change): Ditto
15553         flag_schedule_insns_after_reload.
15554         (ia64_reorg): Test original variables.
15555         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15556         (picochip_flag_var_tracking): Drop.
15557         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15558         (picochip_option_override): Don't save and override
15559         flag_schedule_insns_after_reload.
15560         (picochip_asm_file_start): Ditto flag_var_tracking.
15561         (picochip_reorg): Test original variables.
15562         * config/spu/spu.c (spu_flag_var_tracking): Drop.
15563         (TARGET_DELAY_VARTRACK): Define.
15564         (spu_var_tracking): New.
15565         (spu_machine_dependent_reorg): Call it.
15566         (asm_file_start): Don't save and override flag_var_tracking.
15567
15568 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
15569
15570         PR target/49163
15571         * config/sh/predicates.md (general_movsrc_operand): Return 0
15572         for memory and memory subreg of which address is an invalid
15573         indexed address for QI and HImode.
15574         (general_movdst_operand): Likewise.
15575
15576 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15577
15578         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15579         edges only, when there is a non-local label in the function.
15580         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15581
15582 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15583
15584         * config/i386/constraints.md (Y3): New register constraint.
15585         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15586         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15587         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15588         *sse2_interleave_lowv2df.
15589
15590 2011-06-02  Julian Brown  <julian@codesourcery.com>
15591
15592         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15593         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15594         (arm_cortex_a5_tune): New.
15595
15596 2011-06-02  Julian Brown  <julian@codesourcery.com>
15597
15598         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15599         * config/arm/arm.c (arm_default_branch_cost): New.
15600         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15601         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15602         (arm_fa726_tune): Set branch_cost field using
15603         arm_default_branch_cost.
15604         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15605         current_tune structure.
15606         * dojump.c (tm_p.h): Include file.
15607
15608 2011-06-02  Julian Brown  <julian@codesourcery.com>
15609
15610         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15611         tuning.
15612         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15613         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15614         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15615         field.
15616         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15617         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15618         (arm_fa726te_tune): Add prefer_constant_pool setting.
15619         (arm_v6t2_tune, arm_cortex_tune): New.
15620         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15621         prefer_constant_pool setting.
15622
15623 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15624
15625         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15626         switch statement.
15627         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15628         (*movdf_internal) <case 6,7,8>: Ditto.
15629
15630         * config/i386/constraints.md (Y4): New register constraint.
15631         * config/i386/sse.md (vec_set<mode>_0): Merge with
15632         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15633         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15634         *vec_extractv2di_1_sse.
15635         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15636         and *vec_concatv2di_rex64_sse.
15637
15638 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
15639
15640         PR target/48807
15641         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15642         of cgraph_local_info for null before attempting to use it.
15643
15644 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15645
15646         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15647         (current_function_dynamic_alloc_count): Delete.
15648         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15649         (expand_builtin_nonlocal_goto): Remove obsolete comment.
15650         (expand_builtin_update_setjmp_buf): Remove dead code.
15651         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15652         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15653         support.
15654         * function.c (instantiate_virtual_regs): Likewise.
15655         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15656         for a block with a single abnormal incoming edge.
15657         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15658         (SETJMP_VIA_SAVE_AREA): Delete.
15659         * config/sparc/sparc-protos.h (load_got_register): Declare.
15660         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15661         (load_got_register): Make global.
15662         (sparc_frame_pointer_required): Add 'static'.
15663         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
15664         (sparc_builtin_setjmp_frame_value): New function.
15665         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15666         (save_stack_nonlocal): New expander.
15667         (restore_stack_nonlocal): Likewise.
15668         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15669         (nonlocal_goto_internal): New insn.
15670         (goto_handler_and_restore): Delete.
15671         (builtin_setjmp_setup): Likewise.
15672         (do_builtin_setjmp_setup): Likewise.
15673         (setjmp): Likewise.
15674         (builtin_setjmp_receiver): New expander.
15675
15676 2011-06-01  David Li  <davidxl@google.com>
15677
15678         PR middle-end/49261
15679         * tree-pretty-print.c (dump_function_header): Format cleanup.
15680
15681 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
15682
15683         PR target/49238
15684         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15685         needed when original operands are used for msw_skip comparison.
15686
15687 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15688
15689         PR debug/49250
15690         * var-tracking.c (add_uses, add_stores): Don't call
15691         cselib_subst_to_values on ENTRY_VALUE.
15692
15693 2011-06-01  Diego Novillo  <dnovillo@google.com>
15694
15695         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15696         output_record_start with LTO_null instead of output_zero.
15697         (lto_output_ts_binfo_tree_pointers): Likewise.
15698         (lto_output_tree): Likewise.
15699         (output_eh_try_list): Likewise.
15700         (output_eh_region): Likewise.
15701         (output_eh_lp): Likewise.
15702         (output_eh_regions): Likewise.
15703         (output_bb): Likewise.
15704         (output_function): Likewise.
15705         (output_unreferenced_globals): Likewise.
15706         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15707         instead of NUM_TREE_CODES.
15708         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15709         (lto_output_int_in_range): Change << to >> when shifting VAL.
15710
15711 2011-06-01  Diego Novillo  <dnovillo@google.com>
15712
15713         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15714         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15715
15716 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15717
15718         PR target/45074
15719         * optabs.h (valid_multiword_target_p): Declare.
15720         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15721         doing multi-word operations.
15722         * optabs.c (expand_binop): Likewise.
15723         (expand_doubleword_bswap): Likewise.
15724         (expand_absneg_bit): Likewise.
15725         (expand_unop): Likewise.
15726         (expand_copysign_bit): Likewise.
15727         (multiword_target_p): New function.
15728
15729 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15730
15731         PR rtl-optimization/48830
15732         PR rtl-optimization/48808
15733         PR rtl-optimization/48792
15734         * reload.c (push_reload): Check contains_reg_of_mode.
15735         * reload1.c (strip_paradoxical_subreg): New function.
15736         (gen_reload_chain_without_interm_reg_p): Use it to handle
15737         paradoxical subregs.
15738         (emit_output_reload_insns, gen_reload): Likewise.
15739
15740 2011-06-01  David Li  <davidxl@google.com>
15741
15742         * predict.c : Change pass name
15743         * ipa.c: Ditto.
15744         * dce.c: Ditto.
15745         * tree-profile.c: Ditto.
15746         * except.c: Ditto.
15747
15748 2011-06-01  David Li  <davidxl@google.com>
15749
15750         * tree-pretty-print.c (dump_function_header): New function.
15751         * final.c (rest_of_clean_state): Use header dumper.
15752         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15753         * passes.c (pass_init_dump_file): Use header dumper.
15754
15755 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15756
15757         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15758         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15759         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15760         New functions.
15761         (mem_loc_descriptor): Use them.
15762
15763         * var-tracking.c (create_entry_value): New function.
15764         (vt_add_function_parameter): Use it.
15765
15766 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15767
15768         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15769         Include <signal.h>, <ucontext.h>.
15770         (sigill_caught): Define.
15771         (sigill_hdlr): New function.
15772         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15773         insns can be executed.
15774         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15775         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15776
15777 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15778
15779         * config/t-slibgcc-darwin: Move to ...
15780         * config/t-slibgcc-dummy: ... this.  Clarify comments.
15781         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15782         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15783         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15784         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
15785         Remove i386/t-crtstuff from tmake_file.
15786         (i[34567]86-*-solaris2*): Remove t-svr4,
15787         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15788         t-slibgcc-dummy.
15789         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15790         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15791         sparc/t-crtfm from tmake_file.
15792         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15793         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15794         Remove extra_parts.
15795         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15796         * config/i386/t-nwld (SHLIB_LINK): Remove.
15797         * config/i386/t-rtems-i386: Rename to ...
15798         * config/i386/t-rtems: ... this.
15799         ($(T)crti.o, $(T)crtn.o): Remove.
15800         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15801         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15802         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15803         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15804         EXTRA_MULTILIB_PARTS): Remove.
15805         * config/sparc/t-sol2-64: Likewise.
15806         * config/sparc/t-sol2: Remove.
15807         * config/sparc/t-crtin: Remove.
15808         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15809         * config/i386/gmon-sol2.c: Remove.
15810         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15811         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15812         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15813         * config/i386/sol2-gc1.asm: Remove.
15814         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15815         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15816         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15817         * config/t-slibgcc-sld: Remove.
15818
15819 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15820
15821         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15822         base_type_for_mode with op_mode instead of mode.
15823
15824 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
15825
15826         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
15827         Cortex-A15.
15828         * config/arm/arm-tune.md: Regenerate.
15829         * config/arm/arm-tables.opt: Regenerate.
15830         * config/arm/arm.c (FL_DIV): Rename...
15831         (FL_THUMB_DIV): ... to this.
15832         (FL_ARM_DIV): Define.
15833         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15834         (arm_arch_hwdiv): Remove.
15835         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15836         (arm_issue_rate): Add cortexr5.
15837         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15838         __ARM_ARCH_EXT_IDIV__.
15839         (TARGET_IDIV): Define.
15840         (arm_arch_hwdiv): Remove.
15841         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15842         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15843         (divsi3, udivsi3): New patterns.
15844         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15845         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15846
15847 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15848
15849         * ipa-utils.c (ipa_dfs_info): New field scc_no.
15850         * ipa-utils.c (searchc): Set scc_no.
15851
15852 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15853
15854         * ipa-utils.c (searchc_env): New field allow_overwritable.
15855         (searchc): do not ignore edges to overwritable nodes if indicated
15856         by env->allow_overwritable.
15857         (ipa_reduced_postorder): Set env.allow_overwritable.
15858
15859 2011-06-01  Richard Guenther  <rguenther@suse.de>
15860
15861         * tree.c (free_lang_data): Do not reset boolean_type_node nor
15862         char_type_node.
15863         * lto-streamer.c (lto_record_common_node): Take node pointer,
15864         do not register types.
15865         (lto_preload_common_nodes): Explicitly skip preloading nodes
15866         that differ between frontends.
15867
15868 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15869
15870         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15871         NON_FLOAT_REGS.
15872
15873 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15874
15875         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15876         parameter value for dump. Dump cost on outermost call only.
15877         (rs6000_memory_move_cost): Dump cost on outermost call only.
15878
15879 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15880
15881         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15882         DW_OP_GNU_convert ops.
15883
15884         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15885         cselib_preserve_constants.
15886         (cselib_lookup_1): If cselib_preserve_constants,
15887         a new VALUE is being created for REG and there is a VALUE for the
15888         same register in wider mode, add another loc with lowpart SUBREG of
15889         the wider VALUE.
15890         (cselib_subst_to_values): Handle ENTRY_VALUE.
15891         * var-tracking.c  (replace_expr_with_values): Return NULL for
15892         ENTRY_VALUE too.
15893         * dwarf2out.c (convert_descriptor_to_signed): New function.
15894         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15895         instead of two shifts.
15896         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15897         the right mode if needed.
15898         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15899         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15900         convert_descriptor_to_signed.
15901         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15902         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15903
15904         PR target/48688
15905         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15906
15907 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15908
15909         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
15910         of X87MODEI12 and SWI48x instead of SSEMODEI24.
15911         (SWI248x): New mode iterator, rename from X87MODEI.
15912         (X87MODEI): Remove mode iterator.
15913         (X87MODEI12): Ditto.
15914         (SSEMODEI24): Ditto.
15915
15916 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15917
15918         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
15919         * doc/invoke.texi: Document max-vartrack-expr-depth.
15920         * var-tracking.c (EXPR_DEPTH): New.
15921         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
15922
15923 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15924
15925         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
15926         * config/i386/sse.md: Add n to negated FMA pattern names.
15927
15928 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15929
15930         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
15931
15932 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
15933
15934         * gengtype-state.c (read_state_params_structs): Initialize previous.
15935
15936 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15937
15938         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
15939         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
15940
15941 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
15942
15943         * config/i386/i386.md (*movtf_internal): Avoid allocating general
15944         registers.  Penalize F*r->o alternative to prevent partial memory
15945         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
15946         CONST_DOUBLE immediates when optimizing function for size.  Do not move
15947         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
15948         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
15949         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
15950         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
15951         alternatives.
15952         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
15953
15954         (fp_register_operand splitters): Use fp_register_operand
15955         constraint.  Do not use FP_REG_P in insn condition.
15956         (any_fp_register_operand splitters): Use any_fp_register_operand
15957         constraint.  Do not use ANY_FP_REG_P in insn condition.
15958
15959 2011-05-31  Jan Hubicka  <jh@suse.cz>
15960
15961         * cgraph.h (cgraph_inline_failed_t): Give enum a name
15962         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
15963         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
15964         (lto_output_edge): Use output_enum and var_len_unsigned.
15965         (lto_output_varpool_node): Likewise.
15966         (input_overwrite_node): Do not take resolution parameter;
15967         extract it from a bitpack.
15968         (input_node): Do not read resolution; use input_enum and
15969         var_len_unsigned.
15970         (input_varpool_node): Likewise.
15971         (input_edge): Likewise.
15972         (input_cgraph_1): Likewise.
15973
15974 2011-05-31  Richard Guenther  <rguenther@suse.de>
15975
15976         * gimple.c (gimple_register_canonical_type): Do not register
15977         any types via gimple_register_type.
15978
15979 2011-05-31  Jan Hubicka  <jh@suse.cz>
15980
15981         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
15982         of thunks.
15983
15984 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15985
15986         PR rtl-optimization/49235
15987         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
15988         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
15989
15990 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
15991
15992         PR tree-optimization/49093
15993         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
15994         data references.
15995
15996 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
15997
15998         PR debug/49047
15999         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16000         for concrete functions containing the code of cloned functions.
16001
16002 2011-05-31  Richard Guenther  <rguenther@suse.de>
16003
16004         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16005         to ...
16006         (forward_propagate_into_comparison_1): ... this.
16007         (forward_propagate_comparison): Rename to ...
16008         (forward_propagate_into_comparison): ... this.  Split out
16009         real forward propagation code to ...
16010         (forward_propagate_comparison): ... this.
16011         (forward_propagate_into_gimple_cond): Remove looping.
16012         (forward_propagate_into_cond): Likewise.
16013         (simplify_not_neg_expr): Return whether we have done something.
16014         (simplify_gimple_switch): Likewise.
16015         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16016         (ssa_forward_propagate_and_combine): ... this.  Re-structure
16017         to do a forward forward-propagation walk on BBs and a backward
16018         stmt combining walk on BBs.  Consistently re-scan changed statements.
16019         (pass_forwprop): Adjust.
16020
16021 2011-05-30  Ian Lance Taylor  <iant@google.com>
16022
16023         * godump.c (go_format_type): Correct length of name added to
16024         obstack for anonymous field.
16025
16026 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
16027
16028         PR target/49186
16029         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16030         part of the second operand is 0.
16031
16032 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
16033
16034         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16035         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
16036         to memory for !TARGET_MEMORY_MISMATCH_STALL.
16037         (*movdf_internal_rex64): Do not penalize F->r alternative.
16038         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16039         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
16040         when optimizing function for size.  Do not move CONST_DOUBLEs
16041         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16042         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
16043         SUBREGs.  Do not check for MEM_P operands in the insn condition,
16044         check for ANY_FP_REGNO_P instead.
16045         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16046         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16047         function for speed.
16048         * config/i386/i386.c (ix86_option_override_internal): Do not
16049         set TARGET_INTEGER_DFMODE_MOVES here.
16050
16051 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16052
16053         PR target/49168
16054         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16055
16056 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16057
16058         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16059         DW_TAG_rvalue_reference_type even for
16060         -gdwarf-4 -fno-debug-types-section.
16061
16062 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16063
16064         PR tree-optimization/46728
16065         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16066         (build_and_insert_binop): New.
16067         (gimple_expand_builtin_pow): Reorder args for
16068         build_and_insert_call; use build_and_insert_binop; add more
16069         optimizations for fractional exponents.
16070
16071 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
16072
16073         PR bootstrap/49190
16074
16075         Revert:
16076         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16077
16078         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16079         tree_common.
16080         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16081         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16082         TS_BASE instead of TS_COMMON.
16083         * varasm.c (assemble_name): Remove assert.
16084
16085 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16086
16087         * config.gcc: Keep obselete list sorted.
16088
16089 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16090             Eric Botcazou  <ebotcazou@adacore.com>
16091
16092         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16093         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16094         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16095         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16096         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16097
16098 2011-05-30  Richard Guenther  <rguenther@suse.de>
16099
16100         * gimple.c (gimple_types_compatible_p_1): Compare record
16101         and union type members properly.
16102
16103 2011-05-30  Richard Guenther  <rguenther@suse.de>
16104
16105         PR tree-optimization/49210
16106         * ipa-split.c (split_function): Care for the case where the call
16107         result is not trivially convertible to the result holding variable.
16108
16109 2011-05-30  Richard Guenther  <rguenther@suse.de>
16110
16111         PR tree-optimization/49218
16112         * tree-vrp.c (adjust_range_with_scev): Properly check whether
16113         overflow occured.
16114
16115 2011-05-30  Richard Guenther  <rguenther@suse.de>
16116
16117         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16118         New function split out from ...
16119         (forward_propagate_into_gimple_cond): ... here.  Adjust.
16120         (forward_propagate_into_cond): Likewise.
16121         (forward_propagate_comparison): Also propagate into
16122         comparisons on assignment RHS.  Change return value to
16123         behave similar to forward_propagate_into_cond.
16124         (tree_ssa_forward_propagate_single_use_vars): Handle
16125         strict-overflow warnings properly for forward_propagate_comparison.
16126
16127 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16128
16129         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16130         from plugin linker.
16131         * configure: Regenerate.
16132
16133 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
16134
16135         PR tree-optimization/49199
16136         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16137         non-reduction operands are either defined in the loop or by induction.
16138
16139 2011-05-29  Xinliang David Li  <davidxl@google.com>
16140
16141         * opts-global.c (handle_common_deferred_options): Handle new options.
16142         * passes.c (register_one_dump_file): Call register_pass_name.
16143         (execute_one_pass): Check explicit enable/disable flag.
16144         (passr_hash): New function.
16145         (passr_eq): Ditto.
16146         (register_pass_name): Ditto.
16147         (get_pass_by_name): Ditto.
16148         (pass_hash): Ditto.
16149         (pass_eq): Ditto.
16150         (enable_pass): Ditto.
16151         (disable_pass): Ditto.
16152         (is_pass_explicitly_enabled_or_disabled): Ditto.
16153
16154 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
16155
16156         * config/i386/i386.md (*movoi_internal_avx): Use
16157         standard_sse_constant_opcode for alternative 0.
16158         (*movti_internal_sse): Ditto.
16159         (*movti_internal_rex64): Use standard_sse_constant_opcode for
16160         alternative 2.
16161         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
16162         sselog1 type moves.
16163         (*movsi_internal): Ditto.
16164         (*movdi_internal): Ditto.  Add ssecvt type moves.
16165
16166 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16167
16168         PR target/48830
16169         * rtlanal.c (simplify_subreg_regno): Adjust comment.
16170
16171 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
16172
16173         PR rtl-optimization/49095
16174         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
16175         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
16176
16177 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16178
16179         PR target/43995
16180         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
16181         recurse_p argument.  Only follow register copies if it is set,
16182         and prevent mips_find_pic_call_symbol from recursing.
16183         (mips_find_pic_call_symbol): Add a recurse_p argument.
16184         Pass it to mips_pic_call_symbol_from_set.
16185         (mips_annotate_pic_calls): Update accordingly.
16186
16187 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16188
16189         * emit-rtl.c (try_split): Use a loop to search for
16190         NOTE_INSN_CALL_ARG_LOCATIONs.
16191
16192 2011-05-29  Richard Guenther  <rguenther@suse.de>
16193
16194         PR tree-optimization/49217
16195         * ipa-pure-const.c (propagate_pure_const): Fix typos.
16196
16197 2011-05-28  Jan Hubicka  <jh@suse.cz>
16198
16199         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
16200         length.
16201         (string_slot_free): Remove
16202         (create_output_block): Initialize obstack.
16203         (destroy_output_block): Free obstack.
16204         (lto_string_index): Add PERSISTENT parameter; do not duplicate
16205         the string unless it needs to be added into the hash.
16206         (lto_output_string_with_length): Add persistent attribute;
16207         handle NULL strings.
16208         (lto_output_string): Add PERSISTENT parameter.
16209         (output_string_cst, output_identifier): Simplify.
16210         (lto_output_location_bitpack): Update.
16211         (lto_output_builtin_tree): Update.
16212         * lto-streamer.h (struct output_block): Add obstack.
16213         (lto_output_string, lto_output_string_with_length): Remove
16214         declarations; functions are static now.
16215
16216 2011-05-28  Jan Hubicka  <jh@suse.cz>
16217
16218         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
16219         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
16220         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
16221         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
16222         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
16223         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
16224         unpack_ts_decl_with_vis_value_fields,
16225         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
16226         lto_get_builtin_tree): Use enum and variable length i/o.
16227         * basic-block.h (profile_status_d): Add PROFILE_LAST.
16228         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
16229         New functions.
16230         (bp_pack_enum, bp_unpack_enum): New macros.
16231
16232 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16233
16234         * genrecog.c: Remove redundant forward declarations.
16235
16236 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16237
16238         * config.gcc: Deprecate mips*-*-openbsd*.
16239
16240 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16241
16242         PR bootstrap/49195
16243         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
16244         for match_op_dup.
16245
16246 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
16247
16248         PR middle-end/48981
16249         * gengtype.c (vec_prefix_type): New function.
16250         (note_def_vec): Use vec_prefix_type and change the length
16251         attribute to be based on the prefix.
16252         * vec.c: Include coretypes.h before vec.h.
16253         (struct vec_prefix): Remove.
16254         (vec_gc_p_reserve): Change the offsetof to sizeof.
16255         (vec_gc_p_reserve_exact): Likewise.
16256         (vec_heap_p_reserve): Likewise.
16257         (vec_heap_p_reserve_exact): Likewise.
16258         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
16259         (vec_stack_p_reserve): Change the offsetof to sizeof.
16260         (vec_stack_p_reserve_exact): Likewise.
16261         * vec.h (struct vec_prefix): New struct definition.
16262         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
16263         (VEC_T_GTY(T,B)): Likewise.
16264         (DEF_VEC_FUNC_P(T)): Use prefix field.
16265         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
16266         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
16267
16268 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16269
16270         PR tree-optimization/46728
16271         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
16272         (powi_as_mults): Add gimple_set_location.
16273         (build_and_insert_call): New.
16274         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
16275         0.5, 0.25, 0.75, 1./3., or 1./6.
16276
16277 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
16278
16279         * doc/contrib.texi: Update copyright years.
16280         (Contributors): Add Zdenek Sojka.
16281
16282 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
16283
16284         * c-decl.c (c_push_function_context): Copy the current statement
16285         list stack.
16286         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16287         (finish_struct): Call building_stmt_list_p instead of checking
16288         cur_stmt_list.
16289         * c-parser.c (c_parser_postfix_expression): Likewise.
16290         * c-typeck.c (c_end_compound_stmt): Likewise.
16291         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16292         * tree-iterator.c (stmt_list_cache): Change to a VEC.
16293         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16294         (free_stmt_list): Likewise.
16295         * tree.h (struct tree_statement_list): Include typed_tree instead
16296         of tree_common.
16297         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16298         as TS_TYPED instead of TS_COMMON.
16299
16300 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16301             Uros Bizjak  <ubizjak@gmail.com>
16302
16303         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16304         (HAVE_AS_IX86_TLSGDPTL): Define.
16305         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16306         (HAVE_AS_IX86_TLSLDMPLT): Define.
16307         * configure: Regenerate.
16308         * config.in: Regenerate.
16309         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16310         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16311         TARGET_SUN_TLS, use @tlsgdplt or @plt.
16312         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16313         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16314         @tlsldmplt or @plt.
16315         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16316
16317 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16318
16319         * sched-int.h (struct _haifa_deps_insn_data): New members cond
16320         and reverse_cond.
16321         (INSN_COND, INSN_REVERSE_COND): New macros.
16322         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16323         once.
16324         (sched_get_condition_with_rev): Cache the results, and look them up
16325         if possible.
16326         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16327         are clobbered by the current insn.
16328         * target.def (exposed_pipline): New sched data hook.
16329         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16330         * doc/tm.texi: Regenerate.
16331
16332 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16333
16334         PR tree-optimization/49170
16335         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
16336         sincos or cexp.
16337
16338 2011-05-27  Richard Guenther  <rguenther@suse.de>
16339
16340         PR middle-end/49189
16341         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16342         of comparisons.
16343
16344 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16345
16346         * haifa-sched.c (sched_scan_info): Remove.
16347         (schedule_block): Call sched_extend_luids rather than sched_init_luids
16348         with NULL args.
16349         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16350         Remove functions.
16351         (sched_scan): Remove.
16352         (sched_extend_luids): Renamed from luids_extend_insn and no longer
16353         static.  All callers changed.
16354         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16355         static.  All callers changed.
16356         (sched_init_luids): Remove all arguments except the first.  All
16357         callers changed.  Don't use sched_scan.
16358         (haifa_init_h_i_d): Likewise.
16359         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16360         manually rather than using sched_init_luids.  Likewise with
16361         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16362         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16363         rather than sched_init_luids with NULL args.
16364         * sel-sched-ir.c (new_insns): Remove variable.
16365         (sched_scan): New static function, previously in haifa-sched.c.  Remove
16366         all arguments but the first two; all callers changed.
16367         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16368         rather than sched_init_luids.
16369         (sel_init_bbs): Remove second argument.  All callers changed.
16370         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16371         with NULL arguments.
16372         (create_insn_rtx_from_pattern): Likewise.
16373         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16374         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16375         (sched_init_insn_luid, sched_extend_luids): Declare.
16376         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16377         declarations.
16378
16379 2011-05-27  Richard Guenther  <rguenther@suse.de>
16380
16381         PR middle-end/49177
16382         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16383         A CMP B ? (T) true : (T) false for non-integral types T again.
16384
16385 2011-05-27  Jan Hubicka  <jh@suse.cz>
16386
16387         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16388         so 0 means NULL string.
16389         (lto_output_string_with_length): ... here.
16390         (lto_output_string, output_string_cst, output_identifier): Update
16391         handling of NULL strings.
16392         (lto_output_location_bitpack): New function.
16393         (lto_output_location): Use it.
16394         (lto_output_tree_ref): Use output_record_start.
16395         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16396         len values.
16397         * lto-streamer-in.c (string_for_index): Break out from ...; offset
16398         values by 1.
16399         (input_string_internal): ... here;
16400         (input_string_cst, input_identifier, lto_input_string): Update handling
16401         of NULL strings.
16402         (lto_input_location_bitpack): New function
16403         (lto_input_location): Use it.
16404         (unpack_ts_type_common_value_fields): Pack align & alias in var len
16405         values.
16406         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16407         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16408         (bp_pack_value): Sanity check the value range.
16409         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16410         New functions.
16411         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16412         New functions.
16413
16414 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
16415
16416         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16417         call_arg_location instructions down the floor.
16418
16419 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
16420
16421         PR rtl-optimization/49154
16422         * ira.c (setup_pressure_classes): Process class without sublcasses
16423         as a candidate for pressure classes.
16424
16425 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
16426
16427         PR rtl-optimization/48575
16428         * genrecog.c (position_type): New enum.
16429         (position): New structure.
16430         (decision): Use position structure instead of a string.
16431         (root_pos, peep2_insn_pos_list): New variables.
16432         (next_position, compare_positions): New functions.
16433         (new_decision): Use position structures instead of strings.
16434         (maybe_both_true): Likewise.
16435         (change_state): Likewise.
16436         (write_tree): Likewise.
16437         (make_insn_sequence): Likewise.
16438
16439 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16440
16441         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16442         TS_BASE instead of TS_COMMON.
16443         (find_decls_types_r): Check for TS_TYPED structure before looking at
16444         TREE_TYPE.
16445         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16446         Add chain field.
16447         (BLOCK_CHAIN): Use new chain field.
16448
16449 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
16450
16451         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16452         moves expensive on Power7 also.
16453
16454 2011-05-26  Richard Guenther  <rguenther@suse.de>
16455
16456         * fold-const.c (fold_unary_loc): Remove bogus code.
16457
16458 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16459
16460         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16461         tree_common.
16462         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16463         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16464         TS_BASE instead of TS_COMMON.
16465         * varasm.c (assemble_name): Remove assert.
16466
16467 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16468
16469         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16470         substituted first.
16471         * libgcc-std.ver: Delete file.
16472
16473 2011-05-26  Richard Guenther  <rguenther@suse.de>
16474
16475         PR tree-optimization/48702
16476         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16477         only when we know the base address is within bounds.
16478         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16479         assume the base address of TARGET_MEM_REFs is in bounds.
16480
16481 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16482
16483         PR target/49099
16484         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16485         declaration in TARGET_SOLARIS.
16486
16487 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
16488
16489         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16490         The instruction is then expanded explicitly.
16491         (supported_compare): Callable instruction.
16492         (compare): Likewise.
16493
16494 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16495
16496         PR c++/49165
16497         * gimplify.c (shortcut_cond_r): Don't special case
16498         COND_EXPRs if they have void type on one of their arms.
16499
16500 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16501
16502         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16503         to reduce duplication, and to achieve a slightly more logical order
16504         of operations.
16505
16506 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16507
16508         PR tree-optimization/49161
16509         * tree-vrp.c (struct case_info): New type.
16510         (compare_case_labels): Sort case_info structs instead of
16511         trees, and not primarily by CASE_LABEL uids but by
16512         label_for_block indexes.
16513         (find_switch_asserts): Put case labels into struct case_info
16514         array instead of TREE_VEC, adjust sorting, compare label_for_block
16515         values instead of CASE_LABELs.
16516
16517 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16518
16519         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16520         ("orndi3_neon"): Likewise.
16521         ("bic<mode>3_neon"): Likewise.
16522
16523 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
16524
16525         PR tree-optimization/49038
16526         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16527         Ensure at least one epilogue iteration if required by data
16528         accesses with gaps.
16529         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16530         to mark loops that require peeling for gaps.
16531         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16532         (vect_get_known_peeling_cost): Take peeling for gaps into
16533         account.
16534         (vect_transform_loop): Generate epilogue if required by data
16535         access with gaps.
16536         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16537         loop as requiring an epilogue if there are gaps in the end of
16538         the strided group.
16539
16540 2011-05-25  Ian Lance Taylor  <iant@google.com>
16541
16542         * godump.c (go_format_type): Output the first field with a usable
16543         Go type, if any.
16544
16545 2011-05-25  Ian Lance Taylor  <iant@google.com>
16546
16547         * godump.c (go_format_type): Check for invalid type names, pointer
16548         target types, and struct field types.
16549
16550 2011-05-25  Jason Merrill  <jason@redhat.com>
16551
16552         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16553
16554 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
16555
16556         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16557
16558 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16559
16560         * config/i386/i386.md (*movqi_extv_1)): Put back
16561         "register_operand" check in "type" calculation.
16562         (*movqi_extzv_2): Likewise.
16563
16564 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16565
16566         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16567
16568 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16569
16570         PR bootstrap/49160
16571         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16572         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16573         __divxc3, __divtc3): Wrap definitions in #ifndef.
16574
16575 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16576
16577         PR target/49142
16578         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16579         "register_operand" check and replace q_regs_operand with
16580         QIreg_operand in "type" calculation.
16581         (*movqi_extv_1): Likewise.
16582         (*movqi_extzv_2_rex64): Likewise.
16583         (*movqi_extzv_2): Likewise.
16584
16585         * config/i386/predicates.md (QIreg_operand): New.
16586
16587 2011-05-25  Richard Guenther  <rguenther@suse.de>
16588
16589         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16590         type-based offset disambiguation, streamline MEM_REF and
16591         TARGET_MEM_REF handling.
16592
16593 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16594
16595         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16596         (bdesc_special_args): Add pause intrinsic.
16597
16598         * config/i386/i386.md (UNSPEC_PAUSE): New.
16599         (pause): Likewise.
16600         (*pause): Likewise.
16601         * config/i386/ia32intrin.h (__pause): Likewise.
16602
16603         * doc/extend.texi (X86 Built-in Functions): Add documentation for
16604         pause intrinsic.
16605
16606 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16607
16608         PR tree-optimization/46728
16609         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16610         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16611
16612 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
16613
16614         * tree.h (struct tree_exp): Inherit from struct tree_typed.
16615         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16616         instead of TS_COMMON.
16617
16618 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16619
16620         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16621         LIBGCC2_GNU_PREFIX is defined.
16622         (__N): New macro.
16623         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16624         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16625         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16626         __clz_tab): Define using __N.
16627         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16628         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16629         * target.def (libfunc_gnu_prefix): New hook.
16630         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16631         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16632         * doc/tm.texi: Regenerate.
16633         * system.h (LIBGCC2_GNU_PREFIX): Poison.
16634         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16635         account.
16636         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16637         (init_optabs): Likewise for the bswap libfuncs.
16638         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16639         and divide.
16640         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16641         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16642         * libgcc-std.ver: Remove.
16643         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16644         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16645         libgcc-std.ver.
16646         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16647         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16648         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16649         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16650         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16651         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16652         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16653         * config/fixed-bit.h (FIXED_OP): Define differently depending on
16654         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16655         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16656
16657 2011-05-25  Jan Hubicka  <jh@suse.cz>
16658
16659         * lto-streamer-out.c (output_record_start): Use lto_output_enum
16660         (lto_output_tree): Use output_record_start.
16661         * lto-streamer-in.c (input_record_start): Use lto_input_enum
16662         (lto_get_pickled_tree): Use input_record_start.
16663         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16664         (lto_value_range_error): New function.
16665         * lto-streamer.h (lto_value_range_error): Declare.
16666         (lto_output_int_in_range, lto_input_int_in_range): New functions.
16667         (lto_output_enum, lto_input_enum): New macros.
16668
16669 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
16670
16671         * common.opt (flag_stack_usage_info): New variable.
16672         (-Wstack-usage): New option.
16673         * doc/invoke.texi (Warning options): Document -Wstack-usage.
16674         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16675         <OPT_fstack_usage>: Likewise.
16676         * toplev.c (output_stack_usage): Handle -Wstack-usage.
16677         * calls.c (expand_call): Test flag_stack_usage_info variable instead
16678         of flag_stack_usage.
16679         (emit_library_call_value_1): Likewise.
16680         * explow.c (allocate_dynamic_stack_space): Likewise.
16681         * function.c (instantiate_virtual_regs ): Likewise.
16682         (prepare_function_start): Likewise.
16683         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16684         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16685         * config/arm/arm.c (arm_expand_prologue): Likewise.
16686         (thumb1_expand_prologue): Likewise.
16687         * config/avr/avr.c (expand_prologue): Likewise.
16688         * config/i386/i386.c (ix86_expand_prologue): Likewise.
16689         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16690         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16691         * config/mips/mips.c (mips_expand_prologue): Likewise.
16692         * config/pa/pa.c (hppa_expand_prologue): Likewise.
16693         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16694         * config/s390/s390.c (s390_emit_prologue): Likewise.
16695         * config/sh/sh.c (sh_expand_prologue): Likewise.
16696         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16697         * config/spu/spu.c (spu_expand_prologue): Likewise.
16698
16699 2011-05-25  Richard Guenther  <rguenther@suse.de>
16700
16701         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16702         (gimple_canonical_types_compatible_p): Likewise.
16703
16704 2011-05-25  Jan Hubicka  <jh@suse.cz>
16705
16706         PR middle-end/49062
16707         * ipa.c (function_and_variable_visibility): Only add to same
16708         comdat group list if DECL_ONE_ONLY.
16709
16710 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
16711
16712         PR rtl-optimization/49014
16713         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16714
16715 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16716
16717         PR target/49128
16718         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16719
16720 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16721
16722         PR rtl-optimization/48757
16723         * ira-build.c (loop_with_eh_edge_p): Rename to
16724         loop_with_complex_edge_p, check edges on complexity, make function
16725         conditional.
16726         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16727         conditional.
16728
16729 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16730
16731         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
16732         force flag_ira_share_save_slots to 0.
16733
16734 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16735
16736         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16737         (vt_initialize): Set PROLOGUE_BB unconditionally.
16738         Add block comment about CFA_BASE_RTX machinery.
16739         Reset FP_CFA_OFFSET to -1 on all invalid paths.
16740         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16741
16742 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
16743
16744         PR objc/48187
16745         * c-parser.c (c_parser_objc_class_instance_variables): More robust
16746         parsing of syntax error in ObjC instance variable lists.  In
16747         particular, avoid an infinite loop if there is a stray ']'.
16748         Updated error message.
16749
16750 2011-05-24  Ian Lance Taylor  <iant@google.com>
16751
16752         * godump.c (go_define): Don't accept a string immediately after
16753         another operand.
16754
16755 2011-05-24  Ian Lance Taylor  <iant@google.com>
16756
16757         * godump.c (struct godump_container): Add invalid_hash field.
16758         (go_format_type): Return false if type is found in invalid_hash.
16759         (go_output_typedef): Add invalid type to invalid_hash.
16760         (go_finish): Create and delete invalid_hash.
16761
16762 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16763
16764         PR tree-optimization/46728
16765         * tree-ssa-math-opts.c (powi_table): New.
16766         (powi_lookup_cost): New.
16767         (powi_cost): New.
16768         (powi_as_mults_1): New.
16769         (powi_as_mults): New.
16770         (gimple_expand_builtin_powi): New.
16771         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16772         (gate_cse_sincos): Remove sincos/cexp restriction.
16773
16774 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16775
16776         PR target/3746
16777         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16778         mips-tdump native.
16779         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16780         * mips-tdump.c: Likewise.
16781
16782 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16783
16784         PR target/49128
16785         * config/i386/driver-i386.c (host_detect_local_cpu): Always
16786         add -mno-XXX.  Handle FMA.
16787
16788 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16789
16790         PR rtl-optimization/48633
16791         * ira-build.c (loop_with_eh_edge_p): New function.
16792         (mark_loops_for_removal): Use it.
16793
16794 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16795
16796         PR rtl-optimization/48971
16797         * ira.c (setup_pressure_classes): Don't check register move cost
16798         for classes with one registers.  Don't add pressure class if there
16799         is a pressure class with the same available hard registers.
16800         Check contains_reg_of_mode.  Fix a typo in collecting
16801         temp_hard_regset.  Ignore hard registers not belonging to a class.
16802
16803 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
16804
16805         PR target/49133
16806         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16807
16808 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16809             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16810
16811         PR gcov-profile/48845
16812         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16813
16814 2011-05-24  Richard Guenther  <rguenther@suse.de>
16815
16816         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16817         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16818         (gimple_types_compatible_p_1): Adjust.
16819         (iterative_hash_canonical_type): Do not bother about complete vs.
16820         incomplete types.
16821         (gimple_canonical_types_compatible_p): Likewise.
16822
16823 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16824
16825         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16826
16827 2011-05-24  Richard Guenther  <rguenther@suse.de>
16828
16829         PR bootstrap/49078
16830         * gimple.c (gimple_register_canonical_type): Revert
16831         previous change.
16832         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16833         does not for a tree for the case where it matters.  Cache
16834         pointer-type alias-sets.
16835
16836 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
16837
16838         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16839         (OBJS): Remove options.o, opts-common.o and prefix.o.
16840         (OBJS-libcommon-target): New.
16841         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16842         (BACKEND): Include libcommon-target.a.
16843         (MOSTLYCLEANFILES): Include libcommon-target.a.
16844         (libcommon-target.a): New.
16845         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16846         prefix.o.
16847
16848 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
16849
16850         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
16851         parts of output shared with the driver.
16852         * optc-gen.awk: Don't generate parts of output not shared with the
16853         driver.
16854         * opth-gen.awk: Remove GCC_DRIVER conditionals.
16855         * doc/options.texi (SourcerInclude): Mention options-save.c.
16856         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16857         (OBJS): Add options-save.o.
16858         (options-save.c, options-save.o): New.
16859         (options.o): Update dependencies.
16860         (gcc-options.o): Remove.
16861         (mostlyclean): Remove options-save.c.
16862
16863 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16864
16865         PR debug/49032
16866         * dbxout.c: Include cgraph.h.
16867         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16868         and without value expr, return NULL if no varpool node exists for
16869         it or if it is not needed.
16870         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16871
16872         PR c/49120
16873         * c-decl.c (start_decl): Convert expr to void_type_node.
16874
16875 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
16876
16877         PR rtl-optimization/48826
16878         * emit-rtl.c (try_split): When splitting a call that is followed
16879         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16880
16881 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16882
16883         * cfgexpand.c (expand_debug_expr): For unused non-addressable
16884         parameters passed in memory prefer using DECL_INCOMING_RTL over
16885         the pseudos it will be copied into.
16886
16887 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16888
16889         PR target/47315
16890         * config/i386/i386.c (ix86_option_override_internal): Save the
16891         initial options after checking vzeroupper.
16892
16893 2011-05-23  David Li  <davidxl@google.com>
16894
16895         PR tree-optimization/48988
16896         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16897         Initialize has_valid_pred for each pred chain.
16898
16899 2011-05-23  Richard Guenther  <rguenther@suse.de>
16900
16901         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16902         (iterative_hash_gimple_type): Always hash type names.
16903
16904 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
16905
16906         * c-typeck.c (build_function_call_vec): Tweak call to
16907         check_function_arguments.
16908
16909 2011-05-23  Richard Guenther  <rguenther@suse.de>
16910
16911         PR tree-optimization/49115
16912         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
16913         is not necessarily carried out, do not claim it kills the ref.
16914         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
16915
16916 2011-05-23  Richard Guenther  <rguenther@suse.de>
16917
16918         PR middle-end/15419
16919         * builtins.c (fold_builtin_memory_op): Be less restrictive about
16920         what pointer types we accept for folding.
16921
16922 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16923
16924         * gthr-gnat.c: Remove.
16925         * gthr-gnat.h: Remove.
16926         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
16927         * config/t-freebsd (LIB2ADDEH): Likewise.
16928         * config/t-linux (LIB2ADDEH): Likewise.
16929         * config/t-sol2 (LIB2ADDEH): Likewise.
16930         * config/ia64/t-vms (LIB2ADDEH): Likewise.
16931         * configure.ac (target_thread_file): Remove gnat handling.
16932         * configure: Regenerate.
16933         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
16934
16935 2011-05-23  Tristan Gingold  <gingold@adacore.com>
16936             Eric Botcazou  <ebotcazou@adacore.com>
16937
16938         * gcov.c (create_file_names): If no object directory is specified,
16939         keep the directory of the file.
16940
16941 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16942
16943         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
16944         * configure: Regenerate.
16945
16946 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16947
16948         PR middle-end/48973
16949         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
16950         failed and the comparison has a single bit signed type, use
16951         constm1_rtx instead of const1_rtx for true value.
16952         (do_store_flag): If ops->type is single bit signed type, disable
16953         signel bit test optimization and pass -1 instead of 1 as last
16954         parameter to emit_store_flag_force.
16955
16956 2011-05-23  Tom de Vries  <tom@codesourcery.com>
16957
16958         PR target/45098
16959         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
16960         function.
16961         (infer_loop_bounds_from_undefined): Use new function.
16962
16963 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16964
16965         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
16966         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
16967         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
16968         and -O0 otherwise.
16969         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
16970
16971 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16972
16973         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
16974         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
16975         returns true.
16976
16977 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
16978
16979         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
16980
16981 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16982
16983         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
16984         UNSPEC_MOVE_PIC pattern.
16985
16986 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16987
16988         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
16989         (sparc-*-rtems*): Likewise.
16990         (sparc64-*-elf*): Likewise.
16991         (sparc64-*-rtems*): Likewise.
16992         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
16993         * config/sparc/t-crtin: New file.
16994         * config/sparc/t-sol2 (crti.o): Delete rule.
16995         (crtn.o): Likewise.
16996         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
16997         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
16998         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
16999         (ENDFILE_SPEC): Add crtn.o.
17000
17001 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17002
17003         PR middle-end/48689
17004         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17005         CODE_CONTAINS_STRUCT (TS_COMMON).
17006
17007 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
17008
17009         PR middle-end/49029
17010         * expmed.c (extract_fixed_bit_field): Test whether target can be used
17011         only after deciding which mode to use.
17012
17013 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17014
17015         PR target/45098
17016         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17017         for call to get_shiftadd_cost.
17018
17019 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
17020
17021         PR target/49104
17022         * config/i386/cpuid.h (bit_MMXEXT): New define.
17023
17024 2011-05-22  Nick Clifton  <nickc@redhat.com>
17025
17026         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17027         initialisation of non-existant args[2] element.  Use args[] array
17028         not arg[] array to pass arguments to build_function_type_list.
17029
17030 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
17031
17032         PR tree-optimization/49087
17033         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17034
17035 2011-05-21  Jason Merrill  <jason@redhat.com>
17036
17037         PR c++/49092
17038         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17039         static storage duration.
17040
17041 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17042
17043         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17044         frame pointer.
17045
17046 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17047
17048         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17049         false if there are call-saved registers here...
17050         (sparc_can_use_return_insn_p): ...but here instead.
17051         (save_or_restore_regs): Fix thinko.
17052         (sparc_expand_prologue): Use current_function_is_leaf.
17053         (sparc_frame_pointer_required): Likewise.
17054
17055 2011-05-21  Nick Clifton  <nickc@redhat.com>
17056
17057         PR target/49098
17058         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17059
17060 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17061
17062         * gengtype.c (walk_type): Implemented "atomic" GTY option.
17063         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17064
17065 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
17066
17067         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
17068         * optc-gen.awk: Move common code to opt-read.awk.
17069         * opth-gen.awk: Likewise.
17070         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17071
17072 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
17073
17074         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17075
17076 2011-05-20  Tom de Vries  <tom@codesourcery.com>
17077
17078         PR target/45098
17079         * tree-ssa-loop-ivopts.c: Include expmed.h.
17080         (get_shiftadd_cost): New function.
17081         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
17082
17083 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17084
17085         PR bootstrap/49086
17086         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17087         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17088
17089 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17090
17091         * Makefile.in: Update comment referring to $(OBJS-common).
17092
17093 2011-05-20  Ian Lance Taylor  <iant@google.com>
17094
17095         * godump.c (go_output_typedef): Put enum constants in the macro
17096         hash table to avoid duplicate Go const definitions.
17097
17098 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17099
17100         * Makefile.in (LIBDEPS): Add libcommon.a.
17101         (LIBS): Likewise.
17102         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17103         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17104         pretty-print.o and version.o.
17105         (OBJS-libcommon): New.
17106         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17107         (BACKEND): Add libcommon.a.
17108         (MOSTLYCLEANFILES): Likewise.
17109         (libcommon.a): New.
17110         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17111         (cpp$(exeext)): Likewise.
17112         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17113         pretty-print.o and input.o.
17114         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17115         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17116         (errors.o): Remove.
17117         (mips-tfile): Don't explicitly use version.o.
17118         (mips-tdump): Likewise.
17119         (gcov.o): Depend on $(DIAGNOSTIC_H).
17120         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17121         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17122         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17123         * gcov-dump.c: Include intl.h and diagnostic.h.
17124         (main): Initialize diagnostics.
17125         * gcov.c: Include diagnostic.h.
17126         (fnotice): Remove.
17127         (main): Initialize diagnostics.
17128         * lto-wrapper.c: Include diagnostic.h.
17129         (main): Initialize diagnostics.
17130
17131 2011-05-20  Michael Matz  <matz@suse.de>
17132
17133         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17134
17135 2011-05-20  Michael Matz  <matz@suse.de>
17136             Richard Guenther  <rguenther@suse.de>
17137
17138         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
17139         use lto_streamer_cache_append directly instead of returning a VEC.
17140         (preload_common_node): Remove.
17141         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
17142         track seen nodes.
17143         (lto_streamer_cache_create): Call lto_preload_common_nodes.
17144
17145 2011-05-20  Richard Guenther  <rguenther@suse.de>
17146
17147         PR tree-optimization/49079
17148         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
17149         MEM_REFs correctly for the trailing array access detection.
17150         Special case constants the same way as decls for overall size
17151         constraining.
17152
17153 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
17154
17155         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
17156         argument expansion.
17157
17158 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17159
17160         PR tree-optimization/49073
17161         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
17162         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
17163         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
17164
17165 2011-05-20  Richard Guenther  <rguenther@suse.de>
17166
17167         PR middle-end/48849
17168         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
17169         of pointer types the same way the middle-end does.
17170
17171 2011-05-20  Richard Guenther  <rguenther@suse.de>
17172
17173         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
17174         or pointer-to chains.  Delay all fixup to uniquify_nodes.
17175
17176 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
17177
17178         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
17179         (fma4_fmaddsub): Likewise
17180
17181 2011-05-19  Jan Hubicka  <jh@suse.cz>
17182
17183         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
17184         (GIMPLE_TYPE_PAIR_SIZE): New macro.
17185         (type_pair_cache): New static var.
17186         (lookup_type_pair): Use fixed sized custom hash; make inline.
17187         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
17188         calls of lookup_type_pair.
17189         (print_gimple_types_stats): Remove cache stats.
17190         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
17191         and gtc_ob.
17192
17193 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
17194
17195         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
17196         when TARGET_RDRND is active.
17197         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
17198         Generate dummy SImode target register when target is NULL.
17199
17200 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17201
17202         * config/arm/arm-fpus.def: New.
17203         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
17204         arm-fpus.def.
17205         * config/arm/arm-tables.opt: Regenerate.
17206         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
17207         (arm_option_override): Don't decode FPU name to string here.
17208         * config/arm/arm.opt (mfpu=): Use Enum.
17209         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
17210         Update dependencies.
17211
17212 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17213
17214         * collect2.c: Include diagnostic.h.
17215         (fatal_perror, fatal, error, fancy_abort): Remove.
17216         (main): Set progname.  Call xmalloc_set_program_name and
17217         diagnostic_initialize.
17218         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
17219         scan_libraries, resolve_lib_name): Call fatal_error instead of
17220         fatal and fatal_perror.
17221         * collect2.h (error, fatal, fatal_perror): Don't declare.
17222         * tlink.c: Include diagnostic-core.h.
17223         (recompile_files): Call fatal_error instead of fatal_perror.
17224         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
17225         pretty-print.o and input.o.
17226         (collect2.o, tlink.o): Update dependencies.
17227
17228 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17229
17230         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
17231
17232 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17233
17234         PR target/40483
17235         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
17236         COMDAT group syntax, both SPARC and x86 variants.
17237         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
17238         * configure: Regenerate.
17239         * config/sol2.h (TARGET_SOLARIS): Define.
17240         (PUSHSECTION_FORMAT): Remove.
17241         (SECTION_NAME_FORMAT): Define.
17242         * config/sol2.c: Include hashtab.h.
17243         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17244         expansion, using SECTION_NAME_FORMAT.
17245         (solaris_comdat_htab): New variable.
17246         (struct comdat_entry): Define.
17247         (comdat_hash): New function.
17248         (comdat_eq): New function.
17249         (solaris_elf_asm_comdat_section): New function.
17250         (solaris_define_comdat_signature): New function.
17251         (solaris_code_end): New function.
17252         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
17253         (solaris_code_end): Declare.
17254         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
17255         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
17256         solaris_code_end.
17257         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
17258         Remove ATTRIBUTE_UNUSED.
17259         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
17260         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
17261         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
17262         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
17263         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
17264         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
17265         (PUSHSECTION_FORMAT): Remove.
17266         (SECTION_NAME_FORMAT): Redefine.
17267
17268 2011-05-19  Kai Tietz  <ktietz@redhat.com>
17269
17270         * tree-cfg.c (verify_gimple_assign_binary): Barf on
17271         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
17272         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
17273
17274 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
17275             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17276
17277         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
17278
17279 2011-05-19  Richard Guenther  <rguenther@suse.de>
17280
17281         PR middle-end/48985
17282         * tree-object-size.c (addr_object_size): If the pointed-to
17283         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17284
17285 2011-05-19  Richard Guenther  <rguenther@suse.de>
17286
17287         * gimple.c (gimple_types_compatible_p_1): Compare names of
17288         the types themselves.
17289         (iterative_hash_gimple_type): And hash them that way.
17290         (gimple_register_type_1): If we register a main variant properly
17291         initialize the leader to ourselves.
17292
17293 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17294
17295         PR target/45098
17296         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17297         get_loop_invariant_expr_id.
17298         (get_loop_invariant_expr_id): Use get_expr_id.
17299         (parm_decl_cost): New function.
17300         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17301         Improve bound cost estimation.  Use different inv_expr_id for elim and
17302         express cases.
17303
17304 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17305
17306         PR target/45098
17307         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17308         cost_base.cost == 0.
17309
17310 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17311
17312         PR target/49002
17313         * config/i386/sse.md
17314         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17315         load cast.
17316
17317 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17318
17319         PR tree-optimization/49039
17320         * tree-vrp.c (extract_range_from_binary_expr): For
17321         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17322         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17323
17324 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17325
17326         PR target/45098
17327         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17328
17329 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
17330
17331         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17332         (*tls_global_dynamic_64): Ditto.
17333         (*tls_local_dynamic_base_32_gnu): Ditto.
17334         (*tls_local_dynamic_base_64): Ditto.
17335         (tls_initial_exec_64_sun): Ditto.
17336
17337 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
17338
17339         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17340         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17341         bf592-none.
17342         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17343         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17344         * config/bfin/bfin.c (bfin_cpus): Add bf592.
17345         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17346         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17347         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17348         * config/bfin/elf.h (LIB_SPEC): Add bf592.
17349
17350 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
17351
17352         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17353         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17354         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17355         target_thread_pointer, arm_structure_size_boundary, struct
17356         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17357         struct abi_name, arm_all_abis): Remove.
17358         (arm_option_override) Don't process most enumerated option values here.
17359         Don't process target_fpe_name here.  Work with integer not string for
17360         structure size boundary; use separate diagnostics for each case.
17361         * config/arm/arm.h (enum float_abi_type, enum
17362         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17363         to arm-opts.h.
17364         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17365         arm_structure_size_boundary): Remove.
17366         * config/arm/arm.opt (mabi=): Use Enum and Init.
17367         (arm_abi_type): New Enum and EnumValue entries.
17368         (mfloat-abi=): Use Enum and Init.
17369         (float_abi_type): New Enum and EnumValue entries.
17370         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17371         (mfp16-format=): Use Enum and Init.
17372         (arm_fp16_format_type): New Enum and EnumValue entries.
17373         (mstructure-size-boundary=): Use UInteger and Init.
17374         (mtp=): Use Enum and Init.
17375         (arm_tp_type): New Enum and EnumValue entries.
17376
17377 2011-05-18  Richard Guenther  <rguenther@suse.de>
17378
17379         PR tree-optimization/49018
17380         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17381         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17382         gimple_has_side_effects.
17383
17384 2011-05-18  Richard Guenther  <rguenther@suse.de>
17385
17386         * gimple.c (gimple_register_type_1): New function, split out from ...
17387         (gimple_register_type): ... here.  Avoid infinite recursion.
17388
17389 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17390
17391         PR tree-optimization/41881
17392         * tree-vectorizer.h (struct _loop_vec_info): Add new field
17393         reduction_chains along with a macro for its access.
17394         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17395         (destroy_loop_vec_info): Free reduction chains.
17396         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17397         (vect_is_slp_reduction): New function.
17398         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17399         (vect_create_epilog_for_reduction): Support SLP reduction chains.
17400         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17401         definition types for reduction chains.
17402         (vect_supported_load_permutation_p): Don't allow permutations for
17403         reduction chains.
17404         (vect_analyze_slp_instance): Support reduction chains.
17405         (vect_analyze_slp): Try to build SLP instance from reduction chains.
17406         (vect_get_constant_vectors):  Handle reduction chains.
17407         (vect_schedule_slp_instance): Mark the first statement of the
17408         reduction chain as reduction.
17409
17410 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17411
17412         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17413         names for group elements access.
17414         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17415         reduction chains as well.  Remove data reference and interleaving
17416         related words from the fields names.
17417         * tree-vect-loop.c (vect_transform_loop): Use new names for group
17418         elements access.
17419         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17420         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17421         vect_update_interleaving_chain, vect_same_range_drs,
17422         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17423         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17424         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17425         vect_analyze_group_access, vect_analyze_data_ref_access,
17426         vect_create_data_ref_ptr, vect_transform_strided_load,
17427         vect_record_strided_load_vectors): Likewise.
17428         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17429         vect_model_load_cost, vectorizable_store, vectorizable_load,
17430         vect_remove_stores, new_stmt_vec_info): Likewise.
17431         * tree-vect-slp.c (vect_build_slp_tree,
17432         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17433
17434 2011-05-18  Richard Guenther  <rguenther@suse.de>
17435
17436         PR middle-end/48989
17437         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17438         operand verification.
17439         (verify_gimple_assign_binary): Likewise.
17440         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17441         to non-1-precision BOOLEAN_TYPEs.
17442
17443 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17444
17445         PR target/45098
17446         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17447
17448 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17449
17450         PR tree-optimization/49000
17451         * tree-ssa.c (execute_update_addresses_taken): Call
17452         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
17453         be rewritten and decl has been marked for renaming, reset
17454         the debug stmt.
17455
17456 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
17457
17458         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17459         enum_opts_set when testing if attributes have set -mfpmath=.
17460
17461 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17462
17463         * config/mips/mips.c (mips_handle_option): Remove unused variable.
17464
17465 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17466
17467         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17468         info->entry with 0
17469         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
17470         id.transform_lang_insert_block with NULL.
17471
17472 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17473
17474         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17475         (output_fp_compare): Change args 3 and 4 to bool.
17476         (ix86_expand_call): Change arg 6 to bool.
17477         (ix86_attr_length_immediate_default): Change arg 2 to bool.
17478         (ix86_attr_length_vex_default): Change arg 3 to bool.
17479         * config/i386/i386.md: Update all uses.
17480         * config/i386/i386.c: Ditto.
17481         (ix86_flags_dependent): Change return type to bool.
17482
17483 2011-05-17  Richard Guenther  <rguenther@suse.de>
17484
17485         * gimple.c (type_hash_pair_compare): Fix comparison.
17486
17487 2011-05-17  Richard Guenther  <rguenther@suse.de>
17488
17489         * gimple.c (iterative_hash_gimple_type): Simplify singleton
17490         case some more, fix final hash value of the non-singleton case.
17491
17492 2011-05-17  Richard Guenther  <rguenther@suse.de>
17493
17494         PR bootstrap/49013
17495         Revert
17496         2011-05-16  Richard Guenther  <rguenther@suse.de>
17497
17498         * gimple.c (gimple_types_compatible_p_1): Use names of the
17499         type itself, not its main variant.
17500         (iterative_hash_gimple_type): Likewise.
17501
17502 2011-05-17  Richard Guenther  <rguenther@suse.de>
17503
17504         * gimple.c (gimple_register_canonical_type): Use the main-variant
17505         leader for computing the canonical type.
17506
17507 2011-05-17  Nick Clifton  <nickc@redhat.com>
17508
17509         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17510         moves.
17511
17512         * config/rx/rx.md: Add peephole to remove redundant extensions
17513         after loads.
17514         (bitset_in_memory): Use rx_restricted_mem_operand.
17515         (bitinvert_in_memory): Likewise.
17516         (bitclr_in_memory): Likewise.
17517
17518 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
17519             Nick Clifton  <nickc@redhat.com>
17520
17521         * config/rx/rx.md: Add peepholes to match a register move followed
17522         by a comparison of the moved register.  Replace these with an
17523         addition of zero that does both actions in one instruction.
17524
17525 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
17526
17527         PR target/48986
17528         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17529         predicate to allow CONST_INT.
17530         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17531
17532 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17533
17534         * opts-common.c (opt_enum_arg_to_value): New.
17535         * opts.h (opt_enum_arg_to_value): Declare.
17536         * config/i386/i386.opt (fpmath): Remove.
17537         (mfpmath=): Use Enum, Init and Save.
17538         (fpmath_unit): New Enum and EnumValue entries.
17539         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17540         name for function fpmath state.
17541         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17542         * config/i386/i386.c: Include diagnostic.h.
17543         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17544         (ix86_target_string): Take enum fpmath_unit value instead of string.
17545         (ix86_debug_options): Update call to ix86_target_string.
17546         (ix86_option_override_internal): Don't process fpmath strings here.
17547         (x86_function_specific_save, ix86_function_specific_restore):
17548         Don't handle fpmath state specially.
17549         (ix86_function_specific_print): Pass fpmath state to
17550         ix86_target_string instead of printing in this function.
17551         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17552         Handle enum attributes.
17553         (IX86_ATTR_ENUM, ix86_opt_enum): New.
17554         (ix86_valid_target_attribute_tree): Update option_strings
17555         handling.  Handle fpmath as enum option.
17556         (ix86_can_inline_p): Update field names for function fpmath state.
17557         (ix86_expand_builtin): Update call to ix86_target_string.
17558         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17559         (ix86_fpmath): Remove.
17560         * config/i386/t-i386 (i386.o): Update dependencies.
17561
17562 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17563
17564         PR preprocessor/48677
17565         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17566         from decoded_options[0], not from itself.
17567
17568 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
17569
17570         * config/i386/constraints.md (z): New constraint.
17571         * config/i386/i386.c (c): New mode attribute.
17572         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17573         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17574         constraint for operand 0.
17575         (*call_vzeroupper): Ditto.
17576         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
17577         (*call_rex64_ms_sysv_vzeroupper): Ditto.
17578         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17579         Use "lzm" constraint for operand 0.
17580         (*call_pop_vzeroupper): Ditto.
17581         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17582         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
17583         constraint for operand 0.
17584         (*sibcall_vzeroupper): Ditto.
17585         (*sibcall_rex64_ms_sysv): Ditto.
17586         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17587         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17588         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
17589         (*sibcall_pop_vzeroupper): Ditto.
17590         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17591         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17592         mode iterator.  Use "<c>zm" constraint for operand 1.
17593         (*call_value_vzeroupper): Ditto.
17594         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
17595         for operand 1.
17596         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17597         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17598         *call_value_pop_1.  Use "lzm" constraint for operand 1.
17599         (*call_value_pop_vzeroupper): Ditto.
17600         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17601         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17602         mode iterator.  Use "Uz" constraint for operand 1.
17603         (*sibcall_value_vzeroupper): Ditto.
17604         (*sibcall_value_rex64_ms_sysv): Ditto.
17605         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17606         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
17607         constraint for operand 1.
17608         (*sibcall_value_pop_vzeroupper): Ditto.
17609         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17610         and "z" constraint for operand 2.
17611         (*tls_global_dynamic_32_gnu): Ditto.
17612         (*tls_local_dynamic_base_32_gnu): Ditto.
17613         (*tls_local_dynamic_base_64): Ditto.
17614         (*tls_local_dynamic_32_once): Ditto.
17615         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17616         Update all callers.
17617         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17618
17619 2011-05-16  Richard Guenther  <rguenther@suse.de>
17620
17621         * gimple.c (gimple_types_compatible_p_1): Use names of the
17622         type itself, not its main variant.
17623         (iterative_hash_gimple_type): Likewise.
17624
17625 2011-05-16  Richard Guenther  <rguenther@suse.de>
17626
17627         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17628         always visit pointer target and function result and argument types.
17629
17630 2011-05-16  Jason Merrill  <jason@redhat.com>
17631
17632         PR c++/48999
17633         * tree-inline.c (copy_statement_list): Put back recursion.
17634
17635 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17636
17637         PR target/27663
17638         PR target/41076
17639         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17640         * config/avr/avr.md ("*ior<mode>qi.byte0",
17641         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17642
17643 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17644
17645         PR target/45099
17646         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17647         register is needed for a function argument.
17648
17649 2011-05-16  Richard Guenther  <rguenther@suse.de>
17650
17651         * gimple.c (struct type_hash_pair): New type.
17652         (type_hash_pair_compare): New function.
17653         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17654
17655 2011-05-16  Revital Eres  <revital.eres@linaro.org>
17656
17657         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17658
17659 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17660
17661         * config/i386/i386.md (floating point move splitters): Fix
17662         usage of standard_80387_constant_p.
17663         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17664
17665 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17666
17667         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17668
17669 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17670
17671         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17672         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17673         (tree_ssa_lim_finalize): Likewise.
17674
17675 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
17676
17677         * config/i386/constraint.md (Yd, Yx): New register constraints.
17678         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
17679         Yd conditional register constraint.
17680         (*movtf_internal): Use standard_sse_constant_opcode.
17681         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
17682         Yx conditional register constraint.
17683         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
17684         Yd conditional register constraint.  Use standard_sse_constant_p to
17685         check for valid SSE constants and call standard_sse_constant_opcode to
17686         output SSE insn.
17687         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17688         constants and call standard_sse_constant_opcode to output SSE insn.
17689         * config/i386/i386.c (ix86_option_ovverride_internal): Set
17690         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
17691         optimize_size is set.
17692         (standard_sse_constant_opcode): Output conditional AVX insn templates.
17693
17694 2011-05-14  Tobias Burnus  <burnus@net-b.de>
17695
17696         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17697
17698 2011-05-13  Martin Jambor  <mjambor@suse.cz>
17699
17700         * ipa-prop.c (ipa_cst_from_jfunc): New function.
17701         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17702         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17703         (evaluate_conditions_for_ipcp_clone): Removed.
17704         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17705         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17706         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17707
17708 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17709
17710         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17711         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17712         lieu of MAY_HAVE_DEBUG_STMTS.
17713         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17714         debug statements if !MAY_HAVE_DEBUG_STMTS.
17715
17716 2011-05-13  Martin Thuresson  <martint@google.com>
17717
17718         PR gcov-profile/47793
17719         * libgcov.c (gcov_exit): Support relative profile paths.
17720         * doc/invoke.texi (-fprofile-dir): Update for above change.
17721
17722 2011-05-13  Richard Guenther  <rguenther@suse.de>
17723
17724         * gimple.c (gimple_canonical_types_compatible_p): Do not use
17725         type-pair caching, do not compare hashes.
17726
17727 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
17728
17729         PR middle-end/48965
17730         * tree-cfg.c (edge_to_cases_cleanup): Return true.
17731         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
17732
17733 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17734
17735         * gimplify.c (gimplify_expr): Make sure operand is boolified.
17736         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17737         compatible type for TRUTH_NOT_EXPR.
17738
17739 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17740
17741         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17742         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
17743         can_create_pseudo_p ().
17744
17745 2011-05-13  Richard Guenther  <rguenther@suse.de>
17746
17747         PR lto/48978
17748         * gimple.c (iterative_hash_gimple_type): Revert change in
17749         pointer target and function result and argument hashing.
17750
17751 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
17752
17753         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17754         (*movxf_internal_nointeger): Ditto.
17755         (*movdf_internal_rex64): Ditto.
17756         (*movdf_internal): Ditto.
17757         (*movdf_internal_nointeger): Ditto.
17758         (*movsf_internal): Ditto.
17759         (sincos splitters): Use can_create_pseudo ().
17760
17761 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
17762
17763         * config/i386/i386-opts.h: New.
17764         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17765         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17766         ix86_section_threshold): Remove.
17767         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
17768         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17769         OPT_mbranch_cost_.
17770         (ix86_option_override_internal): Don't decode strings for options
17771         other than -march=, -mtune= and -mfpmath=.  Don't allow for
17772         __attribute__ uses in remaining diagnostics for options with
17773         string arguments.  Don't check for integer arguments being negative.
17774         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17775         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17776         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17777         ix86_branch_cost, ix86_section_threshold): Remove.
17778         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17779         HeaderInclude.
17780         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17781         but not Var.
17782         (masm=): Use Enum and Init.
17783         (asm_dialect): New Enum and EnumValue entries.
17784         (mbranch-cost=): Use UInteger.
17785         (mlarge-data-threshold=): Use UInteger and Init.
17786         (mcmodel=): Use Enum and Init.
17787         (cmodel): New Enum and EnumValue entries.
17788         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17789         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17790         mregparm=): Use UInteger.
17791         (mstringop-strategy=): Use Enum and Init.
17792         (stringop_alg): New Enum and EnumValue entries.
17793         (mtls-dialect=): Use Enum and Init.
17794         (tls_dialect): New Enum and EnumValue entries.
17795         (mabi=): Use Enum and Init.
17796         (calling_abi): New Enum and EnumValue entries.
17797         (mveclibabi=): Use Enum and Init.
17798         (ix86_veclibabi): New Enum and EnumValue entries.
17799
17800 2011-05-13  Nick Clifton  <nickc@redhat.com>
17801
17802         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17803         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17804
17805 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17806
17807         PR middle-end/48984
17808         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17809         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17810         (gimple_boolify): Check for cast for boolean_type_node instead for
17811         BOOLEAN_TYPE.
17812
17813 2011-05-13  Richard Guenther  <rguenther@suse.de>
17814
17815         PR tree-optimization/48172
17816         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17817         multiplying by number of iterations for equal step.
17818         (vect_create_cond_for_alias_checks): Likewise.
17819
17820 2011-05-13  Andreas Schwab  <schwab@redhat.com>
17821
17822         * configure.ac: Use AS_HELP_STRING throughout.
17823         * configure: Regenerate.
17824
17825 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17826
17827         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17828         (ix86_emit_restore_regs_using_mov): Likewise.
17829         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17830
17831 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
17832
17833         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17834         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17835         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17836         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17837         RTX_OK_FOR_OLO10_P): ...here.
17838         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17839         SYMBOLIC_CONST.
17840
17841 2011-05-12  Kai Tietz  <ktietz@redhat.com>
17842
17843         * gimplify.c (gimple_boolify): Re-boolify expression
17844         arguments even if expression type is of kind BOOLEAN_TYPE.
17845         (gimplify_boolean_expr): Removed.
17846         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17847         and XOR. Additional take care that we keep expression's type.
17848         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17849         of TRUTH_AND|OR|XOR_EXPR.
17850
17851 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17852
17853         PR tree-optimization/48975
17854         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17855         on all bbs here and free and clear ifc_bbs at the end.
17856
17857 2011-05-12  Richard Guenther  <rguenther@suse.de>
17858
17859         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17860         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
17861         until after simple checks.
17862         (gimple_types_compatible_p): Likewise.
17863         (iterative_hash_gimple_type): Always hash pointer targets
17864         and function return and argument types.
17865         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17866         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
17867         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17868         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
17869         completely in the simple compare section.
17870         (gimple_register_canonical_type): Query the cache again after
17871         registering.
17872
17873 2011-05-12  Richard Guenther  <rguenther@suse.de>
17874
17875         PR tree-optimization/48172
17876         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17877         the number of iterations from the segment size calculation.
17878         (vect_create_cond_for_alias_checks): Adjust.
17879
17880 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17881
17882         PR debug/48967
17883         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17884         if validate_subreg fails.
17885
17886 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
17887
17888         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17889         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17890         early.
17891
17892 2011-05-12  DJ Delorie  <dj@redhat.com>
17893
17894         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17895         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17896         created builtin into rx_builtins array.
17897         (rx_builtin_decl): New function.
17898         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
17899
17900 2011-05-12  DJ Delorie  <dj@redhat.com>
17901             Nick Clifton  <nickc@redhat.com>
17902
17903         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17904         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17905         (rx_is_legitimate_address): Add pre-decrement and post-increment
17906         addressing in HImode and QImode.  Fix test for out of range
17907         REG+INT addressing.
17908         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
17909         (rx_align_for_label): Test label before extracting its usage count.
17910         (rx_adjust_insn_lengths): Fix selection of insn codes.
17911         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
17912
17913 2011-05-11  Jason Merrill  <jason@redhat.com>
17914
17915         * tree.c (type_hash_canon): Use struct tree_type_non_common.
17916
17917 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17918
17919         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
17920         reindent the subsequent block.
17921
17922 2011-05-11  Satoru Takabayashi  <satorux@google.com>
17923             Paul Pluzhnikov  <ppluzhnikov@google.com>
17924
17925         * doc/install.texi (Configuration): Document --with-linker-hash-style.
17926         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
17927         * config.in: Add LINKER_HASH_STYLE.
17928         * configure.ac: Add --with-linker-hash-style.
17929         * configure: Regenerate.
17930
17931 2011-05-11  Richard Guenther  <rguenther@suse.de>
17932
17933         PR middle-end/48964
17934         * gimple.c (iterative_hash_canonical_type): Fix typo.
17935
17936 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
17937
17938         * config/i386/i386.c (legitimize_tls_address)
17939         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17940         expanders directly for TARGET_GNU2_TLS.  Determine pic and
17941         __tls_get_addr symbol reference here.  Update call to
17942         gen_tls_global_dynamic_{32,64} for added arguments.
17943         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
17944         expanders directly for TARGET_GNU2_TLS.  Determine
17945         __tls_get_addr symbol reference here.  Update call to
17946         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
17947         unique UNSPEC REG_EQUIV to libcall block.
17948         (ix86_tls_get_addr): Declare static.
17949         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
17950         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
17951         Do not determine pic and __tls_get_addr symbol reference here. Do not
17952         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
17953         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
17954         (tls_global_dynamic_64): Add operand 2.  Do not determine
17955         __tls_get_addr symbol reference here.  Do not call
17956         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
17957         (tls_local_dynamic_base64): Ditto for operand 1.
17958
17959 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17960
17961         * function.c (expand_function_start): Initialize stack_check_probe_note
17962         only if the generic stack checking mechanism is used.
17963
17964 2011-05-11  Richard Guenther  <rguenther@suse.de>
17965
17966         PR tree-optimization/15256
17967         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
17968         (A & B) | C, combine (A op CST1) op CST2.
17969         (tree_ssa_forward_propagate_single_use_vars): Only bother to
17970         visit assigns that have uses.
17971
17972 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
17973
17974         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
17975         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
17976         (unpack_ts_type_common_value_fields): ...this.  Update comment.
17977         (unpack_value_fields): Adjust for renaming.
17978         (lto_input_ts_type_tree_pointers): Split into...
17979         (lto_input_ts_type_common_tree_pointer): ...this and...
17980         (lto_input_ts_type_non_common_tree_pointers): ...this.
17981         (lto_input_tree_pointers): Adjust for above split.
17982         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
17983         (pack_ts_type_common_value_fields): ...this.  Update comment.
17984         (lto_output_ts_type_tree_pointers): Split into...
17985         (lto_output_ts_type_common_tree_pointers): ...this and...
17986         (lto_output_ts_type_non_common_tree_pointers): ...this.
17987         (lto_output_tree_pointers): Adjust for above split.
17988         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
17989         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
17990         * stor-layout.c (vector_type_mode): Adjust location of mode field.
17991         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
17992         Define.
17993         (struct tree_type): Split into...
17994         (struct tree_type_common: ...this and...
17995         (struct tree_type_with_lang_specific): ...this and...
17996         (struct tree_type_non_common): ...this.  Adjust accessor macros
17997         accordingly.
17998         (TYPE_VALUES_RAW): Define.
17999         (union tree_node): Update for above changes.
18000         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18001         TS_TYPE_NON_COMMON.
18002         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18003         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18004         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18005         * treestructu.def (TS_TYPE): Remove.
18006         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18007         Define.
18008
18009 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
18010
18011         PR debug/48159
18012         * tree-ssa.c (reset_debug_uses): New function.
18013         * tree-flow.h (reset_debug_uses): New prototype.
18014         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18015         * tree-loop-distribution.c (generate_loops_for_partition): Call
18016         reset_debug_uses on the stmts that will be removed.  Keep around
18017         all debug stmts, don't count them as bits in partition bitmap.
18018         (generate_builtin): Don't count debug stmts or labels as bits in
18019         partition bitmap.
18020
18021 2011-05-11  Richard Guenther  <rguenther@suse.de>
18022
18023         * gimple.c (gimple_type_hash_1): Merge with ...
18024         (gimple_type_hash): ... this.
18025         (gtc_visit): Remove mode parameter and simplify accordingly.
18026         (gimple_types_compatible_p_1): Likewise.
18027         (gimple_types_compatible_p): Likewise.
18028         (iterative_hash_gimple_type): Likewise.
18029         (visit): Likewise.
18030         (gimple_type_eq): Adjust.
18031
18032 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18033
18034         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18035         enters the branch create an anti edge in the opposite direction
18036         to prevent the creation of reg-moves.
18037         * modulo-sched.c: Adjust comment to reflect the fact we are
18038         scheduling closing branch.
18039         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18040         (stage_count): New field in struct partial_schedule.
18041         (calculate_stage_count): New function.
18042         (normalize_sched_times): Rename to reset_sched_times and handle
18043         incrementing the sched time of the nodes by a constant value
18044         passed as parameter.
18045         (duplicate_insns_of_cycles): Skip closing branch.
18046         (sms_schedule_by_order): Schedule closing branch.
18047         (ps_insn_find_column): Handle closing branch.
18048         (sms_schedule): Call reset_sched_times and adjust the code to
18049         support scheduling of the closing branch.
18050         (ps_insert_empty_row): Update calls to normalize_sched_times
18051         and rotate_partial_schedule functions.
18052
18053 2011-05-11  Richard Guenther  <rguenther@suse.de>
18054
18055         PR middle-end/48953
18056         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18057
18058 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
18059
18060         * opts.c (finish_options): Move warning settings from process_options.
18061         * toplev.c (process_options): Move warning settings to finish_options.
18062
18063 2011-05-11  Richard Guenther  <rguenther@suse.de>
18064
18065         PR tree-optimization/18041
18066         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18067         (simplify_bitwise_binary): ... this.  Handle operand conversions
18068         by applying them to the result instead.
18069         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
18070
18071 2011-05-11  Richard Guenther  <rguenther@suse.de>
18072
18073         * gimple.c (gimple_canonical_types_compatible_p): Split out
18074         from gimple_types_compatible_p and friends.  Do not recurse
18075         to pointed-to types.
18076         (gimple_canonical_type_eq): Use it.
18077         (iterative_hash_canonical_type): Split out from
18078         iterative_hash_gimple_type and friends.  Do not recurse
18079         to pointed-to types.
18080         (gimple_canonical_type_hash): Use it, allocate the hash here.
18081
18082 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18083
18084         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18085         recognizing doloop.
18086
18087 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18088
18089         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18090         instead of PREV_INSN.
18091
18092 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18093
18094         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18095         * loop-doloop.c (doloop_condition_get): Likewise.
18096         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18097         (doloop_end): New.
18098         * config/arm/arm.md (*addsi3_compare0): Remove "*".
18099
18100 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
18101
18102         * tree.def (CASE_LABEL_EXPR): Add an operand.
18103         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18104
18105 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18106
18107         * c-decl.c (c_override_global_bindings_to_false): Remove.
18108         (global_bindings_p): Don't check
18109         c_override_global_bindings_to_false.
18110         * c-tree.h (c_override_global_bindings_to_false): Remove.
18111         * c-typeck.c (composite_type): Don't set
18112         c_override_global_bindings_to_false.
18113
18114 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
18115
18116         PR target/48857, 48495
18117         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18118         (VSX_MODE): Ditto.
18119         (VSX_MOVE_MODE): Ditto.
18120         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18121         VSX vector types.  Add V2DImode.
18122         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18123         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18124         (MODES_TIEABLE_P): Ditto.
18125
18126         * config/rs6000/rs6000.c (rs6000_emit_move): Use
18127         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18128         VSX_VECTOR_MODE.
18129         (init_cumulative_args): Ditto.
18130         (rs6000_function_arg_boundary): Ditto.
18131         (rs6000_function_arg_advance_1): Ditto.
18132         (rs6000_function_arg): Ditto.
18133         (rs6000_function_ok_for_sibcall): Ditto.
18134         (emit_frame_save): Ditto.
18135         (rs6000_function_value): Ditto.
18136         (rs6000_libcall_value): Ditto.
18137
18138 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18139
18140         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18141         i386/darwin-lib.h to $libgcc_tm_file.
18142         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
18143
18144 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18145
18146         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
18147
18148 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18149
18150         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
18151         * config/rs6000/rs6000-tables.opt: New file (generated).
18152         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
18153         rs6000/rs6000-tables.opt to extra_options.
18154         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
18155         * config/rs6000/rs6000.c (rs6000_select): Remove.
18156         (processor_target_table): Move contents to rs6000-cpus.def.
18157         (darwin_rs6000_override_options): Check
18158         global_options_set.x_rs6000_cpu_index instead of
18159         rs6000_select[1].string.
18160         (rs6000_option_override_internal): Likewise.
18161         (rs6000_handle_option): Don't assert that global structures are in
18162         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
18163         (rs6000_default_cpu): New variable.
18164         (rs6000_file_start): Set it instead of local default_cpu.  Check
18165         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
18166         global_options_set.x_rs6000_tune_index instead of rs6000_select.
18167         (rs6000_darwin_file_start): Check rs6000_default_cpu and
18168         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
18169         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
18170         rs6000_select): Remove.
18171         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
18172         Remove.
18173         (mcpu=, mtune=): Use Var, Init, Enum and Save.
18174         * config/rs6000/t-rs6000
18175         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
18176         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18177         global_options_set.x_rs6000_cpu_index instead of
18178         rs6000_select[1].string.
18179         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18180         global_options_set.x_rs6000_cpu_index instead of
18181         rs6000_select[1].string.
18182
18183 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18184
18185         * config.gcc (libgcc_tm_file): Define instead of including files
18186         from ../../libgcc/config/ in tm_file.
18187         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
18188         * configure: Regenerate.
18189         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
18190         libgcc_tm.h, cs-libgcc_tm.h): New.
18191         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
18192         (clean): Remove libgcc_tm.h.
18193         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
18194         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
18195         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
18196
18197 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
18198
18199         PR target/48896
18200         * config/avr/avr.c (avr_ret_register): Return unsigned int
18201         instead of int.
18202         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
18203         it to avr_libcall_value.
18204         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
18205         expand_expr.
18206         (avr_expand_binop_builtin): Ditto.
18207         (avr_expand_unop_builtin): Ditto.
18208
18209 2011-05-10  DJ Delorie  <dj@redhat.com>
18210
18211         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
18212         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
18213         * config/rx/rx.c (rx_align_for_label): Add label and
18214         uses_threshold parameters.  Do not align when the label is not
18215         used enough.
18216         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
18217
18218 2011-05-10  Richard Guenther  <rguenther@suse.de>
18219
18220         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
18221         a series of conversions and apply foldings similar to what
18222         fold-const does.
18223         (tree_ssa_forward_propagate_single_use_vars): Call it.
18224
18225 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
18226
18227         PR tree-optimization/48611
18228         PR tree-optimization/48794
18229         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
18230         referenced from RESX or EH_DISPATCH arguments.
18231
18232         PR debug/48928
18233         * dfp.c (decimal_to_decnumber): Handle conversion from
18234         dconst{1,2,m1,half}.
18235
18236 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18237
18238         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
18239         for !flag_prefer_avx128.
18240         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18241
18242 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18243
18244         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
18245         (fold_ternary_loc): Use expr_location_or.
18246
18247 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18248
18249         PR debug/48853
18250         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
18251         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
18252         Pmode and mem_mode is not VOIDmode.
18253
18254 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
18255
18256         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
18257         TYPE_QUAL_RESTRICT): Convert to enum.
18258
18259 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18260
18261         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
18262         (const_pow2_1_to_8_operand): Ditto.
18263         (const_pow2_1_to_128_operand): Ditto.
18264         (const_pow2_1_to_32768_operand): Ditto.
18265         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
18266         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
18267         in insn constraint to check integer value of operand 3.
18268         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
18269
18270         (PINSR_MODE): New mode iterator.
18271         (sse2p4_1): New mode attribute.
18272         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
18273         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
18274         iterator.  Use const_int_operand instead of
18275         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
18276         exact_log2 in insn constraint to check integer value of operand 3.
18277
18278 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18279
18280         * config/i386/sse.md (blendbits): Remove mode attribute.
18281         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18282         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18283         Check integer value of operand 3 in insn constraint.
18284
18285 2011-05-09  Richard Guenther  <rguenther@suse.de>
18286
18287         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18288         for diagnostics.
18289         (lto_symtab_merge): Likewise.  Do not register types here.
18290         (lto_symtab_merge_decls_2): Likewise.
18291         (lto_symtab_merge_decls_1): Likewise.
18292         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18293         * gimple.c (enum gtc_mode): Declare.
18294         (gimple_types_compatible_p): Make static.
18295
18296 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18297
18298         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18299         temporary register to match Pmode.
18300
18301 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18302
18303         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18304         and *vec_concatv4si_1_avx.
18305
18306 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18307
18308         PR rtl-optimization/48927
18309         * ira-conflicts.c (commutative_constraint_p): Use
18310         recog_data.alternative_enabled_p to disable alternatives where
18311         "enabled" attribute is false.
18312         (get_dup_num): Ditto.
18313         * ira-lives.c (single_reg_class): Ditto.
18314         (ira_implicitly_set_insn_hard_regs): Ditto.
18315
18316 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18317
18318         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18319         (dataflow_set_preserve_mem_locs): Likewise.
18320
18321 2011-05-09  Philipp Thomas  <pth@suse.de>
18322
18323         * config/mep/mep.c (mep_validate_vliw): Syntax description
18324         should not be translated.
18325
18326 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
18327
18328         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18329         * config/mips/mips-tables.opt: New file (generated).
18330         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18331         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18332         MIPS_ARCH_OPTION_NATIVE): Define.
18333         * config/mips/mips.c (mips_cpu_info_table): Move contents to
18334         mips-cpus.def.
18335         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18336         mips_parse_cpu): Remove.
18337         (mips_cpu_info_from_opt, mips_default_arch): New.
18338         (mips_handle_option): Don't assert that global structures are in
18339         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18340         (mips_option_override): Use new variables and functions to set
18341         state of these options.  Use strcmp to check for individual CPU names.
18342         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18343         definition.
18344         * config/mips/mips.opt (march=): Use ToLower and Enum.
18345         (mips): Use ToLower, Enum and Var.
18346         (mtune=): Use ToLower and Enum.
18347         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18348
18349 2011-05-08  Jan Hubicka  <jh@suse.cz>
18350
18351         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18352         Arrange type pairs to be UID ordered.
18353         (gimple_lookup_type_leader): Make inline.
18354
18355 2011-05-09  Nick Clifton  <nickc@redhat.com>
18356
18357         PR target/48899
18358         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18359         PROCESSOR_DEFAULT.
18360
18361         PR target/48897
18362         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18363         variable 's'.
18364
18365 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
18366
18367         * combine.c (simplify_comparison): Abstract out parts into...
18368         (simplify_compare_const): ... new function.
18369         (try_combine): Generalize parallel arithmetic/compare combining
18370         to call simplify_compare_const() and CANONICALIZE_COMPARE().
18371
18372 2011-05-08  Jan Hubicka  <jh@suse.cz>
18373
18374         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18375         (cgraph_create_virtual_clone): Call hooks once virtual clone
18376         is finished.
18377         * cgraph.h (cgraph_clone_node): Update prototype.
18378         * ipa-cp.c (ipcp_estimate_growth): Use
18379         estimate_ipcp_clone_size_and_time.
18380         * ipa-inline-transform.c (clone_inlined_nodes): Update.
18381         * lto-cgraph.c (input_node): Update.
18382         * ipa-inline.c (recursive_inlining): Update.
18383         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18384         (evaluate_conditions_for_known_args): Break out from ...
18385         (evaluate_conditions_for_edge): ... here.
18386         (evaluate_conditions_for_ipcp_clone): New function.
18387         (inline_node_duplication_hook): Update clone summary based
18388         on parameter map.
18389         (estimate_callee_size_and_time): Rename to ...
18390         (estimate_node_size_and_time): take NODE instead of EDGE;
18391         take POSSIBLE_TRUTHS as argument.
18392         (estimate_callee_size_and_time): Update.
18393         (estimate_ipcp_clone_size_and_time): New function.
18394         (do_estimate_edge_time): Update.
18395
18396 2011-05-08  Richard Guenther  <rguenther@suse.de>
18397
18398         PR middle-end/48908
18399         PR middle-end/48905
18400         * expmed.c (expand_shift_1): Compute adjusted constant shift
18401         amount manually.
18402
18403 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18404
18405         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18406
18407 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18408
18409         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18410
18411 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
18412
18413         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18414
18415 2011-05-07  Jan Hubicka  <jh@suse.cz>
18416
18417         * ipa-inline-transform.c (inline_call): Account when program size
18418         decreases.
18419         * ipa-inline.c (relative_time_benefit): New function.
18420         (edge_badness): Reorganize to be power 2 based; fix thinko when
18421         computing badness for negative growth; update comments to match
18422         reality; better dumps.
18423
18424 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
18425
18426         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18427         type to bool and adjust comment.
18428         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18429         (fold_mathfn_compare): Remove calls to global_bindings_p.
18430         (fold_inf_compare): Likewise.
18431         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18432         * c-tree.h (global_bindings_p): Adjust prototype.
18433         * c-decl.c (global_bindings_p): Return bool and simplify.
18434
18435 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
18436
18437         PR tree-optimization/48837
18438         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18439         when accumulator transformation is performed.
18440
18441 2011-05-06  Jan Hubicka  <jh@suse.cz>
18442
18443         * i386.h (ix86_tune_indices): Add
18444         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18445         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18446         * i386.c (initial_ix86_tune_features): Add
18447         X86_SOFTARE_PREFETCHING_BENEFICIAL.
18448         (software_prefetching_beneficial_p): Remove predicate.
18449         (ix86_option_override_internal): Use new macro.
18450
18451 2011-05-06  Jan Hubicka  <jh@suse.cz>
18452
18453         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18454
18455 2011-05-06  Jan Hubicka  <jh@suse.cz>
18456
18457         * cgraph.c (cgraph_add_thunk): Create real function node instead
18458         of alias node; finalize it and mark needed/reachale; arrange visibility
18459         to be right and add it into the corresponding same comdat group list.
18460         (dump_cgraph_node): Dump thunks.
18461         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18462         cgraph_function_with_gimple_body_p,
18463         cgraph_first_function_with_gimple_body,
18464         cgraph_next_function_with_gimple_body): New functions.
18465         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18466         New macros.
18467         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18468         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18469         * cgraphunit.c (cgraph_finalize_function): Only look into possible
18470         devirtualization when optimizing.
18471         (verify_cgraph_node): Verify thunks.
18472         (cgraph_analyze_function): Analyze thunks.
18473         (cgraph_mark_functions_to_output): Output thunks only in combination
18474         with function they are assigned to.
18475         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18476         alias into normal node.
18477         (assemble_thunks): New functoin.
18478         (cgraph_expand_function): Use it.
18479         * lto-cgraph.c (lto_output_node): Stream thunks.
18480         (input_overwrite_node): Stream in thunks.
18481         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18482         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18483         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18484         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18485         (inline_analyze_function): Do not care about thunk jump functions.
18486         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18487         * ipa-prop.c (ipa_prop_write_jump_functions): Use
18488         cgraph_function_with_gimple_body_p.
18489         * passes.c (do_per_function_toporder): Use
18490         cgraph_function_with_gimple_body_p.
18491         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18492         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18493         (function_called_by_processed_nodes_p): Likewise.
18494
18495 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18496
18497         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18498         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18499         entries.
18500         (mabi=): Replace with separate entries for mabi=altivec,
18501         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18502         mabi=ieeelongdouble and mabi=ibmlongdouble.
18503         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18504         check for -mabi=spe without SPE ABI support here.
18505         (rs6000_handle_option): Replace OPT_mabi_ handling with
18506         OPT_mabi_altivec and OPT_mabi_spe handling.
18507
18508 2011-05-06  Cary Coutant  <ccoutant@google.com>
18509
18510         * dwarf2out.c (contains_subprogram_definition): New function.
18511         (should_move_die_to_comdat): Call it.
18512
18513 2011-05-06  Jeff Law  <law@redhat.com>
18514
18515         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18516         remove_ctrl_stmt_and_useless_edges.
18517         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18518         (fixup_template_block, thread_single_edge): Likewise.
18519         (mark_threaded_blocks): Use THREAD_TARGET.
18520
18521 2011-05-06  Alan Modra  <amodra@gmail.com>
18522
18523         PR target/48900
18524         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18525         const0_rtx as the arg to the dummy __tls_get_addr libcall.
18526
18527 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18528
18529         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18530         constraint modifier to "r".
18531
18532 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18533
18534         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18535         fall through for OPT_mcmodel_.
18536
18537 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18538
18539         * config/s390/s390.c (s390_asm_trampoline_template): Comment
18540         instruction sizes.
18541         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18542
18543 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18544
18545         PR target/47930
18546         * config/arm/arm.opt (marm): Document it.
18547         (mthumb): Reject negative variant.
18548
18549 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18550
18551         PR target/48898
18552         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18553         Fix typo in "ccvt" variable name.
18554
18555 2011-05-06  Tristan Gingold  <gingold@adacore.com>
18556
18557         PR target/48895
18558         * config/vms/vms-ar.c (main): Remove cwd variable.
18559
18560 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18561
18562         PR debug/48902
18563         * var-tracking.c (prepare_call_arguments): Move else before #endif.
18564
18565 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
18566
18567         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18568         * gimplify.c (gimplify_switch_expr): Likewise.
18569         * omp-low.c (expand_omp_sections): Likewise.
18570         * tree-eh.c (lower_try_finally_switch): Likewise.
18571         (lower_eh_dispatch): Likewise.
18572         * tree.h (build_case_label): Declare.
18573         * tree.c (build_case_label): Define.
18574
18575 2011-05-05  Jason Merrill  <jason@redhat.com>
18576
18577         PR c++/40975
18578         * tree-inline.c (copy_tree_r): Use copy_statement_list.
18579         (copy_statement_list): Don't recurse.
18580         * stor-layout.c (copy_self_referential_tree_r): Don't allow
18581         STATEMENT_LIST.
18582
18583 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18584
18585         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18586         through from -mfpu= handling.
18587         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18588
18589 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
18590
18591         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18592         POST_MODIFY.
18593
18594 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
18595
18596         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18597         for 11.31.
18598         (hppa[12]*-*-hpux11*): Ditto.
18599         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18600         * config/ia64/hpux-unix2003.h: New.
18601         * config/pa/pa-hpux1131.opt: New.
18602         * config/pa/pa-hpux1131.h: New.
18603         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18604         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18605         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18606
18607 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18608
18609         PR debug/48853
18610         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18611         instead of mode as 3rd argument to recursive call.
18612         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18613         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18614         VOIDmode.
18615         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18616         don't give up if mode is Pmode and mem_mode is not VOIDmode.
18617         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18618         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18619
18620 2011-05-05  Julian Brown  <julian@codesourcery.com>
18621
18622         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18623         parenthesis in D-register case.
18624
18625 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18626
18627         * opt-functions.awk (var_type_struct): Handle Enum options.
18628         * optc-gen.awk: Don't check range of variables of character type.
18629         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18630         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18631         rs6000_sdata_name, rs6000_explicit_options): Remove.
18632         (rs6000_option_override_internal): Check for -malign-power here.
18633         Use global_options_set instead of rs6000_explicit_options.
18634         (rs6000_parse_fpu_option): Remove.
18635         (rs6000_handle_option): Access variables via opts and opts_set
18636         pointers.  Use error_at and warning_at.  Add fall-through
18637         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18638         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18639         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18640         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18641         here.  Don't use rs6000_parse_fpu_option.
18642         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18643         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18644         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18645         (mrecip=): Use Var.
18646         (mspe): Use Var and Save.
18647         (mtraceback=): Use Enum and Var.
18648         (rs6000_traceback_type): New Enum and EnumValue entries.
18649         (mfloat-gprs=): Use Enum, Var and Save.
18650         (rs6000_float_gprs): New Enum and EnumValue entries.
18651         (mlong-double-): use Var and Save.
18652         (msched-costly-dep=, minsert-sched-nops=): Use Var.
18653         (malign-): Use Enum and Var.
18654         (rs6000_alignment_flags): New Enum and EnumValue entries.
18655         (mfpu=): Use Enum.
18656         (fpu_type_t): New Enum and EnumValue entries.
18657         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18658         global_options_set instead of rs6000_explicit_options.
18659         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18660         global_options_set instead of rs6000_explicit_options.
18661         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18662         global_options_set instead of rs6000_explicit_options.
18663         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18664         global_options_set instead of rs6000_explicit_options.
18665         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18666         global_options_set instead of rs6000_explicit_options.
18667         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18668         global_options_set instead of rs6000_explicit_options.
18669         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18670         definition.
18671         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18672         global_options_set instead of rs6000_explicit_options.
18673         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18674         (rs6000_cmodel): New Enum and EnumValue entries.
18675         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18676         global_options_set instead of rs6000_explicit_options.
18677         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18678         (mtls-size=): Use Enum and Var.
18679         (rs6000_tls_size): New Enum and EnumValue entries.
18680
18681 2011-05-05  Michael Matz  <matz@suse.de>
18682
18683         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18684         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18685         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18686         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18687         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18688         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18689         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18690         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18691         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18692         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18693         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18694         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18695         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18696         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18697         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18698         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18699
18700 2011-05-05  Richard Guenther  <rguenther@suse.de>
18701
18702         * expmed.c (expand_variable_shift): Rename to ...
18703         (expand_shift_1): ... this.  Take an expanded shift amount.
18704         For rotates recurse directly not building trees for the shift amount.
18705         (expand_variable_shift): Wrap around expand_shift_1.
18706         (expand_shift): Adjust.
18707
18708 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18709
18710         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18711
18712 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18713
18714         * tree.h (get_pending_sizes): Remove prototype.
18715         (put_pending_size): Likewise.
18716         (put_pending_sizes): Likewise.
18717         * stor-layout.c (pending_sizes): Delete.
18718         (get_pending_sizes): Likewise.
18719         (put_pending_size): Likewise.
18720         (put_pending_sizes): Likewise.
18721         (variable_size): Do not call put_pending_size and tidy up.
18722         * function.h (struct function): Remove dont_save_pending_sizes_p.
18723         * lto-streamer-in.c (input_function): Do not stream it.
18724         * lto-streamer-out.c (output_function): Likewise.
18725         * tree-inline.c (initialize_cfun): Do not copy it.
18726         * c-decl.c (store_parm_decls): Do not set it.
18727         * omp-low.c (create_task_copyfn): Likewise.
18728         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18729
18730 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
18731
18732         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
18733         conditions.
18734         (*movdf_internal): Ditto.
18735         (*movdf_internal_nointeger): Ditto.
18736         (*movsf_internal): Ditto.
18737
18738 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18739
18740         * c-decl.c (finish_decl): Don't call get_pending_sizes.
18741         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
18742         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
18743         (c_variable_size): Remove.
18744         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
18745         call put_pending_sizes.
18746         (get_parm_info): Add parameter expr.  Use it to set
18747         arg_info->pending_sizes.
18748         (store_parm_decls): Use arg_info->pending_sizes instead or calling
18749         get_pending_sizes.
18750         * c-parser.c (c_parser_parms_declarator): Update call to
18751         c_parser_parms_list_declarator.
18752         (c_parser_parms_list_declarator): Take parameter expr.  Update
18753         call to push_parm_decl.  Update recursive call.  Don't call
18754         get_pending_sizes.  Update calls to get_parm_info.
18755         (c_parser_objc_method_definition): Update calls to
18756         c_parser_objc_method_decl and objc_start_method_definition.
18757         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18758         (c_parser_objc_method_decl): Add parameter expr.  Update call to
18759         grokparm.
18760         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18761         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18762         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18763
18764 2011-05-05  Michael Hope  <michael.hope@linaro.org>
18765
18766         PR pch/45979
18767         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18768         __ARM_EABI__ hosts.
18769
18770 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18771
18772         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18773         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18774         (spu_output_mi_thunk): New function.
18775
18776 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18777
18778         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18779         targetm.asm_out.print_operand.
18780         * config/sol2.c: Include target.h.
18781
18782 2011-05-04  Jan Hubicka  <jh@suse.cz>
18783
18784         * ipa-inline.c (reset_edge_caches): New function.
18785         (update_caller_keys): Add check_inlinablity_for; do not
18786         reset edge caches; remove now unnecesary loop.
18787         (update_callee_keys): Add comments; reset node_growth_cache of callee.
18788         (update_all_callee_keys): Likewise.
18789         (inline_small_functions): Sanity check cache; update code
18790         recomputing it.
18791
18792 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
18793
18794         PR rtl-optimization/47612
18795         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18796         as the last insn of the sequence to be moved.
18797
18798 2011-05-04  Tobias Burnus  <burnus@net-b.de>
18799
18800         PR fortran/48864
18801         * doc/invoke.texi (Ofast): Document that it
18802         enables Fortran's -fno-protect-parens.
18803
18804 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18805
18806         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18807
18808 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18809
18810         * stor-layout.c (variable_size): Do not issue errors.
18811
18812 2011-05-04  Richard Guenther  <rguenther@suse.de>
18813
18814         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18815         for array-ref indices.
18816         (tree_coverage_counter_addr): Likewise.
18817         (build_fn_info_type): Use size_int for index types.
18818         (build_gcov_info): Likewise.
18819
18820 2011-05-04  Richard Guenther  <rguenther@suse.de>
18821
18822         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18823         to build_int_cst.
18824         * c-typeck.c (really_start_incremental_init): Use bitsize_int
18825         for constructor indices.
18826         (push_init_level): Likewise.
18827
18828 2011-05-04  Richard Guenther  <rguenther@suse.de>
18829
18830         * explow.c (promote_mode): Move variable declarations before code.
18831
18832 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
18833
18834         * tree.h (build_function_type_array): Declare.
18835         (build_varargs_function_type_array): Declare.
18836         (build_function_type_vec, build_varargs_function_type_vec): Define.
18837         * tree.c (build_function_type_array_1): New function.
18838         (build_function_type_array): New function.
18839         (build_varargs_function_type_array): New function.
18840
18841 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
18842
18843         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18844         before setting STMT_VINFO_TYPE.
18845
18846 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18847
18848         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18849         instead of spu_pass_by_reference.
18850
18851 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18852
18853         * calls.c (emit_library_call_value_1): Invoke
18854         promote_function_mode hook on libcall arguments.
18855         * explow.c (promote_function_mode, promote_mode): Handle TYPE
18856         argument being NULL.
18857         * targhooks.c (default_promote_function_mode): Lisewise.
18858         * config/s390/s390.c (s390_promote_function_mode): Likewise.
18859         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18860
18861         * doc/tm.texi: Document that TYPE argument might be NULL.
18862
18863 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18864
18865         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18866
18867 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18868
18869         From Bernd Schmidt
18870         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18871
18872 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18873
18874         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18875         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18876         Move ...
18877         * mips-tfile.c: ... here.
18878         Don't include coretypes.h, tm.h, filenames.h.
18879         (saber_stop): Remove definition and all calls.
18880         [__SABER__]: Remove.
18881         (__LINE__): Remove default.
18882         (Size_t, Ptrdiff_t): Remove definitions.
18883         Replace by size_t, ptrdiff_t.
18884         [!MIPS_DEBUGGING_INFO]: Remove.
18885         (SHASH_SIZE, THASH_SIZE): Remove defaults.
18886         (progname): Add const.
18887         (STATIC): Remove.
18888         Replace all uses by static.
18889         (ALIGN_SYMTABLE_OFFSET): Remove default.
18890         * mips-tdump.c: Don't include coretypes.h, tm.h.
18891         Remove !MIPS_IS_STAB guard.
18892         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18893         $(TM_H), filenames.h dependencies.
18894         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18895
18896 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18897
18898         From Jie Zhang
18899         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18900         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18901
18902 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18903
18904         From Bernd Schmidt
18905         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18906         account and save/restore RETS.
18907         (PROFILE_BEFORE_PROLOGUE): Define.
18908         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
18909         the push insn to use predecrement.
18910
18911 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18912
18913         From Jie Zhang
18914         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
18915
18916 2011-05-04  Nick Clifton  <nickc@redhat.com>
18917
18918         * config/mn10300/mn10300.c: Include cfgloop.h.
18919         (DUMP): New macro.
18920         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
18921         Lcc or a FLcc insn into the instruction stream.
18922         (mn10300_block_contains_call): New function.  Returns true if the
18923         given basic block contains a CALL insn.
18924         (mn10300_loop_contains_call_insn): New function.  Returns true if
18925         the given loop contains a CALL insn.
18926         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
18927         to use the SETLB and Lcc or FLcc insns.
18928         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
18929         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
18930         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
18931         disable the SETLB optimization.
18932         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
18933         __SETLB__ or __NO_SETLB__.
18934         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
18935         (movsf_internal): Handle MDR register.
18936         (cmpsi): Make visible.
18937         (setlb): New pattern.
18938         (Lcc): New pattern.
18939         (FLcc): New pattern.
18940
18941 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18942
18943         PR target/48860
18944         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
18945         for reg<->xmm moves.
18946         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
18947         (vec_concatv2di_rex64_sse): Ditto.
18948         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
18949         (*vec_extractv2di_1_rex64): Ditto.
18950
18951         Revert:
18952         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
18953
18954         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
18955         reg<->xmm moves.
18956         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
18957
18958 2011-05-04  Richard Guenther  <rguenther@suse.de>
18959
18960         * tree.h (int_const_binop): Remove notrunc argument.
18961         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
18962         create integer constants that are properly truncated.
18963         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
18964         (const_binop): Remove zero notrunc argument to int_const_binop.
18965         (size_binop_loc): Likewise.
18966         (fold_div_compare): Likewise.
18967         (maybe_canonicalize_comparison_1): Likewise.
18968         (fold_comparison): Likewise.
18969         (fold_binary_loc): Likewise.
18970         (multiple_of_p): Likewise.
18971         * expr.c (store_constructor): Likewise.
18972         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18973         (maybe_fold_stmt_addition): Likewise.
18974         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
18975         * stor-layout.c (layout_type): Likewise.
18976         * tree-data-ref.c (tree_fold_divides_p): Likewise.
18977         * tree-sra.c (build_ref_for_offset): Likewise.
18978         (build_user_friendly_ref_for_offset): Likewise.
18979         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
18980         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18981         * tree-ssa-loop-niter.c (inverse): Likewise.
18982         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
18983         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
18984         * tree-switch-conversion.c (check_range): Likewise.
18985         (build_constructors): Likewise.
18986         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
18987         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
18988         (extract_range_from_assert): Likewise.
18989         (vrp_int_const_binop): Likewise.
18990         (extract_range_from_binary_expr): Likewise.
18991         (extract_range_from_unary_expr): Likewise.
18992         (check_array_ref): Likewise.
18993         (find_case_label_range): Likewise.
18994         (simplify_div_or_mod_using_ranges): Likewise.
18995         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
18996         comparing case labels for merging.
18997
18998 2011-05-03  Mark Wielaard  <mjw@redhat.com>
18999
19000         * dwarf2out.c (debug_str_hash_forced): Removed.
19001         (gen_label_for_indirect_string): Removed.
19002         (get_debug_string_label): Removed.
19003         (AT_string_form): Generate label directly.
19004         (output_indirect_string): Test indirect_string_node for
19005         DW_FORM_strp instead of checking label and refcount.
19006         (prune_indirect_string): Removed.
19007         (prune_unused_types): Don't check debug_str_hash_forced or
19008         call prune_indirect_string.
19009
19010 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19011
19012         PR other/48093
19013         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19014
19015 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19016
19017         PR debug/47994
19018         PR debug/47919
19019         * combine.c (try_combine): Skip debug insns at m_split tests.
19020
19021 2011-04-26  Mark Wielaard  <mjw@redhat.com>
19022
19023         PR42288
19024         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19025         when info_section_emitted.
19026
19027 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
19028
19029         * config/mips/mips-opts.h: New.
19030         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19031         to mips-opts.h.
19032         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19033         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19034         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
19035         via opts pointer.
19036         * config/mips/mips.h (enum mips_code_readable_setting): Move to
19037         mips-opts.h.
19038         (mips_abi, mips_code_readable): Don't declare.
19039         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19040         (mabi=): Use Enum and Var.
19041         (mips_abi): New Enum and EnumValue entries.
19042         (mcode-readable=): Use Enum and Var.
19043         (mips_code_readable_setting): New Enum and EnumValue entries.
19044         (mr10k-cache-barrier=): Use Enum and Var.
19045         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19046
19047 2011-05-03  Jan Hubicka  <jh@suse.cz>
19048
19049         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19050         replace hash by pointer map.
19051         (cgraph_node_set_element_def, cgraph_node_set_element,
19052         const_cgraph_node_set_element, varpool_node_set_element_def,
19053         varpool_node_set_element, const_varpool_node_set_element): Remove.
19054         (free_cgraph_node_set, free_varpool_node_set): New function.
19055         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19056         * tree-emutls.c: Free varpool node set.
19057         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19058         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19059         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19060         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19061         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19062         Move here from ipa.c; implement using pointer_map
19063         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
19064         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19065         debug_cgraph_node_set, varpool_node_set_new,
19066         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19067         dump_varpool_node_set, debug_varpool_node_set):
19068         Move to ipa-uitls.c.
19069         * passes.c (ipa_write_summaries): Update.
19070
19071 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19072
19073         From Mike Frysinger:
19074         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19075         bf542/bf544/bf547/bf548/bf549.
19076
19077 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19078
19079         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19080
19081 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19082
19083         From Bernd Schmidt:
19084         * config/bfin/bfin.md (MOVCC): New mode_macro.
19085         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19086         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
19087         comments from generated assembly.
19088
19089 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19090
19091         From Bernd Schmidt
19092         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19093         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19094         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19095         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19096         * config/bfin/lib1funcs.asm (___muldi3): New function.
19097
19098 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19099
19100         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19101         build_function_type_list instead of build_function_type.
19102         Rearrange initialization of `args' to do so.
19103
19104 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19105
19106         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19107         instead of build_function_type.
19108
19109 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19110
19111         * config/rs6000/rs6000.c (spe_init_builtins): Call
19112         build_function_type_list instead of build_function_type.
19113         (paired_init_builtins, altivec_init_builtins): Likewise.
19114         (builtin_function_type): Likewise.
19115
19116 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19117
19118         * config/sh/sh.c (sh_media_init_builtins): Call
19119         build_function_type_list instead of build_function_type.
19120
19121 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19122
19123         * config/sparc/sparc.c (sparc_file_end): Call
19124         build_function_type_list instead of build_function_type.
19125
19126 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19127
19128         * config/alpha/alpha.c (alpha_init_builtins): Call
19129         build_function_type_list instead of build_function_type.
19130
19131 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19132
19133         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19134         build_function_type_list instead of build_function_type.
19135
19136 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19137
19138         * config/iq2000/i2000.c (iq2000_init_builtins): Call
19139         build_function_type_list instead of build_function_type.
19140         Delete `endlink' variable.
19141
19142 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19143
19144         * config/avr/avr.c (avr_init_builtins): Call
19145         build_function_type_list instead of build_function_type.
19146
19147 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19148
19149         * config/picochip/picochip.c (picochip_init_builtins): Call
19150         build_function_type_list instead of build_function_type.
19151         Delete `endlink' variable.
19152
19153 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19154
19155         * config/bfin/bfin.c (bfin_init_builtins): Call
19156         build_function_type_list instead of build_function_type.
19157
19158 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19159
19160         From Bernd Schmidt
19161         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
19162         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
19163
19164 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19165
19166         From Jie Zhang:
19167         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
19168         libbffastfp overrides libgcc when -mfast-fp.
19169
19170 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19171
19172         Originally from Bernd Schmidt
19173         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
19174         * config/bfin/bfin.c (override_options): Test it and error if
19175         TARGET_FDPIC.
19176
19177 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19178
19179         Originally From Bernd Schmidt
19180         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
19181         FD-PIC.
19182
19183 2011-05-03  Jeff Law  <law@redhat.com>
19184
19185         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
19186         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
19187         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
19188         than accessing AUX field directly.  Free the AUX field before
19189         clearing it.
19190         (thread_block, thread_through_loop_header): Likewise.
19191         (thread_single_edge, mark_threaded_blocks): Likewise.
19192         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
19193         (register_jump_thread): Do not attempt to thread to a NULL edge.
19194
19195 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19196
19197         * function.c (init_function_start): Call decide_function_section.
19198         * varasm.c (decide_function_section): New function.
19199         (assemble_start_function): When not using
19200         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
19201         or first_function_block_is_cold.
19202         * rtl.h (decide_function_section): Declare.
19203
19204 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19205             Jakub Jelinek  <jakub@redhat.com>
19206
19207         PR target/48774
19208         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
19209         only succeed if req_mode is the same as set_mode.
19210
19211 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19212
19213         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
19214         * genemit.c (gen_exp): Handle RETURN.
19215         * emit-rtl.c (verify_rtx_sharing): Likewise.
19216         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
19217         * rtl.c (copy_rtx): RETURN is shared.
19218         * rtl.h (enum global_rtl_index): Add GR_RETURN.
19219         (ret_rtx): New.
19220         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
19221         * config/s390/s390.c (s390_emit_epilogue): Likewise.
19222         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
19223         * config/cris/cris.c (cris_expand_return): Likewise.
19224         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
19225         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
19226         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
19227         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
19228         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
19229         Likewise.
19230         * config/v850/v850.c (expand_epilogue): Likewise.
19231         * config/bfin/bfin.c (bfin_expand_call): Likewise.
19232         * config/arm/arm.md (epilogue): Likewise.
19233         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
19234         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
19235         variable to ret_reg.
19236
19237 2011-05-03  Richard Guenther  <rguenther@suse.de>
19238
19239         PR lto/48846
19240         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
19241         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
19242         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19243
19244 2011-05-03  Richard Guenther  <rguenther@suse.de>
19245
19246         * c-decl.c (grokdeclarator): Instead of looking at
19247         TREE_OVERFLOW check if the constant fits in the index type.
19248
19249 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19250
19251         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
19252         (vec_store_lanes<mode><mode>): Likewise.
19253
19254 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19255
19256         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
19257         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
19258         convert_optab_index values.
19259         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
19260         * genopinit.c (optabs): Initialize the new optabs.
19261         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
19262         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
19263         (expand_STORE_LANES): New functions.
19264         * tree.h (build_array_type_nelts): Declare.
19265         * tree.c (build_array_type_nelts): New function.
19266         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
19267         (vect_model_load_cost): Likewise.
19268         (vect_store_lanes_supported, vect_load_lanes_supported)
19269         (vect_record_strided_load_vectors): Declare.
19270         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
19271         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
19272         (vect_transform_strided_load): Split out statement recording into...
19273         (vect_record_strided_load_vectors): ...this new function.
19274         * tree-vect-stmts.c (create_vector_array, read_vector_array)
19275         (write_vector_array, create_array_ref): New functions.
19276         (vect_model_store_cost): Add store_lanes_p argument.
19277         (vect_model_load_cost): Add load_lanes_p argument.
19278         (vectorizable_store): Try to use store-lanes functions for
19279         interleaved stores.
19280         (vectorizable_load): Likewise load-lanes and loads.
19281         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
19282         to vect_model_store_cost.
19283         (vect_build_slp_tree): Likewise vect_model_load_cost.
19284
19285 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19286
19287         * hooks.h (hook_bool_mode_uhwi_false): Declare.
19288         * hooks.c (hook_bool_mode_uhwi_false): New function.
19289         * target.def (array_mode_supported_p): New hook.
19290         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19291         * doc/tm.texi: Regenerate.
19292         * stor-layout.c (mode_for_array): New function.
19293         (layout_type): Use it.
19294         * config/arm/arm.c (arm_array_mode_supported_p): New function.
19295         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19296
19297 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
19298
19299         PR target/48723
19300         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19301         for -fstack-check if the size to allocate is negative.
19302
19303 2011-05-02  Lawrence Crowl  <crowl@google.com>
19304
19305         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19306         (timevar_cond_start): New for starting a timer only when it is not
19307         already running.
19308         (timevar_cond_stop): New for stopping a timer when it was not already
19309         running.
19310
19311         * timevar.c (timevar_stop): Enable start/stop timers to start again.
19312         (timevar_cond_start): New as above.
19313         (timevar_cond_stop): New as above.
19314
19315         * timevar.def: Add start/stop timers for compiler phases,
19316         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19317         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19318         and TV_PHASE_FINALIZE.
19319         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19320         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19321         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19322         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19323         Make unused TV_OVERLOAD into a start/stop timer.
19324
19325         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19326         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19327         to indicate that they are start/stop timers.
19328
19329         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19330         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19331         Move initialization to do_compile.
19332         (do_compile): Add initialization from above.
19333         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19334
19335         * c-decl.c (c_write_global_declarations): Add start/stop of
19336         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19337
19338         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19339         or TV_PARSE_INLINE, as appropriate.
19340         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19341         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19342
19343 2011-05-02  Jason Merrill  <jason@redhat.com>
19344
19345         PR c++/40975
19346         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19347
19348 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
19349
19350         PR c/35445
19351         * c-decl.c (finish_decl): Only create a composite if the types are
19352         compatible.
19353
19354 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19355
19356         * config/fr30/fr30-protos.h (Mmode): Don't define.
19357         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
19358         definition where used.
19359         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19360         define.  Expand definitions where used.
19361         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19362         Expand definitions where used.
19363         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19364         rx_function_arg, rx_function_arg_advance,
19365         rx_function_arg_boundary): Expand definitions of those macros.
19366         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
19367         definition where used.
19368
19369 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19370
19371         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19372         reg<->xmm moves.
19373         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19374         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
19375         with *movv2sf_internal_rex64_avx.
19376         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19377         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19378         Use %v prefix in insn mnemonic to handle TARGET_AVX.
19379         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
19380         "vex" in "prefix" attribute calculation.
19381         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
19382
19383 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
19384
19385         PR target/47951
19386         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19387         inputs match the output.
19388
19389 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
19390
19391         PR target/47955
19392         * config/m68k/m68k.c (m68k_expand_prologue): Set
19393         current_function_static_stack_size.
19394
19395 2011-05-02   Jan Hubicka  <jh@suse.cz>
19396
19397         * lto-streamer.c (lto_streamer_cache_insert_1,
19398         lto_streamer_cache_lookup, lto_streamer_cache_create,
19399         lto_streamer_cache_delete): Use pointer map instead of hashtable.
19400         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19401
19402 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19403
19404         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19405         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19406         config/m68k/t-opts: New files.
19407         * config/m68k/m68k-tables.opt: New file (generated).
19408         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19409         extra_options and m68k/t-opts to tmake_file.
19410         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19411         (all_isas): Initialize using m68k-isas.def.
19412         (all_microarchs): Initialize using m68k-microarchs.def.
19413         (m68k_find_selection): Remove.
19414         (m68k_handle_option): Don't assert that global structures are in
19415         use.  Use error_at.  Access variables via opts pointer.  Don't
19416         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
19417         directly for -m68020-40 and -m68020-60.
19418         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19419         m68k_tune_entry here.
19420         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19421         to m68k-opts.h.
19422         (m68k_library_id_string): Remove declaration.
19423         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19424         (m68k_library_id_string): New Variable.
19425         (march=, mcpu=, mtune=): Use Enum and Var.
19426
19427 2011-05-02  Richard Guenther  <rguenther@suse.de>
19428
19429         * varasm.c (output_constructor_regular_field): Compute zero-based
19430         index with double-ints.  Make sure to ICE instead of producing
19431         wrong code.
19432         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19433         in asserts.  Properly use a signed type.
19434
19435 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19436
19437         * config/i386/sse.md (V): New mode iterator.
19438         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
19439         TARGET_SSE2.
19440         (V_256): Rename from AVX256MODE.
19441         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
19442         condition to all users.
19443         (VF1): Ditto.
19444         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
19445         condition to all users.
19446         (VF_128): Make V4SF mode unconditional.
19447         (VF_256): Rename from AVX256MODEF2P.
19448         (VI4F_128): Rename from SSEMODE4S.
19449         (VI8F_128): Rename from SSEMODE2D.
19450         (VI4F_256): Rename from AVX256MODE8P.
19451         (VI8F_256): Rename from AVX256MODE4P.
19452         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19453         (ssescalarmodesuffix): Remove SF and DF modes.
19454         (SSEMODE124): Remove.
19455         (SSEMODE1248): Ditto.
19456         (SSEMODEF2P): Ditto.
19457         (AVXMODEF2P): Ditto.
19458         (AVXMODEFDP): Ditto.
19459         (AVXMODEFSP): Ditto.
19460         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19461         unconditional.
19462         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
19463         unconditional.
19464         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19465         xop_pcmov_<mode>256.  Use V mode iterator.
19466
19467         Adjust RTX patterns globally for renamed mode attributes.
19468
19469 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19470
19471         * haifa-sched.c (sched_emit_insn): Emit insn before first
19472         non-scheduled insn.  Inform back-end about new insn.  Add
19473         new insn to scheduled_insns list.
19474
19475 2011-05-02  Richard Guenther  <rguenther@suse.de>
19476
19477         PR tree-optimization/48822
19478         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19479         (process_scc): Indicate which iteration we start.
19480
19481 2011-05-02  Jan Hubicka  <jh@suse.cz>
19482
19483         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19484         (lto_section_overrun): New.
19485         * lto-section-out.c (append_block): Rename to ...
19486         (lto_append_block): ... this one; export.
19487         (lto_output_1_stream): Move lto lto-streamer.h
19488         (lto_output_data_stream): Update.
19489         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19490         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19491         functions.
19492
19493 2011-05-02  Richard Guenther  <rguenther@suse.de>
19494
19495         * tree.c (tree_code_counts): New global array.
19496         (record_node_allocation_statistics): Count individual tree codes.
19497         (dump_tree_statistics): Dump individual code stats.
19498
19499 2011-05-01  Jan Hubicka  <jh@suse.cz>
19500
19501         * ipa-inline.c (caller_growth_limits): Fix thinko when
19502         looking for largest stack frame.
19503         * ipa-inline.h (dump_inline_summary): Declare.
19504         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19505         on stack usage.
19506         (dump_inline_summary): Export.
19507         (debug_inline_summary): Declare as DEBUG_FUNCTION.
19508
19509 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
19510
19511         * reginfo.c (memory_move_cost): Change rclass argument type form
19512         'enum reg_class' to reg_class_t.
19513         * reload.h (memory_move_cost): Update prototype.
19514         * postreload.c reload_cse_simplify_set): Change type dclass var to
19515         reg_class_t.
19516         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19517         Update prototype.
19518         (ira_allocate_and_set_costs): Change aclass argument type form
19519         'enum reg_class' to reg_class_t.
19520         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19521         Change aclass argument type to reg_class_t.
19522         (update_conflict_hard_reg_costs): Change type aclass and pref vars
19523         to reg_class_t.
19524         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19525         memory_move_cost call.
19526
19527         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19528         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19529         Change type tmp var to reg_class_t.
19530
19531 2011-04-30  Jan Hubicka  <jh@suse.cz>
19532
19533         * ipa-inline.c (can_inline_edge_p): Disregard limits when
19534         inlining into function with flatten attribute.
19535         (want_inline_small_function_p): Be more realistic about inlining
19536         cold calls where callee size grows.
19537
19538 2011-04-30  Jan Hubicka  <jh@suse.cz>
19539
19540         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19541         flags.
19542
19543 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
19544
19545         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19546         PRINT_OPERAND_PUNCT_VALID_P): Remove.
19547         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19548         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19549         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19550         (print_operand): Rename to...
19551         (sparc_print_operand): ...this. Make static. Adjust
19552         sparc_print_operand function call.
19553         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19554         functions.
19555
19556 2011-04-30  Jan Hubicka  <jh@suse.cz>
19557
19558         PR middle-end/48752
19559         * ipa-inline.c (early_inliner): Disable when doing late
19560         addition of function.
19561
19562 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
19563
19564         * dwarf2out.c (get_address_mode): New inline.
19565         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19566         if not dwarf_strict emit
19567         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19568         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19569         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
19570         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19571         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19572         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19573         mem_loc_descriptor callers.
19574         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19575         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19576         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19577         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19578         (base_types): New variable.
19579         (get_base_type_offset, calc_base_type_die_sizes,
19580         base_type_for_mode, mark_base_types, base_type_cmp,
19581         move_marked_base_types): New functions.
19582         (calc_die_sizes): Assert that die_offset is 0 or equal to
19583         next_die_offset.
19584         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19585         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
19586         callers.  If not dwarf_strict, call mem_loc_descriptor even for
19587         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19588         (gen_subprogram_die): Don't give up on call site parameters
19589         with non-integral or large integral modes.  Adjust
19590         mem_loc_descriptor callers.
19591         (prune_unused_types): Call prune_unused_types_mark on base_types
19592         vector entries.
19593         (resolve_addr): Call mark_base_types.
19594         (dwarf2out_finish): Call move_marked_base_types.
19595
19596         PR tree-optimization/48809
19597         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19598         type.
19599         (gen_inbound_check): Don't compute index_expr - range_min in utype
19600         again, instead reuse SSA_NAME initialized in build_arrays.
19601         Remove two useless gsi_for_stmt calls.
19602
19603 2011-04-29  Jeff Law  <law@redhat.com>
19604
19605         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19606
19607 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19608
19609         * cgraph.h (cgraph_postorder): Remove declaration.
19610         * ipa-utils.h (ipa_free_postorder_info): Declare.
19611         (ipa_reverse_postorder): Likewise.
19612         * cgraphunit.c: Include ipa-utils.h.
19613         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19614         * ipa-inline.c: Include ipa-utils.h.
19615         (ipa_inline): Update call to ipa_reverse_postorder.
19616         * ipa-pure-const.c (propagate_pure_const): Update call to
19617         ipa_reduced_postorder and ipa_print_order.  Call
19618         ipa_free_postorder_info to clean up.
19619         (propagate_nothrow): Likewise.
19620         * ipa-reference.c (propagate): Removed a useless call to
19621         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19622         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
19623         * ipa.c: Include ipa-utils.h.
19624         (ipa_profile): Update call to ipa_reverse_postorder.
19625         (cgraph_postorder): Moved to...
19626         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19627         (ipa_utils_print_order): Renamed to ipa_print_order.
19628         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19629         comments.
19630         (ipa_free_postorder_info): New function.
19631         * passes.c: Include ipa-utils.h.
19632         (do_per_function_toporder): Update call to ipa_reverse_postorder.
19633         (ipa_write_summaries): Likewise.
19634         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19635         (cgraphunit.o): Likewise.
19636         (ipa.o): Likewise.
19637         (ipa-inline.o): Likewise.
19638
19639 2011-04-29  Jan Hubicka  <jh@suse.cz>
19640
19641         * ipa-inline.h (clause_t): Turn into unsigned int.
19642         * ipa-inline-analysis.c (add_clause): Do more simplification.
19643         (and_predicates): Shortcut more cases.
19644         (predicates_equal_p): Move forward; check that clauses are properly
19645         ordered.
19646         (or_predicates): Shortcut more cases.
19647         (edge_execution_predicate): Rewrite as...
19648         (set_cond_stmt_execution_predicate): ... this function; handle
19649         __builtin_constant_p.
19650         (set_switch_stmt_execution_predicate): New .
19651         (compute_bb_predicates): New.
19652         (will_be_nonconstant_predicate): Update TODO.
19653         (estimate_function_body_sizes): Use compute_bb_predicates
19654         and free them later, always try to estimate if stmt is constant.
19655         (estimate_time_after_inlining, estimate_size_after_inlining):
19656         Gracefully handle optimized out edges.
19657         (read_predicate): Fix off by one error.
19658
19659 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
19660
19661         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19662
19663 2011-04-27  Xinliang David Li  <davidxl@google.com>
19664
19665         * tree-profile.c (init_ic_make_global_vars): Set
19666         tls attribute on ic vars.
19667         * coverage.c (coverage_end_function): Initialize
19668         function_list with zero.
19669
19670 2011-04-29  Richard Guenther  <rguenther@suse.de>
19671
19672         * builtins.c (fold_builtin_classify_type): Use integer_type_node
19673         for the type of the result.
19674         (fold_builtin_isascii): Likewise.
19675         (fold_builtin_toascii): Use integer_type_node where appropriate.
19676         (fold_builtin_logb): Likewise.
19677         (fold_builtin_frexp): Likewise.
19678         (fold_builtin_strstr): Likewise.
19679         (fold_builtin_strpbrk): Likewise.
19680         (fold_builtin_fputs): Likewise.
19681         (fold_builtin_sprintf): Likewise.
19682         (fold_builtin_snprintf): Likewise.
19683         (fold_builtin_printf): Likewise.
19684         (do_mpfr_remquo): Use a proper type for the assigned constant.
19685         (do_mpfr_lgamma_r): Likewise.
19686         * dwarf2out.c (resolve_one_addr): Use size_int.
19687         * except.c (init_eh): Likewise.
19688         (assign_filter_values): Use integer_type_node for filter values.
19689         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19690         indices.
19691         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19692         for EH region numbers.
19693         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19694         for the shift amount.
19695
19696 2011-04-29  Richard Guenther  <rguenther@suse.de>
19697
19698         * expr.h (expand_shift): Rename to ...
19699         (expand_variable_shift): ... this.
19700         (expand_shift): Take a constant shift amount.
19701         * expmed.c (expand_shift): Rename to ...
19702         (expand_variable_shift): ... this.
19703         (expand_shift): New wrapper around expand_variable_shift.
19704         * expr.c (convert_move, emit_group_load_1, emit_group_store,
19705         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19706         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19707         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19708         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19709         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19710         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19711         emit_store_flag_1, emit_store_flag): Likewise.
19712         * builtins.c (expand_builtin_signbit): Likewise.
19713         * calls.c (load_register_parameters): Likewise.
19714         * function.c (assign_parm_setup_block): Likewise.
19715         * lower-subreg.c (resolve_shift_zext): Likewise.
19716         * optabs.c (widen_bswap, expand_abs_nojump,
19717         expand_one_cmpl_abs_nojump, expand_float): Likewise.
19718         * spu/spu.c (spu_expand_extv): Likewise.
19719         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19720
19721 2011-04-29  Richard Guenther  <rguenther@suse.de>
19722
19723         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19724         for the remapped region number.
19725         * predict.c (build_predict_expr): Use integer_type_node for the
19726         predict kind.
19727         * fold-const.c (fold_binary_loc): Use integer_type_node for
19728         the shift amount.  Use a proper type for the PLUS_EXPR operand.
19729
19730 2011-04-29  Michael Matz  <matz@suse.de>
19731
19732         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19733         other trees that just builtins.
19734         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19735
19736 2011-04-29  Richard Guenther  <rguenther@suse.de>
19737
19738         * tree-nested.c (get_trampoline_type): Use size_int.
19739         (get_nl_goto_field): Likewise.
19740         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19741         for all indexes.
19742         (lower_eh_constructs_2): Likewise.
19743         (lower_resx): Likewise.
19744         (lower_eh_dispatch): Likewise.
19745         * tree-mudflap.c (mf_build_string): Use size_int.
19746         (mudflap_register_call): Use integer_type_node for the flag.
19747         (mudflap_enqueue_constant): Use size_int.
19748         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19749         instead of rebuilding it.
19750
19751 2011-04-29  Richard Guenther  <rguenther@suse.de>
19752
19753         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19754         Handle OBJ_TYPE_REF.
19755         (find_func_aliases_for_call): Use it more consistently.
19756
19757 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
19758
19759         * haifa-sched.c (last_nondebug_scheduled_insn): New.
19760         (rank_for_schedule): Use it.
19761         (schedule_block): Set it.
19762
19763 2011-04-28  David Li  <davidxl@google.com>
19764
19765         * tree.c (crc32_string): Use crc32_byte.
19766         (crc32_byte): New function.
19767         * tree.h (crc32_byte): New function.
19768         * gcov.c (read_graph_file): Handle new cfg_cksum.
19769         (read_count_file): Ditto.
19770         * profile.c (instrument_values): Ditto.
19771         (get_exec_counts): Ditto.
19772         (read_profile_edge_counts): Ditto.
19773         (compute_branch_probabilities): Ditto.
19774         (compute_value_histograms): Ditto.
19775         (branch_prob): Ditto.
19776         (end_branch_prob): Ditto.
19777         * coverage.c (read_counts_file): Ditto.
19778         (get_coverage_counts): Ditto.
19779         (tree_coverage_counter_addr): Ditto.
19780         (coverage_checksum_string): Ditto.
19781         (coverage_begin_output): Ditto.
19782         (coverage_end_function): Ditto.
19783         (build_fn_info_type): Ditto.
19784         (build_fn_info_value): Ditto.
19785         * libgcov.c (gcov_exit): Ditto.
19786         * gcov-dump.c (tag_function): Ditto.
19787         (compute_checksum): Remove.
19788
19789 2011-04-29  Alan Modra  <amodra@gmail.com>
19790
19791         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19792         unspec plus offset.  Tidy macho code.
19793
19794 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19795
19796         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19797         node instead of a decl.  Update all callers.
19798         * cgraph.h: Update declaration.
19799
19800 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
19801
19802         PR tree-optimization/48765
19803         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19804         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19805         to indicate if loop aware SLP is being used.  Scan the statements
19806         and update the vectorization factor according to the type of
19807         vectorization before statement analysis.
19808         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19809         pass it to vect_analyze_loop_operations.
19810         (vectorizable_reduction): Set number of copies to 1 in case of pure
19811         SLP statement.
19812         * tree-vect-stmts.c (vectorizable_conversion,
19813         vectorizable_assignment, vectorizable_shift,
19814         vectorizable_operation, vectorizable_type_demotion,
19815         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19816         Likewise.
19817         (vectorizable_condition): Move the check that it is not SLP
19818         vectorization before the number of copies check.
19819         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19820         to vectorize the loop using SLP.
19821
19822 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
19823
19824         PR middle-end/48597
19825         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19826         inline asm.
19827
19828 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
19829
19830         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19831         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19832         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19833         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19834         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19835         linux*.h headers.
19836         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19837         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19838         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19839         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19840         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19841         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19842         REG_NAME.
19843         * config/i386/linux.h (REG_NAME): Don't define.
19844         * config/i386/linux64.h (REG_NAME): Don't define.
19845         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19846         Undefine before defining.
19847
19848 2011-04-28  Jan Hubicka  <jh@suse.cz>
19849
19850         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19851         nonconstant_names array.
19852         (estimate_function_body_sizes): Build nonconstant_names array; handle
19853         BUILT_IN_CONSTANT_P.
19854
19855 2011-04-28  Richard Guenther  <rguenther@suse.de>
19856
19857         PR bootstrap/48804
19858         Revert
19859         2011-04-28  Richard Guenther  <rguenther@suse.de>
19860
19861         * tree-ssa-structalias.c (solve_constraints): Build succ graph
19862         as late as possible.
19863
19864 2011-04-28  Richard Guenther  <rguenther@suse.de>
19865
19866         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19867         (debug_constraint): Do it here.
19868         (dump_constraints): And here.
19869         (rewrite_constraints): And here.
19870         (dump_constraint_edge): Remove.
19871         (dump_constraint_graph): Rewrite to produce DOT output.
19872         (solve_constraints): Build succ graph as late as possible.
19873         Dump constraint graphs before and after solving.
19874
19875 2011-04-28  Richard Guenther  <rguenther@suse.de>
19876
19877         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19878         New function split out from ...
19879         (find_func_aliases): ... here.  Call it.
19880         (find_func_aliases_for_call): Likewise.
19881
19882 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19883
19884         * internal-fn.h (internal_fn_name_array): Declare.
19885         (internal_fn_flags_array): Likewise.
19886
19887 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19888
19889         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
19890         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19891         Move from sse.md.
19892         (ssemodefsuffix): Remove.
19893         (ssevecmodesuffix): New mode attribute.
19894         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19895         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19896         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19897         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19898         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19899         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19900         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19901         ssemodesuffix mode attribute.
19902         (float splitters): Use ssevecmodesuffix mode attribute.
19903         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19904         (sseinsmode): Rename from avxvecmode.
19905         (avxsizesuffix): Rename from avxmodesuffix.
19906         (sseintvecmode): Rename from avxpermvecmode.
19907         (ssedoublevecmode): Rename from ssedoublesizemode.
19908         (ssehalfvecmode): Rename from avxhalfvecmode.
19909         (ssescalarmode): Rename from avxscalarmode.
19910         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
19911         templates for ssemodesuffix mode attribute.
19912         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
19913         mode attribute.
19914
19915         Adjust RTX patterns globally for renamed mode attributes.
19916
19917 2011-04-27  Jan Hubcika  <jh@suse.cz>
19918
19919         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
19920         * ipa-inline-analysis.c: Include alloc-pool.h.
19921         (edge_predicate_pool): New.
19922         (trye_predicate_p): New function
19923         (false_predicate_p): New function.
19924         (add_clause): Sanity check that false clauses are "optimized";
19925         never add clauses to predicate that is already known to be false.
19926         (and_predicate): Use flase_predicate_p.
19927         (evaulate_predicate): Rename to ...
19928         (evaluate_predicate): ... this one; update all callers; assert
19929         that false is not listed among possible truths.
19930         (dump_predicate): Use true_predicate_p.
19931         (account_size_time): Use false_predicate_p.
19932         (evaulate_conditions_for_edge): Rename to ...
19933         (evaluate_conditions_for_edge) ... this one.
19934         (edge_set_predicate): New function.
19935         (inline_edge_duplication_hook): Duplicate edge predicates.
19936         (inline_edge_removal_hook): Free edge predicates.
19937         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
19938         (dump_inline_summary): Update.
19939         (estimate_function_body_sizes): Set edge predicates.
19940         (estimate_calls_size_and_time): Handle predicates.
19941         (estimate_callee_size_and_time): Update.
19942         (remap_predicate): Add toplev_predicate; update comment.
19943         (remap_edge_predicates): New function.
19944         (inline_merge_summary): Compute toplev predicate; update.
19945         (read_predicate): New function.
19946         (read_inline_edge_summary): Use it.
19947         (inline_read_section): Likewise.
19948         (write_predicate): New function.
19949         (write_inline_edge_summary): Use it.
19950         (inline_write_summary): Likewise.
19951         (inline_free_summary): Free alloc pool and edge summary vec.
19952
19953 2011-04-27  Richard Guenther  <rguenther@suse.de>
19954
19955         * tree-ssa-structalias.c (changed_count): Remove.
19956         (changed): Use a bitmap.
19957         (unify_nodes): Adjust.
19958         (do_sd_constraint): Likewise.
19959         (do_ds_constraint): Likewise.
19960         (do_complex_constraint): Likewise.
19961         (solve_graph): Likewise.
19962
19963 2011-04-27  Jan Hubicka  <jh@suse.cz>
19964
19965         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
19966
19967 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19968
19969         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
19970         (avx_vperm2f128_*_operand): Ditto.
19971         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
19972         Use avx_vpermilp_parallel in insn condition.
19973         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
19974         Use avx_vperm2f128_parallel in insn condition.
19975
19976 2011-04-27  Richard Guenther  <rguenther@suse.de>
19977
19978         * Makefile.in (tree-ssa-structalias.o): Remove
19979         gt-tree-ssa-structalias.h dependency.
19980         (GTFILES): Remove tree-ssa-structalias.c.
19981         * tree.c (allocate_decl_uid): New function.
19982         (make_node_stat): Use it.
19983         (copy_node_stat): Likewise.
19984         * tree.h (allocate_decl_uid): Declare.
19985         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
19986         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
19987         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
19988         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
19989         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
19990         (struct heapvar_map): Likewise.
19991         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
19992         heapvar_insert): Likewise.
19993         (make_heapvar_for): Rename to ...
19994         (make_heapvar): ... this.  Simplify.
19995         (fake_var_decl_obstack): New global var.
19996         (build_fake_var_decl): New function.
19997         (make_constraint_from_heapvar): Adjust.
19998         (handle_lhs_call): Likewise.
19999         (create_function_info_for): Likewise.
20000         (intra_create_variable_infos): Likewise.
20001         (init_alias_vars): Allocate fake_var_decl_obstack.
20002         (init_alias_heapvars, delete_alias_heapvars): Remove.
20003         (compute_points_to_sets): Do not call init_alias_heapvars.
20004         (ipa_pta_execute): Likewise.
20005         (delete_points_to_sets): Free fake_var_decl_obstack.
20006
20007 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20008
20009         * config/spu/divmovti4.c (union qword_UTItype): New data type.
20010         (si_from_UTItype, si_to_UTItype): New functions.
20011         (__udivmodti4): Use them to implement type-punning.
20012         * config/spu/multi3.c (union qword_TItype): New data type.
20013         (si_from_TItype, si_to_TItype): New functions.
20014         (__multi3): Use them to implement type-punning.
20015
20016 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20017
20018         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20019
20020 2011-04-27  Jan Hubicka  <jh@suse.cz>
20021
20022         * ipa-prop.c (function_insertion_hook_holder): New holder.
20023         (ipa_add_new_function): New function.
20024         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20025         Register/deregister holder.
20026
20027 2011-04-27  Richard Guenther  <rguenther@suse.de>
20028
20029         PR tree-optimization/48772
20030         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20031
20032 2011-04-27  Richard Guenther  <rguenther@suse.de>
20033
20034         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20035         TARGET_MEM_REF handling.
20036
20037 2011-04-27  Nick Clifton  <nickc@redhat.com>
20038
20039         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20040         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20041         (REG_CLASS_NAMES): Likewise.
20042         (REG_CLASS_CONTENTS): Likewise.
20043         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20044         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20045         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
20046         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
20047         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
20048         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20049         duplicate register classes.
20050         (frv_class_likely_spilled_p): Likewise.
20051         (frv_register_move_cost): Likewise.
20052
20053         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20054         end of the regno_reg_class array.
20055
20056 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
20057
20058         PR c/48742
20059         * c-typeck.c (build_binary_op): Don't wrap arguments if
20060         int_operands is true.
20061
20062 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
20063
20064         PR target/48767
20065         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20066         targetm.calls.must_pass_in_stack for void type.
20067
20068 2011-04-26  Jan Hubicka  <jh@suse.cz>
20069
20070         * cgraphbuild.c (build_cgraph_edges): Update call
20071         of cgraph_create_edge and cgraph_create_indirect_edge.
20072         * cgraph.c (cgraph_create_edge_including_clones,
20073         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20074         cgraph_update_edges_for_call_stmt_node): Do not take nest
20075         argument; do not initialize call_stmt_size/time.
20076         (dump_cgraph_node): Do not dump nest.
20077         (cgraph_clone_edge): Do not take loop_nest argument;
20078         do not propagate it; do not clone call_stmt_size/time.
20079         (cgraph_clone_node): Likewise.
20080         (cgraph_create_virtual_clone): Update.
20081         * cgraph.h (struct cgraph_edge): Remove
20082         call_stmt_size/call_stmt_time/loop_nest.
20083         (cgraph_create_edge, cgraph_create_indirect_edge,
20084         cgraph_create_edge_including_clones, cgraph_clone_node): Update
20085         prototype.
20086         * tree-emutls.c (gen_emutls_addr): Update.
20087         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20088         loop_nest; handle indirect calls, too.
20089         (clone_inlined_nodes): Do not care about updating inline summaries.
20090         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20091         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20092         stream call_stmt_size/call_stmt_time/loop_nest.
20093         * ipa-inline.c (edge_badness): Update.
20094         (ipa_inline): dump summaries after inlining.
20095         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20096         New.
20097         (inline_edge_summary): New function.
20098         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20099         (inline_edge_removal_hook): Handle edge summaries.
20100         (inline_edge_duplication_hook): New hook.
20101         (inline_summary_alloc): Alloc hooks.
20102         (initialize_growth_caches): Do not register removal hooks.
20103         (free_growth_caches); Do not free removal hook.
20104         (dump_inline_edge_summary): New function.
20105         (dump_inline_summary): Use it.
20106         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20107         (inline_update_callee_summaries): New function.
20108         (inline_merge_summary): Use it.
20109         (do_estimate_edge_time, do_estimate_edge_growth): Update.
20110         (read_inline_edge_summary): New function.
20111         (inline_read_section): Use it.
20112         (write_inline_edge_summary): New function.
20113         (inline_write_summary): Use it.
20114         (inline_free_summary): Free edge new holders.
20115         * tree-inline.c (copy_bb): Update.
20116
20117 2011-04-26  Jason Merrill  <jason@redhat.com>
20118
20119         * tree-eh.c (lower_try_finally_switch): Create the label along with
20120         the CASE_LABEL_EXPR.
20121
20122 2011-04-26  David S. Miller  <davem@davemloft.net>
20123             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20124
20125         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20126         * configure: Regenerate.
20127
20128 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20129
20130         PR target/48258
20131         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20132         reduction.
20133         (VEC_reduc): New code iterator and splitters for vector reduction.
20134         (VEC_reduc_name): Ditto.
20135         (VEC_reduc_rtx): Ditto.
20136         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20137         (reduc_<VEC_reduc_name>_v4sf): Ditto.
20138
20139         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20140         support for extracting SF on VSX.
20141
20142         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
20143         generating xscvspdp.
20144         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
20145         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
20146         double add, minimum, maximum vector reduction.
20147         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
20148         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
20149         optimize double vector reduction.
20150         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
20151
20152 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
20153
20154         * config/fr30/fr30.h (inhibit_libc): Don't define.
20155         * config/m32r/m32r-protos.h: Correct comment.
20156         * config/v850/v850.h (GHS_default_section_names,
20157         GHS_current_section_names): Use tree, not union tree_node *.
20158
20159 2011-04-26  Xinliang David Li  <davidxl@google.com>
20160
20161         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
20162         * c-family/c-opts.c (c_common_handle_option): Set
20163         warn_maybe_uninitialized.
20164         * opts.c (common_handle_option): Ditto.
20165         * common.opt:  New option.
20166         * tree-ssa.c (warn_uninit): Add one more parameter.
20167         (warn_uninitialized_var): Pass warning code.
20168         * tree-flow.h: Interface change.
20169
20170 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20171
20172         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
20173         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
20174         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20175
20176 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20177
20178         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
20179         * config/mips/mips.opt (mmips-tfile): Remove.
20180
20181         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
20182         mips-tdump reference to ...
20183         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
20184         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
20185         reference by Tru64 UNIX.
20186
20187 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
20188
20189         PR debug/48768
20190         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
20191         is error_mark_node, set value to NULL.
20192
20193         PR tree-optimization/48734
20194         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
20195         if return value from maybe_fold_*_comparsions isn't something
20196         the code is prepared to handle.
20197
20198 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
20199
20200         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
20201         mode check.
20202         (ext_QIreg_nomode_operands): Remove.
20203         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
20204         (*andsi_1): Ditto.
20205         (*andhi_1): Ditto.
20206
20207 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
20208
20209         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
20210
20211 2011-04-26  Richard Guenther  <rguenther@suse.de>
20212
20213         * c-typeck.c (build_unary_op): Do not expand array-refs via
20214         pointer arithmetic.  Only adjust qualifiers for function types.
20215
20216 2011-04-26  Richard Guenther  <rguenther@suse.de>
20217
20218         PR middle-end/48694
20219         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
20220         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
20221         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
20222         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
20223
20224 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
20225
20226         * doc/extend.texi: Document __underlying_type.
20227
20228 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
20229
20230         * config/rs6000/titan.md (automata_option "progress"): Remove.
20231
20232 2011-04-25  Jeff Law  <law@redhat.com>
20233
20234         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
20235
20236 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
20237
20238         * system.h (ENUM_BITFIELD): Remove.
20239
20240 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
20241             Eric Botcazou  <ebotcazou@adacore.com>
20242
20243         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
20244         for STORE_FLAG_VALUE==-1 case.
20245
20246 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
20247
20248         PR target/43804
20249         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
20250         LEGITIMATE_PIC_OPERAND_P.
20251
20252 2011-04-24  Jan Hubicka  <jh@suse.cz>
20253
20254         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
20255         WPA hack.
20256         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
20257         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
20258         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
20259         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
20260         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
20261         Sanity check predicate length.
20262         (remap_predicate): Likewise; sanity check jump functions.
20263         (inline_read_section, inline_write_summary): Sanity check
20264         predicate length.
20265
20266 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
20267
20268         PR other/48748
20269         * doc/extend.texi (Type Traits): Document __is_standard_layout,
20270         __is_literal_type, and __is_trivial; update throughout about
20271         possibly cv-qualified void types.
20272
20273 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
20274
20275         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
20276         testsuite and make it version agnostic.
20277
20278 2011-04-22  Jan Hubicka  <jh@suse.cz>
20279
20280         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
20281
20282 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
20283
20284         PR c/48685
20285         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20286         to VOID_TYPE even around MODIFY_EXPR.
20287
20288 2011-04-22  Mike Stump  <mikestump@comcast.net>
20289
20290         * gensupport.c (read_md_rtx): Fix typo in comment.
20291         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20292         comment.
20293
20294 2011-04-22  Jan Hubicka  <jh@suse.cz>
20295
20296         * gengtype.c (open_base_files): Add ipa-inline.h include.
20297         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20298         ipa-prop.c; update all uses.
20299         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20300         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20301         merge summary of inlined function into former caller.
20302         * ipa-inline.c (max_benefit): Remove.
20303         (edge_badness): Compensate for removal of benefits.
20304         (update_caller_keys): Use
20305         reset_node_growth_cache/reset_edge_growth_cache.
20306         (update_callee_keys): Likewise.
20307         (update_all_callee_keys): Likewise.
20308         (inline_small_functions): Do not collect max_benefit; do not reset
20309         estimated_growth; call free_growth_caches and initialize_growth_caches.
20310         * ipa-inline.h (struct condition, type clause_t, struct predicate,
20311         struct size_time_entry): New structures.
20312         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20313         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20314         and estimated_growth.
20315         (edge_growth_cache_entry): New structure.
20316         (node_growth_cache, edge_growth_cache): New global vars.
20317         (estimate_growth): Turn into inline.
20318         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20319         initialize_growth_caches, free_growth_caches): Declare.
20320         (estimate_edge_growth): Rewrite.
20321         (estimate_edge_time): Implement as inline cache lookup.
20322         (reset_node_growth_cache, reset_edge_growth_cache): New inline
20323         functions.
20324         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20325         (NUM_CONDITIONS): New constant.
20326         (predicate_conditions): New enum.
20327         (IS_NOT_CONSTANT): New constant.
20328         (edge_removal_hook_holder): New var.
20329         (node_growth_cache, edge_growth_cache): New global vars.
20330         (true_predicate, single_cond_predicate, false_predicate,
20331         not_inlined_predicate, add_condition, add_clause, and_predicates,
20332         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20333         dump_clause, dump_predicate, account_size_time,
20334         evaulate_conditions_for_edge): New functions.
20335         (inline_summary_alloc): Move to heap.
20336         (inline_node_removal_hook): Clear condition and entry vectors.
20337         (inline_edge_removal_hook): New function.
20338         (initialize_growth_caches, free_growth_caches): New function.
20339         (dump_inline_summary): Update.
20340         (edge_execution_predicate): New function.
20341         (will_be_nonconstant_predicate): New function.
20342         (estimate_function_body_sizes): Compute BB and constantness predicates.
20343         (compute_inline_parameters): Do not clear estimated_growth.
20344         (estimate_edge_size_and_time): New function.
20345         (estimate_calls_size_and_time): New function.
20346         (estimate_callee_size_and_time): New function.
20347         (remap_predicate): New function.
20348         (inline_merge_summary): New function.
20349         (do_estimate_edge_time): New function based on...
20350         (estimate_edge_time): ... this one.
20351         (do_estimate_edge_growth): New function.
20352         (do_estimate_growth): New function based on....
20353         (estimate_growth): ... this one.
20354         (inline_analyze_function): Analyze after deciding on jump functions.
20355         (inline_read_section): New function.
20356         (inline_read_summary): Use it.
20357         (inline_write_summary): Write all the new data.
20358         * ipa-prop.c (ipa_get_param_decl_index): Export.
20359         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20360         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20361         Declare.
20362         (ipa_get_lattice): Move here from ipa-cp.c
20363         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20364         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20365         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20366         cgraph_edge_inlinable_p): Remove.
20367         * cgraphunit.c: Include ipainline.h
20368         (cgraph_process_new_functions): Update call of
20369         compute_inline_parameters.
20370
20371 2011-04-22  Richard Guenther  <rguenther@suse.de>
20372
20373         * tree.c (build_int_cst): Properly create canonicalized integer
20374         constants.
20375         (build_int_cst_type): Remove scary comments.
20376
20377 2011-04-22  Xinliang David Li  <davidxl@google.com>
20378
20379         * toplev.c (process_options): Enable -Werror=coverage-mismatch
20380         by default when -Wno-error is not specified.
20381         * opts-global.c (decode_options): Remove call to
20382         control_warning_options.
20383
20384 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20385
20386         PR tree-optimization/48717
20387         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20388         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20389
20390 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
20391
20392         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
20393         definition where used.
20394
20395 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20396
20397         PR c/48716
20398         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20399         TREE_STATIC variables declared inside of some OpenMP construct.
20400
20401 2011-04-22  Martin Jambor  <mjambor@suse.cz>
20402
20403         PR middle-end/48585
20404         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20405
20406 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
20407
20408         PR c/36750
20409         * c-typeck.c (pop_init_level): Do not warn about initializing
20410         with ` = {0}'.
20411
20412 2011-04-22  Alan Modra  <amodra@gmail.com>
20413
20414         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20415         when returning call_cookie.
20416         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20417         pointers, to functions with no more vector args than the current
20418         function, and some non-local calls for ABI_V4.
20419         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20420         sibcall_nonlocal_aix64): Combine to ..
20421         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
20422         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20423         (sibcall_value_nonlocal_aix<mode>): ..likewise.
20424         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20425         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
20426         operand.
20427         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20428         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20429         sibcall_value_symbolic_64): Delete.
20430
20431 2011-04-21  Xinliang David Li  <davidxl@google.com>
20432
20433         * cgraph.h: Remove pid.
20434         * cgraph.c: Remove pid.
20435         * value-prof.c (init_node_map): New function.
20436         (del_node_map): New function.
20437         (find_func_by_funcdef_no): New function.
20438         (gimple_ic_transform): Call new function.
20439         * cgraphunit.c (cgraph_finalize_function): Remove pid.
20440         * function.c (get_last_funcdef_no): New function.
20441         * function.h (get_last_funcdef_no): New function.
20442         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20443         to libgcov function.
20444         (tree-profiling): Call node map init and delete function.
20445
20446 2011-04-21  Ian Lance Taylor  <iant@google.com>
20447
20448         * godump.c (go_format_type): Use exported Go name for anonymous
20449         field name.
20450
20451 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20452
20453         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20454         Call builtin_function_type_list instead of builtin_function_type.
20455         (UNARY, BINARY, TRINARY, QUAD): Likewise.
20456
20457 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20458
20459         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20460         build_function_type_list instead of build_function_type.
20461         Delete variable `endlink'.
20462
20463 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20464
20465         * config/s390/s390.c (s390_init_builtins): Call
20466         build_function_type_list instead of build_function_type.
20467
20468 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20469
20470         * config/ia64/ia64.c (ia64_init_builtins): Call
20471         build_function_type_list instead of builtin_function_type.
20472
20473 2011-04-21  Easwaran Raman  <eraman@google.com>
20474
20475         * cfgexpand.c (stack_var): Remove OFFSET...
20476         (add_stack_var): ...and its reference here...
20477         (expand_stack_vars): ...and here.
20478         (stack_var_cmp): Sort by descending order of size.
20479         (partition_stack_vars): Change heuristic.
20480         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20481         (dump_stack_var_partition): Add newline after each partition.
20482
20483 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
20484             Jeff Law  <law@redhat.com>
20485
20486         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20487         * gengtype.c (matching_file_name_substitute): Likewise.
20488
20489 2011-04-21  Richard Guenther  <rguenther@suse.de>
20490
20491         PR lto/48703
20492         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20493
20494 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20495
20496         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20497
20498 2011-04-21  Richard Guenther  <rguenther@suse.de>
20499
20500         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20501         file name.
20502
20503 2011-04-21  Richard Guenther  <rguenther@suse.de>
20504
20505         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20506         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20507         Use DECL_P, not SSA_VAR_P.
20508         (ptr_derefs_may_alias_p): Likewise.
20509         (ptr_deref_may_alias_ref_p_1): Likewise.
20510         (decl_refs_may_alias_p): Likewise.
20511         (refs_may_alias_p_1): Likewise.
20512         (ref_maybe_used_by_call_p_1): Likewise.
20513         (call_may_clobber_ref_p_1): Likewise.
20514         (indirect_ref_may_alias_decl_p): Assume indirect refrences
20515         are either MEM_REF or TARGET_MEM_REF.
20516         (indirect_refs_may_alias_p): Likewise.
20517         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20518         for MEM_EXPR of indirect calls.
20519
20520 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20521
20522         * vmsdbgout.c (write_srccorr): Compute file length from the string.
20523         (dst_file_info_struct): Remove flen field.
20524         (lookup_filename): Remove code that set flen field.
20525
20526 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20527
20528         * config/ia64/ia64.c (ia64_start_function): Add a guard.
20529
20530 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
20531
20532         PR target/48708
20533         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20534         vec_extract and vec_concat for non-SSE4_1 targets.
20535
20536 2011-04-21  Richard Guenther  <rguenther@suse.de>
20537
20538         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20539         return statements.
20540
20541 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20542
20543         * config/i386/cygming.h (union tree_node, TREE): Don't define or
20544         undefine.
20545         (FILE): Don't undefine.
20546
20547 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20548
20549         * config/alpha/alpha.c (struct machine_function): Use rtx, not
20550         struct rtx_def *.
20551         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20552         struct rtx_def *.
20553         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20554         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20555         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20556         rtx_def *.
20557         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
20558         definitions where used.
20559         * config/microblaze/microblaze.h (struct microblaze_args): Use
20560         rtx, not struct rtx_def *.
20561         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20562         rtx_def *.
20563         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20564         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20565         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20566         not struct rtx_def *.
20567         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20568         struct rtx_def *.
20569         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20570         rtx_def *.
20571         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20572
20573 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20574
20575         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20576         operand_equal_p to compare DR_BASE_ADDRESSes.
20577         (vect_check_interleaving): Likewise.
20578
20579 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20580
20581         PR target/46329
20582         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20583         for all Neon struct constants.
20584
20585 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20586
20587         * target.def (legitimate_constant_p): New hook.
20588         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20589         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20590         * doc/tm.texi: Regenerate.
20591         * hooks.h (hook_bool_mode_rtx_true): Declare.
20592         * hooks.c (hook_bool_mode_rtx_true): Define.
20593         * system.h (LEGITIMATE_CONSTANT_P): Poison.
20594         * calls.c (precompute_register_parameters): Replace uses of
20595         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20596         (emit_library_call_value_1): Likewise.
20597         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20598         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20599         * ira-costs.c (scan_one_insn): Likewise.
20600         * recog.c (general_operand, immediate_operand): Likewise.
20601         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20602         * reload1.c (init_eliminable_invariants): Likewise.
20603
20604         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20605         mode argument.
20606         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20607         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20608         argument.
20609         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20610         * config/alpha/predicates.md (input_operand): Update call to
20611         alpha_legitimate_constant_p.
20612
20613         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20614         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20615         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20616         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20617         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20618         (arm_legitimate_constant_p): New functions.
20619         (arm_cannot_force_const_mem): Make static.
20620
20621         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20622
20623         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20624         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20625         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20626         instead of bfin_legitimate_constant_p.
20627         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
20628         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20629
20630         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20631
20632         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20633
20634         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20635         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20636         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20637         (frv_legitimate_constant_p): Make static.  Add a mode argument.
20638
20639         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20640         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20641         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20642
20643         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20644         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20645         * config/i386/i386.c (legitimate_constant_p): Rename to...
20646         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
20647         argument.
20648         (ix86_cannot_force_const_mem): Update accordingly.
20649         (ix86_legitimate_address_p): Likewise.
20650         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20651         * config/i386/i386.md: Update commentary.
20652
20653         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20654         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20655         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20656         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
20657
20658         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20659
20660         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20661         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20662         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20663         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
20664
20665         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20666         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20667         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20668
20669         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20670         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20671         (m32r_legitimate_constant_p): New function.
20672
20673         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20674         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20675         LEGITIMATE_CONSTANT_P.
20676         (LEGITIMATE_CONSTANT_P): Delete.
20677         * config/m68k/m68k.c (m68k_expand_prologue): Call
20678         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20679         (m68k_legitimate_constant_p): New function.
20680         * config/m68k/m68k.md: Update comments.
20681
20682         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20683         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20684         (mcore_legitimate_constant_p): New function.
20685
20686         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20687         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20688         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20689         Add a mode argument.
20690         (mep_legitimate_address): Update accordingly.
20691         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20692
20693         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20694         Delete.
20695         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20696         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20697         static.  Check OP's mode for VOIDmode.
20698         (microblaze_legitimate_constant_p): New function.
20699         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20700
20701         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20702         * config/mips/mips.c (mips_legitimate_constant_p): New function.
20703         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20704         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20705         * config/mips/predicates.md: Update comments.
20706
20707         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20708         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20709         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20710         (mmix_legitimate_constant_p): Make static, return a bool, and take
20711         a mode argument.
20712         (mmix_print_operand_address): Update accordingly.
20713
20714         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20715         Delete.
20716         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20717         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20718         static.  Add a mode argument.
20719         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20720
20721         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20722
20723         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20724         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20725         (pa_legitimate_constant_p): New function.
20726
20727         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
20728
20729         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
20730         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20731         (pdp11_legitimate_constant_p): New function.
20732
20733         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20734         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20735         (rs6000_legitimate_constant_p): New function.
20736
20737         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20738         (rx_legitimate_constant_p): ...this.
20739         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20740         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20741         (rx_legitimate_constant_p): ...this.
20742         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20743         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20744
20745         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20746         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20747         * config/s390/s390.c (legitimate_constant_p): Rename to...
20748         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
20749         and add a mode argument.
20750         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20751
20752         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20753
20754         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20755         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20756         (sh_legitimate_constant_p): New function.
20757
20758         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20759         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20760         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20761         (legitimate_constant_p): Rename to...
20762         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
20763         argument.
20764         (constant_address_p): Update accordingly.
20765
20766         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20767         argument and return a bool.
20768         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20769         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20770         (spu_legitimate_constant_p): Add a mode argument and return a bool.
20771         (spu_rtx_costs): Update accordingly.
20772         * config/spu/predicates.md (vec_imm_operand): Likewise.
20773
20774         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20775
20776         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20777         * config/v850/v850.c (v850_legitimate_constant_p): New function.
20778         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20779
20780         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20781         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20782         * config/vax/vax.c (legitimate_constant_p): Likewise.
20783
20784         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20785         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20786         (xtensa_legitimate_constant_p): New function.
20787
20788 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20789
20790         * target.def (cannot_force_const_mem): Add a mode argument.
20791         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20792         * doc/tm.texi: Regenerate.
20793         * hooks.h (hook_bool_mode_rtx_false): Declare.
20794         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20795         (hook_bool_mode_const_rtx_true): Likewise.
20796         (hook_bool_mode_rtx_false): New function.
20797         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20798         to be non-VOID.  Update call to cannot_force_const_mem.
20799         (find_reloads): Update accordingly.
20800         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20801         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20802         argument.
20803         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20804         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20805         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20806         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20807         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20808         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20809         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20810         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20811         (m68k_cannot_force_const_mem): ...this new function.
20812         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20813         argument.
20814         (mips_const_insns, mips_legitimize_const_move): Update calls.
20815         (mips_secondary_reload_class): Likewise.
20816         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20817         (pa_cannot_force_const_mem): ...this new function.
20818         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20819         (rs6000_cannot_force_const_mem): ...this new function.
20820         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20821         argument.
20822         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20823         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20824         to...
20825         (xtensa_cannot_force_const_mem): ...this new function.
20826
20827 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20828
20829         * config/mips/mips.c (mips16_build_function_stub): Call
20830         build_function_type_list instead of build_function_type.
20831         (mips16_build_call_stub): Likewise.
20832
20833 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20834
20835         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20836         instead of build_function_type.
20837
20838 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20839
20840         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20841         instead of build_function_type.
20842
20843 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
20844
20845         PR target/48678
20846         * config/i386/i386.md (insv): Change operand 0 constraint to
20847         "register_operand".  Change operand 1 and 2 constraint to
20848         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
20849         * config/i386/sse.md (sse4_1_pinsrb): Export.
20850         (sse2_pinsrw): Ditto.
20851         (sse4_1_pinsrd): Ditto.
20852         (sse4_1_pinsrq): Ditto.
20853         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20854         * config/i386/i386.c (ix86_expand_pinsr): New.
20855
20856 2011-04-20  Easwaran Raman  <eraman@google.com>
20857
20858         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20859         containing union type only with -fstrict-aliasing.
20860
20861 2011-04-20  Jim Meyering  <meyering@redhat.com>
20862
20863         Remove useless if-before-free tests.
20864         * calls.c (expand_call, save_area): Likewise.
20865         * cfgcleanup.c (try_forward_edges): Likewise.
20866         * collect2.c (collect_execute): Likewise.
20867         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20868         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20869         * coverage.c (coverage_checksum_string): Likewise.
20870         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20871         * cselib.c (cselib_init): Likewise.
20872         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20873         (df_set_clean_cfg): Likewise.
20874         * function.c (free_after_compilation): Likewise.
20875         * gcc.c (do_spec_1, main): Likewise.
20876         * gcov.c (create_file_names): Likewise.
20877         * gensupport.c (identify_predicable_attribute): Likewise.
20878         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20879         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20880         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20881         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20882         * ipa-pure-const.c (local_pure_const): Likewise.
20883         * ipa-reference.c (propagate): Likewise.
20884         * ira-costs.c (free_ira_costs): Likewise.
20885         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20886         * matrix-reorg.c (mat_free): Likewise.
20887         * prefix.c (get_key_value): Likewise.
20888         * profile.c (compute_value_histograms): Likewise.
20889         * reload1.c (free_reg_equiv): Likewise.
20890         * sched-deps.c (free_deps): Likewise.
20891         * sel-sched-ir.c (fence_clear): Likewise.
20892         * sese.c (set_rename, if_region_set_false_region): Likewise.
20893         * tree-data-ref.c (free_rdg): Likewise.
20894         * tree-eh.c (lower_try_finally): Likewise.
20895         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20896         * tree-ssa-live.c (delete_var_map): Likewise.
20897         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20898         * tree-ssa-pre.c (phi_trans_add): Likewise.
20899
20900 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
20901
20902         PR tree-optimization/48611
20903         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20904         beyond ERT_MUST_NOT_THROW region.
20905
20906 2011-04-20  Catherine Moore  <clm@codesourcery.com>
20907
20908         * config/mips/mips.opt (mfix-24k): New.
20909         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
20910         * config/mips/mips.md (length): Increase by 4 for stores if
20911         fixing 24K errata.
20912         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
20913         all noreorder if fixing 24K errata.
20914         * doc/invoke.texi: Document mfix-24k.
20915
20916 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
20917
20918         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
20919         quad-word modes, reduce to 9-bit index range when above 1016 limit.
20920
20921 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20922
20923         * config/arm/arm.c (arm_gen_constant): Move movw support ....
20924         (const_ok_for_op): ... to here.
20925
20926 2011-04-20  Kai Tietz  <ktietz@redhat.com>
20927
20928         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
20929         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
20930
20931 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
20932
20933         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
20934
20935 2011-04-20  Richard Guenther  <rguenther@suse.de>
20936
20937         PR tree-optimization/47892
20938         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
20939         are if-convertible.
20940
20941 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
20942
20943         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
20944
20945 2011-04-20  Tristan Gingold  <gingold@adacore.com>
20946
20947         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
20948
20949 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
20950
20951         PR target/18145
20952
20953         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
20954         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
20955         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
20956         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
20957         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
20958
20959         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
20960         New prototype.
20961
20962         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
20963         (avr_asm_named_section, avr_asm_output_aligned_common,
20964         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
20965         New functions to update...
20966         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
20967         (avr_asm_init_sections): Overwrite section callbacks for
20968         data_section, bss_section.
20969         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
20970         from here to...
20971         (avr_file_end): ...here.
20972
20973 2011-04-20  Richard Guenther  <rguenther@suse.de>
20974
20975         PR middle-end/48695
20976         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
20977         objects and types here.  Adjust for their offset before comparing.
20978
20979 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20980
20981         * tree-vect-stmts.c (vectorizable_store): Only chain one related
20982         statement per copy.
20983
20984 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
20985
20986         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
20987         (GIMPLE_H): Include $(INTERNAL_FN_H).
20988         (OBJS-common): Add internal-fn.o.
20989         (internal-fn.o): New rule.
20990         * internal-fn.def: New file.
20991         * internal-fn.h: Likewise.
20992         * internal-fn.c: Likewise.
20993         * gimple.h: Include internal-fn.h.
20994         (GF_CALL_INTERNAL): New gf_mask.
20995         (gimple_statement_call): Put fntype into a union with a new
20996         internal_fn field.
20997         (gimple_build_call_internal): Declare.
20998         (gimple_build_call_internal_vec): Likewise.
20999         (gimple_call_same_target_p): Likewise.
21000         (gimple_call_internal_p): New function.
21001         (gimple_call_internal_fn): Likewise.
21002         (gimple_call_fntype): Return null for internal calls.
21003         (gimple_call_set_fntype): Assert that the function is not internal.
21004         (gimple_call_set_fn): Likewise.
21005         (gimple_call_set_fndecl): Likewise.
21006         (gimple_call_set_internal_fn): New function.
21007         (gimple_call_addr_fndecl): Handle null functions.
21008         (gimple_call_return_type): Likewise null types.
21009         * gimple.c (gimple_build_call_internal_1): New function.
21010         (gimple_build_call_internal): Likewise.
21011         (gimple_build_call_internal_vec): Likewise.
21012         (gimple_call_same_target_p): Likewise.
21013         (gimple_call_flags): Handle calls to internal functions.
21014         (gimple_call_fnspec): New function.
21015         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21016         (gimple_has_side_effects): Handle null functions.
21017         (gimple_rhs_has_side_effects): Likewise.
21018         (gimple_call_copy_skip_args): Handle calls to internal functions.
21019         * cfgexpand.c (expand_call_stmt): Likewise.
21020         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21021         * gimple-fold.c (gimple_fold_call): Handle null functions.
21022         (gimple_fold_stmt_to_constant_1): Don't fold
21023         calls to internal functions.
21024         * gimple-low.c (gimple_check_call_args): Handle calls to internal
21025         functions.
21026         * gimple-pretty-print.c (dump_gimple_call): Likewise.
21027         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21028         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21029         (do_warn_unused_result): Likewise.
21030         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21031         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21032         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21033         the target of a call.
21034         (initialize_hash_element): Update accordingly.
21035         (hashable_expr_equal_p): Use gimple_call_same_target_p.
21036         (iterative_hash_hashable_expr): Handle calls to internal functions.
21037         (print_expr_hash_elt): Likewise.
21038         * tree-ssa-pre.c (can_value_number_call): Likewise.
21039         (eliminate): Handle null functions.
21040         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21041         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21042         (find_func_aliases): Likewise.
21043         * value-prof.c (gimple_ic_transform): Likewise.
21044         (gimple_indirect_call_to_profile): Likewise.
21045         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21046         * lto-streamer-out.c (output_gimple_stmt): Likewise.
21047
21048 2011-04-19  Jan Hubicka  <jh@suse.cz>
21049
21050         * ipa-inline-transform.c (save_inline_function_body): Add comments.
21051         * ipa-inline.c (inline_small_functions): Compute summaries first,
21052         populate heap later.
21053
21054 2011-04-19  Jan Hubicka  <jh@suse.cz>
21055
21056         * cgraph.h (save_inline_function_body): Remove.
21057         * ipa-inline-transform.c: New file, broke out of...
21058         * ipa-inline.c: ... this one; Update toplevel comment.
21059         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21060         make global.
21061         (update_noncloned_frequencies): Move to ipa-inline-transform.c
21062         (cgraph_mark_inline_edge): Rename to inline_call; move to
21063         ipa-inline-transform.c.
21064         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21065         move to ipa-inline-transform.c
21066         (recursive_inlining, inline_small_functions, flatten_function,
21067         ipa_inline, inline_always_inline_functions,
21068         early_inline_small_functions): Update.
21069         (inline_transform): Move to ipa-inline-transform.c.
21070         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21071         Declare.
21072         * Makefile.in (ipa-inline-transform.o): New file.
21073         * cgraphunit.c (save_inline_function_body): Move to
21074         ipa-inline-transform.c
21075
21076 2011-04-19  DJ Delorie  <dj@redhat.com>
21077
21078         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21079         registers if we already know there aren't any.
21080         (m32c_emit_epilogue): Don't emit a barrier here.
21081         (m32c_emit_eh_epilogue): Likewise.
21082         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21083         operands at expand time.
21084         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21085         int" wchar type.
21086         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21087         duplicates.  Provide aliases instead.
21088         * config/m32c/prologue.md (eh_return): Emit a barrier here.
21089         (eh_epilogue): Add a "(return)" here as a hint to other parts of
21090         the compiler.
21091
21092 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
21093
21094         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21095         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21096         (general_or_i64_p, sparc_register_move_cost): New function.
21097
21098 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21099
21100         * doc/install.texi (Configuration, --enable-threads): Remove mach.
21101         Add lynx, mipssde.  Sort table.
21102
21103 2011-04-19  Xinliang David Li  <davidxl@google.com>
21104
21105         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21106         not negative.
21107
21108 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
21109
21110         PR target/48678
21111         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21112         is a SUBREG with non-MODE_INT mode inside of it.
21113
21114 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21115
21116         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21117         also according to actual contants.
21118         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21119         (gimple_fold_call): Use it.
21120         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21121
21122 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21123
21124         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21125         non-pointer assignments.
21126
21127 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21128
21129         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21130         account anc_offset and otr_type from the indirect edge info.
21131         * ipa-prop.c (get_ancestor_addr_info): New function.
21132         (compute_complex_ancestor_jump_func): Assignment analysis moved to
21133         get_ancestor_addr_info, call it.
21134         (ipa_note_param_call): Do not initialize information about polymorphic
21135         calls, return the indirect call graph edge.  Remove the last
21136         parameter, adjust all callers.
21137         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
21138         parameters.  Initialize polymorphic information in the indirect edge.
21139
21140 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21141
21142         PR lto/48148
21143         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
21144         the types if they have different enumeration identifiers.
21145
21146 2011-04-19  Jan Hubicka  <jh@suse.cz>
21147
21148         * cgraph.h (cgraph_optimize_for_size_p): Declare.
21149         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
21150         * predict.c (cgraph_optimize_for_size_p): Break out from ...
21151         (optimize_function_for_size_p) ... here.
21152
21153 2011-04-19  Richard Guenther  <rguenther@suse.de>
21154
21155         PR lto/48207
21156         * tree.c (free_lang_data): Do not reset the decl-assembler-name
21157         langhook.
21158
21159 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21160
21161         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
21162         if DECL_NO_INLINE_WARNING_P is set on the function.
21163
21164 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
21165
21166         PR fortran/47976
21167         * reload1.c (inc_for_reload): Return void. All callers changed.
21168         (emit_input_reload_insns): Don't try to delete previous output
21169         reloads to a register, or record spill_reg_store for autoincs.
21170
21171 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
21172
21173         * gengtype.h: Updated copyright year.
21174         (struct input_file_st): Add inpisplugin field.
21175         (type_fileloc): New function.
21176         * gengtype.c
21177         (write_typed_struct_alloc_def): Add gcc_assert.
21178         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
21179         (write_typed_alloc_defns): Don't output for plugin files.
21180         (input_file_by_name): Clear inpisplugin field.
21181         (main): Set inpisplugin field for plugin files.
21182
21183 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
21184
21185         * gengtype-state.c (string_eq): New.
21186         (read_state): Use string_eq instead of strcmp when creating the
21187         state_ident_tab.
21188
21189 2011-04-19  Wei Guozhi  <carrot@google.com>
21190
21191         PR target/47855
21192         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
21193         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
21194         linkage.
21195         * config/arm/constraints.md (Uu): New constraint.
21196         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
21197
21198 2011-04-19  Tristan Gingold  <gingold@adacore.com>
21199
21200         * config.gcc (-*-*-*vms): Added.
21201         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
21202         definitions moved.
21203         * config/vms/vms-ld.c: New file.
21204         * config/vms/vms-ar.c: New file.
21205         * config/vms/t-vmsnative: New file.
21206
21207 2011-04-18  Xinliang David Li  <davidxl@google.com>
21208
21209         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
21210
21211 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21212
21213         PR middle-end/48661
21214         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
21215         if TREE_TYPE (v) is non-NULL.
21216
21217         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
21218         gimple_get_virt_mehtod_for_binfo.
21219         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
21220         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
21221         callers.
21222         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21223
21224 2011-04-18  Michael Matz  <matz@suse.de>
21225             Steve Ellcey  <sje@cup.hp.com>
21226
21227         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
21228         use its mode as source mode if it isn't VOIDmode.
21229
21230 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
21231
21232         * doc/passes.texi: Fill crossref nodes.
21233
21234 2011-04-18  Jim Meyering  <meyering@redhat.com>
21235
21236         Fix doubled-word typos in comments and strings
21237         * config/alpha/vms-unwind.h: s/for for/for/
21238         * config/arm/unwind-arm.h: Likewise.
21239         * config/microblaze/microblaze.c: Likewise.
21240         * config/sh/constraints.md: s/in in/in/
21241         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
21242
21243 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
21244
21245         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
21246         (AVX_FLOAT_MODE_P): Ditto.
21247         (AVX128_VEC_FLOAT_MODE_P): Ditto.
21248         (AVX256_VEC_FLOAT_MODE_P): Ditto.
21249         (AVX_VEC_FLOAT_MODE_P): Ditto.
21250         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
21251         (UNSPEC_MASKSTORE): Ditto.
21252         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
21253         Merge from <sse>_movmsk<ssemodesuffix> and
21254         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
21255         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
21256         iterator.
21257         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
21258         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
21259         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
21260
21261 2011-04-18  Jan Hubicka  <jh@suse.cz>
21262
21263         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
21264
21265         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
21266         (want_inline_function_called_once_p): Break out the logic from
21267         ipa_inline.
21268         (edge_badness): Ensure that profile is not misupdated.
21269         (lookup_recursive_calls): Prioritize by call frequencies.
21270         (inline_small_functions): Move program size estimates here;
21271         actually process whole queue even when unit growth has been
21272         met. (to properly compute inline_failed reasons and for the
21273         case unit size decrease.) Revisit comments on recursive inlining.
21274         (ipa_inline): Remove unit summary code; first inline hot calls
21275         of functions called once, cold calls next.
21276         (order, nnodes): Remove unused variables.
21277         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
21278         (GTFILES): Remove ipa-inline.c
21279         * sel-sched.c (fill_insns): Silence uninitialized var warning.
21280
21281 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21282
21283         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21284
21285 2011-04-18  Jie Zhang  <jie@codesourcery.com>
21286             Richard Earnshaw  <rearnsha@arm.com>
21287
21288         * arm.c (neon_builtin_type_bits): Remove.
21289         (typedef enum neon_builtin_mode): New.
21290         (T_MAX): Don't define.
21291         (typedef enum neon_builtin_datum): Remove bits, codes[],
21292         num_vars and base_fcode.  Add mode, code and fcode.
21293         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21294         VAR10): Change accordingly.
21295         (neon_builtin_data[]): Change accordingly
21296         (arm_init_neon_builtins): Change accordingly.
21297         (neon_builtin_compare): Remove.
21298         (locate_neon_builtin_icode): Remove.
21299         (arm_expand_neon_builtin): Change accordingly.
21300
21301         * arm.h (enum arm_builtins): Move to ...
21302         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21303
21304         * arm.c (arm_builtin_decl): Declare.
21305         (TARGET_BUILTIN_DECL): Define.
21306         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21307         (arm_builtin_decls[]): New.
21308         (arm_init_neon_builtins): Store builtin declarations in
21309         arm_builtin_decls[].
21310         (arm_init_tls_builtins): Likewise.
21311         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
21312         (arm_builtin_decl): New.
21313
21314 2011-04-18  Richard Guenther  <rguenther@suse.de>
21315
21316         * tree.c (upper_bound_in_type): Build properly canonicalized
21317         INTEGER_CSTs.
21318         (lower_bound_in_type): Likewise.
21319
21320 2011-04-18  Richard Guenther  <rguenther@suse.de>
21321
21322         * gimple.h (gimple_call_addr_fndecl): New function.
21323         (gimple_call_fndecl): Use it.
21324         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21325         for direct calls.
21326         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21327         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21328
21329 2011-04-18  Richard Guenther  <rguenther@suse.de>
21330
21331         PR middle-end/48650
21332         * tree.c (build_string): STRING_CST is now derived from tree_typed.
21333
21334 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21335
21336         PR lto/48492
21337         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21338         DECL_IN_CONSTANT_POOL without RTL.
21339
21340 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
21341             Ira Rosen  <ira.rosen@linaro.org>
21342
21343         PR target/48252
21344         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21345         to match neon_vzip/vuzp/vtrn_internal.
21346         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21347         outputs explicitly dependent on both inputs.
21348         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21349
21350 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21351
21352         PR tree-optimization/48616
21353         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21354         whether the shift is by scalar or vector based on whether all SLP
21355         scalar stmts have the same rhs.
21356
21357 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
21358
21359         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21360         memory operands.
21361
21362 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
21363
21364         PR target/43700
21365         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21366         registers.
21367
21368 2011-04-17  Jan Hubicka  <jh@suse.cz>
21369
21370         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21371         * cgrpahunit.c (cgraph_finalize_function): Do not set
21372         finalized_by_frontend.
21373         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21374         finalized_by_frontend.
21375
21376 2011-04-17  Jan Hubicka  <jh@suse.cz>
21377
21378         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21379         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21380         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21381         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21382         method.
21383         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21384         gimple-fold.c
21385         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21386
21387 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21388
21389         PR lto/48538
21390         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21391         is non-null before accessing it.
21392         (input_cgraph): Remove trailing spaces.
21393
21394 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21395
21396         * params.def (sms-min-sc): New param flag.
21397         * modulo-sched.c (sms_schedule): Use it.
21398         * doc/invoke.texi (sms-min-sc): Document it.
21399
21400 2011-04-17  Jan Hubicka  <jh@suse.cz>
21401
21402         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21403         present, also set gimple_call_set_cannot_inline.
21404         * ipa-inline.c: Update toplevel comment.
21405         (MAX_TIME): Remove.
21406         (cgraph_clone_inlined_nodes): Fix linebreaks.
21407         (cgraph_check_inline_limits): Restructure to ...
21408         (caller_growth_limits): ... this one; be more tolerant
21409         on growth in nested inline chains; add explanatory comment;
21410         fix stack accounting thinko introduced by previous patch.
21411         (cgraph_default_inline_p): Remove.
21412         (report_inline_failed_reason): New function.
21413         (can_inline_edge_p): New function.
21414         (can_early_inline_edge_p): New function.
21415         (leaf_node_p): Move upwards in file.
21416         (want_early_inline_function_p): New function.
21417         (want_inline_small_function_p): New function.
21418         (want_inline_self_recursive_call_p): New function.
21419         (cgraph_edge_badness): Rename to ...
21420         (edge_badness) ... this one; fix linebreaks.
21421         (update_edge_key): Update call of edge_baddness; add
21422         detailed dump about queue updates.
21423         (update_caller_keys): Use can_inline_edge_p and
21424         want_inline_small_function_p.
21425         (cgraph_decide_recursive_inlining): Rename to...
21426         (recursive_inlining): Use can_inline_edge_p and
21427         want_inline_self_recursive_call_p; simplify and remove no longer
21428         valid FIXME.
21429         (cgraph_set_inline_failed): Remove.
21430         (add_new_edges_to_heap): Use can_inline_edge_p and
21431         want_inline_small_function_p.
21432         (cgraph_decide_inlining_of_small_functions): Rename to ...
21433         (inline_small_functions): ... this one; cleanup; use
21434         can/want predicates; cleanup debug ouput; work edges till fibheap
21435         is exhausted and do not stop once unit growth is reached; remove
21436         later loop processing remaining edges.
21437         (cgraph_flatten): Rename to ...
21438         (flatten_function): ... this one; use can_inline_edge_p
21439         and can_early_inline_edge_p predicates.
21440         (cgraph_decide_inlining): Rename to ...
21441         (ipa_inline): ... this one; remove unreachable nodes before
21442         inlining functions called once; simplify the pass.
21443         (cgraph_perform_always_inlining): Rename to ...
21444         (inline_always_inline_functions): ... this one; use
21445         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21446         (cgraph_decide_inlining_incrementally): Rename to ...
21447         (early_inline_small_functions): ... this one; simplify
21448         using new predicates; cleanup; make dumps prettier.
21449         (cgraph_early_inlining): Rename to ...
21450         (early_inliner): newer inline regular functions into always-inlines;
21451         fix updating of call stmt summaries.
21452         (pass_early_inline): Update for new names.
21453         (inline_transform): Fix formating.
21454         (gate_cgraph_decide_inlining): Rename to ...
21455         (pass_ipa_inline): ... this one.
21456         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21457         * ipa-inline-analysis.c (dump_inline_summary): Update.
21458         (compute_inline_parameters): Do not compute disregard_inline_limits;
21459         look for mismatching arguments.
21460         (estimate_growth): Fix handlig of non-trivial self recursion.
21461         (inline_read_summary): Do not read info->disregard_inline_limits.
21462         (inline_write_summary): Do not write info->disregard_inline_limits.
21463         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21464         and move all checks into can_inline_edge_p predicate; re-enable code
21465         comparing optimization levels.
21466         (expand_call_inline): Do not test inline_forbidden_into_p.
21467         * Makefile.in (ipa-inline.o): Update arguments.
21468
21469 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21470
21471         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21472
21473 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21474
21475         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21476
21477 2011-04-17  Michael Matz  <matz@suse.de>
21478
21479         PR tree-optimization/48622
21480         PR lto/48645
21481         * ipa-inline-analysis.c (inline_read_summary): Read size/time
21482         in same order as they're written.
21483
21484 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21485
21486         * config/pa/predicates.md: Reorganize and simplify predicates.
21487         Eliminate duplicate code checks.
21488         (arith_operand): Rename to arith14_operand
21489         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21490         * config/pa/pa.md: Use renamed operands.
21491         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21492         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21493         arith11_operand, adddi3_operand, indexed_memory_operand,
21494         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21495         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21496         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21497         move_dest_operand, move_src_operand, prefetch_cc_operand,
21498         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21499         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21500         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21501         div_operand, int5_operand, movb_comparison_operator,
21502         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21503         arith_double_operand, ireg_operand, lhs_lshift_operand,
21504         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21505         integer_store_memory_operand): Likewise.
21506         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21507         (integer_store_memory_operand, read_only_operand,
21508         function_label_operand, borx_reg_operand,
21509         non_hard_reg_operand): Likewise.
21510         (eq_neq_comparison_operator): Delete unused operator.
21511         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21512         function_label_operand.
21513         (emit_move_sequence): Likewise.
21514
21515 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21516
21517         * config/i386/sse.md (sseunpackmode): New mode attribute.
21518         (ssepackmode): Ditto.
21519         (vec_pack_trunc_<mode>): Macroize expander from
21520         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21521         (vec_unpacks_lo_<mode>): Macroize expander from
21522         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21523         (vec_unpacks_hi_<mode>): Macroize expander from
21524         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21525         (vec_unpacku_lo_<mode>): Macroize expander from
21526         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21527         (vec_unpacku_hi_<mode>): Macroize expander from
21528         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21529         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21530         ix86_expand_sse4_unpack.
21531         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21532
21533 2011-04-16  Jan Hubicka  <jh@suse.cz>
21534
21535         * cgraphbuild.c: Include ipa-inline.h.
21536         (reset_inline_failed): Use initialize_inline_failed.
21537         * cgraph.c: Include ipa-inline.h.
21538         (cgraph_create_node_1): Do not initialize estimated_growth.
21539         (initialize_inline_failed): More to ipa-inline-analysis.c
21540         (dump_cgraph_node): Do not dump inline flags.
21541         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21542         and disregard_inline_limits flags.
21543         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21544         time, size, estimated_growth.
21545         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21546         Update.
21547         * cgraphunit.c (cgraph_decide_is_function_needed): Use
21548         DECL_DISREGARD_INLINE_LIMITS.
21549         (cgraph_analyze_function): Do not initialize
21550         node->local.disregard_inline_limits.
21551         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21552         inlinable, versionable and disregard_inline_limits.
21553         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21554         cgraph_check_inline_limits, cgraph_default_inline_p,
21555         cgraph_edge_badness, update_caller_keys, update_callee_keys,
21556         add_new_edges_to_heap): Update.
21557         (cgraph_decide_inlining_of_small_function): Update; set
21558         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21559         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21560         cgraph_decide_inlining_incrementally): Update.
21561         * ipa-inline.h (inline_summary): Add inlinable, versionable,
21562         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21563         time, size and estimated_growth parameters.
21564         (estimate_edge_growth): Update.
21565         (initialize_inline_failed): Declare.
21566         * ipa-split.c: Include ipa-inline.h
21567         (execute_split_functions): Update.
21568         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21569         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21570         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21571         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21572         estimated_growth to INT_MIN.
21573         (inline_node_duplication_hook): Likewise.
21574         (dump_inline_summary): Dump new fields.
21575         (compute_inline_parameters): Update.
21576         (estimate_edge_time, estimate_time_after_inlining,
21577         estimate_size_after_inlining, estimate_growth, inline_read_summary,
21578         inline_write_summary):
21579         (initialize_inline_failed): Move here from cgraph.c.
21580         * tree-sra.c: Include ipa-inline.h.
21581         (ipa_sra_preliminary_function_checks): Update.
21582         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21583         ipa-inline.h.
21584
21585 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21586
21587         * config/i386/sse.md (V16): New mode iterator.
21588         (VI1, VI8): Ditto.
21589         (AVXMODEQI, AVXMODEDI): Remove.
21590         (sse2, sse3): New mode attribute.
21591         (mov<mode>): Use V16 mode iterator.
21592         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21593         (push<mode>1): Use V16 mode iterator.
21594         (movmisalign<mode>): Ditto.
21595         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21596         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21597         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21598         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21599         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21600         avx_movdqu<avxmodesuffix>.
21601         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21602         *avx_movdqu<avxmodesuffix>.
21603         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21604         avx_lddqu<avxmodesuffix>.
21605         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21606         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21607         avx_movnt<AVXMODEDI:mode>.
21608         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21609         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21610
21611 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
21612
21613         PR target/48629
21614         * haifa-sched.c (prune_ready_list, schedule_block): Use
21615         sched_pressure_p rather than flag_sched_pressure.
21616
21617 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
21618
21619         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21620         cgraph_get_node instead of cgraph_get_create_node.
21621
21622 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
21623
21624         * cfgexpand.c (expand_debug_expr): Use
21625         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21626
21627 2011-04-15  Michael Matz  <matz@suse.de>
21628
21629         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21630         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21631         * function.c (gimplify_parameters): Ditto.
21632         * gimplify.c (gimplify_vla_decl): Ditto.
21633
21634         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21635         (gimple_call_set_alloca_for_var): New inline function.
21636         (gimple_call_alloca_for_var_p): Ditto.
21637         * gimple.c (gimple_build_call_from_tree): Remember
21638         CALL_ALLOCA_FOR_VAR_P state.
21639         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21640
21641         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21642         calls if they were for VLA objects.
21643
21644 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21645
21646         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21647         of ADR_EXPRs.
21648
21649 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21650
21651         PR middle-end/48601
21652         * tree-emutls.c (lower_emutls_function_body): Call
21653         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
21654         result is non-NULL.
21655
21656 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
21657
21658         * c-decl.c (detect_field_duplicates): Call
21659         objc_detect_field_duplicates instead of objc_get_interface_ivars.
21660
21661 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
21662
21663         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21664         * gimple.c (gimple_asm_clobbers_memory_p): Define.
21665         * ipa-pure-const.c (check_stmt): Call it.
21666         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21667
21668 2011-04-15  Richard Guenther  <rguenther@suse.de>
21669
21670         PR tree-optimization/48290
21671         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21672         Properly decide inhibiting propagation based on the valueized
21673         operand.  Do loop-closed SSA form preserving here ...
21674         (init_copy_prop): ... not here.
21675
21676 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
21677
21678         PR target/48612
21679         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21680         (*ieee_smax<mode>3): Likewise.
21681
21682 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21683
21684         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21685         Replace match_operand with match_dup for the third operand in
21686         these expanders.
21687
21688 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21689
21690         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21691         to track processing of conditionals.  Update all callers.
21692         (try_combine, simplify_if_then_else): Update.
21693
21694 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21695
21696         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21697         -fsched-pressure.
21698
21699 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
21700
21701         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21702         instead of match_operand for operand 3.
21703
21704 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
21705
21706         * recog.h (insn_operand_data): Add an "allows_mem" field.
21707         * genoutput.c (output_operand_data): Initialize it.
21708         * optabs.c (maybe_legitimize_operand_same_code): New function.
21709         (maybe_legitimize_operand): Use it when matching the original
21710         op->value.
21711
21712 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21713
21714         * gimplify.c: Fix issues in comments throughout.
21715         (voidify_wrapper_expr): Fix long line.
21716         (build_stack_save_restore): Likewise.
21717         (gimplify_loop_expr): Likewise.
21718         (gimplify_compound_lval): Likewise.
21719         (gimplify_init_ctor_eval): Likewise.
21720         (gimplify_modify_expr_rhs): Likewise.
21721         (omp_notice_threadprivate_variable): Likewise.
21722
21723 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21724
21725         * cfgexpand.c (expand_call_stmt): Convert the function type to the
21726         original one if this is not a builtin function.
21727
21728 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
21729
21730         PR target/48605
21731         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21732         offset it as needed based on top 2 bits in operands[3], change
21733         MEM mode to SFmode and mask those 2 bits away from operands[3].
21734
21735 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21736
21737         * c-parser.c (c_parser_objc_protocol_definition): Updated for
21738         change from objc_declare_protocols() to objc_declare_protocol().
21739
21740 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
21741
21742         * config/i386/sse.md (sse4_1): New mode attribute.
21743         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21744         avx_blend<ssemodesuffix><avxmodesuffix> and
21745         sse4_1_blend<ssemodesuffix> using VF mode iterator.
21746         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21747         avx_blendv<ssemodesuffix><avxmodesuffix> and
21748         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21749         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21750         avx_dp<ssemodesuffix><avxmodesuffix> and
21751         sse4_1_dp<ssemodesuffix> using VF mode iterator.
21752         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21753         (sse4_1_packusdw): Merge with *avx_packusdw.
21754         (sse4_1_pblendvb): Merge with *avx_pblendvb.
21755         (sse4_1_pblendw): Merge with *avx_pblendw.
21756         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21757         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21758         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21759         VF mode iterator.
21760         (sse4_1_round<ssescalarmodesuffix>): Merge with
21761         *avx_round<ssescalarmodesuffix>.
21762         (aesenc): Merge with *avx_aesenc.
21763         (aesenclast): Merge with *avx_aesenclast.
21764         (aesdec): Merge with *avx_aesdec.
21765         (aesdeclast): Merge with *avx_aesdeclast.
21766         (pclmulqdq): Merge with *pclmulqdq.
21767         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21768         New predicate.
21769         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21770
21771 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21772
21773         PR middle-end/48608
21774         * cfgexpand.c (get_decl_align_unit): Renamed to ...
21775         (align_local_variable): This.  Update DECL_ALIGN.
21776         (add_stack_var): Updated.
21777         (expand_one_stack_var): Likewise.
21778
21779 2011-04-14  Richard Guenther  <rguenther@suse.de>
21780
21781         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21782         Remove.
21783         (dse_initialize_block_local_data, dse_leave_block,
21784         record_voperand_set, get_stmt_uid): Likewise.
21785         (dse_possible_dead_store_p): Allow any kind of killing stmt.
21786         (dse_optimize_stmt): Remove voperand set handling code.
21787         Simplify and improve to handle any kind of killing stmt.
21788         (dse_record_phi): Remove.
21789         (dse_enter_block): Simplify.
21790         (tree_ssa_dse): Likewise.
21791         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21792
21793 2011-04-14  Jan Hubicka  <jh@suse.cz>
21794
21795         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21796         * cgraph.h (struct inline_summary): Move to ipa-inline.h
21797         (cgraph_local_info): Remove inline_summary.
21798         * ipa-cp.c: Include ipa-inline.h.
21799         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21800         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21801         accesor.
21802         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21803         (input_overwrite_node): Do not set inline summary.
21804         (input_node): Do not stream inline summary.
21805         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21806         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21807         growth; we do not have inline parameters computed for that anyway.
21808         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21809         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21810         (inline_summary_t): New type and VECtor.
21811         (debug_inline_summary, dump_inline_summaries): Declare.
21812         (inline_summary): Use VOCtor.
21813         (estimate_edge_growth): Kill hack computing call stmt size directly.
21814         * lto-section-in.c (lto_section_name): Add inline section.
21815         * ipa-inline-analysis.c: Include lto-streamer.h
21816         (node_removal_hook_holder, node_duplication_hook_holder): New holders
21817         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21818         (inline_summary_vec): Define.
21819         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21820         dump_inline_summaries): New functions.
21821         (estimate_function_body_sizes): Properly compute size/time of outgoing
21822         calls.
21823         (compute_inline_parameters): Alloc inline_summary; do not compute
21824         size/time of incomming calls.
21825         (estimate_edge_time): Avoid missing time summary hack.
21826         (inline_read_summary): Read inline summary info.
21827         (inline_write_summary): Write inline summary info.
21828         (inline_free_summary): Free all hooks and inline summary vector.
21829         * lto-streamer.h: Add LTO_section_inline_summary section.
21830         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21831         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21832
21833 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21834
21835         * tree-vectorizer.h (vect_strided_store_supported): Add a
21836         HOST_WIDE_INT argument.
21837         (vect_strided_load_supported): Likewise.
21838         (vect_permute_store_chain): Return void.
21839         (vect_transform_strided_load): Likewise.
21840         (vect_permute_load_chain): Delete.
21841         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21842         count argument.  Check that the count is a power of two.
21843         (vect_strided_load_supported): Likewise.
21844         (vect_permute_store_chain): Return void.  Update after above changes.
21845         Assert that the access is supported.
21846         (vect_permute_load_chain): Likewise.
21847         (vect_transform_strided_load): Return void.
21848         * tree-vect-stmts.c (vectorizable_store): Update calls after
21849         above interface changes.
21850         (vectorizable_load): Likewise.
21851         (vect_analyze_stmt): Don't check for strided powers of two here.
21852
21853 2011-04-14  Richard Guenther  <rguenther@suse.de>
21854
21855         PR tree-optimization/48590
21856         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21857         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21858         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21859         BUILT_IN_STACK_SAVE.
21860         * tree-ssa-dce.c (propagate_necessity): Handle
21861         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21862
21863 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21864
21865         * c-parser.c (c_parser_objc_class_declaration): Updated call to
21866         objc_declare_class.
21867
21868 2011-04-14  Richard Guenther  <rguenther@suse.de>
21869
21870         * tree.h (get_object_alignment_1): Declare.
21871         * builtins.c (get_object_alignment_1): Split out worker from ...
21872         (get_object_alignment): ... here.
21873         * fold-const.c (get_pointer_modulus_and_residue): Use
21874         get_object_alignment_1.
21875
21876 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21877
21878         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21879         type parameter.
21880         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21881         parameter.  Generalise code to handle arrays as well as vectors.
21882         (vect_setup_realignment): Update accordingly.
21883         * tree-vect-stmts.c (vectorizable_store): Likewise.
21884         (vectorizable_load): Likewise.
21885
21886 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21887
21888         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21889         within the per-copy loop.
21890
21891 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21892
21893         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21894         in the dump file.
21895
21896 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21897
21898         * doc/options.texi (Negative): Explicitly mention that the
21899         Negative chain must be circular.
21900
21901 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
21902
21903         * function.h (block_chainon): Declare.
21904         * function.c (block_chainon): Define.
21905
21906 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
21907             Eric Weddington  <eric.weddington@atmel.com>
21908             Georg-Johann Lay  <avr@gjlay.de>
21909
21910         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
21911         New Includes
21912         (avr_init_builtins, avr_expand_builtin,
21913         avr_expand_delay_cycles, avr_expand_unop_builtin,
21914         avr_expand_binop_builtin ): New functions.
21915         (avr_builtin_id): New enum
21916         (struct avr_builtin_description): New struct
21917         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
21918         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
21919
21920         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
21921         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
21922         UNSPECV_DELAY_CYCLES): new enumeration values
21923         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
21924         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
21925         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21926         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
21927         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
21928         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
21929         "fmulsu"): New insns
21930
21931         * config/avr/avr-c.c: fix line endings
21932         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
21933         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
21934         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
21935         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
21936         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
21937
21938         * doc/extend.texi (AVR Built-in Functions): New node
21939         (Target Builtins): Add documentation of AVR
21940         built-in functions.
21941
21942 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
21943
21944         PR target/44643
21945         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
21946         alone. Error if non-const data has attribute progmem.
21947
21948 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21949
21950         * tree.h (struct tree_constructor): Include tree_typed instead of
21951         tree_common.
21952         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
21953         TS_TYPED instead of TS_COMMON.
21954
21955 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
21956
21957         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
21958         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
21959         (sse2_psadbw): Merge with *avx_psadbw.
21960         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
21961         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
21962         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
21963         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
21964         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
21965         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
21966         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
21967         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
21968         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
21969         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
21970         (ssse3_palignrti): Merge with *avx_palignrti.
21971
21972 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21973
21974         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
21975         * tree-ssanames.c (fini_ssanames): VEC_free it.
21976         (make_ssa_name_fn): Update for VECness of free_ssanames.
21977         (release_ssa_name, release_dead_ssa_names): Likewise.
21978         * tree.h (struct tree_ssa_name): Include tree_typed instead of
21979         tree_common.
21980         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
21981         TS_TYPED instead of TS_COMMON.
21982
21983 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
21984
21985         * postreload-gcse.c (gcse_after_reload_main): Add calls to
21986         statistics_counter_event.
21987         * tree-ssa-copyrename.c (stats): Define.
21988         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
21989         statistics_counter_event.
21990         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
21991         (bswap_stats, widen_mul_stats): Define.
21992         (insert_reciprocals): Increment rdivs_inserted.
21993         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
21994         rfuncs_inserted.  Add calls to statistics_counter_event.
21995         (execute_cse_sincos_1): Increment inserted.
21996         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
21997         statistics_counter_event.
21998         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
21999         of bswap_stats.  Add calls to statistics_counter_event.
22000         (convert_mult_to_widen): Increment widen_mults_inserted.
22001         (convert_plusminus_to_widen): Increment maccs_inserted.
22002         (convert_mult_to_fma): Increment fmas_inserted.
22003         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
22004         calls to statistics_counter_event.
22005
22006 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22007
22008         PR rtl-optimization/48455
22009         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22010         `temp_costs->mem_cost'.
22011
22012 2011-04-13  Jan Hubicka  <jh@suse.cz>
22013
22014         * ipa-inline.h: New file.
22015         * ipa-inline-analysis.c: New file. Broken out of ...
22016         * ipa-inline.c: ... this file; update toplevel comment;
22017         include ipa-inline.h
22018         (inline_summary): Move to ipa-inline.h
22019         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22020         ipa-inline-analysis.c.
22021         (cgraph_estimate_time_after_inlining): Rename to
22022         estiamte_time_after_inlining; move to ipa-inline-analysis.c
22023         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22024         to estimate_edge_growth.
22025         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22026         rename to estimate_size_after_inlining.
22027         (cgraph_mark_inline_edge): Update for new naming convention.
22028         (cgraph_check_inline_limits): Likewise.
22029         (cgraph_edge_badness): Likewise.
22030         (cgraph_decide_recursive_inlining): Likewise.
22031         (cgraph_decide_inlining_of_small_functions): Likewise.
22032         (cgraph_decide_inlining_incrementally): Likewise.
22033         (cgraph_estimate_growth): Rename to estimate_growth; move to
22034         ipa-inline-analysis.c.
22035         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22036         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22037         (compute_inline_parameters): Likewise.
22038         (compute_inline_parameters_for_current): Likewise.
22039         (pass_inline_parameters): Likewise.
22040         (inline_indirect_intraprocedural_analysis): Likewise.
22041         (analyze_function): Rename to inline_analyze_function; likewise.
22042         (add_new_function): Move to ipa-inline-analysis.c.
22043         (inline_generate_summary): Likewise.
22044         (inline_read_summary): Likewise.
22045         (inline_write_summary): Likewise.
22046         * Makefile.in (ipa-inline-analysis.c): New file.
22047
22048 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22049
22050         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22051         * configure: Regenerate.
22052
22053 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22054
22055         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22056         instead of tree_common.
22057         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22058         Likewise.
22059         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22060         TS_TYPED rather than TS_COMMON.
22061         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22062
22063 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
22064
22065         PR target/45263
22066         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22067         r20 around calls of __tablejump_elpm__
22068
22069 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
22070
22071         PR middle-end/48591
22072         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22073         NULL.
22074         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22075
22076 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
22077
22078         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22079         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22080         (cfi_vec): New typedef.
22081         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22082         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22083         (cie_cfi_vec): New static variable.
22084         (cie_cfi_head): Delete.
22085         (add_cfi): Accept a cfi_vec * as first argument. All callers and
22086         declaration changed. Use vector rather than list operations.
22087         (new_cfi): Don't initialize the dw_cfi_next field.
22088         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22089         rather than list operations.
22090         (lookup_cfa): Use vector rather than list operations.
22091         (output_cfis): New argument upto. Accept a cfi_vec rather than
22092         a dw_cfi_ref list head as argument. All callers changed.
22093         Iterate over the vector using upto as a maximum index.
22094         (output_all_cfis): New static function.
22095         (output_fde): Use vector rather than list operations. Use the
22096         new upto argument for output_cfis rather than manipulating a
22097         list.
22098         (dwarf2out_begin_prologue): Change initializations to match
22099         new struct members.
22100         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22101         from the vector length rather than searching for the end of a list.
22102         Use output_all_cfis.
22103         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22104
22105 2011-04-13  Nick Clifton  <nickc@redhat.com>
22106
22107         * config/rx/rx.md (movmemsi): Do not use this pattern when
22108         volatile pointers are involved.
22109
22110 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22111
22112         * config/i386/sse.md (pinsrbits): Remove.
22113         (sse2_packsswb): Merge with *avx_packsswb.
22114         (sse2_packssdw): Merge with *avx_packssdw.
22115         (sse2_packuswb): Merge with *avx_packuswb.
22116         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22117         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22118         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22119         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22120         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22121         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22122         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22123         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22124         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22125         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22126         (sse2_loadld): Merge with *avx_loadld.
22127         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22128         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22129         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22130         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22131         (vec_concatv2di): Merge with *vec_concatv2di_avx.
22132
22133 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
22134
22135         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22136         calling TREE_CHAIN.
22137         * print-tree.c (print_node): Likewise.
22138         * tree-inline.c (copy_tree_r): Likewise.
22139         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
22140         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
22141         instead of TS_COMMON.
22142         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
22143         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
22144         (copy_node_stat): Zero TREE_CHAIN only if necessary.
22145         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
22146         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
22147         ...and these...
22148         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
22149         * tree.h: ...here.
22150         (TREE_CHAIN): Check for a TS_COMMON structure.
22151         (TREE_TYPE): Check for a TS_TYPED structure.
22152
22153 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
22154
22155         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22156         cgraph_get_create_node instead of cgraph_node.
22157
22158 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22159
22160         * c-parser.c (c_parser_initelt): Updated call to
22161         objc_build_message_expr.
22162         (c_parser_postfix_expression): Likewise.
22163
22164 2011-04-12  Kai Tietz  <ktietz@redhat.com>
22165
22166         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
22167         MASK_MS_BITFIELD_LAYOUT bit.
22168
22169 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22170
22171         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
22172         assert it is always true.
22173         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
22174         moves.
22175
22176 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22177
22178         * c-parser.c (c_lex_one_token): Rewritten conditional used when
22179         compiling Objective-C to be more efficient.
22180
22181 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
22182
22183         * opts-common.c (decode_cmdline_options_to_array): Remove variable
22184         argv_copied.
22185
22186 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22187
22188         * recog.h, genoutput.c, optabs.c: Revert last patch.
22189
22190 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22191
22192         PR target/48090
22193         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
22194
22195 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22196
22197         * recog.h (insn_operand_data): Add an "allows_mem" field.
22198         * genoutput.c (output_operand_data): Initialize it.
22199         * optabs.c (maybe_legitimize_operand_same_code): New function.
22200         (maybe_legitimize_operand): Use it when matching the original
22201         op->value.
22202
22203 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22204
22205         * genpreds.c (process_define_predicate): Move most processing
22206         to gensupport.c.  Continue to validate the expression.
22207         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
22208         (process_define_predicate): Move processing to gensupport.c.
22209         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
22210         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
22211         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
22212         argument.
22213         (valid_predicate_name_p): New function, split out from old
22214         genpreds.c:process_define_predicate.
22215         (process_define_predicate): New function, combining code from
22216         old genpreds.c and genrecog.c functions.
22217         (process_rtx): Call it for DEFINE_PREDICATE and
22218         DEFINE_SPECIAL_PREDICATE.
22219
22220 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22221
22222         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
22223         size of a '%A' memory reference.
22224         (T_DREG, T_QREG): New neon_builtin_type_bits.
22225         (arm_init_neon_builtins): Assert that the load and store operands
22226         are neon_struct_operands.
22227         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
22228         (NEON_ARG_MEMORY): New builtin_arg.
22229         (neon_dereference_pointer): New function.
22230         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
22231         Handle NEON_ARG_MEMORY.
22232         (arm_expand_neon_builtin): Update after above interface changes.
22233         Use NEON_ARG_MEMORY for loads and stores.
22234         * config/arm/predicates.md (neon_struct_operand): New predicate.
22235         * config/arm/iterators.md (V_two_elem): Tweak formatting.
22236         (V_three_elem): Use BLKmode for accesses that have no associated mode.
22237         (V_four_elem): Tweak formatting.
22238         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
22239         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
22240         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
22241         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
22242         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
22243         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
22244         (neon_vst4<mode>): Replace pointer operand with a memory operand.
22245         Use %A in the output template.
22246         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
22247         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
22248         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
22249         the width of the memory access.  Remove post-increment.
22250         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
22251
22252 2011-04-12  Nick Clifton  <nickc@redhat.com>
22253
22254         * config/v850/v850.c (expand_prologue): Do not use the CALLT
22255         instruction for interrupt handlers if the target is the basic V850
22256         architecture.
22257         (expand_epilogue): Likewise.
22258
22259 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22260
22261         PR rtl-optimization/48549
22262         * combine.c (propagate_for_debug): Also stop after BB_END of
22263         this_basic_block.  Process LAST and just stop processing after it.
22264         (combine_instructions): If last_combined_insn has been deleted,
22265         set last_combined_insn to its PREV_INSN.
22266
22267 2011-04-12  Richard Guenther  <rguenther@suse.de>
22268
22269         PR tree-optimization/46076
22270         * gimple.h (struct gimple_statement_call): Add fntype field.
22271         (gimple_call_fntype): Adjust.
22272         (gimple_call_set_fntype): New function.
22273         * gimple.c (gimple_build_call_1): Set the call function type.
22274         * gimplify.c (gimplify_call_expr): Preserve the function
22275         type the frontend used for the call.
22276         (gimplify_modify_expr): Likewise.
22277         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
22278         function type.
22279         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
22280         function type.
22281         * tree-ssa.c (useless_type_conversion_p): Function pointer
22282         conversions are useless.
22283
22284 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22285
22286         * cgraph.h (cgraph_node): Remove function declaration.
22287         (cgraph_create_node): Declare.
22288         (cgraph_get_create_node): Likewise.
22289         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22290         Updated all callers.
22291         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22292         the decl does not already exist.  Call cgraph_get_create_node instead
22293         of cgraph_node.
22294         (cgraph_get_create_node): New function.
22295         (cgraph_same_body_alias): Update comment.
22296         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22297         assert it does not return NULL.
22298         (cgraph_update_edges_for_call_stmt): Likewise.
22299         (cgraph_clone_edge): Likewise.
22300         (cgraph_create_virtual_clone): Likewise.
22301         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22302         instead of cgraph_node.
22303         (cgraph_add_new_function): Call cgraph_create_node or
22304         cgraph_get_create_node instead of cgraph_node.
22305         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22306         instead of cgraph_node.
22307         (record_eh_tables): Likewise.
22308         (mark_address): Likewise.
22309         (mark_load): Likewise.
22310         (build_cgraph_edges): Call cgraph_get_create_node instead
22311         of cgraph_node.
22312         (rebuild_cgraph_edges): Likewise.
22313         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22314         instead of cgraph_node.
22315         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22316         cgraph_node.
22317         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22318         cgraph_create_node instead of cgraph_node.
22319         * c-decl.c (finish_function): Call cgraph_get_create_node instead
22320         of cgraph_node.
22321         * lto-cgraph.c (input_node): Likewise.
22322         * lto-streamer-in.c (input_function): Likewise.
22323         * varasm.c (mark_decl_referenced): Likewise.
22324         (assemble_alias): Likewise.
22325
22326 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22327
22328         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22329         instead of cgraph_node and assert it does not return NULL.
22330         * lto-streamer-in.c (lto_read_body): Likewise.
22331         * omp-low.c (new_omp_context): Likewise.
22332         (create_task_copyfn): Likewise.
22333         * tree-emutls.c (lower_emutls_function_body): Likewise.
22334         * matrix-reorg.c (transform_allocation_sites): Likewise.
22335
22336 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22337
22338         PR c/48552
22339         * c-typeck.c (build_asm_expr): Error out on attempts to use
22340         void type outputs or inputs for constraints that allow reg or
22341         don't allow memory.
22342
22343 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
22344             Richard Earnshaw  <rearnsha@arm.com>
22345
22346         PR target/48250
22347         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22348         to use sign-magnitude offsets. Reject unsupported unaligned
22349         cases. Add detailed description in comments.
22350         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22351         condition from TARGET_32BIT to TARGET_ARM.
22352
22353 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
22354
22355         * tree.h (struct typed_tree): New.
22356         (struct tree_common): Include it instead of tree_base.
22357         (TREE_TYPE): Update for new location of type field.
22358         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22359         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22360         (union tree_node): Add typed field.
22361         * treestruct.def (TS_TYPED): New.
22362         * lto-streamer.c (check_handled_ts_structures): Handle it.
22363         * tree.c (MARK_TS_TYPED): New macro.
22364         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22365
22366 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
22367
22368         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22369         (force_nonfallthru): Do not alter the loop nest if no basic block
22370         was created.
22371
22372 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22373
22374         * config/i386/sse.md (VI): New mode iterator.
22375         (SSEMODEI): Remove.
22376         (AVX256MODEI): Ditto.
22377         (AVXMODEF4P): Ditto.
22378         (avxvecpsmode): Ditto.
22379         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
22380         (sse2_andnot<mode>3): New expander.
22381         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22382         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
22383         (<any_logic:code><mode>3): Use VI mode iterator.
22384         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22385         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
22386         (*andnottf3): Handle AVX three-operand constraints.
22387         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22388
22389 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22390             Robert Millan  <rmh@gnu.org>
22391
22392         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22393         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22394         GNU_USER_DYNAMIC_LINKER64): Define.
22395         (REG_NAME): Don't undefine.
22396         (MD_UNWIND_SUPPORT): Undefine.
22397         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22398         (REG_NAME): Don't undefine.
22399         (MD_UNWIND_SUPPORT): Undefine.
22400         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22401
22402 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22403
22404         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22405         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22406
22407 2011-04-11  Xinliang David Li  <davidxl@google.com>
22408
22409         * value-profile.c (check_ic_target): New function.
22410         (gimple_ic_transform): Sanity check indirect call target.
22411         * gimple-low.c (gimple_check_call_args): Interface change.
22412         (gimple_check_call_matching_types): New function.
22413         * tree-inline.c (tree_can_inline_p): Call new function.
22414
22415 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
22416
22417         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22418         tree-pretty-print.h & realmpfr.h.
22419
22420 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
22421
22422         PR middle-end/48464
22423         * ira.c (setup_pressure_classes): Fix typo in loop condition.
22424         (setup_allocno_and_important_classes): Ditto.
22425
22426 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22427
22428         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22429         GNU_USER_DYNAMIC_LINKER.
22430         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22431         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22432         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22433         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22434         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22435         GNU_USER_TARGET_OS_CPP_BUILTINS.
22436         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22437         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22438         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22439         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22440         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22441         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22442         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22443         GNU_USER_TARGET_OS_CPP_BUILTINS.
22444         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22445         GNU_USER_DYNAMIC_LINKER.
22446         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22447         GNU_USER_TARGET_OS_CPP_BUILTINS.
22448         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22449         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22450         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22451         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22452         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22453         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22454         GNU_USER_DYNAMIC_LINKER64): Remove.
22455         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22456         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22457         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22458         GNU_USER_DYNAMIC_LINKER.
22459         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22460         GNU_USER_TARGET_OS_CPP_BUILTINS.
22461         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22462         GNU_USER_TARGET_OS_CPP_BUILTINS.
22463         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22464         to GNU_USER_TARGET_OS_CPP_BUILTINS.
22465         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22466         GNU_USER_TARGET_OS_CPP_BUILTINS.
22467         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22468         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22469         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22470         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22471         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22472         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22473         GNU_USER_DYNAMIC_LINKER.
22474         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22475         GNU_USER_TARGET_OS_CPP_BUILTINS.
22476         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22477         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22478         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22479         GNU_USER_DYNAMIC_LINKER.
22480         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22481         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22482         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22483         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22484         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22485         GNU_USER_DYNAMIC_LINKER.
22486         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22487         GNU_USER_DYNAMIC_LINKERN32.
22488         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22489         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
22490         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
22491         GNU_USER_DYNAMIC_LINKER32.
22492         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22493         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22494         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22495         GNU_USER_DYNAMIC_LINKER.
22496         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22497         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22498         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22499         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22500         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22501         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22502         GNU_USER_DYNAMIC_LINKER32.
22503         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22504         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22505         GNU_USER_DYNAMIC_LINKER.
22506         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22507         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22508         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22509         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
22510         GNU_USER_DYNAMIC_LINKER64.
22511         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22512         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22513         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22514         GNU_USER_DYNAMIC_LINKER.
22515         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22516         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22517         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22518         GNU_USER_DYNAMIC_LINKER.
22519         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22520         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22521         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22522         GNU_USER_DYNAMIC_LINKER32.
22523         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22524         GNU_USER_DYNAMIC_LINKER64.
22525         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22526         GNU_USER_DYNAMIC_LINKER64.
22527         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22528         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22529         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22530         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22531         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22532
22533 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22534
22535         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
22536         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22537         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22538         GNU_USER_DYNAMIC_LINKER.
22539         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22540         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
22541         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22542         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22543         GNU_USER_DYNAMIC_LINKER64.
22544         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22545         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22546         GNU_USER_LINK_EMULATION.
22547         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22548         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22549         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22550         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22551         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22552         CPP_SPEC, CC1_SPEC): Remove.
22553         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22554         (GNU_USER_DYNAMIC_LINKER): Define.
22555         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22556         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22557         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22558         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22559         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22560         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22561         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22562         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22563         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22564         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22565         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22566         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22567         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22568         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22569         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22570         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22571         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22572         GNU_USER_DYNAMIC_LINKER.
22573         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22574         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22575         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22576         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22577         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22578         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22579         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22580         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22581         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22582         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22583
22584 2011-04-11  Kai Tietz  <ktietz@redhat.com>
22585
22586         PR target/9601
22587         PR target/11772
22588         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22589         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22590         comment.
22591         (ix86_is_msabi_thiscall): Removed.
22592         (ix86_is_type_thiscall): Likewise.
22593         (ix86_get_callcvt): New function.
22594         (ix86_comp_type_attributes): Simplify check.
22595         (ix86_function_regparm): Use ix86_get_callcvt for calling
22596         convention attribute checks.
22597         (ix86_return_pops_args): Likewise.
22598         (ix86_static_chain): Likewise.
22599         (x86_this_parameter): Likewise.
22600         (x86_output_mi_thunk): Likewise.
22601         (ix86_function_type_abi): Optimize check for types without attributes.
22602         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22603         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22604         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22605         by flag-values.
22606         (IX86_BASE_CALLCVT): Helper macro.
22607         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22608         Use ix86_get_callcvt for calling convention attribute checks and avoid
22609         symbol-decoration for stdcall in TARGET_RTD case.
22610         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22611         Likewise.
22612         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22613         for declaration.
22614
22615 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22616
22617         * config/i386/sse.md (VI_128): New mode iterator.
22618         (VI12_128): Rename from SSEMODE12.
22619         (VI14_128): Rename from SSEMODE14.
22620         (VI124_128): New mode iterator.
22621         (VI24_128): Rename from SSEMODE248.
22622         (VI248_128): Rename from SSEMODE248.
22623         (SSEMODE124C8): Remove.
22624         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22625         (*sse2_<plusminus_insn><mode>3): Merge with
22626         *avx_<plusminus_insn><mode>3.
22627         (*mulv8hi3): Merge with *avx_mulv8hi3.
22628         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22629         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22630         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22631         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22632         (ashr<mode>3): Merge with *avx_ashr<mode>3.
22633         (lshr<mode>3): Merge with *avx_lshr<mode>3.
22634         (ashl<mode>3): Merge with *avx_ashl<mode>3.
22635         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22636         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22637         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22638         (*<smaxmin:code>v8hi3): Ditto.
22639         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22640         (*<smaxmin:code>v16qi3): Ditto.
22641         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22642         (*sse2_eq<mode>3): Ditto.
22643         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22644         (*sse2_gt<mode>3): Ditto.
22645         (vcondv2di): Split out of vcond<mode>.
22646         (vconduv2di): Split out of vcondu<mode>.
22647
22648 2011-04-11  Richard Guenther  <rguenther@suse.de>
22649
22650         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22651         before calling tree_low_cst.
22652
22653 2011-04-11  Richard Guenther  <rguenther@suse.de>
22654
22655         * stor-layout.c (layout_type): Compute all array index size operations
22656         in the original type.
22657         (initialize_sizetypes): Add comment.
22658         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22659
22660 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22661
22662         * common.opt (Tbss=, Tdata=, Ttext=): New options.
22663
22664 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22665
22666         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22667         of cgraph_node, handle NULL return value.
22668         (cgraph_global_info): Likewise.
22669         (cgraph_rtl_info): Likewise.
22670         * tree-inline.c (estimate_num_insns): Likewise.
22671         * gimplify.c (unshare_body): Likewise.
22672         (unvisit_body): Likewise.
22673         (gimplify_body): Likewise.
22674         * predict.c (optimize_function_for_size_p): Likewise.
22675         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22676         (call_may_clobber_ref_p_1): Likewise.
22677         * varasm.c (function_section_1): Likewise.
22678         (assemble_start_function): Likewise.
22679
22680 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22681
22682         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22683         of cgraph_node.
22684         * final.c (rest_of_clean_state): Likewise.
22685         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22686         * passes.c (pass_init_dump_file): Likewise.
22687         (execute_all_ipa_transforms): Likewise.
22688         (function_called_by_processed_nodes_p): Likewise.
22689         * predict.c (maybe_hot_frequency_p): Likewise.
22690         (probably_never_executed_bb_p): Likewise.
22691         (compute_function_frequency): Likewise.
22692         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22693         (unnest_nesting_tree_1): Likewise.
22694         (lower_nested_functions): Likewise.
22695         * tree-optimize.c (execute_fixup_cfg): Likewise.
22696         (tree_rest_of_compilation): Likewise.
22697         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22698         * tree-sra.c (ipa_early_sra): Likewise.
22699         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22700         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22701         * ipa.c (record_cdtor_fn): Likewise.
22702         * ipa-inline.c (cgraph_early_inlining): Likewise.
22703         (compute_inline_parameters_for_current): Likewise.
22704         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22705         * ipa-pure-const.c (local_pure_const): Likewise.
22706         * ipa-split.c (split_function): Likewise.
22707         (execute_split_functions): Likewise.
22708         * cgraphbuild.c (build_cgraph_edges): Likewise.
22709         (rebuild_cgraph_edges): Likewise.
22710         (cgraph_rebuild_references): Likewise.
22711         (remove_cgraph_callee_edges): Likewise.
22712         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22713         (verify_cgraph_node): Likewise.
22714         (cgraph_analyze_functions): Likewise.
22715         (cgraph_preserve_function_body_p): Likewise.
22716         (save_inline_function_body): Likewise.
22717         (save_inline_function_body): Likewise.
22718         * tree-inline.c (copy_bb): Likewise.
22719         (optimize_inline_calls): Likewise.
22720
22721 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22722
22723         PR tree-optimization/48195
22724         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22725         ipa_check_create_edge_args.
22726         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22727         ipa_check_create_edge_args.
22728         * ipa-inline.c (inline_generate_summary): Do not call
22729         ipa_check_create_node_params and ipa_check_create_edge_args.
22730         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
22731         ipa_check_create_edge_args.
22732
22733 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
22734
22735         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22736         instead of loop.
22737         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22738         * function.c (record_hard_reg_sets): Likewise.
22739         * ira.c (compute_regs_asm_clobbered): Likewise.
22740         * sched-deps.c (sched_analyze_1): Likewise.
22741         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22742
22743 2011-04-09  Xinliang David Li  <davidxl@google.com>
22744
22745         PR tree-optimization/PR48484
22746         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22747         has_valid_pred lazily
22748
22749 2011-04-09  Duncan Sands  <baldrick@free.fr>
22750
22751         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22752
22753 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
22754
22755         * combine.c (combine_validate_cost): Adjust comments.  Set registered
22756         cost of I0 to zero at the end, if any.
22757
22758 2011-04-08  Xinliang David Li  <davidxl@google.com>
22759
22760         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22761         to insane profile data.
22762
22763 2011-04-08  Xinliang David Li  <davidxl@google.com>
22764
22765         * ipa-cp.c (ipcp_update_profiling): Correct
22766          negative scale factor due to insane profile data.
22767
22768 2011-04-08  Xinliang David Li  <davidxl@google.com>
22769
22770         * final.c (dump_basic_block_info): New function.
22771         (final): Dump basic block.
22772         (final_scan_insn): Remove old dump.
22773
22774 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
22775
22776         PR target/47829
22777         * config.gcc (i386-*-freebsd): Disable unwind table generation for
22778         crtbegin/crtend.
22779
22780 2011-04-08  Michael Matz  <matz@suse.de>
22781
22782         PR middle-end/48389
22783         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22784         functions.
22785         (rebuild_jump_labels): Call rebuild_jump_labels_1.
22786         * rtl.h (rebuild_jump_labels_chain): Declare.
22787         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22788         insns inserted on edges.
22789
22790 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
22791
22792         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22793         * config/arm/arm-arches.def: New.
22794         * config/arm/arm-opts.h: New.
22795         * config/arm/genopt.sh: New.
22796         * config/arm/arm-tables.opt: New (generated).
22797         * config/arm/arm.c (arm_handle_option, arm_target_help,
22798         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22799         (all_architectures): Get most table contents from arm-arches.def.
22800         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22801         arm_selected_tune here.
22802         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22803         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22804         (march=, mcpu=, mtune=): Use Enum and Var.
22805         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22806         (arm.o): Update dependencies.
22807
22808 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
22809
22810         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22811         of header_file.
22812         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22813         (write_typed_alloc_defns): Likewise.
22814         (main): Calls write_typed_alloc_defns with output_header.
22815
22816 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
22817
22818         PR inline-asm/48435
22819         * ira-color.c (setup_profitable_hard_regs): Add comments.
22820         Don't take prohibited hard regs into account.
22821         (setup_conflict_profitable_regs): Rename to
22822         get_conflict_profitable_regs.
22823         (check_hard_reg_p): Check prohibited hard regs.
22824
22825 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
22826
22827         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22828         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22829         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22830
22831 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22832
22833         PR target/48366
22834         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22835         move from floating point to shift amount register.
22836         (emit_move_sequence): Remove secondary reload support for floating
22837         point to shift amount amount register copies.
22838         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22839         amount register copies.
22840         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22841         register, return false if mode isn't a scalar integer mode.
22842         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22843
22844 2011-04-08  Richard Guenther  <rguenther@suse.de>
22845
22846         * gimple.c (gimple_call_flags): Remove kludge.
22847
22848 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22849
22850         * sel-sched.c (sel_region_init): Move call to
22851         sel_setup_region_sched_flags after setup_current_loop_nest.
22852
22853 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
22854
22855         PR rtl-optimization/48272
22856         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22857         init_insn_reg_pressure_info.  Adjust a caller.
22858         * sched-int.h (init_insn_reg_pressure_info): Declare.
22859         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22860         when sched-pressure is enabled.
22861
22862 2011-04-08  Richard Guenther  <rguenther@suse.de>
22863
22864         * gimple.c (gimple_set_modified): Do not queue calls to
22865         MODIFIED_NORETURN_CALLS here ...
22866         * tree-ssa-operands.c (update_stmt_operands): ... but here.
22867
22868 2011-04-08  Richard Guenther  <rguenther@suse.de>
22869
22870         PR lto/48467
22871         * toplev.c (lang_dependent_init): Do not open asm_out_file
22872         in WPA mode, nor perform debug machinery initialization.
22873         (finalize): Do not unlink asm_out_file in WPA mode.
22874
22875 2011-04-08  Richard Guenther  <rguenther@suse.de>
22876
22877         * gimple.h (gimple_call_fntype): New function.
22878         (gimple_call_return_type): Use it.
22879         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22880         * gimple-low.c (gimple_check_call_args): Likewise.
22881         * gimple.c (gimple_call_flags): Likewise.
22882         (gimple_call_arg_flags): Likewise.
22883         (gimple_call_return_flags): Likewise.
22884         * tree-cfg.c (verify_gimple_call): Likewise.
22885         (do_warn_unused_result): Likewise.
22886         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22887         * value-prof.c (gimple_ic_transform): Fix fndecl check.
22888
22889 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
22890
22891         PR rtl-optimization/48235
22892         * sel-sched.c (code_motion_process_successors): Recompute the last
22893         insn in basic block if control flow changed.
22894         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
22895         Update condition for ilist_remove.
22896
22897 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22898
22899         PR rtl-optimization/48302
22900         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22901         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
22902         it to record added preheader blocks.
22903         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
22904         on to sel_add_loop_preheaders.
22905         (sel_region_init): Move call to setup_current_loop_nest after
22906         sel_init_bbs.
22907
22908 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22909
22910         PR target/48273
22911         * cfgloop.h (loop_has_exit_edges): New helper.
22912         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
22913         non-clonable.
22914         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
22915         that have no exit edges.
22916
22917 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22918
22919         PR rtl-optimization/48442
22920         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
22921         all callers.  Adjust assert.
22922
22923 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
22924
22925         PR tree-optimization/48377
22926         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
22927         is_packed to true even for types with smaller TYPE_ALIGN than
22928         TYPE_SIZE.
22929
22930 2011-04-08  Richard Guenther  <rguenther@suse.de>
22931
22932         PR bootstrap/48513
22933         * doc/tm.texi: Re-generate.
22934
22935 2011-04-08  Wei Guozhi  <carrot@google.com>
22936
22937         PR target/47855
22938         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
22939         * config/arm/arm.c (arm_attr_length_push_multi): New function.
22940         * config/arm/arm.md (*push_multi): Change the length computation to
22941         call a C function.
22942
22943 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
22944
22945         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
22946         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
22947         * doc/tm.texi: Regenerate.
22948         * system.h (ASM_OUTPUT_BSS): Poison.
22949         * varasm.c (asm_output_bss): Remove function.
22950         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
22951
22952         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
22953         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
22954         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
22955         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22956         Likewise.
22957         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22958         Likewise.
22959         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
22960         Likewise.
22961         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
22962
22963 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22964
22965         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
22966         EnumValue lines.
22967
22968 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
22969
22970         * config/m68k/m68k.c (m68k_handle_option): Don't handle
22971         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
22972         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
22973         OPT_mcpu32.
22974         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
22975         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
22976         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
22977         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
22978         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
22979         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
22980         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22981         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
22982         options.  Don't map other m68k options manually.  Don't handle
22983         old-style options as canonical.
22984         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
22985         * doc/install.texi (m68k-*-*): Document binutils version requirement.
22986
22987 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
22988
22989         * basic-block.h (force_nonfallthru): Move to...
22990         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
22991         (force_nonfallthru): ...here.
22992         * cfghooks.c (force_nonfallthru): New function.
22993         * cfgrtl.c (force_nonfallthru): Rename into...
22994         (rtl_force_nonfallthru): ...this.
22995         (commit_one_edge_insertion): Do not set AUX field.
22996         (commit_edge_insertions): Do not discover new basic blocks.
22997         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
22998         (cfg_layout_rtl_cfg_hooks): Likewise.
22999         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23000         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
23001         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23002
23003 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
23004
23005         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23006         Remove macros.
23007
23008 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
23009
23010         * config/i386/sse.md: Update copyright year.
23011         (avxcvtvecmode): Remove.
23012         (sse_movhlps): Merge with *avx_movhlps.
23013         (sse_movlhps): Merge with *avx_movlhps.
23014         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23015         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23016         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23017         (sse_loadhps): Merge with *avx_loadhps.
23018         (sse_storelps): Merge with *avx_storelps.
23019         (sse_loadlps): Merge with *avx_loadlps.
23020         (sse_movss): Merge with *avx_movss.
23021         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23022         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23023         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23024         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23025         (vec_set<mode>_0): Ditto.
23026         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23027         (sse4_1_insertps): Merge with *avx_insertps.
23028         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23029         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23030         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23031         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23032         (sse2_storehpd): Merge with *avx_storehpd.
23033         (sse2_loadhpd): Merge with *avx_loadhpd.
23034         (sse2_loadlpd): Merge with *avx_loadlpd.
23035         (sse2_movsd): Merge with *avx_movsd.
23036         (*vec_concatv2df): Merge with *vec_concatv2df.
23037
23038 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
23039
23040         PR debug/48343
23041         * combine.c (combine_instructions): Add last_combined_insn,
23042         update it if insn is after it, pass it to all try_combine calls.
23043         (try_combine): Add last_combined_insn parameter, pass it instead of
23044         i3 to propagate_for_debug.
23045
23046 2011-04-07  Nick Clifton  <nickc@redhat.com>
23047
23048         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23049         to handle MDR <-> data register transfers.
23050         (movhi_internal): Likewise.
23051
23052 2011-04-07  Alan Modra  <amodra@gmail.com>
23053
23054         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23055         previous stack info.
23056
23057 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23058
23059         PR target/43920
23060         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
23061         flow_find_cross_jump.  Swap variables to implement backward replacement.
23062         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23063
23064 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23065
23066         PR target/43920
23067         * cfgcleanup.c (walk_to_nondebug_insn): New function.
23068         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
23069         and bb2.
23070         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23071         src1 or src2.  Redirect edges to the last basic block.  Update
23072         frequency and count on multiple basic blocks in case of fallthru.
23073
23074 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23075
23076         PR target/43920
23077         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23078         function.
23079         (old_insns_match_p): Change return type.  Replace return false/true
23080         with return dir_none/dir_both.  Use can_replace_by.
23081         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
23082         direction from dir_p.  Register replacement direction in dir, last_dir
23083         and afterlast_dir.  Handle new return type of old_insns_match_p using
23084         merge_dir.  Return replacement direction in dir_p.
23085         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23086         return type of old_insns_match_p.
23087         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23088         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23089         flow_find_cross_jump.
23090         * basic-block.h (enum replace_direction): New type.
23091         (flow_find_cross_jump): Add parameter to declaration.
23092
23093 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23094
23095         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23096         (AVXMODEDCVTPS2DQ): Ditto.
23097         (VEC_FLOAT_MODE): Ditto.
23098         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
23099         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23100         (<any_logic:code><mode>3): Use VF mode iterator.
23101         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23102         Use VF mode iterator.
23103         (copysign<mode>3): Use VF mode iterator.
23104         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
23105         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23106         (*<any_logic:code><MODEF:mode>3): Merge with
23107         *avx_<any_logic:code><MODEF:mode>3.
23108         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23109         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23110         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23111         (avx_cvtdq2ps<avxmodesuffix>): Remove.
23112         (sse2_cvtdq2ps): Use %v modifier.
23113         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23114         (avx_cvtps2dq<avxmodesuffix>): Remove.
23115         (sse2_cvtps2dq): Use %v modifier.
23116         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23117         (avx_cvttps2dq<avxmodesuffix>): Remove.
23118         (sse2_cvttps2dq): Use %v modifier.
23119         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23120         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23121         (sse2_cvtsd2siq): Fix insn template.
23122         (sse2_cvtsd2siq_2): Ditto.
23123         (sse2_cvttsd2siq): Ditto.
23124         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23125         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23126
23127 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23128
23129         * gcov-io.c: Use GCC Runtime Library Exception.
23130
23131 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
23132
23133         PR debug/48466
23134         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23135         as base_reg whatever register reg has been eliminated to, instead
23136         of hardcoding STACK_POINTER_REGNUM.
23137
23138 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23139
23140         * doc/tm.texi.in: Document C target hooks as separate from general
23141         target hooks.
23142         * doc/tm.texi: Regenerate.
23143         * genhooks.c (struct hook_desc): Add docname field.
23144         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
23145         docname field.
23146         (hook_array): Include c-target.def.
23147         (emit_documentation): Use docname field in output.
23148         (emit_init_macros): Take docname argument.  Only emit definitions
23149         for hooks matching docname.
23150         (main): Expect additional arguments in all cases.  Pass argument
23151         to emit_init_macros.
23152         * target.def: Move initial macro definitions and comments to
23153         target-hooks-macros.h.
23154         (gcc_targetcm): Move to c-family/c-target.def.
23155         * target.h (targetcm): Move declaration to c-family/c-target.h.
23156         * targhooks.c (default_handle_c_option): Move to
23157         c-family/c-opts.c.
23158         * targhooks.h (default_handle_c_option): Move declaration to
23159         c-family/c-common.h.
23160         * target-hooks-macros.h: New file.
23161         * config.gcc (target_has_targetcm): Define and use to add to
23162         c_target_objs and cxx_target_objs.
23163         * config/default-c.c: New file.
23164         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
23165         of target.h and target-def.h.
23166         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
23167         (darwin_objc_construct_string, darwin_cfstring_ref_p,
23168         darwin_check_cfstring_format_arg): Make static.
23169         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23170         TARGET_STRING_OBJECT_REF_TYPE_P,
23171         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
23172         * config/darwin-protos.h (darwin_objc_construct_string,
23173         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
23174         declare.
23175         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23176         TARGET_STRING_OBJECT_REF_TYPE_P,
23177         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
23178         * config/t-darwin (darwin-c.o): Update dependencies.
23179         * system.h (TARGET_HAS_TARGETCM): Poison.
23180         * Makefile.in (TARGET_H): Update.
23181         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
23182         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
23183         (default-c.o): New target.
23184         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
23185         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
23186         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
23187         c-target.def.
23188         (build/genhooks.o): Update dependencies.
23189
23190 2011-04-06  Richard Guenther  <rguenther@suse.de>
23191
23192         * ipa-inline.c (enum inlining_mode): Remove.
23193         (cgraph_flatten): Use some other token.
23194         (cgraph_edge_early_inlinable_p): New function, split out from ...
23195         (cgraph_perform_always_inlining): New function, split out from ...
23196         (cgraph_decide_inlining_incrementally): ... here.
23197         (cgraph_mark_inline_edge): Adjust.
23198         (cgraph_early_inlining): Re-structure.
23199         (pass_early_inline): Require SSA form.
23200
23201 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
23202             Julian Brown  <julian@codesourcery.com>
23203             Mark Shinwell  <shinwell@codesourcery.com>
23204
23205         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
23206         LO_REGS only for Thumb-1.
23207         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
23208         be used in short instructions when optimising for size on Thumb-2.
23209
23210 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23211
23212         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
23213         associated with user returns to be preserved.
23214
23215 2011-04-06  Tristan Gingold  <gingold@adacore.com>
23216
23217         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
23218         symbol_queue_size, DBXOUT_DECR_NESTING,
23219         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
23220         if XCOFF_DEBUGGING_INFO.
23221
23222 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23223
23224         * config/i386/i386.md (attribute isa): New.
23225         (attribute enabled): New.
23226         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
23227         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
23228         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
23229         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
23230         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
23231         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23232         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
23233         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
23234
23235         * config/i386/sse.md (VF): New mode iterator.
23236         (VF1): Ditto.
23237         (VF2): Ditto.
23238         (VF_128): Ditto.
23239         (SSEMODEF4): Remove.
23240         (attribute sse): Handle V8SF and V4DF modes.
23241         (<absneg:code><mode>2): Use VF mode iterator.
23242         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
23243         mode iterator.
23244         (<plusminus_insn><mode>3): Use VF mode iterator.
23245         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23246         Use VF mode iterator.
23247         (<sse>_vm<plusminus_insn><mode>3): Merge with
23248         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
23249         (mul<mode>3): Use VF mode iterator.
23250         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
23251         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
23252         mode iterator.
23253         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
23254         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
23255         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
23256         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
23257         mode iterator.
23258         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
23259         Use VF1 mode iterator.
23260         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
23261         (sqrt<VF2:mode>2): New expander.
23262         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
23263         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
23264         and sqrtv2df2.  Use VF mode iterator.
23265         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
23266         mode iterator.
23267         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
23268         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
23269         Use VF1 mode iterator.
23270         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
23271         (<smaxmin:code><mode>3): Use VF mode iterator.
23272         (*<smaxmin:code><mode>3_finite): Merge with
23273         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
23274         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23275         (<sse>_vm<smaxmin:code><mode>2): Merge with
23276         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
23277         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
23278         mode iterator.
23279         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
23280         mode iterator.
23281         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
23282         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
23283         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23284         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23285         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
23286         VF mode iterator.
23287         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23288         Use VF_128 mode iterator.
23289         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
23290         mode iterator.
23291         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
23292         VF_128 mode iterator.
23293         (vcond<mode>): Use VF mode iterator.
23294         * config/i386/predicates.md (sse_comparison_operator): Merge with
23295         avx_comparison_float_operator.  Do not declare as special_predicate.
23296         * config/i386/i386.c (struct builtin_description): Update for renamed
23297         compare patterns.
23298         (ix86_expand_args_builtin): Ditto.
23299         (ix86_expand_sse_compare_mask): Ditto.
23300
23301 2011-04-06  Richard Guenther  <rguenther@suse.de>
23302
23303         * tree-inline.c (estimate_num_insns): For calls simply account
23304         for all passed arguments and a used return value.
23305
23306 2011-04-06  Richard Guenther  <rguenther@suse.de>
23307
23308         PR tree-optimization/47663
23309         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23310         call_stmt_time fields.
23311         (cgraph_edge_inlinable_p): Declare.
23312         (cgraph_edge_recursive_p): New inline function.
23313         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23314         (cgraph_clone_edge): Copy it.
23315         * ipa-inline.c (cgraph_estimate_edge_time): New function.
23316         Account for call stmt time.
23317         (cgraph_estimate_time_after_inlining): Take edge argument.
23318         (cgraph_estimate_edge_growth): Account call stmt size.
23319         (cgraph_estimate_size_after_inlining): Take edge argument.
23320         (cgraph_mark_inline_edge): Adjust.
23321         (cgraph_check_inline_limits): Likewise.
23322         (cgraph_recursive_inlining_p): Remove.
23323         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23324         (cgraph_decide_recursive_inlining): Take edge argument and
23325         adjust.
23326         (cgraph_decide_inlining_of_small_functions): Do not avoid
23327         diags for recursive inlining here.
23328         (cgraph_flatten): Adjust.
23329         (cgraph_decide_inlining_incrementally): Likewise.
23330         (estimate_function_body_sizes): Remove call cost handling.
23331         (compute_inline_parameters): Initialize caller edge call costs.
23332         (cgraph_estimate_edge_growth): New function.
23333         (cgraph_estimate_growth): Use it.
23334         (cgraph_edge_badness): Likewise.
23335         (cgraph_check_inline_limits): Take an edge argument.
23336         (cgraph_decide_inlining_of_small_functions): Adjust.
23337         (cgraph_decide_inlining): Likewise.
23338         * tree-inline.c (estimate_num_insns): Only account for call
23339         return value if it is used.
23340         (expand_call_inline): Avoid diagnostics on recursive inline
23341         functions here.
23342         * lto-cgraph.c (lto_output_edge): Output edge call costs.
23343         (input_edge): Input edge call costs.
23344
23345 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23346
23347         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23348
23349 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
23350
23351         * doc/invoke.texi (Spec Files): Fix typo.
23352
23353 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23354
23355         * profile.c (branch_prob): Move declaration of local variable.  Remove
23356         obsolete ??? comment.  Expand the location explicitly instead of using
23357         the LOCATION_FILE and LOCATION_LINE macros.
23358
23359 2011-04-06  Wei Guozhi  <carrot@google.com>
23360
23361         PR target/47855
23362         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23363         (arm_cond_branch): Likewise.
23364         (arm_cond_branch_reversed): Likewise.
23365         (arm_jump): Likewise.
23366         (push_multi): Likewise.
23367         * config/arm/constraints.md (Py): New constraint.
23368
23369 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23370
23371         PR bootstrap/48471
23372         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23373         Move these...
23374         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23375         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23376         #ifdef DBX_DEBUGGING_INFO.
23377
23378 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
23379
23380         PR bootstrap/48403
23381         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23382         if old and new states differ.
23383
23384 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23385
23386         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23387         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23388         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23389         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23390         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23391         mcfv4e): Use Alias.
23392         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23393         ColdFire options to -mcpu= options.
23394
23395 2011-04-05  Jeff Law  <law@redhat.com>
23396
23397         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23398         check if BB is a successor of LOOP->header and return
23399         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23400
23401 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23402
23403         * cprop.c (struct reg_use): Remove.
23404         (reg_use_table): Make an array of RTX.
23405         (find_used_regs, constprop_register, local_cprop_pass,
23406         bypass_block): Simplify users of reg_use_table.
23407         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
23408         on one of the uses found by find_used_regs.
23409
23410 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23411
23412         PR bootstrap/48469
23413         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23414         declaration.
23415
23416 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23417
23418         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23419         as an rtx.
23420         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23421
23422 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23423
23424         PR middle-end/48441
23425         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23426
23427 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23428
23429         * combine.c: Include obstack.h.
23430         (struct insn_link): Define.
23431         (uid_log_links): Adjust type.
23432         (FOR_EACH_LOG_LINK): New macro.
23433         (insn_link_obstack): Declare.
23434         (alloc_insn_link): Define.
23435         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
23436         type of link variables.
23437         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23438         (try_combine, record_promoted_values, distribute_notes): Likewise.
23439         (distribute_links): Likewise.  Tweak prototype.
23440         (clear_log_links): Delete.
23441         (adjust_for_new_dest): Call alloc_insn_link.
23442         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23443
23444 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23445
23446         * gcse.c (modify_mem_list): Convert to an array of VECs.
23447         (canon_modify_mem_list, compute_transp): Tweak formatting.
23448         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
23449         (load_killed_in_block_p): Likewise.
23450         (record_last_mem_set_info): Likewise.
23451         (clear_modify_mem_tables): Likewise.
23452
23453 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23454
23455         PR middle-end/48461
23456         * function.c (emit_use_return_register_into_block): Only define if
23457         HAVE_return.
23458
23459 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
23460
23461         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23462
23463 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23464
23465         * config/rx/rx-opts.h: New.
23466         * config/rx/rx.c (rx_cpu_type): Remove.
23467         (rx_handle_option): Don't assert that global structures are in
23468         use.  Access variables via opts pointer.  Defer most handling of
23469         OPT_mint_register_.  Use error_at.
23470         (rx_option_override): Handle deferred OPT_mint_register_ here.
23471         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23472         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23473         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23474         (rx_cpu_types): New Enum and EnumValue entries.
23475         (mint-register=): Use Defer and use Var accordingly.
23476
23477 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23478
23479         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23480         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23481         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23482         Move these...
23483         (debug_free_queue, debug_nesting, symbol_queue_index):
23484         ...and these...
23485         * dbxout.c: ...to here.  Make static.
23486
23487 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23488
23489         * gcse.c (modify_pair): Define.  Define a VEC of it.
23490         (canon_modify_mem_list): Convert to an array of VECs.
23491         (free_insn_expr_list_list): Delete.
23492         (clear_modify_mem_tables): Call VEC_free instead.
23493         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23494         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23495         (canon_list_insert, compute_transp): Likewise.
23496
23497 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23498
23499         PR target/43920
23500         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23501         for size.
23502
23503 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23504
23505         PR target/43920
23506         * function.c (emit_use_return_register_into_block): New function.
23507         (thread_prologue_and_epilogue_insns): Use
23508         emit_use_return_register_into_block.
23509
23510 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23511
23512         PR target/43920
23513         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23514         insn.
23515
23516 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23517
23518         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23519
23520 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
23521
23522         * config/arm/arm.md (define_constants for unspec): Replace with
23523         define_c_enum.
23524         (define_constants for unspecv): Replace with define_c_enum.
23525         * config/arm/neon.md (define_constants for unspec): Replace with
23526         define_c_enum.
23527
23528 2011-04-04  Richard Henderson  <rth@redhat.com>
23529
23530         PR bootstrap/48400
23531         * dwarf2out.c (output_line_info): Always emit line info from
23532         at least one section.
23533         (dwarf2out_init): Create text_section_line_info here ...
23534         (set_cur_line_info_table): ... not here.
23535
23536 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
23537
23538         PR target/48380
23539         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23540         not called.
23541
23542         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23543
23544 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
23545
23546         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23547         (expr_equiv_p): Remove.
23548         (insert_set_in_table): Look at <dest, src> pair instead of expr.
23549         (hash_scan_set): Update call to insert_set_in_table.
23550         (dump_hash_table): Dump <dest, src> pair.
23551         (lookup_set): Simplify.  Lookup <dest, src> pair.
23552         (compute_transp): Remove, fold heavily simplified code into...
23553         (compute_local_properties): ...here.  Expect COMP and TRANSP
23554         unconditionally.
23555         (find_avail_set): Take set directly from struct expr.
23556         (find_bypass-set): Likewise.
23557         (bypass_block): Likewise.
23558         (cprop_insn): Likewise.  Remove redundant INSN_P test.
23559
23560         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23561         checks on form of COND from find_implicit_sets to here.
23562         (find_implicit_sets): Cleanup control flow. Split critical edges
23563         if it exposes implicit sets.  Allocate/resize implicit_sets as
23564         necessary.
23565         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23566         changed something.  Run df_analyze after find_implicit_sets if any
23567         edges were split.  Do not allocate implicit_sets here.
23568
23569         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23570         (gcse_obstack): Renamed to cprop_obstack.
23571         (GNEW, GNEWVEC, GNEWVAR): Remove.
23572         (gmalloc): Remove.
23573         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23574         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23575         (gcse_alloc): Likewise, and rename to cprop_alloc.
23576         (alloc_gcse_men, free_gcse_mem): Remove.
23577         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23578         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23579         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23580
23581         * cprop.c (oprs_not_set_p): Remove.
23582         (mark_set, mark_clobber): Remove.
23583         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23584         (reg_not_set_p): New function.
23585         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23586         (cprop_insn): Likewise.
23587         (cprop_jump): Use FOR_EACH_EDGE.
23588
23589 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
23590
23591         PR bootstrap/48403
23592         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23593         (rank_for_schedule): Use scheduled_insns vector instead of
23594         last_scheduled_insn.
23595         (ok_for_early_queue_removal): Likewise.
23596         (queue_to_ready): Search forward in nonscheduled_insns_begin if
23597         we have a dbg_cnt.
23598         (choose_ready): Likewise.
23599         (commit_schedule): Use VEC_iterate.
23600         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
23601         a dbg_cnt, use it and ensure the first insn is in the ready list.
23602         (haifa_sched_init): Allocate scheduled_insns.
23603         (sched_extend_ready_list): Don't allocate it; reserve space.
23604         (haifa_sched_finish): Free it.
23605
23606 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23607
23608         * optc-gen.awk: Always remove type from Variable entry before
23609         recording in var_seen.
23610
23611 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23612
23613         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23614         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23615         call to tidy_fallthru_edges.
23616
23617 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23618
23619         * doc/options.texi (ToLower): Document.
23620         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23621         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23622         * opts.h (cl_option): Add cl_tolower field.
23623         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23624         arguments with lowercase strings.
23625         * config/rx/rx.opt (mcpu=): Add ToLower.
23626         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23627         argument.
23628
23629 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23630
23631         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23632
23633 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23634
23635         * config/vax/vax.c: Include reload.h.
23636
23637 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
23638
23639         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23640         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23641         (sparc_preferred_reload_class): New function.
23642
23643 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
23644
23645         PR debug/48401
23646         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23647         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23648
23649 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
23650
23651         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23652         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23653
23654 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
23655
23656         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23657         (ASM_OUTPUT_ALIGNED_BSS): Define.
23658
23659 2011-04-03  Michael Matz  <matz@suse.de>
23660
23661         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23662         and next_slot members.
23663         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23664         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23665         (lto_streamer_cache_append): Declare.
23666         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23667         unsigned index, remove offset parameter, ensure that we append
23668         or update existing entries.
23669         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23670         parameter, update next_slot for append.
23671         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23672         parameter.
23673         (lto_streamer_cache_insert_at): Likewise.
23674         (lto_streamer_cache_append): New function.
23675         (lto_streamer_cache_lookup): Use unsigned index.
23676         (lto_streamer_cache_get): Likewise.
23677         (lto_record_common_node): Don't test tree_node_can_be_shared.
23678         (preload_common_node): Adjust call to lto_streamer_cache_insert.
23679         (lto_streamer_cache_delete): Don't free offsets member.
23680         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23681         (lto_output_string_with_length): Use lto_output_data_stream.
23682         (lto_output_tree_header): Remove ix parameter, don't write it.
23683         (lto_output_builtin_tree): Likewise.
23684         (lto_write_tree): Adjust callers to above, don't track and write
23685         offset, write unsigned index.
23686         (output_unreferenced_globals): Don't emit all global vars.
23687         (write_global_references): Use unsigned indices.
23688         (lto_output_decl_state_refs): Likewise.
23689         (write_symbol): Likewise.
23690         * lto-streamer-in.c (lto_input_chain): Move earlier.
23691         (input_function): Use unsigned index.
23692         (input_alias_pairs): Don't read and then ignore all global vars.
23693         (lto_materialize_tree): Remove ix_p parameter, don't read index,
23694         don't pass it back, use lto_streamer_cache_append.
23695         (lto_register_var_decl_in_symtab): Use unsigned index.
23696         (lto_register_function_decl_in_symtab): Likewise.
23697         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23698         index.
23699         (lto_get_builtin_tree): Don't read index, use
23700         lto_streamer_cache_append.
23701         (lto_read_tree): Adjust call to lto_materialize_tree.
23702
23703         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23704         don't use function calls in arguments to MIN.
23705
23706         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23707         twice.
23708
23709         * gimple.c (gimple_type_leader_entry): Mark deletable.
23710
23711 2011-04-03  Alan Modra  <amodra@gmail.com>
23712
23713         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23714
23715 2011-04-03  Michael Matz  <matz@suse.de>
23716
23717         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23718         an integer.
23719         * tree.h (tree_decl_non_common.vindex): Adjust comment.
23720
23721 2011-04-03  Michael Matz  <matz@suse.de>
23722
23723         * cgraphbuild.c (record_reference): Canonicalize constructor values.
23724         * gimple-fold.c (canonicalize_constructor_val): Accept being called
23725         without function context.
23726         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23727         current_function_decl and cfun.
23728
23729 2011-04-03  Michael Matz  <matz@suse.de>
23730
23731         * tree.c (decl_init_priority_insert): Don't create entry for
23732         default priority.
23733         (decl_fini_priority_insert): Ditto.
23734         (fields_compatible_p, find_compatible_field): Remove.
23735         * tree.h (fields_compatible_p, find_compatible_field): Remove.
23736         * gimple.c (gimple_compare_field_offset): Adjust block comment.
23737
23738 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
23739
23740         * combine.c (try_combine): Remove useless local variable.
23741
23742 2011-04-03  Richard Guenther  <rguenther@suse.de>
23743             Ira Rosen  <ira.rosen@linaro.org>
23744
23745         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23746         non-variable offsets and compare the remaining bases of the two
23747         accesses instead of looking for exact same data-ref.
23748
23749 2011-04-02  Kai Tietz  <ktietz@redhat.com>
23750
23751         PR target/48416
23752         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23753
23754         * i386.c (ix86_is_msabi_thiscall): New helper function.
23755         (ix86_is_type_thiscall): New helper function.
23756         (ix86_comp_type_attributes): Handle thiscall for method-functions
23757         special.
23758         (init_cumulative_args): Likewise.
23759         (find_drap_reg): Likewise.
23760         (ix86_static_chain): Likewise.
23761         (x86_this_parameter): Likewise.
23762         (x86_output_mi_thunk): Likewise.
23763
23764 2011-04-01  Olivier Hainque  <hainque@adacore.com>
23765             Nicolas Setton  <setton@adacore.com>
23766             Eric Botcazou  <ebotcazou@adacore.com>
23767
23768         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23769         (add_gnat_descriptive_type_attribute): New function.
23770         (gen_array_type_die): Call it.
23771         (gen_enumeration_type_die): Likewise.
23772         (gen_struct_or_union_type_die): Likewise.
23773         (modified_type_die): Likewise.
23774         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23775         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23776         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23777
23778 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23779
23780         PR bootstrap/48148
23781         * dwarf2out.c (resolve_addr): Don't call force_decl_die
23782         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23783
23784         Revert:
23785         2011-03-17  Richard Guenther  <rguenther@suse.de>
23786
23787         PR bootstrap/48148
23788         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23789         origin for decls in other ltrans units.
23790         (input_varpool_node): Likewise.
23791
23792 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23793
23794         PR middle-end/48335
23795         * expr.c (expand_assignment): Handle all possibilities
23796         if TO_RTX is CONCAT.
23797         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23798         (store_split_bit_field): If SUBREG_REG (op0) or
23799         op0 itself has smaller mode than word, return it
23800         for offset 0 and const0_rtx for out-of-bounds stores.
23801         If word is const0_rtx, skip it.
23802
23803 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
23804
23805         * config/h8300/h8300.c (print_operand_address): Rename to...
23806         (h8300_print_operand_address): ...this. Make static. Adjust comments.
23807         Call h8300_print_operand and h8300_print_operand_address instead of
23808         print_operand and print_operand_address. Declare.
23809         (print_operand): Renake to...
23810         (h8300_print_operand): ...this. Make static. Adjust comments.
23811         Call h8300_print_operand instead of print_operand. Declare.
23812         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23813         (h8300_register_move_cost): Likewise.
23814         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23815         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23816         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23817         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23818         * config/h8300/h8300-protos.h (print_operand): Delete.
23819         (print_operand_address): Delete.
23820
23821 2011-04-01  Richard Henderson  <rth@redhat.com>
23822
23823         PR 48400
23824         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23825         in strict mode before dwarf4.  Re-order tests to early out
23826         before switching sections.
23827
23828 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
23829
23830         * config/h8300/constraints.md: New file.
23831         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
23832         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23833         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23834         * config/h8300/predicates.md (bit_operand): Likewise.
23835         (incdec_operand): Use satisfies_constraint_M and
23836         satisfies_constraint_O.  Don't use C code block.
23837         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23838         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23839         (compute_mov_length): Use satisfies_constraint_G.
23840         (fix_bit_operand): Use satisfies_constraint_U.
23841         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23842         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23843         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23844         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23845         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23846         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23847         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23848         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23849         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23850         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23851         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23852         (EXTRA_MEMORY_CONSTRAINT): Delete.
23853
23854 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
23855             Michael Meissner  <meissner@linux.vnet.ibm.com>
23856
23857         PR target/48262
23858         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23859         operands, as per the specifications.
23860
23861         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23862         (vec_extract_evenv4sf): Ditto.
23863         (vec_extract_evenv8hi): Ditto.
23864         (vec_extract_evenv16qi): Ditto.
23865         (vec_extract_oddv4si): Ditto.
23866
23867 2011-03-31  Mark Wielaard  <mjw@redhat.com>
23868
23869         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23870         high_pc attribute if the CU has no associated code. Only output
23871         DW_AT_entry_pc for CU if not generating strict dwarf and
23872         dwarf_version < 4.
23873
23874 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
23875
23876         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23877         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23878         out of ...
23879         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23880         * final.c (final_start_function): Call the new function rather
23881         than using a NULL argument for dwarf2out_frame_debug.
23882
23883         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23884         that contains the prologue.
23885
23886         * haifa-sched.c (queue_insn): New arg REASON.  All callers
23887         changed.  Print it in debugging output.
23888
23889         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23890
23891         * sched-ebb.c (begin_schedule_ready): Remove second argument.
23892         Split most of the code into...
23893         (begin_move_insn): ... here.  New function.
23894         (ebb_sched_info): Add a pointer to it.
23895         * haifa-sched.c (scheduled_insns): New static variable.
23896         (sched_extend_ready_list): Allocate it.
23897         (schedule_block): Use it to record the order of scheduled insns.
23898         Perform RTL changes to move insns only after all scheduling
23899         decisions have been made.
23900         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23901         begin_move_insn field.
23902         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23903         * sched-int.h (struct haifa_sched_info): Remove second argument
23904         from begin_schedule_ready hook.  Add new member begin_move_insn.
23905         * sched-rgn.c (begin_schedule_ready): Remove second argument.
23906         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
23907
23908         * haifa-sched.c (prune_ready_list): New function, broken out of
23909         schedule_block.
23910         (schedule_block): Use it.
23911
23912 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23913
23914         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
23915
23916 2011-04-01  Kai Tietz  <ktietz@redhat.com>
23917
23918         * config.gcc (*-*-mingw*): Allow as option the
23919         posix threading model.
23920         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
23921         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
23922         definition.
23923         (CPP_SPEC): Add pthread/no-pthread handling.
23924         (LIB_SPEC): Likewise.
23925         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
23926         (LIB_SPEC): Likewise.
23927         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
23928         flag to pass -pthread option for shared libgcc build.
23929         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
23930         for shared libgcc build.
23931         * config/i386/t-mingw-pthread: New file.
23932         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
23933         New define to enable use of library pthread by default.
23934         * config/i386/mingw.opt (pthread): New driver option.
23935         (no-pthread): New driver option.
23936         * config/i386/cygming.opt: Make sure trailing empty line is retained.
23937         * config/i386/mingw-w64.opt: Likewise.
23938
23939 2011-04-01  Gary Funck  <gary@intrepid.com>
23940
23941         * c-decl.c (grokdeclarator): Fix formatting.
23942
23943 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23944
23945         * expr.c (emit_block_move_via_movmem): Use n_generator_args
23946         instead of n_operands.
23947         (set_storage_via_setmem): Likewise.
23948         * optabs.c (maybe_gen_insn): Likewise.
23949         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
23950         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
23951         (mips_expand_builtin_direct): Likewise.
23952         * config/spu/spu.c (expand_builtin_args): Likewise.
23953
23954 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23955
23956         * recog.h (insn_data_d): Add n_generator_args.
23957         * genoutput.c (data): Likewise.
23958         (output_insn_data): Print it.
23959         (max_opno, num_dups): Delete.
23960         (scan_operands): Just fill in "d->operand[...]".
23961         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
23962
23963 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
23964
23965         * gensupport.h (pattern_stats): New structure.
23966         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
23967         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
23968         (max_operand_1, max_operand_vec): Delete.
23969         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
23970
23971 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
23972
23973         * emit-rtl.c (emit_pattern_after_setloc): New function.
23974         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
23975         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
23976         (emit_pattern_after): New function.
23977         (emit_insn_after, emit_jump_insn_after): Call it.
23978         (emit_call_insn_after, emit_debug_insn_after): Likewise.
23979         (emit_pattern_before_setloc): New function.
23980         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
23981         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
23982         Likewise.
23983         (emit_pattern_before): New function.
23984         (emit_insn_before, emit_jump_insn_before): Call it.
23985         (emit_call_insn_before, emit_debug_insn_before): Likewise.
23986
23987 2011-03-31  Richard Henderson  <rth@redhat.com>
23988
23989         * dwarf2out.c (dw_separate_line_info_ref): Remove.
23990         (dw_separate_line_info_entry): Remove.
23991         (enum dw_line_info_opcode): New.
23992         (dw_line_info_entry): Use it.
23993         (dw_line_info_table, dw_line_info_table_p): New.
23994         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
23995         (line_info_table, line_info_label_num): Remove.
23996         (line_info_table_in_use): Remove.
23997         (separate_line_info_table): Remove.
23998         (separate_line_info_table_allocated): Remove.
23999         (separate_line_info_table_in_use): Remove.
24000         (LINE_INFO_TABLE_INCREMENT): Remove.
24001         (line_info_label_num): New.
24002         (cur_line_info_table): New.
24003         (text_section_line_info, cold_text_section_line_info): New.
24004         (separate_line_info): New.
24005         (SEPARATE_LINE_CODE_LABEL): Remove.
24006         (print_dwarf_line_table): Remove.
24007         (debug_dwarf): Don't dump it.
24008         (output_one_line_info_table): New.
24009         (output_line_info): Use it.
24010         (new_line_info_table): New.
24011         (set_cur_line_info_table): New.
24012         (dwarf2out_switch_text_section): Use it.
24013         (dwarf2out_begin_function): Likewise.
24014         (push_dw_line_info_entry): New.
24015         (dwarf2out_source_line): Rewrite for new line info tables.
24016         (dwarf2out_init): Remove dead initailizations.
24017
24018 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24019
24020         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
24021         various flags.
24022         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24023         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24024         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24025         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24026         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24027         * opt-functions.awk (flag_init, switch_bit_fields): New.
24028         (switch_flags): Don't handle flags moved to bit-fields.  Don't
24029         generate CL_MISSING_OK or CL_SAVE.
24030         * optc-gen.awk: Update to generate bit-field output as well as
24031         flags field.
24032         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24033         bit-field instead of CL_REJECT_DRIVER flag.
24034         * opts-common.c (generate_canonical_option,
24035         decode_cmdline_option): Use bit-fields instead of CL_* flags.
24036         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24037         instead of CL_REJECT_NEGATIVE flag.
24038         * toplev.c (print_switch_values): Use cl_report bit-field instead
24039         of CL_REPORT flag.
24040
24041 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24042
24043         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24044         a zero minimum index only if it is redundant.
24045
24046 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
24047
24048         PR rtl-optimization/48381
24049         * ira-color.c (assign_hard_reg): Use hard reg set intersection
24050         instead of ira_class_hard_reg_index for calculating conflicting
24051         hard registers.
24052
24053 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
24054
24055         * cprop.c: Clean up hash table building.
24056         (reg_avail_info): Remove.
24057         (oprs_available_p): Remove.
24058         (record_last_reg_set_info): Remove.
24059         (record_last_set_info): Remove.
24060         (reg_available_p): New function.
24061         (gcse_constant_p): Do not treat unfolded conditions as constants.
24062         (make_set_regs_unavailable): New function.
24063         (hash_scan_set): Simplify with new reg_available_p.
24064         (compute_hash_table_work): Traverse insns stream only once.
24065         Do not compute reg_avail_info. Traverse insns in reverse order.
24066         Record implicit sets after recording explicit sets from the block.
24067
24068 2011-03-31  Michael Matz  <matz@suse.de>
24069
24070         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24071
24072 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
24073
24074         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24075         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24076         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24077         (h8300_mode_dependent_address_p): New function.
24078         (h8300_get_index): Make static.
24079
24080 2011-03-31  Jeff Law  <law@redhat.com>
24081
24082         * reload1.c (elimination_effects): Fix typo in recent change.
24083
24084         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24085         typo potentially leading to null pointer dereference.
24086
24087         * caller-save.c (new_saved_hard_reg): Eliminate return value.
24088         (setup_save_areas): Corresponding changes to avoid useless
24089         assignments.
24090
24091         * jump.c (reversed_comparison_code_parts): Avoid successive return
24092         statements when REVERSE_CONDITION is defined.
24093
24094         * expr.c (expand_assignment): Avoid useless assignments.
24095         (expand_expr_real_1): Likewise.
24096         (expand_expr_real_2): Avoid useless statements.
24097
24098         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24099
24100         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24101
24102         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24103         statements.
24104
24105         * stmt.c (expand_expr_stmt): Avoid useless assignment.
24106
24107 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24108
24109         PR target/47109
24110         * doc/tm.texi.in (TARGET_VERSION): Remove.
24111         * doc/tm.texi: Regenerate.
24112         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24113         * collect2.c (main): Don't use TARGET_VERSION.
24114         * mips-tdump.c (main): Don't use TARGET_VERSION.
24115         * mips-tfile.c (main): Don't use TARGET_VERSION.
24116         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24117         * config/rs6000/vxworksae.h: Remove.
24118         * config/alpha/alpha.h (TARGET_VERSION): Remove.
24119         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24120         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24121         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24122         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24123         * config/arm/arm.h (TARGET_VERSION): Remove.
24124         * config/arm/coff.h (TARGET_VERSION): Remove.
24125         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24126         * config/arm/elf.h (TARGET_VERSION): Remove.
24127         * config/arm/freebsd.h (TARGET_VERSION): Remove.
24128         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24129         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24130         * config/arm/pe.h (TARGET_VERSION): Remove.
24131         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24132         * config/arm/semi.h (TARGET_VERSION): Remove.
24133         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24134         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24135         * config/arm/vxworks.h (TARGET_VERSION): Remove.
24136         * config/avr/avr.h (TARGET_VERSION): Remove.
24137         * config/bfin/bfin.h (TARGET_VERSION): Remove.
24138         * config/fr30/fr30.h (TARGET_VERSION): Remove.
24139         * config/frv/frv.h (TARGET_VERSION): Remove.
24140         * config/h8300/h8300.h (TARGET_VERSION): Remove.
24141         * config/i386/cygwin.h (TARGET_VERSION): Remove.
24142         * config/i386/darwin.h (TARGET_VERSION): Remove.
24143         * config/i386/darwin64.h (TARGET_VERSION): Remove.
24144         * config/i386/djgpp.h (TARGET_VERSION): Remove.
24145         * config/i386/freebsd.h (TARGET_VERSION): Remove.
24146         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
24147         * config/i386/gnu.h (TARGET_VERSION): Remove.
24148         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
24149         * config/i386/i386elf.h (TARGET_VERSION): Remove.
24150         * config/i386/linux.h (TARGET_VERSION): Remove.
24151         * config/i386/linux64.h (TARGET_VERSION): Remove.
24152         * config/i386/lynx.h (TARGET_VERSION): Remove.
24153         * config/i386/mingw32.h (TARGET_VERSION): Remove.
24154         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
24155         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
24156         * config/i386/netware.h (TARGET_VERSION): Remove.
24157         * config/i386/nto.h (TARGET_VERSION): Remove.
24158         * config/i386/openbsd.h (TARGET_VERSION): Remove.
24159         * config/i386/vxworks.h (TARGET_VERSION): Remove.
24160         * config/ia64/elf.h (TARGET_VERSION): Remove.
24161         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
24162         * config/ia64/hpux.h (TARGET_VERSION): Remove.
24163         * config/ia64/linux.h (TARGET_VERSION): Remove.
24164         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24165         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
24166         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24167         * config/lm32/lm32.h (TARGET_VERSION): Remove.
24168         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
24169         * config/m32c/m32c.h (TARGET_VERSION): Remove.
24170         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
24171         * config/m32r/m32r.h (TARGET_VERSION): Remove.
24172         * config/m68k/linux.h (TARGET_VERSION): Remove.
24173         * config/m68k/m68k.h (TARGET_VERSION): Remove.
24174         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
24175         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
24176         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
24177         * config/mep/mep.h (TARGET_VERSION): Remove.
24178         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
24179         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24180         * config/mips/iris6.h (MACHINE_TYPE): Remove.
24181         * config/mips/linux.h (TARGET_VERSION): Remove.
24182         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
24183         * config/mips/vxworks.h (TARGET_VERSION): Remove.
24184         * config/mmix/mmix.h (TARGET_VERSION): Remove.
24185         * config/mn10300/linux.h (TARGET_VERSION): Remove.
24186         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
24187         * config/pa/pa.h (TARGET_VERSION): Remove.
24188         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
24189         * config/picochip/picochip.h (TARGET_VERSION): Remove.
24190         * config/rs6000/aix.h (TARGET_VERSION): Remove.
24191         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
24192         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
24193         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
24194         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
24195         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
24196         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
24197         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
24198         * config/rs6000/linux.h (TARGET_VERSION): Remove.
24199         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
24200         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
24201         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
24202         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
24203         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
24204         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
24205         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
24206         * config/s390/linux.h (TARGET_VERSION): Remove.
24207         * config/s390/s390.h (TARGET_VERSION): Remove.
24208         * config/s390/tpf.h (TARGET_VERSION): Remove.
24209         * config/score/score.h (TARGET_VERSION): Remove.
24210         * config/sh/linux.h (TARGET_VERSION): Remove.
24211         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
24212         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
24213         * config/sh/sh.h (TARGET_VERSION): Remove.
24214         * config/sh/sh64.h (TARGET_VERSION): Remove.
24215         * config/sh/superh.h (TARGET_VERSION): Remove.
24216         * config/sh/vxworks.h (TARGET_VERSION): Remove.
24217         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
24218         * config/sparc/linux.h (TARGET_VERSION): Remove.
24219         * config/sparc/linux64.h (TARGET_VERSION): Remove.
24220         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
24221         TARGET_NAME32, TARGET_NAME): Remove.
24222         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
24223         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
24224         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
24225         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
24226         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
24227         * config/spu/spu.h (TARGET_VERSION): Remove.
24228         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
24229         * config/v850/v850.h (TARGET_VERSION): Remove.
24230         * config/vax/linux.h (TARGET_VERSION): Remove.
24231         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
24232         * config/xtensa/elf.h (TARGET_VERSION): Remove.
24233         * config/xtensa/linux.h (TARGET_VERSION): Remove.
24234
24235 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24236
24237         PR target/48142
24238         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
24239         frame-related from frame-unrelated adjustments to the stack pointer.
24240
24241 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
24242
24243         * common.opt (fdebug-types-section): Move earlier.
24244         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
24245
24246 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
24247
24248         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
24249         var.
24250
24251 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
24252
24253         * tree.h (CASE_CHAIN): Define.
24254         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
24255         (gimple_redirect_edge_and_branch): Likewise.
24256
24257 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24258
24259         PR middle-end/48367
24260         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
24261         calculation.
24262
24263 2011-03-30  Jeff Law  <law@redhat.com>
24264
24265         * PR bootstrap/48371
24266         * reload1.c (reload): Fix botch in last change.
24267
24268         * reload.h (struct reload): Fix typo introduced in last change.
24269
24270 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24271
24272         * config/arm/arm.opt (mhard-float, msoft-float): Mark
24273         Undocumented.  Remove help text.
24274         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
24275         -mhard-float.
24276
24277 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24278
24279         * doc/options.texi (NegativeAlias): Document.
24280         (Alias): Mention NegativeAlias.
24281         * opt-functions.awk: Handle NegativeAlias.
24282         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
24283         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24284         * opts.h (CL_NEGATIVE_ALIAS): Define.
24285         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24286         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24287         OPT_mspe_.
24288         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24289         Alias entries.
24290         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24291         mno-spe and mno-isel instead of mspe=no and -misel=no.
24292
24293 2011-03-29  Mark Wielaard  <mjw@redhat.com>
24294
24295         * common.opt (fdebug-types-section): New flag.
24296         * doc/invoke.texi: Document new -fno-debug-types-section flag.
24297         * dwarf2out.c (use_debug_types): New define.
24298         (struct die_struct): Mark die_id with GTY desc use_debug_types.
24299         (print_die): Guard output of type unit signatures using
24300         use_debug_types.
24301         (build_abbrev_table): Replace assert of dwarf_version >= 4
24302         with assert on use_debug_types.
24303         (size_of_die): Likewise.
24304         (unmark_dies): Likewise.
24305         (value_format): Decide AT_ref_external form on use_debug_types.
24306         (output_die): Replace dwarf_version version check guard with
24307         use_debug_types where appropriate.
24308         (modified_type_die): Likewise.
24309         (gen_reference_type_die): Likewise.
24310         (dwarf2out_start_source_file): Likewise.
24311         (dwarf2out_end_source_file): Likewise.
24312         (prune_unused_types_walk_attribs): Likewise.
24313         (dwarf2out_finish): Likewise.
24314
24315 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24316
24317         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24318
24319 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24320
24321         PR rtl-optimization/48332
24322         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24323         mode of input operand N and modeN to its actual mode.
24324
24325 2011-03-30  Jeff Law  <law@redhat.com>
24326
24327         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24328         define accessor macro.
24329         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24330         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24331         (reg_equiv_init): Likewise.
24332         (reg_equivs_size): New variable.
24333         (reg_equiv_init_size): Remove.
24334         (allocate_initial_values): Move prototype to here from....
24335         * integrate.h (allocate_initial_values): Remove prototype.
24336         * integrate.c: Include reload.h.
24337         (allocate_initial_values): Corresponding changes.
24338         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24339         (fix_reg_equiv_init, no_equiv): Corresponding changes.
24340         (update_equiv_regs): Corresponding changes.
24341         (ira): Corresponding changes.
24342         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24343         (push_secondary_reload): Corresponding changes.
24344         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24345         (make_memloc, find_reloads_address): Corresponding changes.
24346         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24347         (find_reloads_address_1): Corresponding changes.
24348         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24349         (refers_to_regno_for_reload_p): Corresponding changes.
24350         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24351         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24352         * reload1.c: Include ggc.h.
24353         (grow_reg_equivs): New function.
24354         (replace_pseudos_in, reload): Corresponding changes.
24355         (calculate_needs_all_insns, alter_regs): Corresponding changes.
24356         (eliminate_regs_1, elimination_effects): Corresponding changes.
24357         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24358         (delete_output_reload): Likewise.
24359         * caller-save.c (mark_referenced_regs): Corresponding changes.
24360         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24361         * frv/predicates.md (frv_load_operand): Corresponding changes.
24362         * microblaze/microblaze.c (double_memory_operand): Corresponding
24363         changes.
24364         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24365         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24366         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24367         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24368         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24369         changes.
24370         * pa/pa.c (emit_move_sequence): Corresponding changes.
24371         * vax/vax.c (nonindexed_address_p): Corresponding changes.
24372
24373 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24374
24375         PR target/47551
24376         * config/arm/arm.c (coproc_secondary_reload_class): Handle
24377         structure modes.  Don't check neon_vector_mem_operand for
24378         vector or structure modes.
24379
24380 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24381             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24382
24383         PR target/43590
24384         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24385         operand 1 and reshuffle the operands to match.
24386         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24387
24388 2011-03-30  Christian Schüler  <cschueler@gmx.de>
24389
24390         PR driver/48208
24391         * config/c.opt (F): Added 'Driver' to -F option.
24392
24393         PR driver/48260
24394         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24395           handler function.
24396         * config/darwin.opt: Added '-arch' option.
24397
24398 2011-03-30  Nick Clifton  <nickc@redhat.com>
24399
24400         * config/rx/rx.md: Add peepholes and patterns to combine
24401         extending loads and simple arithmetic instructions.
24402         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24403         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24404         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24405         modes to use pre-decrement and post-increment addressing.
24406         (rx_is_restricted_memory_address): Add range checking of REG+INT
24407         addresses.
24408         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
24409         (rx_memory_move_cost): Adjust cost of stores.
24410         (rx_adjust_insn_length): New function.
24411
24412 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
24413
24414         PR c/48305
24415         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24416         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24417         matching arg00/arg01 types.
24418
24419 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
24420
24421         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24422         last_location to UNKNOWN_LOCATION.
24423
24424 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24425
24426         PR target/48349
24427         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24428         FLOAT_SSE_REGS.
24429
24430 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24431             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24432
24433         PR bootstrap/48337
24434         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24435         Init(PROCESSOR_V7).
24436         (sparc_cpu): Likewise.
24437         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24438         PROCESSOR_V7.
24439
24440 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24441
24442         PR target/48336
24443         PR middle-end/48342
24444         PR rtl-optimization/48345
24445         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24446         hard regs for given mode from profitable regs when doing secondary
24447         allocation.
24448
24449 2011-03-29  Jeff Law  <law@redhat.com>
24450
24451         PR bootstrap/48327
24452         * tree-ssa-threadupdate.c (struct redirection_data): Remove
24453         do_not_duplicate field.
24454         (lookup_redirection_data): Corresponding changes.
24455         (create_duplicates): Always create a template block.
24456         (redirect_edges): Remove code which reused the original block
24457         when it was going to become unreachable code.
24458         (thread_block): Don't set do_not_duplicate field.
24459
24460 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
24461
24462         * lto-opts.c (register_user_option_p, lto_register_user_option):
24463         Make type argument unsigned.
24464         * lto-streamer.h (lto_register_user_option): Make type argument
24465         unsigned.
24466         * opth-gen.awk: Make CL_* macros unsigned.
24467         * opts-common.c (find_opt): Make lang_mask argument unsigned.
24468         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24469         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24470         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24471         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24472         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24473         (find_opt): Make lang_mask argument unsigned.
24474
24475 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24476
24477         PR rtl-optimization/48331
24478         PR rtl-optimization/48334
24479         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24480         for any used algorithm.
24481
24482 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24483
24484         * ira-conflicts.c (build_object_conflicts): Add unused attribute
24485         to parent_max.
24486
24487 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
24488
24489         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24490         (alpha_option_override): Don't set alpha_sr_alias_set.
24491         (emit_frame_store_1): Use gen_frame_mem rather than calling
24492         set_mem_alias_set.
24493         (alpha_expand_epilogue): Ditto.
24494
24495 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
24496
24497         PR tree-optimization/48290
24498         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24499         vectorization, check that relevant phis in the basic block after
24500         the inner loop are really inner loop's exit phis.
24501
24502 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
24503
24504         PR debug/48190
24505         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24506         (cached_dw_loc_list_def): New structure.
24507         (cached_dw_loc_list): New typedef.
24508         (cached_dw_loc_list_table): New variable.
24509         (cached_dw_loc_list_table_hash): New function.
24510         (cached_dw_loc_list_table_eq): Likewise.
24511         (add_location_or_const_value_attribute): Take a bool cache_p.
24512         Cache the list when the parameter is true.
24513         (gen_formal_parameter_die): Update caller.
24514         (gen_variable_die): Likewise.
24515         (dwarf2out_finish): Likewise.
24516         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24517         while generating debug info for the decl.
24518         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24519         (dwarf2out_init): Initialize cached_dw_loc_list_table.
24520         (resolve_addr): Cache the result of resolving a chain of
24521         location lists.
24522
24523 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24524
24525         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24526         conflict object hard regset nodes have intersecting hard reg sets.
24527
24528         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24529         after regstat_init_n_sets_and_refs.
24530
24531         * ira.c: Add more comments at the top.
24532         (setup_stack_reg_pressure_class, setup_pressure_classes):
24533         Add comments how we compute the register pressure classes.
24534         (setup_allocno_and_important_classes): Add more comments.
24535         (setup_class_translate_array, reorder_important_classes)
24536         (setup_reg_class_relations): Add comments.
24537
24538         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
24539         start of the file.
24540
24541         * ira-color.c: Add 2011 to the Copyright line.
24542         (assign_hard_reg):  Add more comments.
24543         (improve_allocation): Ditto.
24544
24545         * ira-costs.c: Add 2011 to the Copyright line.
24546         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24547         comments.
24548         (setup_regno_cost_classes_by_mode): Ditto.
24549
24550         Initial patches from ira-improv branch:
24551
24552         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24553
24554         * ira-build.c (ira_create_object): Remove initialization of
24555         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
24556         (ira_create_allocno): Remove initialization of
24557         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24558         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24559         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24560         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24561         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24562         Initialize ALLOCNO_ADD_DATA.
24563         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24564         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24565         ALLOCNO_REG.
24566         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
24567         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24568
24569         * ira.c (ira_reallocate): Remove.
24570         (setup_pressure_classes): Call
24571         ira_init_register_move_cost_if_necessary.  Use
24572         ira_register_move_cost instead of ira_get_register_move_cost.
24573         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24574         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24575
24576         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24577         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24578         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24579         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24580         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24581         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24582         Fix formatting.
24583         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24584         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24585         (struct allocno_color_data): New.
24586         (allocno_color_data_t): New typedef.
24587         (allocno_color_data): New definition.
24588         (ALLOCNO_COLOR_DATA): New macro.
24589         (struct object_color_data): New.
24590         (object_color_data_t): New typedef.
24591         (object_color_data): New definition.
24592         (OBJECT_COLOR_DATA): New macro.
24593         (update_copy_costs, calculate_allocno_spill_cost): Call
24594         ira_init_register_move_cost_if_necessary.  Use
24595         ira_register_move_cost instead of ira_get_register_move_cost.
24596         (move_spill_restore, update_curr_costs): Ditto.
24597         (allocno_spill_priority): Make it inline.
24598         (color_pass): Allocate and free allocno_color_dat and object_color_data.
24599         (struct coalesce_data, coalesce_data_t): New.
24600         (allocno_coalesce_data): New definition.
24601         (ALLOCNO_COALESCE_DATA): New macro.
24602         (merge_allocnos, coalesced_allocno_conflict_p): Use
24603         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24604         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24605         (coalesce_allocnos): Ditto.
24606         (setup_coalesced_allocno_costs_and_nums): Ditto.
24607         (collect_spilled_coalesced_allocnos): Ditto.
24608         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24609         (setup_slot_coalesced_allocno_live_ranges): Ditto.
24610         (coalesce_spill_slots): Ditto.
24611         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
24612         free allocno_coalesce_data.
24613
24614         * ira-conflicts.c: Fix formatting.
24615         (process_regs_for_copy): Call
24616         ira_init_register_move_cost_if_necessary.  Use
24617         ira_register_move_cost instead of ira_get_register_move_cost.
24618         (build_object_conflicts): Optimize.
24619
24620         * ira-costs.c (record_reg_classes): Optimize.  Call
24621         ira_init_register_move_cost_if_necessary.  Use
24622         ira_register_move_cost, ira_may_move_in_cost, and
24623         ira_may_move_out_cost instead of ira_get_register_move_cost and
24624         ira_get_may_move_cost.
24625         (record_address_regs): Ditto.
24626         (scan_one_insn): Optimize.
24627         (find_costs_and_classes): Optimize.
24628         (process_bb_node_for_hard_reg_moves): Call
24629         ira_init_register_move_cost_if_necessary.  Use
24630         ira_register_move_cost instead of ira_get_register_move_cost.
24631
24632         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24633         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24634         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24635         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24636         definitions.
24637         (ira_initiate_emit_data, ira_finish_emit_data)
24638         (create_new_allocno): New functions.
24639         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24640         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24641         Use ira_register_move_cost instead of ira_get_register_move_cost.
24642
24643         * ira-int.h: Fix some comments.
24644         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24645         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24646         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24647         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
24648         add_data.
24649         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
24650         bitfield after mode.  Make hard_regno a short int.  Make
24651         hard_regno short.  Remove first_coalesced_allocno and
24652         next_coalesced_allocno.  Move mem_optimized_dest_p,
24653         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24654         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
24655         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24656         temp, colorable_p.  Add new member add_data.
24657         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24658         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24659         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24660         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24661         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24662         (ALLOCNO_ADD_DATA): New macro.
24663         (ira_emit_data_t): New typedef.
24664         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
24665         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24666         from struct ira_allocno.
24667         (ALLOCNO_EMIT_DATA): New macro.
24668         (ira_allocno_emit_data, allocno_emit_reg): New.
24669         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24670         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24671         (OBJECT_ADD_DATA): New macro.
24672         (ira_reallocate): Remove.
24673         (ira_initiate_emit_data, ira_finish_emit_data): New.
24674         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24675         (ira_init_register_move_cost_if_necessary): New.
24676         (ira_object_conflict_iter_next): Merge into
24677         ira_object_conflict_iter_cond.
24678         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24679
24680         * ira-live.c (process_single_reg_class_operands): Call
24681         ira_init_register_move_cost_if_necessary.  Use
24682         ira_register_move_cost instead of ira_get_register_move_cost.
24683
24684         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24685
24686         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24687
24688         * ira-costs.c: Fix formatting.
24689         (cost_classes, cost_classes_num): Remove.
24690         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24691         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24692         (cost_classes_del, cost_classes_htab): New.
24693         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24694         (initiate_regno_cost_classes, setup_cost_classes): New.
24695         (setup_regno_cost_classes_by_aclass): New.
24696         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24697         (record_reg_classes): Use regno_cost_classes instead of
24698         cost_classes.  Move checking opposite operand up.
24699         (record_address_regs): Use regno_cost_classes
24700         instead of cost_classes.
24701         (scan_one_insn): Ditto.  Use always general register.
24702         (print_allocno_costs): Use regno_cost_classes instead of
24703         cost_classes.
24704         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
24705         (find_costs_and_classes): Set up cost classes for each registers.
24706         Use also their mode for this.  Use regno_cost_classes instead of
24707         cost_classes.
24708         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24709         cost_classes.
24710         (free_ira_costs, ira_init_costs): Don't use cost_classes.
24711         (ira_costs, ira_set_pseudo_classes): Call
24712         initiate_regno_cost_classes and finish_regno_cost_classes.
24713
24714         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
24715
24716         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24717
24718         * target.def (ira_cover_classes): Remove.
24719
24720         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24721
24722         * doc/tm.texi.in: Ditto.
24723
24724         * ira-conflicts.c: Remove mentioning cover classes from the file.
24725         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
24726         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
24727
24728         * targhooks.c (default_ira_cover_classes): Remove.
24729
24730         * targhooks.h (default_ira_cover_classes): Ditto.
24731
24732         * haifa-sched.c: Remove mentioning cover classes from the file.
24733         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24734         ira_pressure_classes and ira_pressure_classes_num instead of
24735         ira_reg_class_cover_size and ira_reg_class_cover.  Use
24736         sched_regno_pressure_class instead of sched_regno_cover_class.
24737         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24738         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24739
24740         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
24741         classes from the file.
24742         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24743         (struct object_hard_regs, struct object_hard_regs_node): New.
24744         (struct ira_object): New members profitable_hard_regs,
24745         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24746         (struct ira_allocno): Rename cover_class to aclass.  Rename
24747         cover_class_cost and updated_cover_class_cost to class_cost and
24748         updated_class_cost.  Remove splay_removed_p and
24749         left_conflict_size.  Add new members colorable_p.
24750         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24751         (ALLOCNO_COLORABLE_P): New macro.
24752         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24753         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24754         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24755         (OBJECT_...): Rename parameter C to O.
24756         (OBJECT_PROFITABLE_HARD_REGS): New macro.
24757         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24758         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24759         (struct target_ira_int): New members x_ira_max_memory_move_cost,
24760         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24761         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24762         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24763         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
24764         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
24765         x_ira_reg_class_subunion.
24766         (ira_max_memory_move_cost, ira_max_register_move_cost)
24767         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24768         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24769         (ira_important_class_nums, ira_reg_class_superunion): New macros.
24770         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24771         (ira_reg_class_union): Rename to ira_reg_class_subunion.
24772         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24773         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24774         (ira_tune_allocno_costs_and_cover_classes): Rename to
24775         ira_tune_allocno_costs.
24776         (ira_debug_hard_regs_forest): New.
24777         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24778         (ira_object_conflict_iter_next): Fix comments.
24779         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24780         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24781         cover_class to aclass.
24782         (ira_allocate_and_accumulate_costs): Ditto.
24783         (ira_allocate_and_set_or_copy_costs): Ditto.
24784
24785         * opts.c (decode_options): Remove ira_cover_class check.
24786
24787         * ira-color.c: Remove mentioning cover classes from the file.  Use
24788         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24789         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24790         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24791         (splay-tree.h): Remove include.
24792         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24793         before copy_freq_compare_func.
24794         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24795         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24796         New definitions.
24797         (hard_regs_roots, hard_regs_node_vec): Ditto.
24798         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24799         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24800         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24801         (create_new_object_hard_regs_node): Ditto.
24802         (add_new_object_hard_regs_node_to_forest): Ditto.
24803         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24804         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24805         Ditto.
24806         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24807         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24808         (remove_unused_object_hard_regs_nodes): Ditto.
24809         (enumerate_object_hard_regs_nodes): Ditto.
24810         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24811         (object_hard_regs_subnode_t): Ditto.
24812         (struct object_hard_regs_subnode): Ditto.
24813         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24814         (setup_object_hard_regs_subnode_index): Ditto.
24815         (get_object_hard_regs_subnodes_num): Ditto.
24816         (form_object_hard_regs_nodes_forest): Ditto.
24817         (finish_object_hard_regs_nodes_tree): Ditto.
24818         (finish_object_hard_regs_nodes_forest): Ditto.
24819         (allocnos_have_intersected_live_ranges_p): Rename to
24820         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24821         (pseudos_have_intersected_live_ranges_p): Rename to
24822         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24823         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24824         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24825         (update_copy_costs): Remove assert.  Skip cost update if the hard
24826         reg does not belong the class.
24827         (assign_hard_reg): Process only profitable hard regs.
24828         (uncolorable_allocnos_num): Make it scalar.
24829         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24830         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24831         and ira_reg_class_max_nregs.
24832         (bucket_allocno_compare_func): Check frequency first.
24833         (sort_bucket): Add compare function as a parameter.
24834         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24835         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24836         (push_allocno_to_stack): Rewrite for checking new allocno
24837         colorability.
24838         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
24839         (push_only_colorable): Pass new parameter to sort_bucket.
24840         (push_allocno_to_spill): Remove.
24841         (allocno_spill_priority_compare): Make it inline and rewrite.
24842         (splay_tree_allocate, splay_tree_free): Remove.
24843         (allocno_spill_sort_compare): New function.
24844         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
24845         build and use splay tree.  Choose first allocno in uncolorable
24846         allocno bucket to spill.  Remove setting spill cost.
24847         (all_conflicting_hard_regs): Remove.
24848         (setup_allocno_available_regs_num): Check only profitable hard
24849         regs.  Print info about hard regs nodes.
24850         (setup_allocno_left_conflicts_size): Remove.
24851         (put_allocno_into_bucket): Don't call
24852         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
24853         (improve_allocation): New.
24854         (color_allocnos): Call setup_profitable_hard_regs,
24855         form_object_hard_regs_nodes_forest, improve_allocation,
24856         finish_object_hard_regs_nodes_forest.  Setup spill cost.
24857         (print_loop_title): Use pressure classes.
24858         (color_allocnso): Ditto.
24859         (do_coloring): Remove allocation and freeing splay_tree_node_pool
24860         and allocnos_for_spilling.
24861         (ira_sort_regnos_for_alter_reg): Don't setup members
24862         {first,next}_coalesced_allocno.
24863         (color): Remove allocating and freeing removed_splay_allocno_vec.
24864         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24865         prohibited_class_mode_regs.
24866
24867         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
24868         formatting.
24869         (update_allocno_pressure_excess_length): Use pressure classes.
24870         (inc_register_pressure, dec_register_pressure): Check for pressure
24871         class.
24872         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24873         pressure class.  Use ira_reg_class_nregs instead of
24874         ira_reg_class_max_nregs.
24875         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24876         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24877         (single_reg_class): Use ira_reg_class_nregs instead of
24878         ira_reg_class_max_nregs.
24879         (process_bb_node_lives): Use pressure classes.
24880
24881         * ira-emit.c: Remove mentioning cover classes from the file.  Use
24882         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24883         (change_loop): Use pressure classes.
24884         (modify_move_list): Call ira_set_allocno_class instead of
24885         ira_set_allocno_cover_class.
24886
24887         * ira-build.c: Remove mentioning cover classes from the file.  Use
24888         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24889         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
24890         ALLOCNO_UPDATED_CLASS_COST instead of
24891         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24892         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24893         (ira_create_allocno): Remove initialization of
24894         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
24895         ALLOCNO_COLORABLE_P.
24896         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24897         Update conflict regs for the objects.
24898         (create_cap_allocno): Remove assert.  Don't propagate
24899         ALLOCNO_AVAILABLE_REGS_NUM.
24900         (ira_free_allocno_costs): New function.
24901         (finish_allocno): Change a part of code into call of
24902         ira_free_allocno_costs.
24903         (low_pressure_loop_node_p): Use pressure classes.
24904         (object_range_compare_func): Don't compare classes.
24905         (setup_min_max_conflict_allocno_ids): Ditto.
24906
24907         * loop-invariant.c: Remove mentioning cover classes from the file.
24908         Use ira_pressure_classes and ira_pressure_classes_num instead of
24909         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
24910         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
24911         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24912         Use reg_allocno_class instead of reg_cover_class.
24913         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
24914         STACK_REG_COVER_CLASS.
24915         (get_regno_cover_class): Rename to get_regno_pressure_class.
24916         (move_loop_invariants): Initialize and finalize regstat.
24917
24918         * ira.c: Remove mentioning cover classes from the file.  Add
24919         comments about coloring without cover classes.  Use ALLOCNO_CLASS
24920         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24921         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
24922         setup_class_subset_and_memory_move_costs.
24923         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
24924         (setup_cover_and_important_classes): Rename to
24925         setup_allocno_and_important_classes.
24926         (setup_class_translate_array): New.
24927         (setup_class_translate): Call it for allocno and pressure classes.
24928         (cover_class_order): Rename to allocno_class_order.
24929         (comp_reg_classes_func): Use ira_allocno_class_translate instead
24930         of ira_class_translate.
24931         (reorder_important_classes): Set up ira_important_class_nums.
24932         (setup_reg_class_relations): Set up ira_reg_class_superunion.
24933         (print_class_cover): Rename to print_classes.  Add parameter.
24934         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24935         Print pressure classes too.
24936         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
24937         setup_reg_subclasses.
24938         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24939         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24940         (setup_prohibited_class_mode_regs): Use
24941         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
24942         (clarify_prohibited_class_mode_regs): New function.
24943         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
24944         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
24945         (ira_init_once): Initialize them.
24946         (free_register_move_costs): Process them.
24947         (ira_init): Move calls of find_reg_classes and
24948         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
24949         Call clarify_prohibited_class_mode_regs.
24950         (ira_no_alloc_reg): Remove.
24951         (too_high_register_pressure_p): Use pressure classes.
24952
24953         * sched-deps.c: Remove mentioning cover classes from the file.
24954         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24955         ira_pressure_classes and ira_pressure_classes_num instead of
24956         ira_reg_class_cover_size and ira_reg_class_cover.
24957         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
24958         sched_regno_pressure_class instead of sched_regno_cover_class.
24959         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
24960         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24961
24962         * ira.h: Add 2010 to Copyright.
24963         (ira_no_alloc_reg): Remove external.
24964         (struct target_ira): Rename x_ira_hard_regno_cover_class,
24965         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
24966         x_ira_class_translate to x_ira_hard_regno_allocno_class,
24967         x_ira_allocno_classes_num, x_ira_allocno_classes, and
24968         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
24969         x_ira_pressure_classes, x_ira_pressure_class_translate, and
24970         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
24971         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
24972         x_ira_no_alloc_regs.
24973         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
24974         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
24975         ira_allocno_classes_num and ira_allocno_classes.
24976         (ira_class_translate): Rename to ira_allocno_class_translate.
24977         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
24978         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
24979         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
24980         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
24981         (ira_no_alloc_regs): New.
24982
24983         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
24984         classes from the file.  Use ALLOCNO_CLASS instead of
24985         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
24986         ALLOCNO_COVER_CLASS_COST.
24987         (regno_cover_class): Rename to regno_aclass.
24988         (record_reg_classes): Use ira_reg_class_subunion instead of
24989         ira_reg_class_union.
24990         (record_address_regs): Check overflow.
24991         (scan_one_insn): Ditto.
24992         (print_allocno_costs): Print total mem cost fore regional allocation.
24993         (print_pseudo_costs): Use REG_N_REFS.
24994         (find_costs_and_classes): Use classes intersected with them on the
24995         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
24996         ira_reg_class_union.  Use ira_allocno_class_translate and
24997         regno_aclass instead of ira_class_translate and regno_cover_class.
24998         Modify code for finding regno_aclass.  Setup preferred classes for
24999         the next pass.
25000         (setup_allocno_cover_class_and_costs): Rename to
25001         setup_allocno_class_and_costs.  Use regno_aclass instead of
25002         regno_cover_class.  Use ira_set_allocno_class instead of
25003         ira_set_allocno_cover_class.
25004         (init_costs, finish_costs): Use regno_aclass instead of
25005         regno_cover_class.
25006         (ira_costs): Use setup_allocno_class_and_costs instead of
25007         setup_allocno_cover_class_and_costs.
25008         (ira_tune_allocno_costs_and_cover_classes): Rename to
25009         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
25010         by processing objects.  Use ira_reg_class_max_nregs instead of
25011         ira_reg_class_nregs.
25012
25013         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25014
25015         * sched-int.h: Remove mentioning cover classes from the file.
25016         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25017
25018         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
25019         classes from the file.
25020         (struct reg_pref): Rename coverclass into allocnoclass.
25021         (reg_cover_class): Rename to reg_allocno_class.
25022
25023         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25024
25025         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25026
25027         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25028
25029         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25030
25031         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25032
25033         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25034
25035         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25036
25037         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25038
25039         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25040
25041         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25042
25043         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25044         (i386_ira_cover_classes): Ditto.
25045
25046         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25047
25048         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25049
25050         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25051
25052         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25053
25054         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25055
25056         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25057
25058         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25059         (mips_ira_cover_classes): Ditto.
25060
25061         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25062
25063         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25064
25065         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25066
25067         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25068
25069         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25070
25071         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25072         (IRA_COVER_CLASSES_VSX): Ditto.
25073
25074         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25075         (rs6000_ira_cover_classes): Ditto.
25076
25077         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25078
25079         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25080
25081         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25082
25083         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25084
25085         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25086
25087         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25088
25089         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25090
25091         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25092
25093         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25094
25095         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25096
25097 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
25098
25099         PR debug/48253
25100         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25101         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25102         dw_fde_unlikely_section_end_label, cold_in_std_section,
25103         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25104         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25105         fields.
25106         (output_fde): Use dw_fde_second_{begin,end} if second is
25107         true, otherwise dw_fde_{begin,end}.
25108         (output_call_frame_info): Test dw_fde_second_begin != NULL
25109         instead of dw_fde_switched_sections.
25110         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25111         fields, initialize new fields.  Initialize in_std_section
25112         unconditionally from the first partition.
25113         (dwarf2out_end_epilogue): Don't override dw_fde_end when
25114         dw_fde_second_begin is non-NULL.
25115         (dwarf2out_switch_text_section): Stop initializing removed
25116         dw_fde_struct fields, initialize new fields, initialize
25117         also dw_fde_end here.  Set dw_fde_switch_cfi even when
25118         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
25119         (struct var_loc_list_def): Add last_before_switch field.
25120         (arange_table, arange_table_allocated, arange_table_in_use,
25121         ARANGE_TABLE_INCREMENT, add_arange): Removed.
25122         (size_of_aranges): Count !in_std_section and !second_in_std_section
25123         hunks in fdes, instead of looking at arange_table_in_use.
25124         (output_aranges): Add aranges_length argument, don't call
25125         size_of_aranges here.  Instead of using aranges_table*
25126         emit ranges for fdes when !in_std_section resp.
25127         !second_in_std_section.
25128         (dw_loc_list): Break ranges crossing section switch.
25129         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
25130         use dw_fde_second_end instead of dw_fde_end as end of last range.
25131         (gen_subprogram_die): Don't call add_arange.  Use
25132         dw_fde_{begin,end} for first partition and if switched
25133         section dw_fde_second_{begin,end} for the second.
25134         (var_location_switch_text_section_1,
25135         var_location_switch_text_section): New functions.
25136         (dwarf2out_begin_function): Initialize cold_text_section even
25137         when function_section () isn't text_section.
25138         (prune_unused_types): Don't walk arange_table.
25139         (dwarf2out_finish): Don't needlessly test
25140         flag_reorder_blocks_and_partition when testing cold_text_section_used.
25141         If info_section_emitted, call size_of_aranges and if it indicates
25142         non-empty .debug_aranges, call output_aranges with the computed
25143         size.  Stop using removed dw_fde_struct fields, use
25144         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
25145         for second.
25146
25147         PR debug/48203
25148         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
25149         create ENTRY_VALUE if incoming or address of incoming's MEM
25150         is a hard REG.
25151         * dwarf2out.c (mem_loc_descriptor): Don't emit
25152         DW_OP_GNU_entry_value of DW_OP_fbreg.
25153         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
25154         on ENTRY_VALUE is able to find the canonical parameter VALUE.
25155         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
25156         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
25157         ENTRY_VALUE_EXPs.
25158         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
25159         is a REG_P or MEM_P with REG_P address, compute hash directly
25160         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
25161         (preserve_only_constants): Don't clear VALUES forwaring
25162         ENTRY_VALUE to some other VALUE.
25163
25164 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
25165
25166         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
25167         instead of GEN_INT.
25168
25169 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25170
25171         * cfgexpand.c (expand_gimple_cond): Always set the source location and
25172         block before expanding the statement.
25173         (expand_gimple_stmt_1): Likewise.  Set them here...
25174         (expand_gimple_stmt): ...and not here.  Tidy.
25175         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
25176         unknown.
25177
25178 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25179
25180         * Makefile.in: New rule for cprop.o.
25181         * gcse.c: Move constant/copy propagation to cprop.c.
25182         (compute_local_properties): Only handle expression tables.
25183         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
25184         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
25185         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
25186         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
25187         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
25188         compute_cprop_data, find_used_regs, try_replace_reg,
25189         find_avail_set, cprop_jump, constprop_register, cprop_insn,
25190         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
25191         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
25192         find_bypass_set, reg_killed_on_edge, bypass_block,
25193         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
25194         execute_rtl_cprop, pass_rtl_cprop): Move to...
25195         * cprop.c: ...here.  New file, constant/copy propagation for RTL
25196         moved from gcse.c to here with minor cleanups in duplicated code.
25197
25198 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
25199
25200         * config/i386/i386.c (flag_opts): Fix a typo in
25201         -mavx256-split-unaligned-store.
25202
25203 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25204
25205         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25206         LIBCALL_VALUE): Remove macros.
25207         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25208         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25209         (h8300_function_value, h8300_libcall_value,
25210         h8300_function_value_regno_p): New functions.
25211
25212 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25213
25214         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
25215
25216 2011-03-28  Jeff Law  <law@redhat.com>
25217
25218         * tree-ssa-threadupdate.c (redirect_edges): Call
25219         create_edge_and_update_destination_phis as needed.
25220         (create_edge_and_update_destination_phis): Accept new BB argument.
25221         All callers updated.
25222         (thread_block): Do not update the profile when threading around
25223         intermediate blocks.
25224         (thread_single_edge): Likewise.
25225         (determine_bb_domination_status): If BB is not a successor of the
25226         loop header, return NONDOMINATING.
25227         (register_jump_thread): Note when we register a jump thread around
25228         an intermediate block.
25229         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
25230         (thread_across_edge): Use it.
25231
25232 2011-03-28  Tristan Gingold  <gingold@adacore.com>
25233
25234         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
25235         when for_return is 2.
25236
25237 2011-03-28  Jeff Law  <law@redhat.com>
25238
25239         * var-tracking.c (canonicalize_values_mark): Delete unused
25240         lhs assignment.
25241         (canonicalize_values_star, set_variable_part): Likewise.
25242         (clobber_variable_part, delete_variable_part): Likewise.
25243
25244 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25245
25246         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
25247
25248 2011-03-28  Martin Jambor  <mjambor@suse.cz>
25249
25250         * tree-inline.c (expand_call_inline): Do not check that destination
25251         node is analyzed.
25252         (optimize_inline_calls): Assert that destination node is analyzed.
25253         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
25254         not call tree_lowering_passes.
25255         * cgraph.h (cgraph_analyze_function): Declare.
25256         * cgraphunit.c (cgraph_analyze_function): Make public.
25257
25258 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
25259
25260         * config/sparc/sparc-opts.h: New.
25261         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
25262         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
25263         (sparc_option_override): Store processor_type enumeration rather
25264         than string in cpu_default.  Remove name and enumeration from
25265         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
25266         without using sparc_select.  Use target_flags_explicit instead of
25267         fpu_option_set.
25268         * config/sparc/sparc.h (enum processor_type): Move to
25269         sparc-opts.h.
25270         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
25271         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
25272         HeaderInclude entry.
25273         (mcpu=, mtune=): Use Var and Enum.
25274         (sparc_processor_type): New Enum and EnumValue entries.
25275
25276 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25277             Iain Sandoe  <iains@gcc.gnu.org>
25278
25279         PR target/48245
25280         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
25281
25282 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25283
25284         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25285         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25286         Insert new statements at it in lieu of STMT.
25287         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25288         * tree-vect-stmts.c (vectorizable_store): Likewise.
25289         (vectorizable_load): Likewise.
25290
25291 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
25292
25293         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25294         (divtf3): Ditto.
25295         (multf3): Ditto.
25296         (subtf3): Ditto.
25297
25298 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25299
25300         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25301         unaligned 256bit load/store.
25302         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25303         (*avx_movdqu<avxmodesuffix>): Likewise.
25304
25305 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25306
25307         PR target/48288
25308         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25309         * config/pa/pa.md (iordi3): Use new predicate in expander.
25310         (iorsi3): Likewise.
25311
25312 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
25313
25314         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25315         FUNCTION_VALUE_REGNO_P): Remove macros.
25316         * config/mips/mips-protos.h (mips_function_value): Remove.
25317         * config/mips/mips.c (mips_function_value): Rename to...
25318         (mips_function_value_1): ... this. Make static.  Handle receiving
25319         the function type in 'fn_decl_or_type' argument.
25320         (mips_function_value, mips_libcall_value,
25321         mips_function_value_regno_p): New function.
25322         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25323         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25324
25325 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25326
25327         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25328         and -mavx256-split-unaligned-store.
25329         (ix86_option_override_internal): Split 32-byte AVX unaligned
25330         load/store by default.
25331         (ix86_avx256_split_vector_move_misalign): New.
25332         (ix86_expand_vector_move_misalign): Use it.
25333
25334         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25335         -mavx256-split-unaligned-store.
25336
25337         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25338         256bit load/store.  Generate unaligned store on misaligned memory
25339         operand.
25340         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25341         256bit load/store.
25342         (*avx_movdqu<avxmodesuffix>): Likewise.
25343
25344         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25345         -mavx256-split-unaligned-store.
25346
25347 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25348
25349         PR target/38598
25350         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25351         Update commentary.
25352
25353 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25354
25355         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25356         opno arguments with an expand_operand.  Use create_input_operand.
25357         (mips_prepare_builtin_target): Delete.
25358         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25359         functions.
25360         (mips_expand_builtin_direct): Use create_output_operand and
25361         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
25362         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
25363         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25364
25365 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
25366
25367         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25368         function.
25369         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25370
25371 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25372
25373         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25374         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
25375         basic blocks and call commit_edge_insertions directly.
25376         (fixup_abnormal_edges): Move from here to...
25377         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
25378         on the edges and return whether some have actually been inserted.
25379         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25380         compensation code.
25381
25382 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
25383
25384         PR rtl-optimization/48144
25385         * sel-sched-ir.c (merge_history_vect): Factor out from ...
25386         (merge_expr_data): ... here.
25387         (av_set_intersect): Rename to av_set_code_motion_filter.
25388         Update all callers.  Call merge_history_vect when an expression
25389         is found in both sets.
25390         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25391
25392 2011-03-26  Alan Modra  <amodra@gmail.com>
25393
25394         * config/rs6000/predicates.md (word_offset_memref_op): Handle
25395         cmodel medium addresses.
25396         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25397         64-bit gpr loads and stores.
25398         (rs6000_secondary_reload_ppc64): New function.
25399         * config/rs6000/rs6000-protos.h: Declare it.
25400         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25401
25402 2011-03-26  Alan Modra  <amodra@gmail.com>
25403
25404         PR target/47487
25405         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25406         GNU Go in traceback table.
25407
25408 2011-03-25  Richard Henderson  <rth@redhat.com>
25409
25410         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25411         if there are exactly 6 operands.
25412         (set_storage_via_setmem): Similarly.
25413
25414 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25415
25416         * collect2.c (write_c_file_stat): Handle backslash
25417         as right-hand directory separator.
25418         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25419         checking just for slash.
25420         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25421         instead of checking for trailing slash.
25422         * gcc.c (record_temp_file): Use filename_cmp instead
25423         of strcmp.
25424         (do_spec_1): Likewise.
25425         (replace_outfile_spec_function): Likewise.
25426         (is_directory): Use filename_ncmp instead of strncmp.
25427         (print_multilib_info): Likewise.
25428         * gcov.c (find_source): Use filename_cmp instead
25429         instead of strcmp.
25430         (make_gcov_file_name): Fix order of slash/backslash
25431         checks.
25432         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25433         (add_standard_paths): Likewise.
25434         * mips-tfile.c (saber_stop): Handle backslash.
25435         * prefix.c (update_path): Use filename_ncmp instead of
25436         strncmp.
25437         * profile.c (output_location): Use filename_cmp instead
25438         of strcmp.
25439         * read-md.c (handle_toplevel_file): Handle backslash.
25440         * tlink.c (frob_extension):  Likewise.
25441         * tree-cfg.c (same_line_p): Use filename_cmp instead of
25442         strcmp.
25443         * tree-dump.c (dequeue_and_dump): Handle backslash.
25444         * tree.c (get_file_function_name): Likewise.
25445         * gengtype.c (read_input_list): Likewise.
25446         (get_file_realbasename): Likewise.
25447         (get_output_file_with_visibility): Use filename_cmp
25448         instead of strcmp.
25449
25450 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
25451
25452         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25453         case to VFPv1.
25454
25455 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25456
25457         * fold-const.c (expr_location_or): New function.
25458         (fold_truth_not_expr): Call it.
25459
25460 2011-03-25  Jeff Law  <law@redhat.com>
25461
25462         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25463         va_end.
25464         * c-family/c-common.c (def_fn_type): Likewise.
25465         * emit-rtl.c (gen_rtvec): Likewise.
25466         * lto/lto-lang.c (def_fn_type): Likewise.
25467
25468 2011-03-25  Richard Guenther  <rguenther@suse.de>
25469
25470         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25471         also generate copies.
25472         (fini_copy_prop): Handle constant values properly.
25473
25474 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
25475
25476         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25477         mode size instead of bitsize with DWARF2_ADDR_SIZE.
25478         (hash_loc_operands, compare_loc_operands): Handle
25479         DW_OP_GNU_entry_value.
25480
25481 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25482
25483         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25484         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25485         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25486         comment and use macro TARGET_64BIT_MS_ABI instead.
25487         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25488         and change default behavior for 32-bit MS_ABI.
25489         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25490         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25491         32-bit, too.
25492         (ix86_cfun_abi): Likewise.
25493         (ix86_maybe_switch_abi): Adjust comment.
25494         (init_cumulative_args): Check for bit-ness in MS_ABI case.
25495         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25496         instead of checking for SYSV_ABI.
25497         (ix86_nsaved_sseregs): Likewise.
25498         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25499         to 16 bytes.
25500         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25501         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25502         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25503         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25504         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25505
25506 2011-03-25  Richard Guenther  <rguenther@suse.de>
25507
25508         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25509         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25510         (verify_gimple): Remove.
25511         * tree-cfg.c (verify_gimple_call): Merge verification
25512         from verify_stmts.
25513         (verify_gimple_phi): Merge verification from verify_stmts.
25514         (verify_gimple_label): New function.
25515         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25516         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25517         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25518         (verify_stmts): Rename to verify_gimple_in_cfg.
25519         (verify_gimple_in_cfg): New function.
25520         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25521         * tree-ssa.c (verify_ssa): Likewise.
25522         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25523
25524 2011-03-25  Richard Guenther  <rguenther@suse.de>
25525
25526         * passes.c (init_optimization_passes): Add FRE pass after
25527         early SRA.
25528
25529 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
25530             Andrew Stubbs  <ams@codesourcery.com>
25531
25532         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25533         for Cortex-A8.
25534         (arm_movdi_vfp_cortexa8): New pattern.
25535         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25536         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25537         instructions when tuning for Cortex-A8.  Set attribute "arch".
25538         * config/arm/arm.md: Move include arm-tune.md up a bit.
25539         (define_attr "arch"): Add "onlya8" and "nota8" values.
25540         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25541
25542 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25543
25544         PR bootstrap/48282
25545         Revert:
25546         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25547
25548         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25549         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25550         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25551         * passes.c (init_optimization_passes): Move
25552         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25553
25554 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25555
25556         * c-typeck.c (comptypes_internal): Replace target
25557         hook call of comp_type_attributes by version in tree.c file.
25558         * gimple.c (gimple_types_compatible_p_1): Likewise.
25559         * tree-ssa.c (useless_type_conversion_p): Likewise.
25560         * tree.c (build_type_attribute_qual_variant): Likewise.
25561         (attribute_value_equal): New static helper function.
25562         (comp_type_attributes): New function.
25563         (merge_attributes): Use attribute_value_equal for comparison.
25564         (attribute_list_contained): Likewise.
25565         * tree.h (comp_type_attributes): New prototype.
25566
25567 2011-03-25  Richard Guenther  <rguenther@suse.de>
25568
25569         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25570         of complex types at -O0.
25571         (verify_gimple_assign_binary): Likewise.
25572         (verify_gimple_assign_ternary): Likewise.
25573
25574 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25575
25576         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25577         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25578
25579 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25580
25581         PR debug/48041
25582         * dwarf2out.c (output_abbrev_section): Only write table when
25583         abbrev_die_table_in_use > 1.
25584
25585 2011-02-24  Richard Henderson  <rth@redhat.com>
25586
25587         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25588         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25589         (alpha_expand_unaligned_load_words): Use extql.
25590         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25591         (emit_insxl): Handle all modes for consistency.
25592
25593 2011-02-24  Richard Henderson  <rth@redhat.com>
25594
25595         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25596         (alpha_expand_unaligned_load): Likewise.
25597         (alpha_expand_unaligned_store): Likewise.
25598         (alpha_expand_unaligned_load_words): Likewise.
25599         (alpha_expand_unaligned_store_words): Likewise.
25600         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25601         (alpha_split_lock_test_and_set_12): Likewise.
25602         (print_operand, alpha_fold_builtin_extxx): Likewise.
25603         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25604         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25605         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25606         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25607         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25608         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25609         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25610         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25611         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25612         (extwl, extll, extql): Similarly.
25613         (inswh, inslh, insqh): Similarly.
25614         (mskbl, mskwl, mskll, mskql): Similarly.
25615         (mskwh, msklh, mskqh): Similarly.
25616
25617 2011-02-24  Richard Henderson  <rth@redhat.com>
25618
25619         * config/alpha/alpha.md (attribute isa): Add er, ner.
25620         (attribute enabled): Handle them.
25621         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25622
25623 2011-02-24  Richard Henderson  <rth@redhat.com>
25624
25625         * config/alpha/alpha.md (attribute isa): Add vms.
25626         (attribute enabled): Handle it.
25627         (*movsf): Merge *movsf_{nofix,fix,nofp}.
25628         (*movdf): Merge *movdf_{nofix,fix,nofp}.
25629         (*movtf): Rename from *movtf_internal for consistency.
25630         (*movsi): Merge with *movsi_nt_vms.
25631         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25632         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25633         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25634         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25635
25636 2011-02-24  Richard Henderson  <rth@redhat.com>
25637
25638         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25639         (extendqisi2, extendhisi2): Likewise.
25640         (extendqidi2): Simplify BWX/non-BWX expansions.
25641         (extendhidi2): Similarly.
25642
25643 2011-02-24  Richard Henderson  <rth@redhat.com>
25644
25645         * config/alpha/alpha.md (attribute isa): New.
25646         (attribute enabled): New.
25647         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25648         (zero_extendqisi2, zero_extendqidi2): Similarly.
25649         (zero_extendhisi2, zero_extendhidi2): Similarly.
25650         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25651
25652 2011-02-24  Richard Henderson  <rth@redhat.com>
25653
25654         * config/alpha/predicates.md (input_operand): Revert last change;
25655         update comment to mention 32-bit VMS rather than Windows.
25656
25657 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25658
25659         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25660         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25661         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25662         * passes.c (init_optimization_passes): Move
25663         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25664
25665 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25666
25667         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25668
25669 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25670
25671         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25672         correctly.
25673
25674 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
25675
25676         PR debug/48204
25677         * simplify-rtx.c (simplify_const_unary_operation): Call
25678         real_convert when changing mode class with FLOAT_EXTEND.
25679
25680 2011-03-24  Nick Clifton  <nickc@redhat.com>
25681
25682         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25683         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25684         * config/rx/rx.c (rx_option_override): Set align_jumps,
25685         align_loops and align_labels if not set by the user.
25686         (rx_align_for_label): New function.
25687         (rx_max_skip_for_label): New function.
25688         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25689         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25690         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25691         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25692         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25693
25694 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25695
25696         PR rtl-optimization/48263
25697         * optabs.c (expand_binop_directly): Reinstate convert_modes code
25698         and original commutative_p handling.  Use maybe_gen_insn.
25699
25700 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25701
25702         * reload.c (find_reloads_subreg_address): Add address_reloaded
25703         parameter and return true there if the full address has been
25704         reloaded.
25705         (find_reloads_toplev): Pass address_reloaded flag.
25706         (find_reloads_address_1): Don't use address_reloaded parameter.
25707
25708 2011-03-24  Jeff Law  <law@redhat.com>
25709
25710         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25711         unused variable "ann".
25712         (remove_unused_locals): Likewise.
25713
25714         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25715         statement.
25716
25717         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25718         after it is freed.
25719
25720 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25721
25722         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25723         for invalid symbolic addresses.
25724         (s390_secondary_reload): Don't use s390_check_symref_alignment for
25725         larl operands.
25726
25727 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25728
25729         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
25730         the argument in calls to fold_truth_not_expr.
25731
25732 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25733
25734         * tree.c (record_node_allocation_statistics): New function.
25735         (make_node_stat, copy_node_stat, build_string): Call it.
25736         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25737         (build1_stat, build_omp_clause): Likewise.
25738
25739 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25740
25741         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25742         last commit.
25743
25744 2011-03-24  Richard Guenther  <rguenther@suse.de>
25745
25746         PR tree-optimization/48271
25747         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25748         blocks that still exist.
25749
25750 2011-03-24  Richard Guenther  <rguenther@suse.de>
25751
25752         PR tree-optimization/48270
25753         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25754         not free datarefs before ddrs.
25755
25756 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25757
25758         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25759         from the address built for a reference with variable offset.
25760
25761 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25762
25763         PR target/48237
25764         * config/i386/i386.md (*movdf_internal_rex64): Do not split
25765         alternatives that can be handled with movq or movabsq insn.
25766         (*movdf_internal): Disable for !TARGET_64BIT.
25767         (*movdf_internal_nointeger): Ditto.
25768         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25769
25770 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25771
25772         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25773         (FUNCTION_ARG_ADVANCE): Likewise.
25774         * tm.texi.in: Change references to them to hook references.
25775         * tm.texi: Regenerate.
25776         * targhooks.c (default_function_arg): Eliminate check for target macro.
25777         (default_function_incoming_arg): Likewise.
25778         (default_function_arg_advance): Likewise.
25779         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25780         (function_arg_advance): Likewise.
25781         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25782
25783 2011-03-24  Richard Guenther  <rguenther@suse.de>
25784
25785         PR middle-end/48269
25786         * tree-object-size.c (addr_object_size): Do not double-account
25787         for MEM_REF offsets.
25788
25789 2011-03-24  Diego Novillo  <dnovillo@google.com>
25790
25791         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25792         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25793         (lto_input_data_block): Move from lto-opts.c.  Make extern.
25794         Update all users.
25795         (lto_input_string): Rename from input_string.  Make extern.
25796         Update all users.
25797         * lto-streamer-out.c (lto_output_string_with_length): Rename from
25798         output_string_with_length.
25799         Output 0 to indicate a non-NULL string.  Update all callers to
25800         not emit 0.
25801         (lto_output_string): Rename from output_string.  Make extern.
25802         Update all users.
25803         (lto_output_decl_state_streams): Make extern.
25804         (lto_output_decl_state_refs): Make extern.
25805         * lto-streamer.h (lto_input_string): Declare.
25806         (lto_input_data_block): Declare.
25807         (lto_output_string): Declare.
25808         (lto_output_string_with_length): Declare.
25809         (lto_output_decl_state_streams): Declare.
25810         (lto_output_decl_state_refs): Declare.
25811
25812 2011-03-24  Richard Guenther  <rguenther@suse.de>
25813
25814         PR tree-optimization/46562
25815         * tree.c (build_invariant_address): New function.
25816         * tree.h (build_invariant_address): Declare.
25817         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25818         a renamed function moved ...
25819         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25820         Take valueization callback parameter.
25821         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25822         * gimple-fold.h: New file.
25823         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25824         (ccp_fold, fold_const_aggregate_ref,
25825         fold_ctor_reference, fold_nonarray_ctor_reference,
25826         fold_array_ctor_reference, fold_string_cst_ctor_reference,
25827         get_base_constructor): Move ...
25828         * gimple-fold.c: ... here.
25829         (gimple_fold_stmt_to_constant_1): New function
25830         split out from ccp_fold.  Take a valueization callback parameter.
25831         Valueize all operands.
25832         (gimple_fold_stmt_to_constant): New wrapper function.
25833         (fold_const_aggregate_ref_1): New function split out from
25834         fold_const_aggregate_ref.  Take a valueization callback parameter.
25835         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25836         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25837         invariant POINTER_PLUS_EXPRs to invariant form.
25838         (vn_valueize): New function.
25839         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25840         * tree-vrp.c (vrp_valueize): New function.
25841         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25842         to fold statements to constants.
25843         * tree-ssa-pre.c (eliminate): Properly guard propagation of
25844         function declarations.
25845         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25846         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25847
25848 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25849
25850         * config/h8300/predicates.md (jump_address_operand): Fix register
25851         mode check.
25852
25853 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
25854
25855         * doc/invoke.texi (max-stores-to-sink): Document.
25856         * params.h (MAX_STORES_TO_SINK): Define.
25857         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25858         if either vectorization or if-conversion is disabled.
25859         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25860         tree-vect-data-refs.c vect_equal_offsets.
25861         (dr_equal_offsets_p): New function.
25862         (find_data_references_in_bb): Remove static.
25863         * tree-data-ref.h (find_data_references_in_bb): Declare.
25864         (dr_equal_offsets_p): Likewise.
25865         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25866         (vect_drs_dependent_in_basic_block): Update calls to
25867         vect_equal_offsets.
25868         (vect_check_interleaving): Likewise.
25869         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25870         (cond_if_else_store_replacement): Rename to...
25871         (cond_if_else_store_replacement_1): ... this.  Change arguments and
25872         documentation.
25873         (cond_if_else_store_replacement): New function.
25874         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25875         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25876
25877 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
25878
25879         PR target/46934
25880         * config/arm/arm.md (casesi): Use the gen_int_mode() function
25881         to subtract lower bound instead of GEN_INT().
25882
25883 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
25884
25885         PR other/48179
25886         PR other/48221
25887         PR other/48234
25888         * doc/extend.texi (Alignment): Move section to match order in TOC.
25889         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25890         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25891
25892 2011-03-23  Jeff Law  <law@redhat.com>
25893
25894         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25895         before removing the edge.
25896
25897         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25898         it may have been freed by redirect_branch_edge or
25899         redirect_edge_succ_nodup.
25900
25901 2011-03-23  Richard Guenther  <rguenther@suse.de>
25902
25903         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25904         (check_va_list_escapes): Likewise.
25905         (check_all_va_list_escapes): Likewise.
25906
25907 2011-03-23  Richard Guenther  <rguenther@suse.de>
25908
25909         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
25910         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
25911         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
25912         (alias.o): Likewise.
25913         (ipa-type-escape.o): Remove.
25914         (ipa-struct-reorg.o): Likewise.
25915         (GTFILES): Remove ipa-struct-reorg.c.
25916         * alias.c: Do not include ipa-type-escape.h.
25917         * tree-ssa-alias.c: Likewise.
25918         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
25919         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
25920         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
25921         and ipa-type-escape passes.
25922         * tree-pass.h (pass_ipa_type_escape): Remove.
25923         (pass_ipa_struct_reorg): Likewise.
25924         * ipa-struct-reorg.h: Remove.
25925         * ipa-struct-reorg.c: Likewise.
25926         * ipa-type-escape.h: Likewise.
25927         * ipa-type-escape.c: Likewise.
25928         * doc/invoke.texi (-fipa-struct-reorg): Remove.
25929         (--param struct-reorg-cold-struct-ratio): Likewise.
25930         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25931         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
25932         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
25933
25934 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25935
25936         * config/s390/2084.md: Enable all insn reservations also for z9_ec
25937         cpu attribute value.
25938         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
25939         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
25940         * config/s390/s390.c (processor_flags_table): New constant array.
25941         (s390_handle_arch_option): Remove.
25942         (s390_handle_option): Remove s390_handle_arch_option invocations
25943         and OPT_mwarn_framesize_ handling.
25944         (s390_option_override): Remove s390_handle_arch_option invocation.
25945         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
25946         warnings.
25947         * config/s390/s390.md (cpu attribute): Add z9_ec value.
25948         * config/s390/s390.opt (s390_tune, s390_arch)
25949         (march=): Replace s390_arch_option enum and values with
25950         processor_type.  Set variable name to s390_arch.  Set
25951         initialization value.
25952         (mtune=): Replace s390_arch_option with processor_type.  Set
25953         variable name to s390_tune.  Set initialization value.
25954
25955 2011-03-23  Julian Brown  <julian@codesourcery.com>
25956
25957         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
25958         accesses which are not naturally aligned.
25959
25960 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25961
25962         PR target/47553
25963         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
25964
25965 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
25966
25967         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
25968         parameter from "int" to "enum insn_code".
25969         (expand_operand_type): New enum.
25970         (expand_operand): New structure.
25971         (create_expand_operand): New function.
25972         (create_fixed_operand, create_output_operand): Likewise
25973         (create_input_operand, create_convert_operand_to): Likewise.
25974         (create_convert_operand_from, create_address_operand): Likewise.
25975         (create_integer_operand): Likewise.
25976         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
25977         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
25978         (expand_insn, expand_jump_insn): Likewise.
25979         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
25980         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
25981         (expand_movstr, expand_builtin___clear_cache): Likewise.
25982         (expand_builtin_lock_release): Likewise.
25983         * explow.c (allocate_dynamic_stack_space): Likewise.
25984         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
25985         and use the default handling in that case.
25986         * expmed.c (check_predicate_volatile_ok): Delete.
25987         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
25988         (emit_cstore): Likewise.
25989         * expr.c (emit_block_move_via_movmem): Likewise.
25990         (set_storage_via_setmem, expand_assignment): Likewise.
25991         (emit_storent_insn, try_casesi): Likewise.
25992         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
25993         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
25994         (expand_vec_shift_expr, expand_binop_directly): Likewise.
25995         (expand_twoval_unop, expand_twoval_binop): Likewise.
25996         (expand_unop_direct, emit_indirect_jump): Likewise.
25997         (emit_conditional_move, vector_compare_rtx): Likewise.
25998         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
25999         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26000         (expand_sync_lock_test_and_set): Likewise.
26001         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
26002         (emit_unop_insn): Likewise.
26003         (expand_copysign_absneg): Change icode to an insn_code.
26004         (create_convert_operand_from_type): New function.
26005         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26006         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26007         (expand_insn, expand_jump_insn): Likewise.
26008         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26009         than const_int_operand for operand 2.
26010
26011 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26012
26013         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26014         if possible.
26015
26016 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26017
26018         * emit-rtl.c (emit_pattern_before_noloc): New function.
26019         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26020         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26021         (emit_pattern_after_noloc): New function.
26022         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26023         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26024
26025 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26026
26027         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26028         (__ffsDI2): Likewise.
26029
26030 2011-03-22  Richard Henderson  <rth@redhat.com>
26031
26032         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26033         of !TARGET_ABI_OPEN_VMS.
26034         (alpha_trampoline_init, alpha_start_function): Likewise.
26035         (alpha_expand_epilogue, alpha_file_start): Likewise.
26036         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26037         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26038         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26039         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26040         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26041
26042 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26043
26044         * config/s390/s390-opts.h: New.
26045         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26046         s390_arch_flags, s390_warn_framesize, s390_stack_size,
26047         s390_stack_guard): Remove.
26048         (s390_handle_arch_option): Return void.  Take enum
26049         s390_arch_option value instead of string and searching array.
26050         (s390_handle_option): Don't assert that global structures are in
26051         use.  Access variables via opts pointer.  Use error_at.  Don't use
26052         sscanf for -mstack-guard= or -mstack-size=.  Update call to
26053         s390_handle_arch_option.
26054         (s390_option_override): Update call to s390_handle_arch_option.
26055         (s390_emit_prologue): Use %d format for s390_stack_size in
26056         diagnostic.  Use %wd for HOST_WIDE_INT.
26057         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26058         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26059         * config/s390/s390.opt (config/s390/s390-opts.h): New
26060         HeaderInclude entry.
26061         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26062         s390_arch_flags, s390_warn_framesize): New Variable entries.
26063         (s390_arch_option): New Enum and EnumValue entries.
26064         (march=): Use Enum instead of Var.
26065         (mstack-guard=, mstack-size=): Use UInteger and Var.
26066         (mtune=): Use Enum.
26067
26068 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26069
26070         * config/score/score.c (score_handle_option): Don't assert that
26071         global structures are in use.  Access target_flags via opts
26072         pointer.  Use value of -march= option to determine target_flags
26073         settings.
26074         * config/score/score.opt (march=): Use Enum.
26075         (score_arch): New Enum and EnumValue entries.
26076
26077 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26078
26079         * config/mep/mep.c (option_mtiny_specified): Remove.
26080         (mep_option_override): Move register handling for -mivc2 from
26081         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
26082         instead of option_mtiny_specified.
26083         (mep_handle_option): Access target_flags via opts pointer.  Don't
26084         assert that global structures are in use.  Defer part of -mivc2
26085         handling and move it to mep_option_override.
26086         * config/mep/mep.opt (IVC2): New Mask entry.
26087         (mivc2): Use Var and Defer instead of Mask.
26088
26089 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26090
26091         * config/v850/v850-opts.h: New.
26092         * config/v850/v850.c (small_memory): Replace with
26093         small_memory_physical_max array.  Make that array static const.
26094         (v850_handle_memory_option): Take integer value of argument.  Take
26095         gcc_options pointer, option text and location.  Return void.
26096         Update for changes to small memory structures.
26097         (v850_handle_option): Access target_flags via opts pointer.  Don't
26098         assert that global structures are in use.  Update calls to
26099         v850_handle_memory_option.
26100         (v850_encode_data_area): Update references to small memory settings.
26101         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26102         (enum small_memory_type): Move to v850-opts.h.
26103         * config/v850/v850.opt (config/v850/v850-opts.h): New
26104         HeaderInclude entry.
26105         (small_memory_max): New Variable entry.
26106         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
26107         (mtda, mzda): Likewise.
26108
26109 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26110
26111         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26112         pointer.  Don't assert that global structures are in use.
26113
26114 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26115
26116         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26117         via opts pointer.  Don't assert that global structures are in use.
26118
26119 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26120
26121         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26122         (munix=93): Use Var.
26123         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26124         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26125         * config/pa/pa-opts.h: New.
26126         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26127         (pa_handle_option): Don't assert that global structures are in
26128         use.  Access target_flags via opts pointer.  Don't handle
26129         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26130         OPT_munix_98 here.
26131         (pa_option_override): Handle deferred OPT_mfixed_range_.
26132
26133 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26134
26135         * config/mn10300/mn10300-opts.h: New.
26136         * config/mn10300/mn10300.c (mn10300_processor,
26137         mn10300_tune_string): Remove.
26138         (mn10300_handle_option): Don't assert that global structures are
26139         in use.  Access mn10300_processor via opts pointer.  Don't handle
26140         OPT_mtune_ here.
26141         * config/mn10300/mn10300.h (enum processor_type): Move to
26142         mn10300-opts.h.
26143         (mn10300_processor): Remove.
26144         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
26145         HeaderInclude entry.
26146         (mn10300_processor): New Variable entry.
26147         (mtune=): Use Var.
26148
26149 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26150
26151         * config/microblaze/microblaze.c: Don't include opts.h.
26152         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
26153         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
26154         (mno-clearbss): Use Var and Warn.
26155
26156 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26157
26158         * config/m32r/m32r-opts.h: New.
26159         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
26160         (m32r_handle_option): Don't assert that global structures are in
26161         use.  Access target_flags and m32r_cache_flush_func via opts
26162         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
26163         OPT_mno_flush_trap here.
26164         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
26165         include of m32r-opts.h.
26166         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
26167         HeaderInclude entry.
26168         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
26169         (mmodel=): Use Enum and Var.
26170         (m32r_model): New Enum and EnumValue entries.
26171         (mno-flush-trap): Use Var.
26172         (msdata=): Use Enum and Var.
26173         (m32r_sdata): New Enum and EnumValue entries.
26174
26175 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26176
26177         * config/m32c/m32c.c: Don't include opts.h.
26178         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
26179         m32c_handle_option): Remove.
26180         (m32c_option_override): Check global_options_set.x_target_memregs
26181         instead of target_memregs_set.
26182         * config/m32c/m32c.h (target_memregs): Remove.
26183         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
26184         variable.
26185
26186 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26187
26188         * config/iq2000/iq2000-opts.h: New.
26189         * config/iq2000/iq2000.c: Don't include opts.h.
26190         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
26191         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
26192         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
26193         HeaderInclude entry.
26194         (iq2000_tune): New Variable entry.
26195         (march=): Add comment.  Use Enum.
26196         (iq2000_arch): New Enum and EnumValue entries.
26197         (mcpu=): Use Enum and Var.
26198         (iq2000_tune): New Enum and EnumValue entries.
26199
26200 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26201
26202         * config/ia64/ia64-opts.h: New.
26203         * config/ia64/ia64.c (ia64_tune): Remove.
26204         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
26205         here.  Use error_at.
26206         (ia64_option_override): Handle deferred OPT_mfixed_range_.
26207         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
26208         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
26209         HeaderInclude entry.
26210         (ia64_tune): New Variable entry.
26211         (mfixed-range=): Use Defer and Var.
26212         (mtune=): Use Enum and Var.
26213         (ia64_tune): New Enum and EnumValue entries.
26214
26215 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26216
26217         * config/frv/frv-opts.h: New.
26218         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
26219         frv-opts.h.
26220         (frv_cpu_type): Remove.
26221         * config/frv/frv.c: Don't include opts.h.
26222         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
26223         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
26224         (frv_cpu_type): New Variable entry.
26225         (frv_cpu): New Enum and EnumValue entries.
26226
26227 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26228
26229         * config/cris/cris.c (cris_handle_option): Access target_flags via
26230         opts pointer.  Don't assert that global structures are in use.
26231         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
26232         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
26233
26234 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26235
26236         * config/bfin/bfin-opts.h: New.
26237         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
26238         bfin_si_revision, bfin_workarounds): Remove.
26239         (bfin_cpus): Make static const.
26240         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
26241         not bfin_lib_id_given.
26242         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
26243         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
26244         pointer. Use error_at.  Don't assert that global structures are in use.
26245         * config/bfin/bfin.h: Include bfin-opts.h.
26246         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
26247         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
26248         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
26249         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
26250         entries.
26251
26252 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26253
26254         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
26255         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
26256         or -msoft-float here.
26257         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
26258         -msoft-float and -mhard-float.
26259         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
26260         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26261         msoft-float.
26262         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
26263         -msoft-float.
26264         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
26265         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
26266         not mhard-float.
26267         (LIBGCC_SPEC): Don't handle -msoft-float.
26268         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
26269         -mhard-float.
26270         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26271         msoft-float.
26272         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
26273         -mfloat-abi=*, not -msoft-float and -mhard-float.
26274         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
26275         -msoft-float.
26276         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
26277         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
26278         mhard-float and msoft-float.
26279         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
26280         mfloat-abi=soft in comments, not mhard-float and msoft-float.
26281         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26282         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26283         mhard-float.
26284         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26285         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26286         msoft-float.
26287         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26288         not mhard-float.
26289         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26290         not msoft-float.
26291
26292 2011-03-22  Richard Henderson  <rth@redhat.com>
26293
26294         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26295         TARGET_ABI_WINDOWS_NT.
26296         (alpha_output_function_end_prologue): Likewise.
26297         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26298         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26299         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26300         (trap, *movsi_nt_vms): Likewise.
26301         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26302         (*tablejump_osf_nt_internal): Remove.
26303         * config/alpha/predicates.md (input_operand): Only test Pmode.
26304
26305 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26306
26307         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26308         via opts pointer.  Use error_at.  Don't assert that global
26309         structures are in use.
26310
26311 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26312
26313         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26314         (ix86_handle_option): Access ix86_isa_flags and
26315         ix86_isa_flags_explicit via opts pointer.  Don't assert that
26316         global structures are in use.
26317         (ix86_function_specific_save, ix86_function_specific_restore):
26318         Update ix86_isa_flags_explicit field name.
26319         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26320         (ix86_isa_flags_explicit): Rename TargetSave entry to
26321         x_ix86_isa_flags_explicit.
26322
26323 2011-03-22  Richard Henderson  <rth@redhat.com>
26324
26325         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26326         (alpha_option_override, direct_return): Likewise.
26327         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26328         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26329         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26330         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26331         (alpha_expand_epilogue, alpha_end_function): Likewise.
26332         (alpha_init_libfuncs): Likewise.
26333         (struct machine_function): Remove unicosmk members.
26334         (print_operand) ['t']: Remove.
26335         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26336         unicosmk_output_module_name, unicosmk_output_common,
26337         current_section_align, unicosmk_output_text_section_asm_op,
26338         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26339         unicosmk_section_type_flags, unicosmk_unique_section,
26340         unicosmk_asm_named_section, unicosmk_insert_attributes,
26341         unicosmk_output_align, unicosmk_defer_case_vector,
26342         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26343         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26344         unicosmk_output_ssib, unicosmk_add_call_info_word,
26345         unicosmk_extern_head, unicosmk_output_default_externs,
26346         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26347         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26348         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26349         * config/alpha/alpha-protos.h: Update.
26350         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26351         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26352         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26353         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26354         (*mulsi_se, mulvsi3): Likewise.
26355         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26356         (*divmodsi_internal, call, call_value, realign): Likewise.
26357         (moddi3, umoddi3): Likewise; remove duplicate expander.
26358         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26359         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26360         (*movdi_nofix): Remove r/U alternative.
26361         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26362         * config/alpha/constraints.md ("U"): Remove.
26363         * config/alpha/predicates.md (call_operand"): Don't test
26364         TARGET_ABI_UNICOSMK.
26365
26366 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26367
26368         * target.def (handle_option): Take gcc_options and
26369         cl_decoded_option pointers and location_t.
26370         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26371         * doc/tm.texi: Regenerate.
26372         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26373         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26374         * lto-opts.c (lto_reissue_options): Generate option structure for
26375         targetm.handle_option call.
26376         * opts.c (target_handle_option): Update call to
26377         targetm.handle_option.  Remove assertions about values now passed
26378         down to hook.
26379         * targhooks.c (default_target_handle_option): New.
26380         * targhooks.h (default_target_handle_option): Declare.
26381         * config/alpha/alpha.c: Include opts.h.
26382         (alpha_handle_option): Update to new hook interface.
26383         * config/arm/arm.c: Include opts.h.
26384         (arm_handle_option): Update to new hook interface.
26385         * config/arm/t-arm (arm.o): Update dependencies.
26386         * config/bfin/bfin.c: Include opts.h.
26387         (bfin_handle_option): Update to new hook interface.
26388         * config/cris/cris.c: Include opts.h.
26389         (cris_handle_option): Update to new hook interface.
26390         * config/frv/frv.c: Include opts.h.
26391         (frv_handle_option): Update to new hook interface.
26392         * config/i386/i386.c: Include opts.h.
26393         (ix86_handle_option): Update to new hook interface.
26394         (ix86_valid_target_attribute_inner_p): Generate option structure
26395         for call to ix86_handle_option.
26396         * config/i386/t-i386 (i386.o): Update dependencies.
26397         * config/ia64/ia64.c: Include opts.h.
26398         (ia64_handle_option): Update to new hook interface.
26399         * config/ia64/t-ia64 (ia64.o): Update dependencies.
26400         * config/iq2000/iq2000.c: Include opts.h.
26401         (iq2000_handle_option): Update to new hook interface.
26402         * config/m32c/m32c.c: Include opts.h.
26403         (m32c_handle_option): Update to new hook interface.
26404         * config/m32r/m32r.c: Include opts.h.
26405         (m32r_handle_option): Update to new hook interface.
26406         * config/m68k/m68k.c: Include opts.h.
26407         (m68k_handle_option): Update to new hook interface.
26408         * config/mep/mep.c: Include opts.h.
26409         (mep_handle_option): Update to new hook interface.
26410         * config/microblaze/microblaze.c: Include opts.h.
26411         (microblaze_handle_option): Update to new hook interface.
26412         * config/mips/mips.c: Include opts.h.
26413         (mips_handle_option): Update to new hook interface.
26414         * config/mn10300/mn10300.c: Include opts.h.
26415         (mn10300_handle_option): Update to new hook interface.
26416         * config/pa/pa.c: Include opts.h.
26417         (pa_handle_option): Update to new hook interface.
26418         * config/pdp11/pdp11.c: Include opts.h.
26419         (pdp11_handle_option): Update to new hook interface.
26420         * config/rs6000/rs6000.c: Include opts.h.
26421         (rs6000_handle_option): Update to new hook interface.
26422         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26423         * config/rx/rx.c: Include opts.h.
26424         (rx_handle_option): Update to new hook interface.
26425         * config/s390/s390.c: Include opts.h.
26426         (s390_handle_option): Update to new hook interface.
26427         * config/score/score.c: Include opts.h.
26428         (score_handle_option): Update to new hook interface.
26429         * config/sh/sh.c: Include opts.h.
26430         (sh_handle_option): Update to new hook interface.
26431         * config/sparc/sparc.c: Include opts.h.
26432         (sparc_handle_option): Update to new hook interface.
26433         * config/v850/v850.c: Include opts.h.
26434         (v850_handle_option): Update to new hook interface.
26435
26436 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26437
26438         * gcc.c (driver_unknown_option_callback): Only permit and save
26439         unknown -Wno- options.
26440         (driver_wrong_lang_callback): Save options directly instead of via
26441         driver_unknown_option_callback.
26442
26443 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26444
26445         * combine.c (simplify_set): Try harder to find the best CC mode when
26446         simplifying a nested COMPARE on the RHS.
26447
26448 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26449
26450         * config/alpha/gnu.h: Remove.
26451         * config/arc: Remove directory.
26452         * config/arm/netbsd.h: Remove.
26453         * config/arm/t-pe: Remove.
26454         * config/crx: Remove directory.
26455         * config/i386/netbsd.h: Remove.
26456         * config/m68hc11: Remove directory.
26457         * config/m68k/uclinux-oldabi.h: Remove.
26458         * config/mcore/mcore-pe.h: Remove.
26459         * config/mcore/t-mcore-pe: Remove.
26460         * config/netbsd-aout.h: Remove.
26461         * config/rs6000/gnu.h: Remove.
26462         * config/sh/sh-symbian.h: Remove.
26463         * config/sh/symbian-base.c: Remove.
26464         * config/sh/symbian-c.c: Remove.
26465         * config/sh/symbian-cxx.c: Remove.
26466         * config/sh/symbian-post.h: Remove.
26467         * config/sh/symbian-pre.h: Remove.
26468         * config/sh/t-symbian: Remove.
26469         * config/svr3.h: Remove.
26470         * config/vax/netbsd.h: Remove.
26471         * config.build: Don't handle i[34567]86-*-pe.
26472         * config.gcc: Remove handling of deprecations for most deprecated
26473         targets.
26474         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26475         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26476         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26477         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26478         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26479         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26480         Remove cases.
26481         * config.host: Don't handle i[34567]86-*-pe.
26482         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26483         (ASM_SPEC32): Don't handle -mcall-gnu.
26484         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26485         -mcall-gnu.
26486         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26487         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26488         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26489         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26490         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26491         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26492         conditional on SYMBIAN.
26493         * configure.ac: Don't handle powerpc*-*-gnu*.
26494         * configure: Regenerate.
26495         * doc/extend.texi (interrupt attribute): Don't mention CRX.
26496         * doc/install-old.texi (m6811, m6812): Don't mention.
26497         * doc/install.texi (arc-*-elf*): Don't document multilib option.
26498         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26499         (m68k-uclinuxoldabi): Don't mention.
26500         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26501         Remove.
26502         (-mcall-gnu): Remove.
26503         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26504         families): Remove constraint documentation.
26505
26506 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
26507
26508         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26509         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26510         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26511
26512 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26513
26514         PR target/48226
26515         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26516         vector when peeking at the next token for vector, don't expand the
26517         keywords.
26518
26519 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
26520
26521         * config/avr/avr-protos.h (expand_epilogue): Change prototype
26522         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26523         * config/avr/avr.c (init_cumulative_args)
26524         (avr_function_arg_advance): Use it.
26525         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26526         sibcall epilogues.
26527         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26528         (avr_function_ok_for_sibcall): ...this new function.
26529         (avr_lookup_function_attribute1): New static Function.
26530         (avr_naked_function_p, interrupt_function_p)
26531         (signal_function_p, avr_OS_task_function_p)
26532         (avr_OS_main_function_p): Use it.
26533         * config/avr/avr.md ("sibcall", "sibcall_value")
26534         ("sibcall_epilogue"): New expander.
26535         ("*call_insn", "*call_value_insn"): New insn.
26536         ("call_insn", "call_value_insn"): Remove
26537         ("call", "call_value", "epilogue"): Change expander to handle
26538         sibling calls.
26539
26540 2011-03-21  Nick Clifton  <nickc@redhat.com>
26541
26542         * doc/invoke.texi (Overall Options): Move closing brace to end of
26543         options list.
26544         (Optimization Options): Add missing @gol.
26545         (Directory Options): Likewise.
26546         (i386 and x86-64 Options): Likewise.
26547         (RS6000 and PowerPC Options): Likewise.
26548         (i386 and x86-64 Windows Options): Likewise.
26549         (V850 Options): Add text missing from descriptions.
26550
26551 2011-03-22  Richard Henderson  <rth@redhat.com>
26552
26553         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26554         (avr_incoming_return_addr_rtx): New.
26555         (emit_push_byte): New.
26556         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
26557         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
26558         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
26559         (emit_pop_byte): New.
26560         (expand_epilogue): Use it.  Pop frame pointer by bytes.
26561         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26562         (INCOMING_RETURN_ADDR_RTX): New.
26563         (INCOMING_FRAME_SP_OFFSET): New.
26564         (ARG_POINTER_CFA_OFFSET): New.
26565         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26566         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26567         (pophi): Remove.
26568
26569         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26570
26571 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26572
26573         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26574         (FUNCTION_ARG_ADVANCE): Likewise.
26575         * tm.texi.in: Change references to them to hook references.
26576         * tm.texi: Regenerate.
26577         * targhooks.c (default_function_arg): Eliminate check for target
26578         macro.
26579         (default_function_incoming_arg): Likewise.
26580         (default_function_arg_advance): Likewise.
26581         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26582         (function_arg_advance): Likewise.
26583         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26584
26585 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26586
26587         * tree.c (build_call_1): New function.
26588         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26589
26590 2011-03-22  Richard Guenther  <rguenther@suse.de>
26591
26592         PR tree-optimization/48228
26593         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26594         for single-arg PHIs.
26595
26596 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
26597
26598         PR rtl-optimization/48143
26599         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26600         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26601         sse2_cvtps2pd): Likewise.
26602
26603 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26604
26605         * recog.c (canonicalize_change_group): Use validate_unshare_change.
26606
26607 2011-03-22  Richard Guenther  <rguenther@suse.de>
26608
26609         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26610         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26611         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26612         and REALIGN_LOAD_EXPR.
26613         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26614         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26615         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26616         DOT_PROD_EXPR case ...
26617         (expand_expr_real_2): ... here.
26618         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26619         and REALIGN_LOAD_EXPR.
26620         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26621         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26622         (vect_create_epilog_for_reduction): Likewise.
26623         (vectorizable_reduction): Likewise.
26624         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26625         * tree-vect-stmts.c (vectorizable_load): Likewise.
26626
26627 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26628
26629         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26630
26631 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26632
26633         * config/s390/s390.c (s390_delegitimize_address): Fix offset
26634         handling for PLTOFF/GOTOFF.
26635
26636 2011-03-22  Nick Clifton  <nickc@redhat.com>
26637
26638         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26639         trailing backslash from the end of the macro definition.
26640
26641 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26642
26643         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26644         and PLT unspecs.
26645
26646 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
26647
26648         * expr.h (prepare_operand): Move to...
26649         * optabs.h (prepare_operand): ...here and change the insn code
26650         parameter from "int" to "enum insn_code".
26651         (insn_operand_matches): Declare.
26652         * expr.c (init_expr_target): Use insn_operand_matches.
26653         (compress_float_constant): Likewise.
26654         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26655         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26656         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26657         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26658         Likewise.
26659         (gen_cond_trap): Likewise.
26660         (prepare_operand): Likewise.  Change icode to an insn_code.
26661         (insn_operand_matches): New function.
26662         * reload.c (find_reloads_address_1): Use insn_operand_matches.
26663         * reload1.c (gen_reload): Likewise.
26664         * targhooks.c (default_secondary_reload): Likewise.
26665
26666 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26667
26668         * config/alpha/alpha.md (unspec): New define_c_enum.
26669         (unspecv): Ditto.
26670
26671 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26672
26673         PR debug/48214
26674         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26675         between a call and its CALL_ARG_LOCATION note.
26676
26677 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
26678
26679         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26680
26681 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26682
26683         PR c/42544
26684         PR c/48197
26685         * c-common.c (shorten_compare): If primopN is first sign-extended
26686         to opN and then zero-extended to result type, set primopN to opN.
26687
26688 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
26689
26690         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26691         for barrier handlers.
26692
26693 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26694
26695         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26696         UNSPEC constants to be in the unspec enumeration, and redefine
26697         all UNSPECV constants to be in the unspecv enumeration, so that
26698         dumps print which unspec/unspec_volatile this is.
26699         * config/rs6000/vector.md (UNSPEC_*): Ditto.
26700         * config/rs6000/paired.md (UNSPEC_*): Ditto.
26701         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26702         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26703         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26704
26705         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26706         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26707         UNSPECV_LWSYNC, since these are used as unspec_volatile.
26708         * config/rs6000/sync.md (isync, lwsync): Ditto.
26709
26710 2011-03-21  Richard Guenther  <rguenther@suse.de>
26711
26712         * params.def (lto-min-partition): Fix typo.
26713
26714 2011-03-21  Richard Guenther  <rguenther@suse.de>
26715
26716         PR c/47939
26717         * c-decl.c (grokdeclarator): Drop to the main variant only
26718         for array types.  Drop flag_gen_aux_info check.
26719
26720 2011-03-21  Richard Guenther  <rguenther@suse.de>
26721
26722         PR translation/47911
26723         * params.def (lto-partitions): Fix typo.
26724         (lto-min-partition): Fix wording.
26725
26726 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
26727
26728         * config/rs6000/t-freebsd: Remove duplication from file.
26729
26730 2011-03-21  Richard Guenther  <rguenther@suse.de>
26731
26732         PR middle-end/47661
26733         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26734
26735 2011-03-21  Richard Guenther  <rguenther@suse.de>
26736
26737         PR lto/48210
26738         * params.def (lto-partitions): Require at least 1 partition.
26739
26740 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26741
26742         * gthr-solaris.h: Remove.
26743         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26744         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26745         (LIB_SPEC): Likewise.
26746         * config/sol2.opt (threads): Remove.
26747         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26748         (sparc*-*-solaris2*): Likewise.
26749         * configure.ac (enable_threads): Enable solaris support.
26750         * configure: Regenerate.
26751         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26752         * doc/install.texi (Configuration, --enable-threads=lib): Remove
26753         solaris.
26754
26755 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26756
26757         * config.gcc: Obsolete *-*-solaris2.8*.
26758         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26759
26760 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26761
26762         PR bootstrap/48135
26763         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26764         reference.  Solaris 8 perl works.
26765
26766 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26767
26768         PR bootstrap/48135
26769         * doc/install.texi (Prerequisites): Move jar etc. up.
26770         Explain support library version requirements.
26771
26772 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26773
26774         PR bootstrap/48135
26775         * doc/install.texi (Prerequisites): Move Perl to build
26776         requirements.  Always necessary on Solaris 2 with Sun ld.
26777
26778 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26779
26780         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26781         binutils 2.21.
26782         (Specific, i?86-*-solaris2.[89]): Likewise.
26783         (Specific, i?86-*-solaris2.10): Likewise.
26784         (Specific, mips-sgi-irix6): Likewise.
26785         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26786         Update for binutils 2.21.
26787
26788 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26789
26790         * configure.ac (gcc_cv_lto_plugin): Fix typo.
26791         Allow -fuse-linker-plugin for non-default plugin linker.
26792         * configure: Regenerate.
26793
26794 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
26795
26796         PR bootstrap/48167
26797         * gengtype.c (files_rules): Added rule for cp/parser.h.
26798
26799 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26800
26801         PR target/48213
26802         * config/s390/s390.c (s390_delegitimize_address): Don't call
26803         lowpart_subreg if orig_x has BLKmode.
26804
26805 2011-03-21  Kai Tietz  <ktietz@redhat.com>
26806
26807         PR target/12171
26808         * doc/plugins.texi: Adjust documentation for plugin register_callback.
26809         * tree.h (attribute_spec): Add new member affects_type_identity.
26810         * attribs.c (empty_attribute_table): Adjust attribute_spec
26811         initializers.
26812         * config/alpha/alpha.c: Likewise.
26813         * config/arc/arc.c: Likewise.
26814         * config/arm/arm.c: Likewise.
26815         * config/avr/avr.c: Likewise.
26816         * config/bfin/bfin.c: Likewise.
26817         * config/crx/crx.c: Likewise.
26818         * config/darwin.h: Likewise.
26819         * config/h8300/h8300.c: Likewise.
26820         * config/i386/cygming.h: Likewise.
26821         * config/i386/i386.c: Likewise.
26822         * config/ia64/ia64.c: Likewise.
26823         * config/m32c/m32c.c: Likewise.
26824         * config/m32r/m32r.c: Likewise.
26825         * config/m68hc11/m68hc11.c: Likewise.
26826         * config/m68k/m68k.c: Likewise.
26827         * config/mcore/mcore.c: Likewise.
26828         * config/mep/mep.c: Likewise.
26829         * config/microblaze/microblaze.c: Likewise.
26830         * config/mips/mips.c: Likewise.
26831         * config/rs6000/rs6000.c: Likewise.
26832         * config/rx/rx.c: Likewise.
26833         * config/sh/sh.c: Likewise.
26834         * config/sol2.h: Likewise.
26835         * config/sparc/sparc.c: Likewise.
26836         * config/spu/spu.c: Likewise.
26837         * config/stormy16/stormy16.c: Likewise.
26838         * config/v850/v850.c: Likewise.
26839
26840 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26841
26842         * simplify-rtx.c (simplify_binary_operation_1): Handle
26843         (xor (and A B) C) case when B and C are both constants.
26844
26845 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
26846
26847         * tree-dfa.c (add_referenced_var): Fix typo in comment.
26848
26849 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26850
26851         PR bootstrap/48168
26852         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26853
26854 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
26855
26856         PR rtl-optimization/48156
26857         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26858         assume df and df_lr are not NULL.
26859
26860 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26861
26862         PR debug/48023
26863         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26864         between a call and its CALL_ARG_LOCATION note.
26865
26866 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26867
26868         PR debug/48178
26869         * config/sh/sh.c (find_barrier): Don't emit a constant pool
26870         between a call and its corresponding CALL_ARG_LOCATION note.
26871
26872 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
26873
26874         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26875         instead of loop. Use HARD_REGISTER_NUM_P predicate.
26876         * haifa-sched.c (setup_ref_regs): Ditto.
26877         * caller-save.c (add_used_regs_1): Ditto.
26878         * dse.c (look_for_hardregs): Ditto.
26879         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26880         * sched-rgn.c (check_live_1): Ditto.
26881
26882 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26883
26884         * c-decl.c (diagnose_mismatched_decls): Give an error for
26885         redefining a typedef with variably modified type.
26886
26887 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26888
26889         * c-decl.c (grokfield): Don't allow typedefs for structures or
26890         unions with no tag by default.
26891         * doc/extend.texi (Unnamed Fields): Update.
26892
26893 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
26894
26895         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26896         Rewrite using indirect functions.
26897         (lwp_slwpcb): Ditto.
26898         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26899         (avx_vinsertf128<mode>): Ditto.
26900
26901 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26902
26903         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26904         unspecs.
26905
26906 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26907
26908         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
26909         splitting between a call and its corresponding CALL_ARG_LOCATION note.
26910
26911 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
26912
26913         PR rtl-optimization/48170
26914         * gcse.c (hoist_code): Remove bogus asserts.
26915
26916 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
26917
26918         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
26919         computation for prologue/epilogue.
26920
26921 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26922
26923         * Makefile.in (check-consistency): Remove.
26924
26925 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
26926
26927         PR debug/48176
26928         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
26929         arange_table_in_use is 0, but either text_section_used or
26930         cold_text_section_used is true.  Don't call it if
26931         !info_section_emitted.
26932
26933 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
26934
26935         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
26936         FUNCTION_VALUE_REGNO_P): Remove.
26937         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
26938         Remove.
26939         * config/avr/avr.c (avr_ret_register): Make static inline.
26940         (avr_function_value_regno_p): New function.
26941         (avr_libcall_value): Make static. Add 'func' argument.
26942         (avr_function_value): Make static. Rename 'func' argument to
26943         'fn_decl_or_type', forward it to avr_libcall_value. Call
26944         avr_ret_register function instead of RET_REGISTER macro.
26945         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26946
26947 2011-03-18  Jason Merrill  <jason@redhat.com>
26948
26949         PR c++/23372
26950         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
26951
26952 2011-03-18  Richard Guenther  <rguenther@suse.de>
26953
26954         * doc/install.texi (--enable-gold): Remove.
26955         (--with-plugin-ld): Document.
26956         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
26957
26958 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
26959
26960         PR middle-end/47790
26961         * expr.c (optimize_bitfield_assignment_op): Revamp to work
26962         again after expansion changes.
26963
26964 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
26965
26966         * combine.c (try_combine): Do simplification only call of
26967         subst() on i2 even when i1 is present. Update comments.
26968
26969 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
26970
26971         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
26972         and UNSPEC_PCREL_SYMOFF.
26973
26974 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26975
26976         * config/s390/s390.md: Use define_c_enum for the unspec constant
26977         definitions.
26978
26979 2011-03-18  Richard Henderson  <rth@redhat.com>
26980             Jakub Jelinek  <jakub@redhat.com>
26981
26982         PR bootstrap/48161
26983         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
26984         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
26985
26986 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
26987
26988         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26989         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
26990         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
26991         Change return type to bool.
26992         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26993
26994 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
26995
26996         PR debug/48163
26997         * var-tracking.c (prepare_call_arguments): If CALL target
26998         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
26999         pc instead of looking it up using cselib_lookup and use
27000         Pmode for it if x has VOIDmode.
27001         * dwarf2out.c (gen_subprogram_die): If also both first and
27002         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27003
27004         PR debug/48163
27005         * function.c (assign_parms): For data.passed_pointer parms
27006         use MEM of data.entry_parm instead of data.entry_parm itself
27007         as DECL_INCOMING_RTL.
27008         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27009         also when passed and declared mode is the same, DECL_RTL
27010         is a MEM with pseudo as address and DECL_INCOMING_RTL is
27011         a MEM too.
27012
27013 2011-03-16  Jeff Law  <law@redhat.com>
27014
27015         PR rtl-optimization/37273
27016         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27017         handle them like argument loads from stack slots.  Do not double
27018         count memory for memory constants and argument loads from stack slots.
27019
27020 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27021
27022         PR debug/48160
27023         * var-tracking.c (prepare_call_arguments): Check SUBREG.
27024
27025 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27026
27027         PR target/48171
27028         * config/i386/i386.opt: Add Save to -mavx and -mfma.
27029
27030 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27031
27032         PR bootstrap/48153
27033         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27034         if dwarf_strict.
27035         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27036         Clear call_arg_locations and call_arg_loc_last always.
27037
27038         PR middle-end/48152
27039         * var-tracking.c (prepare_call_arguments): If argument needs to be
27040         passed by reference, adjust argtype and mode.
27041
27042 2011-03-17  Richard Guenther  <rguenther@suse.de>
27043
27044         PR middle-end/48134
27045         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27046         a value make sure to fold the statement.
27047
27048 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
27049
27050         PR target/43872
27051         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27052         return condition with !cfun->calls_alloca.
27053
27054 2011-03-17  Richard Guenther  <rguenther@suse.de>
27055
27056         PR bootstrap/48148
27057         * lto-cgraph.c (input_overwrite_node): Clear the abstract
27058         origin for decls in other ltrans units.
27059         (input_varpool_node): Likewise.
27060
27061 2011-03-17  Richard Guenther  <rguenther@suse.de>
27062
27063         PR middle-end/48165
27064         * tree-object-size.c (compute_object_offset): Properly return
27065         the offset operand of MEM_REFs as sizetype.
27066
27067 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27068
27069         PR rtl-optimization/48141
27070         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27071         * dse.c: Include params.h.
27072         (active_local_stores_len): New variable.
27073         (add_wild_read, dse_step1): Clear it when setting active_local_stores
27074         to NULL.
27075         (record_store, check_mem_read_rtx): Decrease it when removing
27076         from the chain.
27077         (scan_insn): Likewise.  Increase it when adding to chain, if it
27078         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27079         set active_local_stores to NULL before the addition.
27080         * Makefile.in (dse.o): Depend on $(PARAMS_H).
27081
27082         PR rtl-optimization/48141
27083         * dse.c (record_store): If no positions are needed in an insn
27084         that cannot be deleted, at least unchain it from active_local_stores.
27085
27086 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
27087
27088         PR debug/47510
27089         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27090         (lookup_type_die_strip_naming_typedef): ... here.
27091         (get_context_die): Use it.
27092         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27093         the anonymous struct named by the naming typedef.
27094
27095 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27096
27097         PR target/48154
27098         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27099         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27100
27101 2011-03-16  Jeff Law  <law@redhat.com>
27102
27103         * tree-vrp.c (identify_jump_threads): Slightly simplify type
27104         check for operands of conditional.  Allow type to be a pointer.
27105
27106 2011-03-16  Richard Guenther  <rguenther@suse.de>
27107
27108         PR tree-optimization/48149
27109         * fold-const.c (fold_binary_loc): Fold
27110         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27111
27112 2011-03-16  Richard Guenther  <rguenther@suse.de>
27113
27114         PR tree-optimization/26134
27115         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27116         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27117         (non_rewritable_mem_ref_base): Handle complex type component
27118         accesses, constrain offsets for vector and complex extracts
27119         more properly.
27120
27121 2011-03-16  Richard Guenther  <rguenther@suse.de>
27122
27123         PR tree-optimization/48146
27124         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27125         operands avoiding the need for renaming.
27126
27127 2011-03-16  Richard Guenther  <rguenther@suse.de>
27128
27129         * gimple-fold.c (maybe_fold_reference): Open-code relevant
27130         constant folding.  Move MEM_REF canonicalization first.
27131         Rely on fold_const_aggregate_ref for initializer folding.
27132         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27133
27134 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27135
27136         PR middle-end/48136
27137         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27138         arg0/arg1 or their arguments are always fold converted to matching
27139         types.
27140
27141         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
27142         to nargs.
27143
27144 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27145
27146         PR lto/46944
27147         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
27148         Handle in-tree gold.
27149         (ld_vers): Extract binutils version for gold.
27150         (gcc_cv_ld_hidden): Handle gold here.
27151         (gcc_cv_lto_plugin): Determine level of linker plugin support.
27152         * configure: Regenerate.
27153         * config.in: Regenerate.
27154         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
27155         -fuse-linker-plugin otherwise.
27156         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
27157         (LINK_COMMAND_SPEC): Use it.
27158         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
27159
27160 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27161
27162         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
27163         * calls.c: Remove debug.h include.
27164         (emit_call_1): Don't call virtual_call_token debug hook.
27165         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
27166         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
27167         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
27168         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
27169         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
27170         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
27171         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
27172         dwarf2out_virtual_call): Remove.
27173         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
27174         copy_call_info and virtual_call hooks.
27175         (dwarf2out_init): Don't initialize vcall_insn_table,
27176         debug_dcall_section and debug_vcall_section.
27177         (prune_unused_types): Don't mark nodes from dcall_table.
27178         (dwarf2out_finish): Don't output dcall or vcall tables.
27179         * final.c (final_scan_insn): Don't call direct_call or
27180         virtual_call debug hooks.
27181         * debug.h (struct gcc_debug_hooks): Remove direct_call,
27182         virtual_call_token, copy_call_info and virtual_call hooks.
27183         (debug_nothing_uid): Remove prototype.
27184         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
27185         copy_call_info and virtual_call hooks.
27186         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27187         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
27188         * debug.c (do_nothing_debug_hooks): Likewise.
27189         (debug_nothing_uid): Remove.
27190         * doc/invoke.texi (-fenable-icf-debug): Remove.
27191         * common.opt (-fenable-icf-debug): Likewise.
27192
27193         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
27194         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
27195         call's MEM.  Handle functions returning aggregate through a hidden
27196         first pointer.  For virtual calls add clobbered pc to call arguments
27197         chain.
27198         * dwarf2out.c (gen_subprogram_die): Emit
27199         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
27200         can't be emitted.
27201
27202         PR debug/45882
27203         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
27204         * rtl.h (ENTRY_VALUE_EXP): Define.
27205         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
27206         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
27207         * print-rtl.c (print_rtx): Likewise.
27208         * gengtype.c (adjust_field_rtx_def): Likewise.
27209         * var-tracking.c (vt_add_function_parameter): Adjust
27210         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
27211         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
27212         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
27213         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
27214         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
27215
27216         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
27217         Call var_location debug hook even on CALL_INSNs.
27218         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
27219         * rtl.def (ENTRY_VALUE): New.
27220         * dwarf2out.c: Include cfglayout.h.
27221         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27222         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
27223         (struct call_arg_loc_node): New type.
27224         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
27225         tail_call_site_count): New variables.
27226         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
27227         DW_TAG_GNU_call_site_parameter.
27228         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
27229         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
27230         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
27231         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
27232         and DW_AT_GNU_all_source_call_sites.
27233         (mem_loc_descriptor): Handle ENTRY_VALUE.
27234         (add_src_coords_attributes): Don't add enything if
27235         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
27236         (dwarf2out_abstract_function): Save and clear call_arg_location,
27237         call_site_count and tail_call_site_count around dwarf2out_decl call.
27238         (gen_call_site_die): New function.
27239         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
27240         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
27241         (dwarf2out_function_decl): Clear call_arg_locations,
27242         call_arg_loc_last, set call_site_count and tail_call_site_count
27243         to -1 and free block_map.
27244         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
27245         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
27246         followed by any real instructions.
27247         (dwarf2out_begin_function): Set call_site_count and
27248         tail_call_site_count to 0.
27249         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
27250         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
27251         attempt to force a DIE for it and worst case remove the attribute.
27252         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
27253         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
27254         the decl itself.
27255         * var-tracking.c: Include tm_p.h.
27256         (vt_stack_adjustments): For calls call note_register_arguments.
27257         (argument_reg_set): New variable.
27258         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
27259         ensure the VALUE is resolved.
27260         (call_arguments): New variable.
27261         (prepare_call_arguments): New function.
27262         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
27263         (struct expand_loc_callback_data): Add ignore_cur_loc field.
27264         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
27265         always use the best expression.
27266         (vt_expand_loc): Add ignore_cur_loc argument.
27267         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
27268         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
27269         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
27270         note for all calls.
27271         (vt_add_function_parameter): Use cselib_lookup_from_insn.
27272         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
27273         argument.  Don't call cselib_preserve_only_values and
27274         cselib_reset_table.
27275         (note_register_arguments): New function.
27276         (vt_initialize): Compute argument_reg_set.  Call
27277         vt_add_function_parameters before processing basic blocks instead of
27278         afterwards.  For calls call prepare_call_arguments before calling
27279         cselib_process_insn.
27280         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
27281         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
27282         (var-tracking.o): Depend on $(TM_P_H).
27283         * cfglayout.h (insn_scope): New prototype.
27284         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27285         * cfglayout.c (insn_scope): No longer static.
27286         * insn-notes.def (CALL_ARG_LOCATION): New.
27287         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27288         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27289         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27290         nothing for DECL_EXTERNAL BLOCK_VARS.
27291
27292 2011-03-16  Alan Modra  <amodra@gmail.com>
27293
27294         PR target/45844
27295         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27296         create invalid offset address for vsx splat insn.
27297         * config/rs6000/predicates.md (splat_input_operand): New.
27298         * config/rs6000/vsx.md (vsx_splat_*): Use it.
27299
27300 2011-03-15  Xinliang David Li  <davidxl@google.com>
27301
27302         PR c/47837
27303         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27304         (normalize_preds): New function.
27305         (is_use_properly_guarded): Normalize def predicates.
27306
27307 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27308
27309         PR target/46788
27310         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27311         in the output template.
27312
27313 2011-03-15  Richard Guenther  <rguenther@suse.de>
27314
27315         PR middle-end/47650
27316         * tree-pretty-print.c (dump_function_declaration): Properly
27317         dump unprototyped and varargs function types.
27318
27319 2011-03-15  Richard Guenther  <rguenther@suse.de>
27320
27321         PR tree-optimization/13954
27322         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27323         and friends.
27324
27325 2011-03-15  Richard Guenther  <rguenther@suse.de>
27326
27327         PR tree-optimization/48037
27328         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27329         selects into BIT_FIELD_REFs.
27330         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27331         vector select.
27332
27333 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
27334
27335         PR tree-optimization/48129
27336         * builtins.c (fold_builtin_snprintf): Convert to type of
27337         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27338         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27339
27340 2011-03-15  Richard Guenther  <rguenther@suse.de>
27341
27342         PR tree-optimization/41490
27343         * tree-ssa-dce.c (propagate_necessity): Handle returns without
27344         value but with VUSE.
27345         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27346         return statements.
27347         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27348         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27349         * tree-tailcall.c (find_tail_calls): Ignore returns.
27350
27351 2011-03-15  Richard Guenther  <rguenther@suse.de>
27352
27353         PR middle-end/48031
27354         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27355         or variable-indexed array accesses when in gimple form.
27356
27357 2011-03-15  Richard Guenther  <rguenther@suse.de>
27358
27359         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27360
27361 2011-03-15  Alan Modra  <amodra@gmail.com>
27362
27363         PR target/48032
27364         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27365         presume symbol_refs without a symbol_ref_decl are suitably
27366         aligned, nor other trees we may see here.  Handle anchor symbols.
27367         (legitimate_constant_pool_address_p): Comment.  Add mode param.
27368         Check cmodel=medium addresses.  Adjust all calls.
27369         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27370         creating cmodel=medium optimized access to locals.
27371         * config/rs6000/constraints.md (R): Pass QImode to
27372         legitimate_constant_pool_address_p.
27373         * config/rs6000/predicates.md (input_operand): Pass mode to
27374         legitimate_constant_pool_address_p.
27375         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27376         Update prototype.
27377
27378 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
27379
27380         PR target/48053
27381         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27382         64-bit constants being loaded into registers other than GPRs such
27383         as loading 0 into a VSX register.
27384
27385 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27386
27387         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27388
27389 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27390
27391         PR middle-end/47917
27392         * builtins.c (fold_builtin_snprintf): New function.
27393         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27394         (fold_builtin_4): Likewise.
27395
27396         PR middle-end/38878
27397         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27398         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
27399         and C - X == X also strip nops from +/-/p+ operand.
27400         When optimizing -X == C, fold C to arg0's type.
27401
27402         PR debug/47946
27403         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27404         emit it as add_AT_int instead of add_AT_unsigned.
27405
27406 2011-03-14  Tom Tromey  <tromey@redhat.com>
27407
27408         * unwind-dw2.c: Include sys/sdt.h if it exists.
27409         (_Unwind_DebugHook): Use STAP_PROBE2.
27410         * config.in, configure: Rebuild.
27411         * configure.ac: Check for sys/sdt.h.
27412
27413 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
27414
27415         * config/i386/i386.md (ROUND_FLOOR): New constant.
27416         (ROUND_CEIL): Ditto.
27417         (ROUND_TRUNC): Ditto.
27418         (ROUND_MXCSR): Ditto.
27419         (ROUND_NO_EXC): Ditto.
27420         (rint<mode>2): Use new defines instead of numerical constants.
27421         (floor<mode>2): Ditto.
27422         (ceil<mode>2): Ditto.
27423         (btrunc<mode>2): Ditto.
27424         * config/i386/i386-builtin-types.def: Define ROUND function type
27425         aliases.
27426         * config/i386/i386.c (enum ix86_builtins): Add
27427         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27428         (struct builtin_description): Add
27429         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27430         (ix86_expand_sse_round): New static function.
27431         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27432         function types.
27433         (ix86_builtin_vectorized_function): Handle
27434         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27435
27436 2011-03-14  Tom Tromey  <tromey@redhat.com>
27437
27438         * c-parser.c (c_parser_asm_string_literal): Clear
27439         warn_overlength_strings.
27440
27441 2011-03-14  Tom Tromey  <tromey@redhat.com>
27442
27443         * c-parser.c (disable_extension_diagnostics): Save
27444         warn_overlength_strings.
27445         (restore_extension_diagnostics): Restore warn_overlength_strings.
27446
27447 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27448
27449         * BASE-VER: Change to 4.7.0.
27450
27451 2011-03-14  Richard Guenther  <rguenther@suse.de>
27452
27453         PR middle-end/48098
27454         * tree.c (build_vector_from_val): Adjust assert to requirements
27455         and reality.
27456
27457 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27458
27459         PR bootstrap/48102
27460         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27461
27462 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
27463
27464         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27465         terms of target_flags_explicit. Adjust copyright year.
27466
27467         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27468         * config/rs6000/t-freebsd: New file. Add override for
27469         LIB2FUNCS_EXTRA.
27470
27471 2011-03-13  Chris Demetriou  <cgd@google.com>
27472
27473         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27474         (-fno-diagnostics-show-option): this, to reflect current default.
27475         (-Werror=): Update text about -fno-diagnostics-show-option.
27476
27477 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
27478
27479         PR target/48053
27480         * config/rs6000/predicates.md (easy_vector_constant_add_self,
27481         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27482         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27483         mode is not V2DImode or V2DFmode.
27484         (vspltis_constant): Do not handle V2DImode and V2DFmode.
27485         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27486         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27487         registers to 0.
27488         (movdi_internal64): Likewise.
27489
27490 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
27491
27492         PR tree-optimization/47127
27493         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27494         parameter.
27495         (set_cloog_options): Same.
27496         (scop_to_clast): Same.
27497         (print_clast_stmt): Do not call cloog_state_malloc and
27498         cloog_state_free.
27499         (print_generated_program): Same.
27500         (gloog): Same.
27501         * graphite-clast-to-gimple.h (cloog_state): Declared.
27502         (scop_to_clast): Adjust declaration.
27503         * graphite.c (cloog_state): Defined here.
27504         (graphite_initialize): Call cloog_state_malloc.
27505         (graphite_finalize): Call cloog_state_free.
27506
27507 2011-03-11  Jason Merrill  <jason@redhat.com>
27508
27509         * attribs.c (lookup_attribute_spec): Take const_tree.
27510         * tree.h: Adjust.
27511
27512 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
27513
27514         * config/sparc/sparc.c (sparc_option_override): Use
27515         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27516
27517 2011-03-11  Richard Guenther  <rguenther@suse.de>
27518
27519         PR tree-optimization/48067
27520         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27521         multiplication result will be only used once on the target
27522         stmt.
27523
27524 2011-03-11  Richard Guenther  <rguenther@suse.de>
27525
27526         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27527
27528 2011-03-11  Richard Guenther  <rguenther@suse.de>
27529
27530         PR lto/48073
27531         * tree.c (find_decls_types_r): Do not walk types only reachable
27532         from IDENTIFIER_NODEs.
27533
27534 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27535
27536         PR middle-end/48044
27537         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27538         all vnode->force_output nodes as needed.
27539
27540 2011-03-11  Jason Merrill  <jason@redhat.com>
27541
27542         PR c++/48069
27543         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27544         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27545
27546 2011-03-11  Martin Jambor  <mjambor@suse.cz>
27547
27548         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27549         cgraph_node.
27550
27551 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27552
27553         PR tree-optimization/48063
27554         * ipa-inline.c (cgraph_decide_inlining): Don't try to
27555         inline functions called once if !tree_can_inline_p (node->callers).
27556
27557 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
27558
27559         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27560         extra_objs.
27561         * config/score/score3.c: Delete.
27562         * config/score/score3.h: Delete.
27563         * config/score/mul-div.S: Delete.
27564         * config/score/sfp-machine.h: Add new file.
27565         * config/score/constraints.md: Add new file.
27566         * config/score/t-score-softfp: Add new file.
27567         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27568         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27569         (score7_extra_constraint): Delete.
27570         (score7_option_override): Remove unused code.
27571         * config/score/score.c: Remove score3 and score5 define and code.
27572         * config/score/score.h: Remove score3 and score5 define and code.
27573         * config/score/score.md: Remove score3 template and unusual insn.
27574         * config/score/score.opt: Remove score3 and score5 options.
27575
27576 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27577
27578         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27579         when _HPUX_SOURCE is defined.
27580         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27581
27582 2011-03-10  Jason Merrill  <jason@redhat.com>
27583
27584         PR c++/48029
27585         * stor-layout.c (layout_type): Don't set structural equality
27586         on arrays of incomplete type.
27587         * tree.c (type_hash_eq): Handle comparing them properly.
27588
27589 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27590
27591         PR debug/48043
27592         * config/s390/s390.c (s390_delegitimize_address): Make sure the
27593         result mode matches original rtl mode.
27594
27595 2011-03-10  Nick Clifton  <nickc@redhat.com>
27596
27597         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27598         (andsi3, andsi3_flags): Fix timings for three operand alternative.
27599
27600 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
27601
27602         PR rtl-optimization/47866
27603         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27604         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27605         if target wasn't scalar.
27606         * function.c (assign_stack_temp_for_type): Assert that neither
27607         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27608         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27609         macro.
27610         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27611
27612 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27613
27614         * config/s390/s390-protos.h (s390_label_align): New prototype.
27615         * config/s390/s390.c (s390_label_align): New function.
27616         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27617
27618 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
27619
27620         PR target/47755
27621         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27622         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
27623         (output_vec_const_move): Ditto.
27624
27625 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
27626
27627         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27628         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27629         * config/mips/mips.c (mips_preferred_reload_class): Make static.
27630         Change 'rclass' argument and result type to reg_class_t.
27631         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27632
27633 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
27634
27635         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27636         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27637         (TARGET_MEMORY_MOVE_COST): Define.
27638         (avr_register_move_cost, avr_memory_move_cost): New Functions.
27639
27640 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
27641
27642         PR debug/47881
27643         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27644         removed anything.
27645
27646         PR tree-optimization/48022
27647         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27648         for EQ/NE_EXPR.
27649
27650 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
27651
27652         PR debug/47991
27653         * var-tracking.c (find_use_val): Return NULL for
27654         cui->sets && cui->store_p BLKmode MEMs.
27655
27656 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
27657
27658         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27659         Remove.
27660         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27661         xstormy16_print_operand_address): Remove.
27662         * config/stormy16/stormy16.c (xstormy16_print_operand,
27663         xstormy16_print_operand_address): Make static.
27664         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27665
27666 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
27667
27668         PR target/47862
27669         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27670         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27671         before definition.
27672
27673 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
27674
27675         PR bootstrap/48000
27676         * cfgloopmanip.c (fix_bb_placements): Return immediately
27677         if FROM is BASE_LOOP's header.
27678
27679 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
27680
27681         * gimplify.c (gimplify_function_tree): Fix building calls
27682         to __builtin_return_address.
27683
27684 2011-03-07  Alan Modra  <amodra@gmail.com>
27685
27686         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27687         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27688         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27689         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27690         return_mode args.
27691         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27692         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27693         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27694         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27695         * config/rs6000/rs6000.c
27696         (rs6000_elf_end_indicate_exec_stack): Rename to..
27697         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
27698         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
27699         (rs6000_file_start): ..here.
27700         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27701         file scope variables.
27702         (call_ABI_of_interest): New function.
27703         (init_cumulative_args): Set above vars when function return value
27704         is a float, vector, or small struct.
27705         (rs6000_function_arg_advance_1): Likewise for function args.
27706         (rs6000_va_start): Set rs6000_passes_float if variable arg function
27707         references float args.
27708
27709 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
27710
27711         * doc/cfg.texi: Remove "See" before @ref.
27712         * doc/invoke.texi: Likewise.
27713
27714 2011-03-05  Jason Merrill  <jason@redhat.com>
27715
27716         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27717
27718 2011-03-05  Anthony Green  <green@moxielogic.com>
27719
27720         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27721
27722 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
27723
27724         PR rtl-optimization/47899
27725         * cfgloopmanip.c (fix_bb_placements): Fix first argument
27726         to flow_loop_nested_p when moving the loop upward.
27727
27728 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
27729
27730         PR target/47719
27731         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
27732
27733 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
27734
27735         PR tree-optimization/47967
27736         * ipa-cp.c (build_const_val): Return NULL instead of creating
27737         VIEW_CONVERT_EXPR for mismatching sizes.
27738         (ipcp_create_replace_map): Return NULL if build_const_val failed.
27739         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27740         give up on versioning.
27741
27742 2011-03-05  Alan Modra  <amodra@gmail.com>
27743
27744         PR target/47986
27745         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27746         full cmodel medium/large lo_sum + high addresses.
27747
27748 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27749
27750         * config/s390/s390.c (s390_decompose_address): Reject non-literal
27751         pool references in UNSPEC_LTREL_OFFSET.
27752
27753 2011-03-04  Jan Hubicka  <jh@suse.cz>
27754
27755         PR lto/47497
27756         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27757         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27758         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27759         Add node pointers.
27760         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27761         cgraph_add_thunk): Add node pointers.
27762         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27763         associated to right node.
27764         (input_node): Update use of cgraph_same_body_alias
27765         and cgraph_add_thunk.
27766
27767 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
27768
27769         * config/i386/i386.opt (mprefer-avx128): New flag.
27770         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27771         modes when the flag -mprefer-avx128 is on.
27772
27773 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
27774
27775         * dwarf2out.c (compare_loc_operands): Fix address handling.
27776
27777 2011-03-04  Alan Modra  <amodra@gmail.com>
27778
27779         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27780
27781 2011-03-04  Richard Guenther  <rguenther@suse.de>
27782
27783         PR middle-end/47968
27784         * expmed.c (extract_bit_field_1): Prefer vector modes that
27785         vec_extract patterns can handle.
27786
27787 2011-03-04  Richard Guenther  <rguenther@suse.de>
27788
27789         PR middle-end/47975
27790         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27791
27792 2011-03-04  Richard Henderson  <rth@redhat.com>
27793
27794         * explow.c (emit_stack_save): Remove 'after' parameter.
27795         (emit_stack_restore): Likewise.
27796         * expr.h: Update to match.
27797         * builtins.c, calls.c, stmt.c: Likewise.
27798         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27799         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27800         * function.c (expand_function_end): Insert the emit_stack_save
27801         sequence before parm_birth_insn instead of after.
27802
27803 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
27804
27805         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27806         (ssse3_pmaddubsw128): Ditto.
27807         (ssse3_pmaddubsw): Ditto.
27808
27809 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
27810
27811         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27812
27813 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
27814
27815         PR c/47963
27816         * gimplify.c (omp_add_variable): Only call omp_notice_variable
27817         on TYPE_SIZE_UNIT if it is a DECL.
27818
27819         PR debug/47283
27820         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27821         first operand is not is_gimple_mem_ref_addr, try to fold it.
27822         If the operand still isn't is_gimple_mem_ref_addr, clear
27823         MEM_EXPR on op0.
27824
27825 2011-03-03  Richard Guenther  <rguenther@suse.de>
27826
27827         PR middle-end/47283
27828         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27829         match comment.
27830         (refs_may_alias_p_1): For release branches return true if
27831         we are confused by our input.
27832
27833 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27834
27835         * config/s390/s390.c (s390_function_value): Rename to ...
27836         (s390_function_and_libcall_value): ... this.
27837         (s390_function_value): New function.
27838         (s390_libcall_value): New function.
27839         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27840         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27841         target macro definitions.
27842         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27843
27844 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
27845
27846         * config/i386/freebsd64.h (CC1_SPEC): Define.
27847         * config/i386/linux64.h (CC1_SPEC): Define.
27848         * config/i386/x86-64.h (CC1_SPEC): Don't define.
27849
27850 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
27851
27852         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27853         Remove.
27854         * config/stormy16/stormy16.c: Include reload.h.
27855         (xstormy16_memory_move_cost): New function.
27856         (TARGET_MEMORY_MOVE_COST): Define.
27857
27858 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
27859
27860         PR rtl-optimization/47925
27861         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27862         with side effects.  Remove the more-specific check for volatile asms.
27863
27864 2011-03-02  Alan Modra  <amodra@gmail.com>
27865
27866         PR target/47935
27867         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27868         toc relative addresses for valid offsets.
27869
27870 2011-03-01  Richard Guenther  <rguenther@suse.de>
27871
27872         PR tree-optimization/47890
27873         * tree-vect-loop.c (get_initial_def_for_induction): Set
27874         related stmt properly.
27875
27876 2011-03-01  Richard Guenther  <rguenther@suse.de>
27877
27878         PR lto/47924
27879         * lto-streamer.c (lto_record_common_node): Also register
27880         the canonical type.
27881
27882 2011-03-01  Richard Guenther  <rguenther@suse.de>
27883
27884         PR lto/46911
27885         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27886         Do not stream DECL_ABSTRACT_ORIGIN.
27887         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27888         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27889         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27890         Do not stream DECL_ABSTRACT_ORIGIN.
27891         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27892         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27893
27894 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
27895
27896         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27897         FUNCTION_VALUE_REGNO_P): Remove.
27898         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27899         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27900         Add 'outgoing' argument.
27901         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27902         function.
27903         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27904         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27905
27906 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
27907
27908         PR debug/28047
27909         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
27910         (lookup_filename): Likewise.
27911         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
27912
27913 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
27914             Jakub Jelinek  <jakub@redhat.com>
27915
27916         PR middle-end/47893
27917         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
27918         (assign_stack_local_1): Change last argument type to int.
27919         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
27920         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
27921         don't record padding space into frame_space_list nor use those areas.
27922         (assign_stack_local): Adjust caller.
27923         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
27924         of assign_stack_local, pass 0 as last argument.
27925         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
27926         callers.
27927
27928 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
27929
27930         PR debug/47283
27931         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
27932         Use target address_mode and pointer_mode hooks instead of hardcoded
27933         Pmode and ptr_mode.  Handle some simple cases of extending if
27934         POINTERS_EXTEND_UNSIGNED < 0.
27935         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
27936         Call convert_debug_memory_address.
27937         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
27938         convert_debug_memory_address.
27939
27940         PR middle-end/46790
27941         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
27942         * configure: Regenerated.
27943         * config.in: Regenerated.
27944         * varasm.c (default_function_section): Return NULL
27945         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
27946
27947 2011-02-28  Martin Jambor  <mjambor@suse.cz>
27948
27949         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
27950         the description to match the printed values.
27951
27952 2011-02-28  Richard Guenther  <rguenther@suse.de>
27953
27954         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
27955         of the copied scope tree.
27956
27957 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27958
27959         * doc/extend.texi (Function Attributes): Avoid deeply (and
27960         wrongly) nested tables.
27961
27962 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
27963
27964         PR middle-end/47903
27965         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
27966         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
27967         r isn't op0 nor op1.
27968
27969 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27970
27971         * config/avr/avr.md: Remove magic comment for emacs.
27972
27973 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
27974
27975         PR target/45261
27976         * config/avr/avr.c (avr_option_override): Use error on bad options.
27977         (avr_help): New function.
27978         (TARGET_HELP): Define.
27979
27980 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
27981
27982         PR target/42240
27983         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
27984         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
27985
27986 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
27987
27988         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
27989         (ARM Options): Ditto.
27990         (i386 and x86-64 Options): Ditto.
27991         (RX Options): Ditto.
27992         (SPARC Options): Ditto.
27993
27994 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
27995
27996         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
27997         FreeBSD 6 and later.  Generally use cpu generic.
27998
27999 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
28000
28001         * doc/cpp.texi: Update copyright years.
28002
28003 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28004
28005         PR target/46898
28006         * config/lm32/lm32.md (ashrsi3): Added needed variable.
28007
28008 2011-02-25  Jon Beniston  <jon@beniston.com>
28009
28010         PR target/46898
28011         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28012         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28013         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28014         (lm32_block_move_inline): Add type cast to remove warning.
28015         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28016         (gen_int_relational): Move declarations to start of function.
28017
28018 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
28019
28020         PR tree-optimization/45470
28021         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28022         can throw internally only.
28023         * tree-vect-stmts.c (vectorizable_call): Likewise.
28024
28025 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
28026
28027         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28028         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28029         * config/stormy16/stormy16-protos.h
28030         (xstormy16_preferred_reload_class): Remove.
28031         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28032         static. Change 'rclass' argument and return type to reg_class_t.
28033         (TARGET_PREFERRED_RELOAD_CLASS,
28034         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28035
28036 2011-02-24  Richard Guenther  <rguenther@suse.de>
28037
28038         * lto-streamer-in.c (input_bb): Do not find referenced vars
28039         in debug statements.
28040
28041 2011-02-23  Jason Merrill  <jason@redhat.com>
28042
28043         * common.opt (fabi-version): Document v5 and v6.
28044
28045 2011-02-23  Richard Guenther  <rguenther@suse.de>
28046
28047         PR tree-optimization/47849
28048         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28049
28050 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28051
28052         * opts-common.c (decode_cmdline_option): Print empty string
28053         argument as "" in decoded->orig_option_with_args_text.
28054         * gcc.c (execute): Print empty string argument as ""
28055         in the verbose output.
28056         (do_spec_1): Keep empty string argument.
28057
28058 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
28059
28060         * config.gcc: Declare score-* and crx-* obsolete.
28061
28062 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28063
28064         PR rtl-optimization/47763
28065         * web.c (web_main): Ignore naked clobber when replacing register.
28066
28067 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
28068
28069         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28070         Remove.
28071
28072 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28073
28074         PR doc/47848
28075         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28076
28077 2011-02-22  Mike Stump  <mikestump@comcast.net>
28078
28079         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28080         assembler.
28081         * configure: Regenerate.
28082
28083 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
28084
28085         PR rtl-optimization/46002
28086         * ira-color.c (update_copy_costs): Change class intersection
28087         test to reg_class_contents[] test of 'hard_regno'.
28088
28089 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
28090
28091         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28092         than Driver option.
28093         * config/hpux11.opt (mt): Likewise.
28094         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28095         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28096         * config/vax/elf.opt (mno-asm-pic): Likewise.
28097         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28098
28099 2011-02-21  Mike Stump  <mikestump@comcast.net>
28100
28101         PR target/47822
28102         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28103         tree so we can get save the type.
28104         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28105         for CFString instead of trying to use past the end of the builtins.
28106         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28107         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28108         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28109         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28110         Rename to darwin_builtin_cfstring.
28111         (darwin_init_cfstring_builtins): Return the built type.
28112
28113 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
28114
28115         PR target/47840
28116         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28117         (_mm256_insert_epi64): Use _mm_insert_epi64.
28118
28119 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
28120
28121         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28122         * config/stormy16/stormy16-protos.h
28123         (xstormy16_mode_dependent_address_p): Remove.
28124         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28125         Make static. Change return type to bool. Change argument type to
28126         const_rtx. Remove dead code.
28127         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28128
28129 2011-02-21  Richard Guenther  <rguenther@suse.de>
28130
28131         PR lto/47820
28132         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28133         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28134         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28135         TUs context.
28136         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28137         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28138
28139 2011-02-20  Richard Guenther  <rguenther@suse.de>
28140
28141         PR lto/47822
28142         * tree.c (free_lang_data_in_decl): Clean builtins from
28143         the TU decl BLOCK_VARS.
28144
28145 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
28146
28147         PR debug/47620
28148         PR debug/47630
28149         * haifa-sched.c (fix_tick_ready): Skip tick computation
28150         for debug insns.
28151
28152 2011-02-19  Richard Guenther  <rguenther@suse.de>
28153
28154         PR lto/47647
28155         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
28156         Remove lazy BLOCK_VARS streaming.
28157         (lto_input_ts_block_tree_pointers): Likewise.
28158         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
28159
28160 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28161
28162         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
28163
28164 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28165
28166         * config/i386/biarch32.h, config/i386/mach.h,
28167         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
28168
28169 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
28170
28171         PR target/47800
28172         * config/i386/i386.md (peephole2 for shift and plus): Use
28173         operands[1] original mode in the first insn.
28174
28175 2011-02-18  Mike Stump  <mikestump@comcast.net>
28176
28177         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
28178
28179 2011-02-18  Jan Hubicka  <jh@suse.cz>
28180
28181         PR middle-end/47788
28182         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
28183         to zero when the function is not inlinable at all.
28184
28185 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28186
28187         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
28188         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28189         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
28190         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
28191         * config/pa/t-pa64: Likewise.
28192         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
28193
28194 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28195
28196         PR driver/47787
28197         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
28198
28199 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28200
28201         PR target/47792
28202         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
28203
28204 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
28205
28206         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
28207         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
28208         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
28209         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
28210         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
28211         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
28212         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
28213         m32r_load_postinc_p, m32r_store_preinc_predec_p,
28214         m32r_legitimate_address_p): New functions.
28215         * config/m32r/constraints.md (constraint "S"): Don't use
28216         STORE_PREINC_PREDEC_P.
28217         (constraint "U"): Don't use LOAD_POSTINC_P.
28218
28219 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
28220
28221         PR rtl-optimization/46178
28222         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
28223         compute ira_hard_regno_cover_class[].
28224
28225 2011-02-18  Richard Guenther  <rguenther@suse.de>
28226
28227         PR lto/47798
28228         * lto-streamer.h (lto_global_var_decls): Declare.
28229         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
28230         statics for global var processing.
28231
28232 2011-02-18  Richard Guenther  <rguenther@suse.de>
28233
28234         PR tree-optimization/47737
28235         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
28236         edge dominance check.
28237
28238 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28239
28240         PR debug/47780
28241         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
28242         avoid invalid rtx sharing.
28243
28244 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
28245
28246         * doc/cpp.texi (Obsolete Features): Add background on the
28247         origin of assertions.
28248
28249 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
28250
28251         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
28252         objc_abi == 2.
28253         * config/darwin.c (output_objc_section_asm_op): Added support for
28254         ABI v1 and v2.
28255         (is_objc_metadata): New.
28256         (darwin_objc2_section): New.
28257         (darwin_objc1_section): New.
28258         (machopic_select_section): Added support for ABI v1 and v2.
28259         (darwin_emit_objc_zeroed): New.
28260         (darwin_output_aligned_bss): Detect objc metadata and treat it
28261         appropriately.
28262         (darwin_asm_output_aligned_decl_common): Same.
28263         (darwin_asm_output_aligned_decl_local): Same.
28264         * config/darwin-sections.def: Updated for ABI v1 and v2.
28265         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
28266         compiling Objective-C code for the NeXT runtime, default to using
28267         ABI version 0 for 32-bit, and version 2 for 64-bit.
28268
28269 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28270
28271         * common.opt (optimize_fast): New Variable.
28272         * opts.c (default_options_optimization): Use opts->x_optimize_fast
28273         instead of local variable ofast.
28274
28275 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
28276
28277         * doc/invoke.texi (fobjc-abi-version): Documented.
28278         (fobjc-nilcheck): Documented.
28279         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
28280         version.
28281
28282 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28283
28284         PR driver/47390
28285         * common.opt (export-dynamic): New Driver option.
28286         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28287
28288 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28289
28290         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28291
28292 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
28293             Jan Hubicka  <jh@suse.cz>
28294
28295         PR debug/47106
28296         PR debug/47402
28297         * cfgexpand.c (account_used_vars_for_block): Remove.
28298         (estimated_stack_frame_size): Use referenced vars.
28299         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28300         that were referenced in the original function.  Test src_fn
28301         rather than cfun.  Drop redundant get_var_ann.
28302         (setup_one_parameter): Drop redundant get_var_ann.
28303         (declare_return_variable): Likewise.
28304         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28305         (copy_arguments_for_versioning): Drop redundant get_var_ann.
28306         * ipa-inline.c (compute_inline_parameters): Do not compute
28307         disregard_inline_limits here.
28308         (compute_inlinable_for_current, pass_inlinable): New.
28309         (pass_inline_parameters): Require PROP_referenced_vars.
28310         * cgraphunit.c (cgraph_process_new_functions): Don't run
28311         compute_inline_parameters explicitly unless function is in SSA form.
28312         (cgraph_analyze_function): Set .disregard_inline_limits.
28313         * tree-sra.c (convert_callers): Compute inliner parameters
28314         only for functions already in SSA form.
28315
28316 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28317
28318         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28319         -mlittle-endian-data.
28320
28321 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28322
28323         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28324         -mno-fpu, not -fpu and -no-fpu.
28325         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28326         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28327
28328 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
28329
28330         PR target/43653
28331         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28332         input reload with PLUS RTX.
28333
28334 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28335
28336         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28337         of InverseVar(MDMX).
28338
28339 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28340
28341         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28342         --m4-340.
28343
28344 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28345
28346         * config/mn10300/mn10300.opt (mno-crt0): New.
28347
28348 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28349
28350         * config/m68k/uclinux.opt (static-libc): New Driver option.
28351
28352 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28353
28354         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28355
28356 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28357
28358         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28359         %{muser-extend-enabled}.
28360
28361 2011-02-16  Richard Guenther  <rguenther@suse.de>
28362
28363         PR tree-optimization/47738
28364         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28365         the TODO from tree_predictive_commoning.
28366
28367 2011-02-15  Jeff Law  <law@redhat.com>
28368
28369         Revert
28370         2011-01-25  Jeff Law  <law@redhat.com>
28371
28372         PR rtl-optimization/37273
28373         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28374         handle them like argument loads from stack slots.  Do not double
28375         count memory for memory constants and argument loads from stack slots.
28376
28377 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28378
28379         PR target/47755
28380         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28381         mode for vector constants.  Remove code that checks for TImode.
28382
28383 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28384
28385         PR debug/47106
28386         PR debug/47402
28387         * cgraph.h (compute_inline_parameters): Return void.
28388         * ipa-inline.c (compute_inline_parameters): Adjust.
28389
28390 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28391
28392         PR debug/47106
28393         PR debug/47402
28394         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28395         rather than decl.
28396         * cfgexpand.c (estimated_stack_frame_size): Likewise.
28397         * ipa-inline.c (compute_inline_parameters): Adjust.
28398
28399 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28400
28401         PR debug/47106
28402         PR debug/47402
28403         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28404         Adjust all users.  Pass FN to...
28405         * tree-flow-inline.h (first_referenced_var): ... this.  Add
28406         fn argument.
28407         * ipa-struct-reorg.c: Adjust.
28408         * tree-dfa.c: Adjust.
28409         * tree-into-ssa.c: Adjust.
28410         * tree-sra.c: Adjust.
28411         * tree-ssa-alias.c: Adjust.
28412         * tree-ssa-live.c: Adjust.
28413         * tree-ssa.c: Adjust.
28414         * tree-ssanames.c: Adjust.
28415         * tree-tailcall.c: Adjust.
28416
28417 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28418
28419         PR debug/47106
28420         PR debug/47402
28421         * tree-flow.h (referenced_var_lookup): Add fn parameter.
28422         Adjust all callers.
28423         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28424         * tree-flow-inline.h: Adjust.
28425         * gimple-pretty-print.c: Adjust.
28426         * tree-into-ssa.c: Adjust.
28427         * tree-ssa.c: Adjust.
28428         * cfgexpand.c: Adjust.
28429
28430 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28431
28432         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28433         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28434         (EXTRA_CONSTRAINT): Delete.
28435         * config/iq2000/constraints.md: New file.
28436         * config/iq2000/iq2000.md: Include it.
28437         (define_insn ""): Delete.
28438         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28439         unsupported constraint letters from patterns.
28440         (call_value, call_value_internal1): Likewise.
28441         (call_value_multiple_internal1): Likewise.
28442
28443 2011-02-15  Nick Clifton  <nickc@redhat.com>
28444
28445         * config/mn10300/mn10300.c: Include tm-constrs.h.
28446         (struct liw_data): New data structure describing an LIW candidate
28447         instruction.
28448         (extract_bundle): Use struct liw_data.  Allow small integer
28449         operands for some instructions.
28450         (check_liw_constraints): Use struct liw_data.  Remove swapped
28451         parameter.  Add comments describing the checks.  Fix bug when
28452         assigning the source of liw1 to the source of liw2.
28453         (liw_candidate): Delete.  Code moved into extract_bundle.
28454         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
28455         before swapping.
28456         * config/mn10300/predicates.md (liw_operand): New predicate.
28457         Allows registers and small integer constants.
28458         * config/mn10300/constraints.md (O): New constraint.  Accetps
28459         integers in the range -8 to +7 inclusive.
28460         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28461         for moving a small integer into a register.  Give this alternative
28462         LIW attributes.
28463         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28464         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28465         using the J,K,L and M constraints,
28466         (liw): Remove SI mode on second operands to allow for HI and QI
28467         mode values.
28468         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
28469         instruction.
28470
28471 2011-02-15  Richard Guenther  <rguenther@suse.de>
28472
28473         PR tree-optimization/47743
28474         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28475         for a non-type-compatible VN lookup bail out.
28476
28477 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28478
28479         * config/fr30/constraints.md: New file.
28480         * config/fr30/fr30.md: Include it.
28481         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28482         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28483         (EXTRA_CONSTRAINT): Delete.
28484
28485 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28486
28487         * config/frv/constraints.md: New file.
28488         * config/frv/predicates.md: Include it.
28489         * config/frv/frv.c (reg_class_from_letter): Delete.
28490         (frv_option_override): Don't initialize it.
28491         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28492         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28493         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28494         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28495         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28496         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28497         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28498         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28499         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28500         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28501         (REG_CLASS_FROM_CONSTRAINT): Delete.
28502
28503 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
28504
28505         PR middle-end/47581
28506         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28507         if frame size is 0 in a leaf function.
28508
28509 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28510
28511         PR pch/14940
28512         * config/alpha/host-osf.c: New file.
28513         * config/alpha/x-osf: New file.
28514         * config.host (alpha*-dec-osf*): Use it.
28515
28516 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28517
28518         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28519         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28520         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28521         (rx_mode_dependent_address_p): ...this. Make static. Change argument
28522         type to const_rtx.
28523         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28524
28525 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28526
28527         * config/stormy16/constraints.md: New file.
28528         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28529         Use satisfies_constraint_Q and satisfies_constraint_R.
28530         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28531         Delete.
28532         (xstormy16_legitiamte_address_p): Declare.
28533         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28534         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28535         (EXTRA_CONSTRAINT): Delete.
28536         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28537         Un-staticize.
28538         (xstormy16_extra_constraint_p): Delete.
28539
28540 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
28541
28542         PR tree-optimization/46494
28543         * loop-unroll.c (split_edge_and_insert): Adjust comment.
28544         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28545         (pass_rtl_loop_done): Add TODO_verify_flow.
28546         * fwprop.c (pass_rtl_fwprop): Likewise.
28547         * modulo-sched.c (pass_sms): Likewise.
28548         * tree-ssa-dom.c (pass_dominator): Likewise.
28549         * tree-ssa-loop-ch.c (pass_ch): Likewise.
28550         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28551         (pass_tree_loop_done): Likewise.
28552         * tree-ssa-pre.c (execute_pre): Likewise.
28553         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28554         * tree-ssa-sink.c (pass_sink_code): Likewise.
28555         * tree-vrp.c (pass_vrp): Likewise.
28556
28557 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28558
28559         * config/v850/constraints.md: New file.
28560         * config/v850/v850.md: Include it.
28561         * config/v850/predicates.md (reg_or_0_operand): Use
28562         satisfies_constraint_G.
28563         (special_symbolref_operand): Use satisfies_constraint_K.
28564         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28565         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28566         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28567         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28568         (EXTRA_CONSTRAINT): Delete.
28569         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28570         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28571         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28572
28573 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28574
28575         PR target/47696
28576         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28577         description.
28578
28579 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28580
28581         * config/mcore/constraints.md: New file.
28582         * config/mcore/mcore.md: Include it.
28583         * config/mcore/mcore.c (reg_class_from_letter): Delete.
28584         * config/mcore/mcore.h (reg_class_from_letter): Delete.
28585         (REG_CLASS_FROM_LETTER): Delete.
28586         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28587         insn_const_int_ok_for_constraint.
28588         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28589         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28590         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28591         (EXTRA_CONSTRAINT): Delete.
28592
28593 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28594
28595         PR ada/41929
28596         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28597         (IS_SIGHANDLER): Define.
28598         (sparc64_is_sighandler): New function, split off from
28599         sparc64_fallback_frame_state.
28600         (sparc_is_sighandler): New function, split off from
28601         sparc_fallback_frame_state.
28602         (sparc64_fallback_frame_state): Merge with ...
28603         (sparc_fallback_frame_state): ... this into ...
28604         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28605         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
28606         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
28607         stack instead of hardcoded offsets.
28608
28609 2011-02-14  Andriy Gapon  <avg@freebsd.org>
28610
28611         PR target/45808
28612         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28613
28614 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28615
28616         * configure: Regenerate.
28617
28618 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
28619
28620         PR driver/45731
28621         * gcc.c (asm_options): Correct spec matching --target-help.
28622
28623 2011-02-12  Martin Jambor  <mjambor@suse.cz>
28624
28625         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28626         to gimple call error.
28627
28628 2011-02-12  Mike Stump  <mikestump@comcast.net>
28629
28630         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28631         comments in backslash regions.
28632
28633 2011-02-12  Mike Stump  <mikestump@comcast.net>
28634             Jakub Jelinek  <jakub@redhat.com>
28635             Iain Sandoe  <iains@gcc.gnu.org>
28636
28637         PR target/47324
28638         * dwarf2out.c (output_cfa_loc): When required, apply the
28639         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28640         (output_loc_sequence): Likewise.
28641         (output_loc_operands_raw): Likewise.
28642         (output_loc_sequence_raw): Likewise.
28643         (output_cfa_loc): Likewise.
28644         (output_loc_list): Suppress register number adjustment when
28645         calling output_loc_sequence()
28646         (output_die): Likewise.
28647
28648 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
28649
28650         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28651         Remove macros.
28652         * config/xtensa/xtensa.c (xtensa_register_move_cost,
28653         xtensa_memory_move_cost): New functions.
28654         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28655
28656 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
28657
28658         PR lto/47225
28659         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28660         in the current directory.
28661         * configure: Rebuilt.
28662
28663 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28664
28665         * config/darwin.c (darwin_override_options): Add a hunk missed
28666         from the commit of r168571.  Trim comment line lengths and
28667         correct indents of the preceding block.
28668
28669 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28670
28671         * gcc.c (driver_handle_option): Concatenate the argument to -F with
28672         the switch.
28673
28674 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28675
28676         * common.opt (nostartfiles): New Driver option.
28677
28678 2011-02-11  Xinliang David Li  <davidxl@google.com>
28679
28680         PR tree-optimization/47707
28681         * tree-chrec.c (convert_affine_scev): Keep type precision.
28682
28683 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
28684
28685         PR tree-optimization/47420
28686         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28687
28688 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
28689
28690         PR rtl-optimization/47614
28691         * rtl.h (check_for_inc_dec): Declare.
28692         * dse.c (check_for_inc_dec): Externalize...
28693         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28694         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28695
28696 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28697
28698         PR driver/47678
28699         * gcc.c (main): Do not compile inputs if there were errors in
28700         option handling.
28701         * opts-common.c (read_cmdline_option): Check for wrong language
28702         after other error checks.
28703
28704 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
28705
28706         * cgraph.c: Fix comment typos.
28707         * cgraph.h: Likewise.
28708         * cgraphunit.c: Likewise.
28709         * ipa-cp.c: Likewise.
28710         * ipa-inline.c: Likewise.
28711         * ipa-prop.c: Likewise.
28712         * ipa-pure-const.c: Likewise.
28713         * ipa-ref.c: Likewise.
28714         * ipa-reference.c: Likewise.
28715
28716 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28717
28718         PR debug/47684
28719         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28720
28721 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28722
28723         PR testsuite/47400
28724         * doc/sourcebuild.texi (Require Support): Document
28725         dg-require-ascii-locale.
28726
28727 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
28728
28729         * doc/lto.texi (Write summary): Fix missing parentheses.
28730
28731 2011-02-10  DJ Delorie  <dj@redhat.com>
28732
28733         * config/m32c/m32c.c (m32c_option_override): Disable
28734         -fcombine-stack-adjustments until flag value tracking and compare
28735         optimization can be rewritten.
28736
28737 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
28738
28739         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28740         PROCESSOR_POWER7.
28741         (PROCESSOR_DEFAULT64): Likewise.
28742
28743 2011-02-10  Richard Henderson  <rth@redhat.com>
28744
28745         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28746         change from 2011-02-03.
28747         * config/rx/rx.c (flags_from_code): Likewise.
28748         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28749         is valid, n/pz otherwise.
28750         (rx_select_cc_mode): Return CCmode if Y is not zero.
28751
28752 2011-02-10  Richard Guenther  <rguenther@suse.de>
28753
28754         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28755
28756 2011-02-10  Richard Guenther  <rguenther@suse.de>
28757
28758         PR tree-optimization/47677
28759         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28760
28761 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
28762
28763         PR target/47665
28764         * combine.c (make_compound_operation): Only change shifts into
28765         multiplication for SCALAR_INT_MODE_P.
28766
28767 2011-02-10  Jie Zhang  <jie@codesourcery.com>
28768
28769         PR testsuite/47622
28770         Revert
28771         2011-02-05  Jie Zhang  <jie@codesourcery.com>
28772         PR debug/42631
28773         * web.c (entry_register): Don't clobber the number of the
28774         first uninitialized reference in used[].
28775
28776 2011-02-09  Richard Guenther  <rguenther@suse.de>
28777
28778         PR tree-optimization/47664
28779         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28780         all edges again.
28781
28782 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
28783
28784         PR target/46481
28785         PR target/47032
28786         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28787         PROCESSOR_POWER7.
28788         (PROCESSOR_DEFAULT64): Same.
28789         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28790
28791 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28792
28793         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28794
28795 2011-02-09  Martin Jambor  <mjambor@suse.cz>
28796
28797         PR middle-end/45505
28798         * tree-sra.c (struct access): New flags grp_scalar_read and
28799         grp_scalar_write.  Changed description of assignment read and write
28800         flags.
28801         (dump_access): Dump new flags, reorder all of them.
28802         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28803         to detect multiple scalar reads.
28804         (analyze_access_subtree): Use the new scalar read write flags instead
28805         of the old flags.  Adjusted comments.
28806
28807 2011-02-08  DJ Delorie  <dj@redhat.com>
28808
28809         PR target/47548
28810         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28811         patterns.
28812
28813 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28814
28815         * config/m68k/uclinux.opt: New.
28816         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28817
28818 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28819
28820         * config/cris/elf.opt (sim): New Driver option.
28821
28822 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28823
28824         * config/xtensa/elf.opt: New.
28825         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28826
28827 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28828
28829         * config/vax/elf.opt: New.
28830         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28831
28832 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28833
28834         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28835
28836 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28837
28838         * config/gnu-user.opt: New.
28839         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28840         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28841         *-*-uclinux*): Use gnu-user.opt.
28842
28843 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
28844
28845         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28846         * config/i386/gnu.h (CPP_SPEC): Likewise.
28847
28848 2011-02-08  Ian Lance Taylor  <iant@google.com>
28849
28850         * common.opt (fcx-limited-range): Add SetByCombined flag.
28851         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28852         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28853         (fassociative-math, freciprocal-math): Likewise.
28854         (funsafe-math-optimizations): Likewise.
28855         * opth-gen.awk: Handle SetByCombined.
28856         * optc-gen.awk: Likewise.
28857         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28858         (set_unsafe_math_optimizations_flags): Likewise.
28859         * doc/options.texi (Option properties): Document SetByCombined.
28860
28861 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28862
28863         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28864         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28865         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28866         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28867         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28868
28869 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
28870
28871         PR tree-optimization/46834
28872         PR tree-optimization/46994
28873         PR tree-optimization/46995
28874         * graphite-sese-to-poly.c (used_outside_reduction): New.
28875         (detect_commutative_reduction): Call used_outside_reduction.
28876         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28877         translate_scalar_reduction_to_array only when at least one
28878         loop-phi/close-phi tuple has been detected.
28879
28880 2011-02-08  Richard Guenther  <rguenther@suse.de>
28881
28882         PR middle-end/47639
28883         * tree-vect-generic.c (expand_vector_operations_1): Update
28884         stmts here ...
28885         (expand_vector_operations): ... not here.  Cleanup EH info
28886         and the CFG if required.
28887
28888 2011-02-08  Richard Guenther  <rguenther@suse.de>
28889
28890         PR tree-optimization/47641
28891         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28892         require type compatibility.
28893
28894 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28895
28896         * gimple-low.c (lower_function_body): Don't remove the location of
28897         the return statement here.
28898         (lower_gimple_return): Do it here instead but only if the return
28899         statement is actually used twice.
28900
28901 2011-02-08  Richard Guenther  <rguenther@suse.de>
28902
28903         PR tree-optimization/47632
28904         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28905         unused up_to_stmt parameter, return whether cfg-cleanup is
28906         necessary, remove EH info properly.
28907         (forward_propagate_into_gimple_cond): Adjust caller.
28908         (forward_propagate_into_cond): Likewise.
28909         (forward_propagate_comparison): Likewise.
28910         (tree_ssa_forward_propagate_single_use_vars): Make
28911         forward_propagate_comparison case similar to the two others.
28912
28913 2011-02-08  Nick Clifton  <nickc@redhat.com>
28914
28915         * config/mn10300/mn10300.opt (mliw): New command line option.
28916         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
28917         (liw_bundling): New automaton.
28918         (liw): New attribute.
28919         (liw_op): New attribute.
28920         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
28921         (movsi_internal): Add LIW attributes.
28922         (andsi3): Likewise.
28923         (iorsi3): Likewise.
28924         (xorsi3): Likewise.
28925         (addsi3): Separate register and immediate alternatives.
28926         Add LIW attributes.
28927         (subsi3): Likewise.
28928         (cmpsi): Likewise.
28929         (aslsi3): Likewise.
28930         (lshrsi3): Likewise.
28931         (ashrsi3): Likewise.
28932         (liw): New pattern.
28933         * config/mn10300/mn10300.c (liw_op_names): New
28934         (mn10300_print_operand): Handle 'W' operand descriptor.
28935         (extract_bundle): New function.
28936         (check_liw_constraints): New function.
28937         (liw_candidate): New function.
28938         (mn10300_bundle_liw): New function.
28939         (mn10300_reorg): New function.
28940         (TARGET_MACHINE_DEPENDENT_REORG): Define.
28941         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
28942         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
28943         __LIW__ or __NO_LIW__.
28944         * doc/invoke.texi: Describe the -mliw command line option.
28945
28946 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28947
28948         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
28949         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28950         pthread_mutex_unlock): Remove.
28951         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
28952         * config/pa/t-pa64: Likewise.
28953         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
28954         shared libc if not linking against libpthread.
28955         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28956
28957 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
28958
28959         PR target/47558
28960         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
28961         on 10.6 and later to ensure that we always use the unwinder from
28962         the system.  Only add -no_compact_unwind when tarteting darwin
28963         10.6 or later.
28964
28965 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
28966
28967         PR target/46997
28968         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
28969         (vec_interleave_lowv2sf): Ditto.
28970         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
28971         (vec_extract_oddv2sf): Ditto.
28972
28973 2011-02-07  Mike Stump  <mikestump@comcast.net>
28974
28975         PR target/42333
28976         Add __ieee_divdc3 entry point.
28977         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
28978         entry point.
28979         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
28980         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
28981         * config/darwin.c (darwin_rename_builtins): Add.
28982         * config/darwin-protos.h (darwin_rename_builtins): Add.
28983
28984 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
28985
28986         PR target/47636
28987         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
28988         for the condition.
28989
28990 2011-02-07  Mike Stump  <mikestump@comcast.net>
28991
28992         * config/darwin.opt (mmacosx-version-min): Update default OS version.
28993
28994 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
28995
28996         PR target/47534
28997         * config/avr/libgcc.S (exit): Move .endfunc
28998
28999 2011-02-07  Richard Guenther  <rguenther@suse.de>
29000
29001         PR tree-optimization/47615
29002         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29003         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29004         (run_scc_vn): Initialize it.
29005         (visit_reference_op_load): Use it.
29006         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29007
29008 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29009
29010         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29011         DImode trapping arithmetic libfuncs.
29012
29013 2011-02-07  Richard Guenther  <rguenther@suse.de>
29014
29015         PR tree-optimization/47621
29016         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29017         two duplicates ...
29018         (execute_update_addresses_taken): ... here.  Make it more
29019         conservative in what we accept.
29020
29021 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29022
29023         * config/sparc/freebsd.h (ASM_SPEC): Define.
29024         * config/sparc/vxworks.h (ASM_SPEC): Define.
29025
29026 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29027
29028         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29029
29030 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
29031
29032         * doc/invoke.texi: Remove reference to compiler internals from
29033         user documentation.
29034
29035         * reg-notes.def: Remove REG_VALUE_PROFILE.
29036         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29037
29038 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
29039
29040         PR middle-end/47610
29041         * varasm.c (default_section_type_flags): If decl is NULL,
29042         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29043
29044 2011-02-05  Jie Zhang  <jie@codesourcery.com>
29045
29046         PR debug/42631
29047         * web.c (entry_register): Don't clobber the number of the
29048         first uninitialized reference in used[].
29049
29050 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
29051
29052         PR tree-optimization/46194
29053         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29054         (build_classic_dist_vector_1): Do not represent classic distance
29055         vectors when the access functions are variating in different loops.
29056
29057 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29058
29059         * config/mips/iris6.opt: New.
29060         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29061
29062 2011-02-04  Richard Henderson  <rth@redhat.com>
29063             Steve Ellcey  <sje@cup.hp.com>
29064
29065         PR target/46997
29066         * config/ia64/predicates.md (mux1_brcst_element): New.
29067         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29068         * config/ia64/ia64.c (ia64_unpack_assemble): New.
29069         (ia64_unpack_sign): New.
29070         (ia64_expand_unpack): Rewrite using new routines.
29071         (ia64_expand_widen_sum): Ditto.
29072         (ia64_expand_dot_prod_v8qi): Ditto.
29073         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29074         routines, add endian check.
29075         (pmpy2_even): Rename from pmpy2_r, add endian check.
29076         (pmpy2_odd): Rename from pmpy2_l, add endian check.
29077         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29078         (vec_widen_smult_hi_v4hi): Ditto.
29079         (vec_widen_umult_lo_v4hi): Ditto.
29080         (vec_widen_umult_hi_v4hi): Ditto.
29081         (mulv2si3): Change endian checks.
29082         (sdot_prodv4hi): Rewrite with new calls.
29083         (udot_prodv4hi): New.
29084         (vec_pack_ssat_v4hi): Add endian check.
29085         (vec_pack_usat_v4hi): Ditto.
29086         (vec_pack_ssat_v2si): Ditto.
29087         (max1_even): Rename from max1_r, add endian check.
29088         (max1_odd): Rename from max1_l, add endian check.
29089         (*mux1_rev): Format change.
29090         (*mux1_mix): Ditto.
29091         (*mux1_shuf): Ditto.
29092         (*mux1_alt): Ditto.
29093         (*mux1_brcst_v8qi): Use new predicate.
29094         (vec_extract_evenv8qi): Remove endian check.
29095         (vec_extract_oddv8qi): Ditto.
29096         (vec_interleave_lowv4hi): Format change.
29097         (vec_interleave_highv4hi): Ditto.
29098         (mix2_even): Rename from mix2_r, add endian check.
29099         (mix2_odd): Rename from mux2_l, add endian check.
29100         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29101         (vec_extract_evenodd_helper): Format change.
29102         (vec_extract_evenv4hi): Remove endian check.
29103         (vec_extract_oddv4hi): Remove endian check.
29104         (vec_interleave_lowv2si): Format change.
29105         (vec_interleave_highv2si): Format change.
29106         (vec_initv2si): Remove endian check.
29107         (vecinit_v2si): Add endian check.
29108         (reduc_splus_v2sf): Add endian check.
29109         (reduc_smax_v2sf): Ditto.
29110         (reduc_smin_v2sf): Ditto.
29111         (vec_initv2sf): Remove endian check.
29112         (fpack): Add endian check.
29113         (fswap): Add endian check.
29114         (vec_interleave_highv2sf): Add endian check.
29115         (vec_interleave_lowv2sf): Add endian check.
29116         (fmix_lr): Add endian check.
29117         (vec_setv2sf): Format change.
29118         (*vec_extractv2sf_0_be): Use shift to extract operand.
29119         (*vec_extractv2sf_1_be): New.
29120         (vec_pack_trunc_v4hi): Add endian check.
29121         (vec_pack_trunc_v2si): Format change.
29122
29123 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
29124
29125         PR inline-asm/23200
29126         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
29127         do bb, locus and block comparison and disallow loads if it is not set.
29128         (stmt_is_replaceable_p): New function.
29129         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29130         callers.
29131         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29132         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29133         SSA_NAME_DEF_STMT.
29134         * tree-flow.h (stmt_is_replaceable_p): New prototype.
29135
29136 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29137
29138         * config/rs6000/xilinx.opt: New.
29139         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
29140
29141 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29142
29143         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
29144
29145 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
29146
29147         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
29148         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29149         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
29150         secondary_reload_info, xtensa_secondary_reload): Remove.
29151         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
29152         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29153         (xtensa_preferred_reload_class): Make static. Change return and
29154         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
29155         Use CONST_DOUBLE_P predicate.
29156         (xtensa_preferred_output_reload_class): New function.
29157         (xtensa_secondary_reload): Make static.
29158
29159 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
29160
29161         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
29162         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
29163         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
29164
29165 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29166
29167         PR middle-end/31490
29168         * output.h (SECTION_RELRO): Define.
29169         (SECTION_MACH_DEP): Adjust.
29170         (get_variable_section): New prototype.
29171         * varpool.c (varpool_finalize_named_section_flags): New function.
29172         (varpool_assemble_pending_decls): Call it.
29173         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
29174         * cgraphunit.c (cgraph_output_in_order): Call
29175         varpool_finalize_named_section_flags.
29176         * varasm.c (get_section): Allow section flags conflicts between
29177         relro and read-only sections if the section hasn't been declared yet.
29178         Set SECTION_OVERRIDE after diagnosing section type conflict.
29179         (get_variable_section): No longer static.
29180         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
29181         readonly sections that need relocations.
29182         (decl_readonly_section_1): New function.
29183         (decl_readonly_section): Use it.
29184
29185         Revert:
29186         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
29187                     Steve Ellcey  <sje@cup.hp.com>
29188
29189         PR middle-end/31490
29190         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
29191         if section attribute used.
29192
29193 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29194
29195         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
29196         * config/darwin.c (SECTION_NO_ANCHOR): Define.
29197         (darwin_init_sections): Remove assertion.
29198
29199 2011-02-03  Nick Clifton  <nickc@redhat.com>
29200
29201         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
29202         lt and ge.
29203         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
29204         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
29205         instead of "n" and "pz".
29206         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
29207         CC_FLAG_S.
29208
29209 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29210
29211         PR target/47312
29212         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
29213         fma, expand FMA_EXPR as fma{,f,l} call.
29214
29215         PR lto/47274
29216         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
29217         copy them into a unsigned char variable and pass address of it to
29218         lto_output_data_stream.
29219
29220         PR target/47564
29221         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
29222         around backend_init_target and lang_dependent_init_target calls.
29223         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
29224         (verify_cgraph_node): Don't call set_cfun here.  Use
29225         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
29226         Set error_found for incorrectly represented calls to thunks.
29227
29228 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29229
29230         PR debug/43092
29231         PR rtl-optimization/43494
29232         * rtl.h (for_each_inc_dec_fn): New type.
29233         (for_each_inc_dec): Declare.
29234         * rtlanal.c (struct for_each_inc_dec_ops): New type.
29235         (for_each_inc_dec_find_inc_dec): New fn.
29236         (for_each_inc_dec_find_mem): New fn.
29237         (for_each_inc_dec): New fn.
29238         * dse.c (struct insn_size): Remove.
29239         (replace_inc_dec, replace_inc_dec_mem): Remove.
29240         (emit_inc_dec_insn_before): New fn.
29241         (check_for_inc_dec): Use it, along with for_each_inc_dec.
29242         (canon_address): Pass mem modes to cselib_lookup.
29243         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
29244         (cselib_lookup_from_insn): Likewise.
29245         (cselib_subst_to_values): Likewise.
29246         * cselib.c (find_slot_memmode): New var.
29247         (cselib_find_slot): New fn.  Use it instead of
29248         htab_find_slot_with_hash everywhere.
29249         (entry_and_rtx_equal_p): Use find_slot_memmode.
29250         (autoinc_split): New fn.
29251         (rtx_equal_for_cselib_p): Rename and implement in terms of...
29252         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
29253         Deal with autoinc.  Special-case recursion into MEMs.
29254         (cselib_hash_rtx): Likewise.
29255         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
29256         address and MEM modes.
29257         (cselib_subst_to_values): Add memmode, pass it on.
29258         Deal with autoinc.
29259         (cselib_lookup): Add memmode argument, pass it on.
29260         (cselib_lookup_from_insn): Add memmode.
29261         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
29262         (struct cselib_record_autoinc_data): New.
29263         (cselib_record_autoinc_cb): New fn.
29264         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
29265         mode to cselib_lookup.  Reset autoinced REGs here instead of...
29266         (cselib_process_insn): ... here.
29267         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
29268         to cselib_lookup.
29269         (add_uses): Likewise, also to cselib_subst_to_values.
29270         (add_stores): Likewise.
29271         * sched-deps.c (add_insn_mem_dependence): Pass mode to
29272         cselib_subst_to_values.
29273         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
29274         * gcse.c (do_local_cprop): Adjusted.
29275         * postreload.c (reload_cse_simplify_set): Adjusted.
29276         (reload_cse_simplify_operands): Adjusted.
29277         * sel-sched-dump (debug_mem_addr_value): Pass mode.
29278
29279 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29280
29281         PR tree-optimization/45122
29282         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29283         unsafe assumptions when there's more than one loop exit.
29284
29285 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29286
29287         PR target/47272
29288         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29289         Document using vector double with the load/store builtins, and
29290         that the load/store builtins always use Altivec instructions.
29291
29292         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29293         to use altivec memory instructions, even on VSX.
29294         (vector_altivec_store_<mode>): Ditto.
29295
29296         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29297         function.
29298
29299         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29300         V2DF, V2DI support to load/store overloaded builtins.
29301
29302         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29303         altivec load/store builtins for V2DF/V2DI types.
29304
29305         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29306         set avoid indexed addresses on power6 if -maltivec.
29307         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29308         vector_altivec_load/vector_altivec_store builtins.
29309         (altivec_expand_st_builtin): Ditto.
29310         (altivec_expand_builtin): Add VSX memory builtins.
29311         (rs6000_init_builtins): Add V2DI types to internal types.
29312         (altivec_init_builtins): Add support for V2DF/V2DI altivec
29313         load/store builtins.
29314         (rs6000_address_for_altivec): Insure memory address is appropriate
29315         for Altivec.
29316
29317         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29318         vec_vsx_ld and vec_vsx_st.
29319         (vsx_store_<mode>): Ditto.
29320
29321         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29322         variables to hold long long types for VSX vector memory builtins.
29323         (RS6000_BTI_unsigned_long_long): Ditto.
29324         (long_long_integer_type_internal_node): Ditti.
29325         (long_long_unsigned_type_internal_node): Ditti.
29326
29327         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29328         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29329         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29330
29331         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29332         short cuts.
29333         (vec_vsx_st): Ditto.
29334
29335 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29336
29337         * config/pa/pa-hpux10.opt: New.
29338         * config/hpux11.opt (pthread): New Driver option.
29339         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29340         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29341
29342 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29343
29344         * config/ia64/vms.opt: New.
29345         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29346
29347 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29348
29349         PR target/47580
29350         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29351         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29352         generator functions.
29353         (vsx_floatuns<VSi><mode>2): Ditto.
29354         (vsx_fix_trunc<mode><VSi>2): Ditto.
29355         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29356
29357 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29358
29359         * config/i386/djgpp.opt (posix): New Driver option.
29360
29361 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
29362
29363         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29364         Move to the unsupported targets list.
29365
29366 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
29367
29368         PR rtl-optimization/47525
29369         * df-scan.c: Update copyright years.
29370         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29371         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29372
29373 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29374
29375         * config/i386/sysv4.h (TARGET_VERSION): Remove.
29376         (SUBTARGET_RETURN_IN_MEMORY): Remove.
29377         (ASM_OUTPUT_ASCII): Remove.
29378         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29379
29380 2011-02-02  Jeff Law  <law@redhat.com>
29381
29382         PR middle-end/47543
29383         * reload.c (find_reloads_address): Handle reg+d address where both
29384         components are invalid by reloading the entire address.
29385
29386 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29387             Richard Guenther  <rguenther@suse.de>
29388
29389         PR tree-optimization/40979
29390         PR bootstrap/47044
29391         * passes.c (init_optimization_passes): After LIM call copy_prop
29392         and DCE to clean up.
29393         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29394
29395 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29396
29397         PR tree-optimization/47576
29398         PR tree-optimization/47555
29399         * doc/invoke.texi (scev-max-expr-complexity): Documented.
29400         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29401         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29402         * tree-scalar-evolution.c (follow_ssa_edge): Use
29403         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29404
29405 2011-02-02  Richard Guenther  <rguenther@suse.de>
29406
29407         PR tree-optimization/47566
29408         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29409
29410 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29411
29412         PR debug/47106
29413         PR debug/47402
29414         * tree-inline.c (declare_return_variable): Remove unused caller
29415         variable.
29416
29417         PR debug/47106
29418         PR debug/47402
29419         * tree-flow-inline.h (clear_is_used, is_used_p): New.
29420         * cfgexpand.c (account_used_vars_for_block): Use them.
29421         * tree-nrv.c (tree_nrv): Likewise.
29422         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29423         (dump_scope_block): Likewise.
29424         (remove_unused_locals): Likewise.
29425
29426         PR debug/47106
29427         PR debug/47402
29428         * tree-inline.c (declare_return_variable): Add result decl to
29429         local decls only once.
29430         * gimple-low.c (record_vars_into): Mark newly-created variables
29431         as referenced.
29432
29433 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29434
29435         PR debug/47498
29436         PR debug/47501
29437         PR debug/45136
29438         PR debug/45130
29439         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29440         debug insns.
29441         (no_real_insns_p, schedule_block, set_priorities): Drop special
29442         treatment of boundary debug insns.
29443         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29444         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29445         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29446         (BOUNDARY_DEBUG_INSN_P): Likewise.
29447         (SCHEDULE_DEBUG_INSN_P): Likewise.
29448         * sched-rgn.c (init_ready_list): Drop special treatment of
29449         boundary debug insns.
29450         * final.c (rest_of_clean_state): Clear notes' BB.
29451
29452 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29453
29454         * config/openbsd.opt (assert=): New Driver option.
29455
29456 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29457
29458         * config/i386/nto.opt: New.
29459         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29460
29461 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29462
29463         * config/i386/netware.opt: New.
29464         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29465
29466 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29467
29468         * config/interix.opt (posix): New Driver option.
29469
29470 2011-02-01  DJ Delorie  <dj@redhat.com>
29471
29472         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29473
29474         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29475         class for A0/A1.
29476
29477 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
29478
29479         PR tree-optimization/47561
29480         * toplev.c (process_options): Print the Graphite flags.  Add
29481         flag_loop_flatten to the list of options requiring Graphite.
29482
29483 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29484
29485         * config/i386/cygming.opt (posix): New Driver option.
29486
29487 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29488
29489         * config/arm/vxworks.opt: New.
29490         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29491
29492 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29493
29494         * config/alpha/elf.opt: New.
29495         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29496         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29497
29498 2011-02-01  Richard Guenther  <rguenther@suse.de>
29499
29500         PR tree-optimization/47559
29501         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29502         store-motion on references that can throw.
29503
29504 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
29505
29506         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29507         * tree-pass.h (TDF_CSELIB): New macro.
29508         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29509         cselib_lookup): Check for it rather than for TDF_DETAILS.
29510
29511 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
29512
29513         PR driver/47547
29514         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29515         is HOST_BIT_BUCKET.
29516
29517         * opts.c (finish_options): Don't add x_aux_base_name if it is
29518         HOST_BIT_BUCKET.
29519
29520 2011-02-01  Richard Guenther  <rguenther@suse.de>
29521
29522         PR tree-optimization/47555
29523         Revert
29524         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
29525
29526         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29527
29528 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
29529
29530         PR gcc/46692
29531         * config/lm32/t-lm32: Add multilib for all CPU options.
29532
29533 2011-02-01  Richard Guenther  <rguenther@suse.de>
29534
29535         PR tree-optimization/47541
29536         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29537         sure to have a field at offset zero.
29538
29539 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29540
29541         * config/arc/arc.opt (EB, EL): New Driver options.
29542
29543 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29544
29545         * config/alpha/osf5.opt: New.
29546         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29547
29548 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29549
29550         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29551
29552 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
29553
29554         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29555         -floop-interchange.
29556         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29557         is an alias of -floop-interchange and that it requires the
29558         Graphite infrastructure.
29559         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29560         flag_loop_interchange based on the value of flag_tree_loop_linear.
29561
29562 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
29563             Richard Guenther  <rguenther@suse.de>
29564
29565         PR tree-optimization/47538
29566         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29567         type instead of r1type, except for comparisons.  For right
29568         shifts and comparisons punt if there are mismatches in
29569         sizetype vs. non-sizetype types.
29570
29571 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29572
29573         * doc/sourcebuild.texi (Effective-Target Keywords): Document
29574         avx_runtime.
29575
29576 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29577
29578         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29579         version number.
29580         * configure: Regenerate.
29581
29582 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29583
29584         * configure.ac (gcc_cv_ld_static_option): Define.
29585         (gcc_cv_ld_dynamic_option): Define.
29586         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29587         instead.
29588         (HAVE_LD_STATIC_DYNAMIC): Update message.
29589         (LD_STATIC_OPTION): Define.
29590         (LD_DYNAMIC_OPTION): Define.
29591         * configure: Regenerate.
29592         * config.in: Regenerate.
29593         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29594         HAVE_LD_STATIC_DYNAMIC]: Use them.
29595
29596 2011-01-31  Nick Clifton  <nickc@redhat.com>
29597
29598         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29599         registers inside interrupt handlers if the handler is not a leaf
29600         function.
29601
29602 2011-01-31  Nick Clifton  <nickc@redhat.com>
29603
29604         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29605         reg_renumber returning an INVALID_REGNUM.
29606
29607 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29608
29609         PR libgcj/44341
29610         * doc/install.texi: Document host options discarded when cross
29611         configuring target libraries.
29612
29613 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29614
29615         Reverted:
29616         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29617         PR debug/45136
29618         PR debug/45130
29619         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29620         debug insns.
29621         (no_real_insns_p, schedule_block, set_priorities): Drop special
29622         treatment of boundary debug insns.
29623         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29624         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29625         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29626         (BOUNDARY_DEBUG_INSN_P): Likewise.
29627         (SCHEDULE_DEBUG_INSN_P): Likewise.
29628         * sched-rgn.c (init_ready_list): Drop special treatment of
29629         boundary debug insns.
29630         * final.c (rest_of_clean-state): Clear notes' BB.
29631
29632 2011-01-31  Alan Modra  <amodra@gmail.com>
29633
29634         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29635         toc relative expressions as we do in print_operand_address.
29636
29637 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
29638
29639         * doc/extend.texi: Follow spelling conventions.
29640         * doc/invoke.texi: Fix a typo.
29641
29642 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
29643
29644         * config/hpux11.opt: New.
29645         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29646         ia64*-*-hpux*): Use hpux11.opt.
29647
29648 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
29649
29650         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29651         to tmake_file.
29652
29653 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29654
29655         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29656         support sites.
29657
29658 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29659
29660         * doc/install.texi (Binaries): Remove outdated reference for
29661         Motorola 68HC11/68HC12 downloads.
29662
29663 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29664
29665         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29666         Drepper's paper.
29667
29668 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
29669
29670         PR bootstrap/47147
29671         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29672         used by NetBSD.
29673
29674 2011-01-28  Ahmad Sharif  <asharif@google.com>
29675
29676         * value-prof.c (check_counter): Corrected error message.
29677
29678 2011-01-29  Jie Zhang  <jie@codesourcery.com>
29679
29680         * config/arm/arm.c (arm_legitimize_reload_address): New.
29681         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29682         arm_legitimize_reload_address.
29683         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29684
29685 2011-01-28  Ian Lance Taylor  <iant@google.com>
29686
29687         * godump.c (go_define): Ignore macros whose definitions include
29688         two adjacent operands.
29689
29690 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
29691
29692         PR target/42894
29693         * varasm.c (force_const_mem): Store copy of x in desc->constant
29694         instead of x itself.
29695         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29696         itself into REG_EQUAL note.
29697
29698 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
29699
29700         * config/freebsd.opt (posix, rdynamic): New Driver options.
29701
29702 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29703
29704         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29705         -Bstatic/-Bdynamic.
29706         * configure: Regenerate.
29707
29708 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
29709
29710         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29711         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29712
29713 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
29714
29715         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29716         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29717         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29718         (s390_preferred_reload_class): Make static. Change return and
29719         'rclass' argument type to reg_class_t.
29720
29721 2011-01-27  Jan Hubicka  <jh@suse.cz>
29722
29723         PR middle-end/46949
29724         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29725         (process_function_and_variable_attributes): Check defined weakrefs.
29726
29727 2011-01-27  Martin Jambor  <mjambor@suse.cz>
29728
29729         PR tree-optimization/47228
29730         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29731         build_ref_for_offset.
29732
29733 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29734
29735         * config/spu/spu-elf.h (ASM_SPEC): Remove.
29736
29737 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
29738
29739         PR rtl-optimization/46856
29740         * postreload.c (reload_combine_recognize_const_pattern): Do not
29741         separate cc0 setter and user on cc0 targets.
29742
29743 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
29744
29745         PR c/43082
29746         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29747         passed a VOID_TYPE expression, immediately emit an error and
29748         return error_mark_node.
29749
29750 2011-01-26  Jeff Law  <law@redhat.com>
29751
29752         PR rtl-optimization/47464
29753         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29754         rather than may_trap_p as needed.
29755
29756 2011-01-26  DJ Delorie  <dj@redhat.com>
29757
29758         PR rtl-optimization/46878
29759         * combine.c (insn_a_feeds_b): Check for the implicit cc0
29760         setter/user dependency as well.
29761
29762 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
29763
29764         PR rtl-optimization/44469
29765         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29766         after removing trivially dead basic blocks.
29767
29768 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29769
29770         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29771         * config/frv/frv.h (LINK_SPEC): Likewise.
29772         * config/i386/netware.h (LINK_SPEC): Likewise.
29773         * config/m68k/linux.h (ASM_SPEC): Likewise.
29774         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29775         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29776         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29777         * config/sparc/linux.h (ASM_SPEC): Likewise.
29778         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29779         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29780
29781 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29782
29783         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29784         * config/frv/frv.h (ASM_SPEC): Likewise.
29785         * config/m68k/linux.h (ASM_SPEC): Likewise.
29786         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29787         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29788         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29789         * config/sparc/linux.h (ASM_SPEC): Likewise.
29790         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29791         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29792
29793 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29794
29795         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29796         * config/frv/frv.h (LINK_SPEC): Likewise.
29797         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29798
29799 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29800
29801         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29802         * config/frv/frv.h (ASM_SPEC): Likewise.
29803         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29804         * config/m68k/linux.h (ASM_SPEC): Likewise.
29805         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29806         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29807         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29808         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29809         * config/sparc/linux.h (ASM_SPEC): Likewise.
29810         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29811         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29812         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29813
29814 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
29815
29816         PR target/46997
29817         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29818         (*mux2): Ditto.
29819         (vec_extract_evenodd_help): Ditto.
29820         (vec_extract_evenv4hi): Ditto.
29821         (vec_extract_oddv4hi): Ditto.
29822         (vec_interleave_lowv2si): Ditto.
29823         (vec_interleave_highv2si): Ditto.
29824         (vec_extract_evenv2si): Ditto.
29825         (vec_extract_oddv2si: Ditto.
29826         (vec_pack_trunc_v2si): Ditto.
29827
29828 2011-01-22  Jan Hubicka  <jh@suse.cz>
29829
29830         PR target/47237
29831         * cgraph.h (cgraph_local_info): New field can_change_signature.
29832         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29833         signature can change.
29834         (ipcp_estimate_growth): Call sequence simplify only if calle signature
29835         can change.
29836         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29837         (cgraph_function_versioning): We can not change signature of functions
29838         that don't allow that.
29839         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29840         (lto_input_node): Likewise.
29841         * ipa-inline.c (compute_inline_parameters): Compute
29842         local.can_change_signature.
29843         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29844         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29845         functions that can not change signature.
29846         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29847         init_cumulative_args): Do not use local calling conventions
29848         for functions that can not change signature.
29849
29850 2011-01-22  Jan Hubicka  <jh@suse.cz>
29851
29852         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29853
29854 2011-01-26  Richard Guenther  <rguenther@suse.de>
29855
29856         PR tree-optimization/47190
29857         * cgraphunit.c (process_common_attributes): New function.
29858         (process_function_and_variable_attributes): Use it.
29859
29860 2011-01-26  Richard Guenther  <rguenther@suse.de>
29861
29862         PR lto/47423
29863         * cgraphbuild.c (record_eh_tables): Record reference to personality
29864         function.
29865
29866 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
29867
29868         PR debug/45454
29869         * sel-sched.c (moveup_expr): Don't let debug insns prevent
29870         non-debug insns from moving up.
29871
29872 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29873
29874         PR target/40125
29875         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29876         t-dlldir{,-x} fragment for build and add it to tmake_file.
29877         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29878         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29879         * config/i386/t-dlldir: New file.
29880         (SHLIB_DLLDIR): Define.
29881         * config/i386/t-dlldir-x: New file.
29882         (SHLIB_DLLDIR): Define.
29883         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29884         (SHLIB_INSTALL): Use it.
29885
29886 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
29887
29888         PR target/47246
29889         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29890         lower bound of the allowed Thumb-2 coprocessor load/store
29891         index range to -256. Add explaining comment.
29892
29893 2011-01-25  Ian Lance Taylor  <iant@google.com>
29894
29895         * godump.c (go_define): Improve lexing of macro expansion to only
29896         accept expressions which match Go spec.
29897
29898 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29899
29900         PR c++/43601
29901         * tree.c (handle_dll_attribute): Handle it.
29902         * doc/extend.texi (@item dllexport): Mention it.
29903         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29904
29905 2011-01-25  Ian Lance Taylor  <iant@google.com>
29906
29907         PR tree-optimization/26854
29908         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
29909         (decl_jump_unsafe): Move higher in file, with no other change.
29910         (bind): Set has_jump_unsafe_decl if appropriate.
29911         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
29912         (check_earlier_gotos): Likewise.
29913         (c_check_switch_jump_warnings): Likewise.
29914
29915 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
29916
29917         * doc/invoke.texi (Warning Options): Add missing hyphen.
29918         (-fprofile-dir): Minor grammatical fixes.
29919         (-fbranch-probabilities): Likewise.
29920
29921 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29922
29923         PR debug/45136
29924         PR debug/45130
29925         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29926         debug insns.
29927         (no_real_insns_p, schedule_block, set_priorities): Drop special
29928         treatment of boundary debug insns.
29929         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29930         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29931         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29932         (BOUNDARY_DEBUG_INSN_P): Likewise.
29933         (SCHEDULE_DEBUG_INSN_P): Likewise.
29934         * sched-rgn.c (init_ready_list): Drop special treatment of
29935         boundary debug insns.
29936         * final.c (rest_of_clean-state): Clear notes' BB.
29937
29938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
29939
29940         * Makefile.in (LAMBDA_H): Removed.
29941         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
29942         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
29943         lambda-trans.o, and tree-loop-linear.o.
29944         (lto-symtab.o): Remove dependence on LAMBDA_H.
29945         (tree-loop-linear.o): Remove rule.
29946         (lambda-mat.o): Same.
29947         (lambda-trans.o): Same.
29948         (lambda-code.o): Same.
29949         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
29950         (tree-vect-slp.o): Same.
29951         * hwint.h (gcd): Moved here.
29952         (least_common_multiple): Same.
29953         * lambda-code.c: Removed.
29954         * lambda-mat.c: Removed.
29955         * lambda-trans.c: Removed.
29956         * lambda.h: Removed.
29957         * tree-loop-linear.c: Removed.
29958         * lto-symtab.c: Do not include lambda.h.
29959         * omega.c (gcd): Removed.
29960         * passes.c (init_optimization_passes): Remove pass_linear_transform.
29961         * tree-data-ref.c (print_lambda_vector): Moved here.
29962         (lambda_vector_copy): Same.
29963         (lambda_matrix_copy): Same.
29964         (lambda_matrix_id): Same.
29965         (lambda_vector_first_nz): Same.
29966         (lambda_matrix_row_add): Same.
29967         (lambda_matrix_row_exchange): Same.
29968         (lambda_vector_mult_const): Same.
29969         (lambda_vector_negate): Same.
29970         (lambda_matrix_row_negate): Same.
29971         (lambda_vector_equal): Same.
29972         (lambda_matrix_right_hermite): Same.
29973         * tree-data-ref.h: Do not include lambda.h.
29974         (lambda_vector): Moved here.
29975         (lambda_matrix): Same.
29976         (dependence_level): Same.
29977         (lambda_transform_legal_p): Removed declaration.
29978         (lambda_collect_parameters): Same.
29979         (lambda_compute_access_matrices): Same.
29980         (lambda_vector_gcd): Same.
29981         (lambda_vector_new): Same.
29982         (lambda_vector_clear): Same.
29983         (lambda_vector_lexico_pos): Same.
29984         (lambda_vector_zerop): Same.
29985         (lambda_matrix_new): Same.
29986         * tree-flow.h (least_common_multiple): Removed declaration.
29987         * tree-parloops.c (lambda_trans_matrix): Moved here.
29988         (LTM_MATRIX): Same.
29989         (LTM_ROWSIZE): Same.
29990         (LTM_COLSIZE): Same.
29991         (LTM_DENOMINATOR): Same.
29992         (lambda_trans_matrix_new): Same.
29993         (lambda_matrix_vector_mult): Same.
29994         (lambda_transform_legal_p): Same.
29995         * tree-pass.h (pass_linear_transform): Removed declaration.
29996         * tree-ssa-loop.c (tree_linear_transform): Removed.
29997         (gate_tree_linear_transform): Removed.
29998         (pass_linear_transform): Removed.
29999         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30000         flag_loop_interchange.
30001
30002 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30003
30004         PR tree-optimization/47265
30005         PR tree-optimization/47443
30006         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30007         if name still has some uses.
30008
30009 2011-01-25  Martin Jambor  <mjambor@suse.cz>
30010
30011         PR tree-optimization/47382
30012         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30013         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30014
30015 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
30016
30017         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30018         sjlj_except_unwind_info.
30019
30020 2011-01-25  Richard Guenther  <rguenther@suse.de>
30021
30022         PR tree-optimization/47426
30023         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30024         visible functions results escape.
30025
30026 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30027
30028         PR target/45701
30029         * config/arm/arm.c (any_sibcall_uses_r3): New function.
30030         (arm_get_frame_offsets): Use it.
30031
30032 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30033             Jakub Jelinek  <jakub@redhat.com>
30034
30035         PR tree-optimization/47271
30036         * tree-if-conv.c (bb_postdominates_preds): New.
30037         (if_convertible_bb_p): Call bb_postdominates_preds.
30038         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30039         (predicate_scalar_phi): Call bb_postdominates_preds.
30040
30041 2011-01-25  Nick Clifton  <nickc@redhat.com>
30042
30043         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30044         * config/rx/rx.c (rx_function_value): Likewise.
30045         (rx_promote_function_mode): Likewise.
30046         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30047         in order to make it legitimate.
30048         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30049         make sure that the first operand is the same as the result register.
30050         (addsi3_unspec): Delete.
30051         (subdi3): Do not accept immediate operands.
30052         (subdi3_internal): Likewise.
30053
30054 2011-01-25  Jeff Law  <law@redhat.com>
30055
30056         PR rtl-optimization/37273
30057         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30058         handle them like argument loads from stack slots.  Do not double
30059         count memory for memory constants and argument loads from stack slots.
30060
30061 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30062
30063         PR tree-optimization/47427
30064         PR tree-optimization/47428
30065         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30066         coalesce if the new root var would be TREE_READONLY.
30067
30068 2011-01-25  Richard Guenther  <rguenther@suse.de>
30069
30070         PR middle-end/47414
30071         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30072         correct type for TBAA.
30073
30074 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30075
30076         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30077         (close_phi_written_to_memory): Call for_each_index with
30078         dr_indices_valid_in_loop.
30079
30080 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30081
30082         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30083         when it is initialized.
30084
30085 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30086
30087         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30088         call to graphite_find_data_references_in_stmt.
30089         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30090         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
30091         call to graphite_find_data_references_in_stmt.
30092         (analyze_drs_in_stmts): Same.
30093         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30094         in which the scalar analysis of indices is performed.
30095         (create_data_ref): Same.  Update call to dr_analyze_indices.
30096         (find_data_references_in_stmt): Update call to create_data_ref.
30097         (graphite_find_data_references_in_stmt): Same.
30098         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30099         declaration.
30100         (create_data_ref): Same.
30101         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30102         call to create_data_ref.
30103
30104 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30105
30106         * graphite-sese-to-poly.c (build_poly_scop): Move
30107         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30108
30109 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30110
30111         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30112         VAR_DECL, PARM_DECL, and RESULT_DECL.
30113
30114 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30115
30116         * graphite-dependences.c (reduction_dr_1): Allow several reductions
30117         in a reduction PBB.
30118         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30119         that have already been marked as PBB_IS_REDUCTION.
30120
30121 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30122
30123         * graphite-scop-detection.c (same_close_phi_node): New.
30124         (remove_duplicate_close_phi): New.
30125         (make_close_phi_nodes_unique): New.
30126         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30127
30128 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30129
30130         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30131         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30132         of both data references to be the same.
30133
30134 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30135
30136         * graphite-dependences.c (build_lexicographical_constraint): Remove
30137         the gdim parameter.
30138         (build_lexicographical_constraint): Adjust call to
30139         ppl_powerset_is_empty.
30140         (dependence_polyhedron): Same.
30141         (graphite_legal_transform_dr): Same.
30142         (graphite_carried_dependence_level_k): Same.
30143         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
30144         parameter.
30145         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
30146
30147 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30148
30149         * graphite-sese-to-poly.c
30150         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
30151         (close_phi_written_to_memory): New.
30152         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
30153         and unshare_expr.
30154
30155 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30156
30157         * doc/install.texi: Update the expected version number of PPL to 0.11.
30158         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
30159         #if PPL_VERSION_MINOR < 11.
30160
30161 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30162
30163         * graphite-dependences.c: Include graphite-cloog-util.h.
30164         (new_poly_ddr): Inlined into dependence_polyhedron.
30165         (free_poly_ddr): Moved close by new_poly_ddr.
30166         (dependence_polyhedron_1): Renamed dependence_polyhedron.
30167         Early return NULL when ppl_powerset_is_empty returns true.
30168         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
30169         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
30170         (graphite_legal_transform_dr): Call new_poly_ddr.
30171         (graphite_carried_dependence_level_k): Same.
30172         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
30173         (dot_transformed_deps_stmt_1): Removed.
30174         (dot_deps_stmt_1): Call dot_deps_stmt_2.
30175         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
30176         (dot_deps_1): Call dot_deps_2.
30177         * Makefile.in (graphite-dependences.o): Add missing dependence on
30178         graphite-cloog-util.h.
30179
30180 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30181
30182         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
30183         (build_lexicographical_constraint): Same.
30184         (dependence_polyhedron_1): Same.
30185         (graphite_legal_transform_dr): Same.
30186         (graphite_carried_dependence_level_k): Same.
30187         * graphite-ppl.c (ppl_powerset_is_empty): New.
30188         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
30189         * tree-data-ref.c (dump_data_reference): Print the basic block index.
30190
30191 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30192
30193         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
30194         the "a followed by b" relation and document it.
30195
30196 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30197
30198         * graphite-dependences.c (build_lexicographical_constraint): Stop the
30199         iteration when the bag of constraints is empty.
30200
30201 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30202
30203         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
30204
30205 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30206
30207         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
30208         nest and two loop depths as parameters.
30209         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
30210         lst_perfect_nestify.
30211
30212 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30213
30214         * graphite-dependences.c (print_pddr): Call
30215         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
30216
30217 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30218
30219         * graphite-ppl.c (debug_gmp_value): New.
30220         * graphite-ppl.h (debug_gmp_value): Declared.
30221
30222 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
30223
30224         * doc/install.texi: Document availability of cloog-0.16.
30225
30226 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
30227
30228         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
30229         invalid postdominance info.
30230
30231 2011-01-24  Jan Hubicka  <jh@suse.cz>
30232
30233         PR c/21659
30234         * doc/extend.texi (weak pragma): Drop claim that it must
30235         appear before definition.
30236         * varasm.c (merge_weak, declare_weak): Only sanity check
30237         that DECL is not output at a time it is declared weak.
30238
30239 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
30240
30241         * machmode.def: Fixed comments.
30242
30243 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
30244
30245         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
30246
30247 2011-01-24  Paul Koning  <ni1d@arrl.net>
30248
30249         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
30250         WORDS_BIG_ENDIAN.
30251
30252 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30253
30254         PR target/46519
30255         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
30256         (block_info): Add scanned and prev.
30257         (move_or_delete_vzeroupper_2): Return if the basic block
30258         has been scanned and the upper 128bit state is unchanged
30259         from the last scan.
30260         (move_or_delete_vzeroupper_1): Return true if the exit
30261         state is changed.
30262         (move_or_delete_vzeroupper): Visit basic blocks using the
30263         work-list based algorithm based on vt_find_locations in
30264         var-tracking.c.
30265
30266         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
30267
30268 2011-01-24  Nick Clifton  <nickc@redhat.com>
30269
30270         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
30271         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30272         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
30273         then define __v850e1__.
30274         * doc/invoke.texi: Document -mv850es.
30275
30276 2011-01-24  Richard Henderson  <rth@redhat.com>
30277
30278         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
30279         compound unordered comparisons.
30280         * config/rx/rx.c (rx_split_fp_compare): Remove.
30281         * config/rx/rx-protos.h: Update.
30282         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30283         (cbranchsf4): Don't call rx_split_fp_compare.
30284         (*cbranchsf4): Use rx_split_cbranch.
30285         (*cmpsf): Don't accept "i" constraint.
30286         (*conditional_branch): Only valid after reload.
30287         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
30288
30289 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30290
30291         PR target/47385
30292         * config/rs6000/altivec.md (vector constant splitters): Add
30293         support for creating vector single precision constants if -mvsx is
30294         used and we would create the constant using Altivec primitives.
30295
30296 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
30297             Richard Sandiford  <rdsandiford@googlemail.com>
30298
30299         PR rtl-optimization/47166
30300         * reload1.c (emit_reload_insns): Disable the spill_reg_store
30301         mechanism for PRE_MODIFY and POST_MODIFY.
30302         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30303         reloadreg.
30304
30305 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
30306
30307         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30308
30309 2011-01-22  Jan Hubicka  <jh@suse.cz>
30310
30311         PR lto/47333
30312         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30313
30314 2011-01-22  Jan Hubicka  <jh@suse.cz>
30315
30316         PR tree-optimization/43884
30317         PR lto/44334
30318         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30319         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30320
30321 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
30322
30323         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30324         * config/s390/s390.c (s390_register_move_cost,
30325         s390_memory_move_cost): New.
30326         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30327
30328 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30329
30330         PR middle-end/47401
30331         * except.c (sjlj_assign_call_site_values): Move setting the
30332         crtl->uses_eh_lsda flag to ...
30333         (sjlj_mark_call_sites): ... here.
30334         (sjlj_emit_function_enter): Support NULL dispatch label.
30335         (sjlj_build_landing_pads): In a function with no landing pads
30336         that still has must-not-throw regions, generate code to register
30337         a personality function with empty LSDA.
30338
30339 2011-01-21  Richard Henderson  <rth@redhat.com>
30340
30341         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30342
30343         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30344
30345         * compare-elim.c: New file.
30346         * Makefile.in (OBJS-common): Add it.
30347         (compare-elim.o): New.
30348         * common.opt (fcompare-elim): New.
30349         * opts.c (default_options_table): Add OPT_fcompare_elim.
30350         * tree-pass.h (pass_compare_elim_after_reload): New.
30351         * passes.c (init_optimization_passes): Add it.
30352         * recog.h: Protect against re-inclusion.
30353         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30354         * doc/invoke.texi (-fcompare-elim): Document it.
30355         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30356         * doc/tm.texi: Rebuild.
30357
30358 2011-01-22  Nick Clifton  <nickc@redhat.com>
30359
30360         * config/rx/rx.md (cstoresf4): Pass comparison operator to
30361         rx_split_fp_compare.
30362
30363 2011-01-22  Nick Clifton  <nickc@redhat.com>
30364
30365         * config/rx/rx.md (UNSPEC_CONST): New.
30366         (deallocate_and_return): Wrap the amount popped off the stack in
30367         an UNSPEC_CONST in order to stop it being rejected by
30368         -mmax-constant-size.
30369         (pop_and_return): Add a "(return)" rtx.
30370         (call): Drop the immediate operand.
30371         (call_internal): Likewise.
30372         (call_value): Likewise.
30373         (call_value_internal): Likewise.
30374         (sibcall_internal): Likewise.
30375         (sibcall_value_internal): Likewise.
30376         (sibcall): Likewise.  Generate an explicit call using
30377         sibcall_internal.
30378         (sibcall_value): Likewise.
30379         (mov<>): FAIL if a constant operand is not legitimate.
30380         (addsi3_unpsec): New pattern.
30381
30382         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30383         (ok_for_max_constant): New function.
30384         (gen_safe_add): New function.
30385         (rx_expand_prologue): Use gen_safe_add.
30386         (rx_expand_epilogue): Likewise.
30387         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
30388         UNSPEC CONSTs.
30389
30390 2011-01-21  Jeff Law  <law@redhat.com>
30391
30392         PR tree-optimization/47053
30393         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30394         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30395         statements are deleted.
30396         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
30397         is nonempty, then purge dead edges and cleanup the CFG.
30398
30399 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30400
30401         PR debug/47402
30402         Temporarily revert:
30403         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30404         PR debug/47106
30405         * tree-dfa.c (create_var_ann): Mark variable as used.
30406
30407 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30408
30409         PR middle-end/45566
30410         * except.c (convert_to_eh_region_ranges): Emit queued no-region
30411         notes from other section in hot/cold partitioning even if
30412         last_action is -3.  Increment call_site_base.
30413
30414         PR rtl-optimization/47366
30415         * fwprop.c (forward_propagate_into): Return bool.  If
30416         any changes are made, -fnon-call-exceptions is used and
30417         REG_EH_REGION note is present, call purge_dead_edges
30418         and return true if it purged anything.
30419         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30420         any EH edges were purged.
30421
30422 2011-01-21  Jeff Law  <law@redhat.com>
30423
30424         PR rtl-optimization/41619
30425         * caller-save.c (setup_save_areas): Break out code to determine
30426         which hard regs are live across calls by examining the reload chains
30427         so that it is always used.
30428         Eliminate code which checked REG_N_CALLS_CROSSED.
30429
30430 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30431
30432         PR tree-optimization/47355
30433         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30434         NOP has non-debug uses beyond PHIs in new_bb.
30435
30436 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30437
30438         PR debug/47106
30439         * cfgexpand.c (account_used_vars_for_block): Only account vars
30440         that are annotated as used.
30441         (estimated_stack_frame_size): Don't set TREE_USED.
30442         * tree-dfa.c (create_var_ann): Mark variable as used.
30443
30444 2011-01-21  Richard Guenther  <rguenther@suse.de>
30445
30446         PR middle-end/47395
30447         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30448
30449 2011-01-21  Richard Guenther  <rguenther@suse.de>
30450
30451         PR tree-optimization/47365
30452         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30453         (vn_reference_lookup_pieces): Adjust.
30454         (vn_reference_lookup): Likewise.
30455         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30456         (vn_reference_lookup_3): Only look through kills if in
30457         VN_WALKREWRITE mode.
30458         (vn_reference_lookup_pieces): Adjust.
30459         (vn_reference_lookup): Likewise.
30460         (visit_reference_op_load): Likewise.
30461         (visit_reference_op_store): Likewise.
30462         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30463         (compute_avail): Likewise.
30464         (eliminate): Likewise.
30465
30466 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30467
30468         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30469         DECL_IGNORED_P non-reg vars if they are used.
30470
30471         PR tree-optimization/47391
30472         * varpool.c (const_value_known_p): Return false if
30473         decl is volatile.
30474
30475 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
30476
30477         PR bootstrap/47215
30478         * config/i386/i386.c (ix86_local_alignment): Handle
30479         case for va_list_type_node is nil.
30480         (ix86_canonical_va_list_type): Likewise.
30481
30482 2011-01-21  Alan Modra  <amodra@gmail.com>
30483
30484         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30485         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30486
30487 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30488
30489         * config/arm/arm.md (define_attr type): Rename f_load
30490         and f_store to f_fpa_load and f_fpa_store. Update.
30491         (write_conflict): Deal with rename fallout.
30492         (*push_fp_multi): Likewise.
30493         * config/arm/fpa.md (f_load): Use f_fpa_load.
30494         (f_store): Use f_fpa_store.
30495         (*movsf_fpa): Likewise.
30496         (*movdf_fpa): Likewise.
30497         (*movxf_fpa): Likewise.
30498         (*thumb2_movsf_fpa): Likewise.
30499         (*thumb2_movdf_fpa): Likewise.
30500         (*thumb2_movxf_fpa): Likewise.
30501         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30502         f_loadd and f_stored.
30503         (*thumb2_movdi_vfp): Likewise.
30504         (*thumb2_movsf_vfp): Fix attribute to f_loads.
30505         (*thumb2_movsi_vfp): Likewise.
30506         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30507         Use f_loads instead of f_load.
30508         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30509
30510 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
30511
30512         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30513         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30514         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30515         (xtensa_mode_dependent_address_p): New function.
30516         (constantpool_address_p): Make static. Change return type to bool.
30517         Change argument type to const_rtx. Use CONST_INT_P predicate.
30518
30519 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
30520
30521         PR debug/46583
30522         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30523
30524 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30525
30526         PR debug/47283
30527         * cfgexpand.c (expand_debug_expr): Instead of generating
30528         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30529         etc. handling.
30530
30531 2011-01-20  Richard Guenther  <rguenther@suse.de>
30532
30533         PR middle-end/47370
30534         * tree-inline.c (remap_gimple_op_r): Recurse manually for
30535         the pointer operand of MEM_REFs.
30536
30537 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30538
30539         PR tree-optimization/46130
30540         * ipa-split.c (consider_split): If return_bb contains non-virtual
30541         PHIs other than for retval or if split_function would not adjust it,
30542         refuse to split.
30543
30544 2011-01-20  Richard Guenther  <rguenther@suse.de>
30545
30546         PR tree-optimization/47167
30547         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30548         Revert previous change, only avoid enumeral type changes.
30549
30550 2011-01-19  Mike Stump  <mikestump@comcast.net>
30551
30552         * doc/tm.texi.in (BRANCH_COST): Englishify.
30553         * doc/tm.texi (BRANCH_COST): Likewise.
30554
30555 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
30556
30557         PR c++/47291
30558         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30559         (gen_scheduled_generic_parms_dies): New functions.
30560         (gen_struct_or_union_type_die): Schedule template parameters DIEs
30561         generation for the end of CU compilation.
30562         (dwarf2out_finish): Generate template parameters DIEs here.
30563
30564 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30565
30566         PR debug/46240
30567         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30568         debug bind stmt on merge edges.
30569
30570 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30571
30572         PR debug/47079
30573         PR debug/46724
30574         * function.c (instantiate_expr): Instantiate incoming rtl of
30575         implicit arguments, and recurse on VALUE_EXPRs.
30576         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30577         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30578
30579 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30580
30581         * c-parser.c (c_parser_for_statement): Initialize
30582         collection_expression.
30583
30584 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30585
30586         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30587
30588 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30589
30590         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30591         (LINK_SHLIB_SPEC): Don't use %(link_path).
30592         (SUBTARGET_EXTRA_SPECS): Remove link_path.
30593
30594 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30595
30596         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30597         (NO_SHARED_LIB_SUPPORT): Remove.
30598         (LINK_SHLIB_SPEC): Remove one conditional definition.
30599
30600 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30601
30602         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30603         %{call_shared}.
30604         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30605         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30606         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30607         %{call_shared} and conditionals on these options not being passed.
30608         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30609         %{call_shared}.
30610
30611 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30612
30613         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30614         simplify.
30615
30616         * ipa-split.c: Spelling fixes.
30617
30618 2011-01-19  Richard Henderson  <rth@redhat.com>
30619
30620         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30621         (*mulsi3): Likewise.
30622
30623         * longlong.h [__mn10300__] (count_leading_zeros): New.
30624         [__mn10300__] (umul_ppmm, smul_ppmm): New.
30625         [__mn10300__] (add_ssaaaa, subddmmss): New.
30626         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30627         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30628
30629 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30630
30631         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30632
30633 2011-01-19  Richard Henderson  <rth@redhat.com>
30634
30635         * config/mn10300/mn10300.md (addsi3_flags): New.
30636         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30637         (subsi3_flags, subc_internal, subdi3): New.
30638         (subdi3_internal, *subdi3_degenerate): New.
30639         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30640
30641         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30642         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30643         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
30644         * config/mn10300/mn10300-protos.h: Update.
30645         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30646         (return_ret): Likewise.  Rename from return_internal_regs.
30647         (return_internal): Remove.
30648
30649         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30650         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30651         (mn10300_legitimate_constant_p): Likewise.
30652         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30653         (mn10300_frame_size): New.
30654         (mn10300_expand_prologue): Use it.
30655         (mn10300_expand_epilogue): Likewise.
30656         (mn10300_initial_offset): Likewise.
30657         * config/mn10300/mn10300-protos.h: Update.
30658         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30659         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30660         (prologue, epilogue, return_internal): Tidy output code.
30661         (mn10300_store_multiple_operation, return): Likewise.
30662         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30663         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30664         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30665         (load_pic, am33_load_pic): New.
30666         (mn10300_load_pic0, mn10300_load_pic1): New.
30667
30668         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30669         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30670         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30671         (cc_flags_for_mode, cc_flags_for_code): New.
30672         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30673         overflow flag is not valid.  Validate that the flags we need
30674         for the comparison are valid.
30675         (mn10300_output_cmp): Remove.
30676         (mn10300_output_add): New.
30677         (mn10300_select_cc_mode): Use cc_flags_for_code.
30678         (mn10300_split_cbranch): New.
30679         (mn10300_match_ccmode): New.
30680         (mn10300_split_and_operand_count): New.
30681         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30682         to the function.
30683         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30684         (addsi3): ... here.  Use mn10300_output_add.
30685         (*addsi3_flags): New.
30686         (*am33_subsi3, *mn10300_subsi3): Merge...
30687         (subsi3): ... here.  Use attribute isa.
30688         (*subsi3_flags): New.
30689         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
30690         when possible.
30691         (*am33_andsi3, *mn10300_andsi3): Merge...
30692         (andsi3): ... here.
30693         (*andsi3_flags): New.
30694         (andsi3 splitters): New.
30695         (*am33_iorsi3, *mn10300_iorsi3): Merge...
30696         (iorsi3): ... here.
30697         (*iorsi3_flags): New.
30698         (*am33_xorsi3, *mn10300_xorsi3): Merge...
30699         (xorsi3): ... here.
30700         (*xorsi3_flags): New.
30701         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30702         (one_cmplsi2): ... here.
30703         (*one_cmplsi2_flags): New.
30704         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
30705         instead of "dax" in constraints.  Use mn10300_split_cbranch.
30706         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
30707         use matching constraints to eliminate a self-comparison.
30708         (*integer_conditional_branch): Rename from integer_conditional_branch.
30709         Use int_mode_flags to match CC_REG.
30710         (*cbranchsi4_btst, *btstsi): New.
30711         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
30712         mn10300_split_cbranch.
30713         (*am33_cmpsf): Rename from am33_cmpsf.
30714         (*float_conditional_branch): Rename from float_conditional_branch.
30715         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30716         (zero_extendqisi2): ... here.
30717         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30718         (zero_extendhisi2): ... here.
30719         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30720         (extendqisi2): ... here.
30721         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30722         (extendhisi2): ... here.
30723         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30724         (ashlsi3): ... here.
30725         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30726         (lshrsi3): ... here.
30727         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
30728         (ashrsi3): ... here.
30729         (consecutive add peephole): Remove.
30730         * config/mn10300/predicates.md (label_ref_operand): New.
30731         (int_mode_flags): New.
30732         (CCZN_comparison_operator): New.
30733
30734         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30735         (throughput_42_latency_43): New reservation.
30736         (mulsidi3, umulsidi3): New expanders.
30737         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
30738         the MDR register to allocation; separately allocate the low and
30739         high parts of the DImode result.
30740         (umulsidi3_internal): Similarly.
30741         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30742         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
30743         (udivsi3, umodsi3): Remove.
30744         (udivmodsi4, divmodsi4): New expanders.
30745         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
30746         (*divmodsi4): Simiarly.
30747         (ext_internal): New.
30748
30749         * config/mn10300/constraints.md ("z"): New constraint.
30750         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30751         (FIXED_REGISTERS): Don't fix MDR.
30752         (CALL_USED_REGSITERS): Reformat nicely.
30753         (REG_ALLOC_ORDER): Add MDR.
30754         (enum regclass): Add MDR_REGS.
30755         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30756         (IRA_COVER_CLASSES): Add MDR_REGS.
30757         (REGNO_REG_CLASS): Handle MDR_REG.
30758         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30759         (mn10300_register_move_cost): Likewise.
30760         * config/mn10300/mn10300.md (MDR_REG): New.
30761         (*movsi_internal): Handle moves to/from MDR_REGS.
30762
30763         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30764         POST_MODIFY.
30765         (mn10300_secondary_reload): Tidy combination reload classes.
30766         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30767         addresses for AM33.  Allow symbolic offsets for reg+imm.
30768         (mn10300_regno_in_class_p): New.
30769         (mn10300_legitimize_reload_address): New.
30770         * config/mn10300/mn10300.h (enum reg_class): Remove
30771         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30772         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
30773         SP_OR_GENERAL_REGS.
30774         (REG_CLASS_NAMES): Update to match.
30775         (REG_CLASS_CONTENTS): Likewise.
30776         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30777         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30778         (REGNO_IN_RANGE_P): Remove.
30779         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30780         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30781         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30782         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30783         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30784         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30785         (REGNO_GENERAL_P): New.
30786         (HAVE_POST_MODIFY_DISP): New.
30787         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30788         (LEGITIMIZE_RELOAD_ADDRESS): New.
30789         * config/mn10300/mn10300-protos.h: Update.
30790
30791         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30792         DATA_REGS for AM33 stack-pointer destination.
30793         (mn10300_preferred_output_reload_class): Likewise.
30794         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30795         into a form appropriate for ...
30796         (TARGET_SECONDARY_RELOAD): New.
30797         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30798         * config/mn10300/mn10300-protos.h: Update.
30799         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30800         reload_insi; use the "A" constraint for the scratch; handle AM33
30801         moves of sp to non-address registers.
30802
30803         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30804         (*movqi_internal): ... here.
30805         (*am33_movhi, *mn10300_movhi): Merge into...
30806         (*movhi_internal): ... here.
30807         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
30808         as the source/destination of moves from/to SP.
30809         (movsf): Only allow for AM33-2.
30810         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30811         any integer constant constraint.  Only allow for AM33-2.  Tidy
30812         all of the alternative outputs.
30813         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30814         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
30815         for MN103.
30816         (udivsi3, umodsi3): New patterns for MN103 only.
30817
30818 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
30819
30820         * doc/tm.texi.in: Spell out that a lack of register class unions
30821         can lead to ICEs.
30822         * doc/tm.texi: Regenerate.
30823
30824 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30825
30826         PR rtl-optimization/47337
30827         * dce.c (check_argument_store): New function.
30828         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
30829
30830         PR tree-optimization/47290
30831         * tree-eh.c (infinite_empty_loop_p): New function.
30832         (cleanup_empty_eh): Use it.
30833
30834 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
30835
30836         PR target/46997
30837         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30838         (a64_expand_widen_sum): Ditto.
30839         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30840         (vec_extract_evenodd_help): Ditto.
30841         (vec_extract_evenv4hi): Ditto.
30842         (vec_extract_oddv4hi): Ditto.
30843         (vec_extract_evenv2si): Ditto.
30844         (vec_extract_oddv2si): Ditto.
30845         (vec_extract_evenv2sf): Ditto.
30846         (vec_extract_oddv2sf): Ditto.
30847         (vec_pack_trunc_v4hi: Ditto.
30848         (vec_pack_trunc_v2si): Ditto.
30849         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30850         (vec_interleave_highv8qi): Ditto.
30851         (mix1_r): Ditto.
30852         (vec_extract_oddv8qi): Ditto.
30853         (vec_interleave_lowv4hi): Ditto.
30854         (vec_interleave_highv4hi): Ditto.
30855         (vec_interleave_lowv2si): Ditto.
30856         (vec_interleave_highv2si): Ditto.
30857
30858 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30859
30860         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30861         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30862         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
30863         (pa_c_mode_for_suffix): New.
30864         (TARGET_EXPAND_BUILTIN): Define.
30865         (TARGET_C_MODE_FOR_SUFFIX): Define.
30866         (pa_builtins): Define.
30867         (pa_init_builtins): Register __float128 type and init new support
30868         builtins.
30869         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30870         * config/pa/quadlib.c (_U_Qfcopysign): New.
30871
30872 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
30873
30874         PR middle-end/46894
30875         * explow.c (allocate_dynamic_stack_space): Do not assume more than
30876         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30877         are defined.
30878
30879 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30880
30881         PR tree-optimization/47179
30882         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30883         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30884
30885 2011-01-18  Richard Guenther  <rguenther@suse.de>
30886
30887         PR rtl-optimization/47216
30888         * emit-rtl.c: Include tree-flow.h.
30889         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30890         of replicating it with different semantics.
30891         * Makefile.in (emit-rtl.o): Adjust.
30892
30893 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30894
30895         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30896         (cortex_a9_dp): Handle neon types correctly.
30897
30898 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
30899
30900         PR rtl-optimization/47299
30901         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30902         subtarget.  Use normal multiplication if both operands are constants.
30903         * expmed.c (expand_widening_mult): Don't try to optimize constant
30904         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
30905         before using it.
30906
30907 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30908
30909         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
30910         spacing after 'e.g.', typos, comma, hyphenation.
30911
30912 2011-01-17  Richard Henderson  <rth@redhat.com>
30913
30914         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
30915         (rx_restricted_mem_operand): New.
30916         (rx_shift_operand): Use register_operand.
30917         (rx_source_operand, rx_compare_operand): Likewise.
30918         * config/rx/rx.md (addsi3_flags): New expander.
30919         (adddi3): Rewrite as expander.
30920         (adc_internal, *adc_flags, adddi3_internal): New patterns.
30921         (subsi3_flags): New expander.
30922         (subdi3): Rewrite as expander.
30923         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
30924
30925         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
30926         (rx_init_builtins): Remove sat builtin.
30927         (rx_expand_builtin): Likewise.
30928         * config/rx/rx.md (ssaddsi3): New.
30929         (*sat): Rename from sat.  Represent the CC_REG input.
30930
30931         * config/rx/predicates.md (rshift_operator): New.
30932         * config/rx/rx.c (rx_expand_insv): Remove.
30933         * config/rx/rx-protos.h: Update.
30934         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
30935         operand to the canonical position.
30936         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
30937         (*bitclr, *bitclr_in_memory): Similarly.
30938         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
30939         (insv): Retain the zero_extract in the expansion.
30940
30941         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
30942         (bswaphi2, bitinvert, revw): Likewise.
30943
30944         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
30945         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
30946         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
30947         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
30948         (bitset, bitset_in_memory): Likewise.
30949         (bitinvert, bitinvert_in_memory): Likewise.
30950         (bitclr, bitclr_in_memory): Likewise.
30951         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
30952         (rx_strend, rx_cmpstrn): Likewise.
30953         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
30954         (bitop peep2 patterns): Remove.
30955
30956         * config/rx/rx.c (rx_match_ccmode): New.
30957         * config/rx/rx-protos.h: Update.
30958         * config/rx/rx.md (abssi2): Clobber, don't set flags.
30959         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
30960         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
30961         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
30962         (fix_truncsfsi2, floatsisf2): Likewise.
30963         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
30964         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
30965         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
30966         (*subsi3_flags, *xorsi3_flags): New.
30967
30968         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
30969
30970         * config/rx/rx.c (rx_print_operand): Remove workaround for
30971         unsplit comparison operations.
30972
30973         * config/rx/rx.md (movsicc): Split after reload.
30974         (*movsicc): Merge *movsieq and *movsine via match_operator.
30975         (*stcc): New pattern.
30976
30977         * config/rx/rx.c (rx_float_compare_mode): Remove.
30978         * config/rx/rx.h (rx_float_compare_mode): Remove.
30979         * config/rx/rx.md (cstoresi4): Split after reload.
30980         (*sccc): New pattern.
30981
30982         * config/rx/predicates.md (label_ref_operand): New.
30983         (rx_z_comparison_operator): New.
30984         (rx_zs_comparison_operator): New.
30985         (rx_fp_comparison_operator): New.
30986         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
30987         Validate that the flags are set properly for the comparison.
30988         (rx_gen_cond_branch_template): Remove.
30989         (rx_cc_modes_compatible): Remove.
30990         (mode_from_flags): New.
30991         (flags_from_code): Rename from flags_needed_for_conditional.
30992         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
30993         (rx_select_cc_mode): Likewise.
30994         (rx_split_fp_compare): New.
30995         (rx_split_cbranch): New.
30996         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
30997         (*cbranchsi4): Use match_operator and rx_split_cbranch.
30998         (*cbranchsf4): Similarly.
30999         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
31000         match_operator and rx_split_cbranch.
31001         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31002         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
31003         (*cmpsi): Rename from cmpsi.
31004         (*tstsi): Rename from tstsi.
31005         (*cmpsf): Rename from cmpsf; use CC_Fmode.
31006         (*conditional_branch): Rename from conditional_branch.
31007         (*reveresed_conditional_branch): Remove.
31008         (b<code>): Remove expander.
31009         * config/rx/rx-protos.h: Update.
31010
31011         * config/rx/rx.c (rx_compare_redundant): Remove.
31012         * config/rx/rx.md (cmpsi): Don't use it.
31013         * config/rx/rx-protos.h: Update.
31014
31015         * config/rx/rx-modes.def (CC_F): New mode.
31016         * config/rx/rx.c (rx_select_cc_mode): New.
31017         * config/rx/rx.h (SELECT_CC_MODE): Use it.
31018         * config/rx/rx-protos.h: Update.
31019
31020 2011-01-17  Richard Henderson  <rth@redhat.com>
31021
31022         * except.c (dump_eh_tree): Fix stray ; after for statement.
31023
31024 2011-01-17  Richard Guenther  <rguenther@suse.de>
31025
31026         PR tree-optimization/47313
31027         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31028         handling before copying the body.  Properly deal with
31029         by-reference result in SSA form.
31030
31031 2011-01-17  Ian Lance Taylor  <iant@google.com>
31032
31033         PR target/47219
31034         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31035         (struct_value_alias_set): Don't define.
31036         (sparc_option_override): Don't set sparc_sr_alias_set and
31037         struct_value_alias_set.
31038         (save_or_restore_regs): Use gen_frame_mem rather than calling
31039         set_mem_alias_set.
31040         (sparc_struct_value_rtx): Likewise.
31041
31042 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31043
31044         PR target/47318
31045         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31046         (_mm_maskstore_pd): Likewise.
31047         (_mm_maskload_ps): Likewise.
31048         (_mm_maskstore_ps): Likewise.
31049         (_mm256_maskload_pd): Change mask to __m256i.
31050         (_mm256_maskstore_pd): Likewise.
31051         (_mm256_maskload_ps): Likewise.
31052         (_mm256_maskstore_ps): Likewise.
31053
31054         * config/i386/i386-builtin-types.def: Updated.
31055         (ix86_expand_special_args_builtin): Likewise.
31056
31057         * config/i386/i386.c (bdesc_special_args): Update
31058         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31059         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31060         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31061         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31062
31063         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31064         Use <avxpermvecmode> on mask register.
31065         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31066
31067 2011-01-17  Olivier Hainque  <hainque@adacore.com>
31068             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31069             Eric Botcazou  <ebotcazou@adacore.com>
31070
31071         PR target/46655
31072         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31073         if <= USHRT_MAX in 32-bit mode.
31074
31075 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31076
31077         * doc/install.texi (Configuration, Specific): Wrap long
31078         lines in examples.  Allow line wrapping in long options
31079         and URLs where beneficial for PDF output.
31080
31081 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
31082
31083         * config/mips/mips.c (mips_classify_symbol): Don't return
31084         SYMBOL_PC_RELATIVE for nonlocal labels.
31085
31086 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31087
31088         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31089
31090 2011-01-15  Jan Hubicka  <jh@suse.cz>
31091
31092         PR tree-optimization/47276
31093         * ipa.c (function_and_variable_visibility): Do not try to mark alias
31094         declarations as needed.
31095
31096 2011-01-15  Martin Jambor  <mjambor@suse.cz>
31097
31098         * common.opt (fdevirtualize): New flag.
31099         * doc/invoke.texi (Option Summary): Document it.
31100         * opts.c (default_options_table): Add devirtualize flag.
31101         * ipa-prop.c (detect_type_change): Return immediately if
31102         devirtualize flag is not set.
31103         (detect_type_change_ssa): Likewise.
31104         (compute_known_type_jump_func): Likewise.
31105         (ipa_analyze_virtual_call_uses): Likewise.
31106
31107 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31108
31109         PR tree-optimization/45934
31110         PR tree-optimization/46302
31111         * ipa-prop.c (type_change_info): New type.
31112         (stmt_may_be_vtbl_ptr_store): New function.
31113         (check_stmt_for_type_change): Likewise.
31114         (detect_type_change): Likewise.
31115         (detect_type_change_ssa): Likewise.
31116         (compute_complex_assign_jump_func): Check for dynamic type change.
31117         (compute_complex_ancestor_jump_func): Likewise.
31118         (compute_known_type_jump_func): Likewise.
31119         (compute_scalar_jump_functions): Likewise.
31120         (ipa_analyze_virtual_call_uses): Likewise.
31121         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31122
31123 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31124
31125         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31126         * config/i386/i386.opt (msse5): New Alias.
31127
31128 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31129
31130         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31131         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31132         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31133         * config/sparc/sparc.h (CC1_SPEC): Likewise.
31134
31135 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31136
31137         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
31138         -mcpu options.
31139         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31140         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31141         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
31142         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
31143         Likewise.
31144         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
31145
31146 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31147
31148         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
31149
31150 2011-01-14  Mike Stump  <mikestump@comcast.net>
31151
31152         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
31153         * config/fr30/fr30.md: Likweise
31154         (movsi_push): Likewise.
31155         (movsi_pop): Likewise.
31156         (enter_func): Likewise.
31157         * config/moxie/moxie.md (movsi_push): Likewise.
31158         (movsi_pop): Likewise.
31159
31160 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31161
31162         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
31163         %{no_archive} %{exact_version}.
31164         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
31165         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
31166         %{no_archive} %{exact_version}.
31167         * config/mips/openbsd.h (LINK_SPEC): Likewise.
31168         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
31169         * config/mips/vxworks.h: Likewise.
31170
31171 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31172
31173         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
31174
31175 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31176
31177         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
31178         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
31179
31180 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31181
31182         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
31183         -nodefaultlib.
31184
31185 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31186
31187         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
31188         for mcpu not cpu.
31189         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
31190         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
31191         not cpu.
31192         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
31193         Don't handle -shlib.
31194
31195 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31196
31197         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
31198         (CC1_SPEC): Don't handle -profile.
31199
31200 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31201
31202         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
31203         * config/mips/mips.h (CC1_SPEC): Likewise.
31204
31205 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31206
31207         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
31208         * config/mips/mips.h (CC1_SPEC): Likewise.
31209
31210 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31211
31212         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
31213         * config/m32r/linux.h (LINK_SPEC): Likewise.
31214         * config/mips/linux.h (LINK_SPEC): Likewise.
31215         * config/mips/linux64.h (LINK_SPEC): Likewise.
31216         * config/sparc/linux.h (LINK_SPEC): Likewise.
31217         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
31218         LINK_SPEC): Likewise.
31219         * config/xtensa/linux.h (LINK_SPEC): Likewise.
31220
31221 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31222
31223         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
31224         %{version:-v}.
31225         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
31226
31227 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31228
31229         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
31230         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
31231
31232 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31233
31234         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
31235
31236 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31237
31238         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
31239         supports -Bstatic/-Bdynamic.
31240         * configure: Regenerate.
31241
31242 2011-01-14  Jan Hubicka  <jh@suse.cz>
31243             Jack Howarth  <howarth@bromo.med.uc.edu>
31244
31245         PR target/46037
31246         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
31247         when checking debug_info_level. Test write_symbols instead of
31248         debug_hooks->var_location when setting flag_var_tracking_uninit.
31249
31250 2011-01-14  Richard Guenther  <rguenther@suse.de>
31251
31252         PR tree-optimization/47179
31253         * target.def (ref_may_alias_errno): New target hook.
31254         * targhooks.h (default_ref_may_alias_errno): Declare.
31255         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
31256         (default_ref_may_alias_errno): New function.
31257         * target.h (struct ao_ref_s): Declare.
31258         * tree-ssa-alias.c: Include target.h.
31259         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
31260         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
31261         (targhooks.o): Likewise.
31262         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
31263         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
31264
31265 2011-01-14  Richard Guenther  <rguenther@suse.de>
31266
31267         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
31268
31269 2011-01-14  Richard Guenther  <rguenther@suse.de>
31270
31271         PR tree-optimization/47280
31272         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
31273         return CFG changes.
31274         (tree_ssa_forward_propagate_single_use_vars): Deal with
31275         CFG changes from associate_plusminus.
31276
31277 2011-01-14  Richard Guenther  <rguenther@suse.de>
31278
31279         PR middle-end/47281
31280         Revert
31281         2011-01-11  Richard Guenther  <rguenther@suse.de>
31282
31283         PR tree-optimization/46076
31284         * tree-ssa.c (useless_type_conversion_p): Conversions from
31285         unprototyped to empty argument list function types are useless.
31286
31287 2011-01-14  Richard Guenther  <rguenther@suse.de>
31288
31289         PR tree-optimization/47286
31290         * tree-ssa-structalias.c (new_var_info): Register variables are global.
31291
31292 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31293
31294         PR middle-end/46823
31295         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31296
31297 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
31298
31299         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31300         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31301         * config/xtensa/xtensa.c (xtensa_libcall_value,
31302         xtensa_function_value_regno_p): New functions.
31303         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31304
31305 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
31306
31307         PR c++/47213
31308         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31309         PE specific hook.
31310         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31311         New function prototype.
31312         * config/i386/winnt.c (i386_pe_assemble_visibility):
31313         Warn only if attribute was specified by user.
31314
31315 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
31316
31317         PR target/47251
31318         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31319         floating point.
31320         (floatunsdidf2_fcfidu): Ditto.
31321
31322 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31323
31324         * config/s390/s390.c (print_operand_address): Replace 'error' with
31325         'output_operand_lossage'.
31326         (print_operand): Likewise.
31327
31328 2011-01-13  Jeff Law  <law@redhat.com>
31329
31330         PR rtl-optimization/39077
31331         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31332         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31333         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31334         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31335         * gcse.c (prune_insertions_deletions): New function.
31336         (compute_pre_data): Use it.
31337
31338 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
31339
31340         PR debug/PR46973
31341         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31342         static function.
31343         (prune_unused_types_mark): Use it.
31344
31345 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
31346
31347         PR rtl-optimization/45352
31348         * sel-sched.c: Update copyright years.
31349         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31350         in the advancing loop when we have issued issue_rate insns.
31351
31352 2011-01-12  Richard Henderson  <rth@redhat.com>
31353
31354         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31355         (TARGET_MD_ASM_CLOBBERS): New.
31356
31357         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31358         (TARGET_DELEGITIMIZE_ADDRESS): New.
31359
31360         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31361         (clzsi2, *bsch): New patterns.
31362
31363         * config/mn10300/mn10300.md (INT): New mode iterator.
31364         (*mov<INT>_clr): New pattern, and peep2 to generate it.
31365
31366         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31367         flag_split_wide_types.
31368
31369         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31370         (mn10300_trampoline_init): Rewrite without a template, an immediate
31371         load and a direct branch.
31372         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31373
31374 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
31375
31376         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31377         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31378         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31379         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31380
31381 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
31382
31383         PR debug/47209
31384         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31385         of type.
31386
31387 2011-01-12  Jan Hubicka  <jh@suse.cz>
31388
31389         PR driver/47244
31390         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31391         (PLUGIN_COND_CLOSE): New macro.
31392         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31393
31394 2011-01-12  Richard Guenther  <rguenther@suse.de>
31395
31396         PR lto/47259
31397         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31398         register variables in a MEM_REF.
31399
31400 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
31401
31402         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31403         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31404         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31405         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31406         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31407         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31408         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31409         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31410         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31411         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31412         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31413         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31414         * config/gnu-user.h: New.  Copied from linux.h.
31415         (LINUX_TARGET_STARTFILE_SPEC): Rename to
31416         GNU_USER_TARGET_STARTFILE_SPEC.
31417         (LINUX_TARGET_ENDFILE_SPEC): Rename to
31418         GNU_USER_TARGET_ENDFILE_SPEC.
31419         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31420         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31421         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31422         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31423         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31424         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31425         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31426         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31427         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31428         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31429         * config/arm/linux-eabi.h (CC1_SPEC): Use
31430         GNU_USER_TARGET_CC1_SPEC.
31431         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31432         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31433         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31434         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31435         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31436         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31437         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31438         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31439
31440 2011-01-12  Richard Guenther  <rguenther@suse.de>
31441
31442         PR other/46946
31443         * doc/invoke.texi (ffast-math): Document it is turned on
31444         with -Ofast.
31445
31446 2011-01-12  Jan Hubicka  <jh@suse.cz>
31447
31448         PR tree-optimization/47233
31449         * opts.c (common_handle_option): Disable ipa-reference with profile
31450         feedback.
31451
31452 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31453
31454         * c-parser.c (c_parser_objc_at_property_declaration): Improved
31455         error message.
31456
31457 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31458
31459         * c-parser.c (c_lex_one_token): Updated and reindented some
31460         comments.  No changes in code.
31461
31462 2011-01-11  Ian Lance Taylor  <iant@google.com>
31463
31464         * godump.c (go_output_var): Don't output the variable if there is
31465         already a type with the same name.
31466
31467 2011-01-11  Ian Lance Taylor  <iant@google.com>
31468
31469         * godump.c (go_format_type): Don't generate float80.
31470
31471 2011-01-11  Richard Henderson  <rth@redhat.com>
31472
31473         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31474         declaration.  Rewrite for both speed and size.
31475         (mn10300_address_cost_1): Remove.
31476         (mn10300_register_move_cost): New.
31477         (mn10300_memory_move_cost): New.
31478         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
31479         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
31480         extensions, shifts, BSWAP, CLZ.
31481         (mn10300_wide_const_load_uses_clr): Remove.
31482         (TARGET_REGISTER_MOVE_COST): New.
31483         (TARGET_MEMORY_MOVE_COST): New.
31484         * config/mn10300/mn10300-protos.h: Update.
31485         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31486
31487         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31488         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31489         * config/mn10300/mn10300-protos.h: Update.
31490         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31491         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31492         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31493         (*test_int_bitfield, *test_byte_bitfield): Remove.
31494         (*bit_test, *subreg_bit_test): Remove.
31495         * config/mn10300/predicates.md (const_8bit_operand): Remove.
31496
31497         * config/mn10300/constraints.md ("c"): Rename from "A".
31498         ("A", "D"): New constraint letters.
31499         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31500         (fmssf4, fnmasf4, fnmssf4): Likewise.
31501
31502         * config/mn10300/mn10300.md (isa): New attribute.
31503         (enabled): New attribute.
31504
31505         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31506         (abssf2, negsf2): Define only for hardware fp.
31507         (sqrtsf2): Reformat.
31508         (addsf3, subsf3, mulsf3): Merge expander and insn.
31509
31510         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31511         (DEBUGGER_AUTO_OFFSET): Remove.
31512         (DEBUGGER_ARG_OFFSET): Remove.
31513
31514         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31515         Emit register stores with the same offsets as the hardware.
31516         (mn10300_store_multiple_operation): Don't check that the register
31517         save offsets are monotonic.
31518         * config/mn10300/mn10300-protos.h: Update.
31519
31520         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31521
31522         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31523         in terms of the value on the stack, not the MDR register.
31524
31525 2011-01-11  Jan Hubicka  <jh@suse.cz>
31526
31527         PR lto/45721
31528         PR lto/45375
31529         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31530         (symbol_alias_set_destroy, symbol_alias_set_contains,
31531         propagate_aliases_backward): Declare.
31532         * lto-streamer-out.c (struct sets): New sturcture.
31533         (trivally_defined_alias): New function.
31534         (output_alias_pair_p): Rewrite.
31535         (output_unreferenced_globals): Fix output of alias pairs.
31536         (produce_symtab): Likewise.
31537         * ipa.c (function_and_variable_visibility): Set weak alias destination
31538         as needed in lto.
31539         * varasm.c (symbol_alias_set_t): Remove.
31540         (symbol_alias_set_destroy): Export.
31541         (propagate_aliases_forward, propagate_aliases_backward): New functions
31542         based on ...
31543         (compute_visible_aliases): ... this one; remove.
31544         (trivially_visible_alias): New
31545         (trivially_defined_alias): New.
31546         (remove_unreachable_alias_pairs): Rewrite.
31547         (finish_aliases_1): Reorganize code checking if alias is defined.
31548         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31549         in LTO mode.
31550
31551 2011-01-11  Richard Guenther  <rguenther@suse.de>
31552
31553         PR tree-optimization/46076
31554         * tree-ssa.c (useless_type_conversion_p): Conversions from
31555         unprototyped to empty argument list function types are useless.
31556
31557 2011-01-11  Richard Guenther  <rguenther@suse.de>
31558
31559         PR middle-end/45235
31560         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31561         volatile MEMs as MEM_READONLY_P.
31562
31563 2011-01-11  Richard Guenther  <rguenther@suse.de>
31564
31565         PR tree-optimization/47239
31566         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31567
31568 2011-01-11  Jeff Law  <law@redhat.com>
31569
31570         PR tree-optimization/47086
31571         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31572         IVs from statements that might throw.
31573
31574 2011-01-10  Jan Hubicka  <jh@suse.cz>
31575
31576         PR lto/45375
31577         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31578
31579 2011-01-10  Jan Hubicka  <jh@suse.cz>
31580
31581         PR lto/45375
31582         * profile.c (read_profile_edge_counts): Ignore profile inconistency
31583         when correcting profile.
31584
31585 2011-01-10  Jan Hubicka  <jh@suse.cz>
31586
31587         PR lto/46083
31588         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31589         DECL_FINI_PRIORITY.
31590         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31591         Restore DECL_FINI_PRIORITY.
31592
31593 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31594
31595         * doc/gimple.texi: Fix quoting of multi-word return values in
31596         @deftypefn statements.  Ensure presence of return value.  Wrap
31597         overlong @deftypefn lines.
31598         (is_gimple_operand, is_gimple_min_invariant_address): Remove
31599         descriptions of removed functions.
31600         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31601         of multi-word return value in @deftypefn statement.
31602
31603 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31604
31605         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31606         (Conditional Expressions, Logical Operators)
31607         (Statement and operand traversals): Do not indent smallexample
31608         code.  Fix duplicate function argument in example.
31609
31610 2011-01-10  Jeff Law  <law@redhat.com>
31611
31612         PR tree-optimization/47141
31613         * ipa-split.c (split_function): Handle case where we are
31614         returning a value and the return block has a virtual operand phi.
31615
31616 2011-01-10  Jan Hubicka  <jh@suse.cz>
31617
31618         PR tree-optimization/47234
31619         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31620         (pass_feedback_split_functions): Declare.
31621         * passes.c (init_optimization_passes): Add ipa-split as subpass of
31622         tree-profile.
31623         * ipa-split.c (gate_split_functions): Update comments; disable
31624         split-functions for profile_arc_flag and branch_probabilities.
31625         (gate_feedback_split_functions): New function.
31626         (execute_feedback_split_functions): New function.
31627         (pass_feedback_split_functions): New global var.
31628
31629 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
31630
31631         PR lto/46760
31632         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31633         calling gimple_call_set_cannot_inline.
31634
31635 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
31636
31637         * config/darwin-sections.def: Remove unused section.
31638
31639 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
31640
31641         PR c++/47218
31642         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31643
31644 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
31645
31646         PR objc/47232
31647         * c-parser.c (c_parser_declaration_or_fndef): Improved
31648         error message.
31649
31650 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
31651
31652         * config/i386/winnt.c (i386_pe_start_function): Make sure
31653         to switch back to function's section.
31654
31655 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
31656
31657         PR gcc/46902
31658         PR testsuite/46912
31659         * plugin.c: Move include of dlfcn.h from here...
31660         * system.h: ... to here.
31661
31662 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31663
31664         * doc/cpp.texi (C++ Named Operators): Fix markup for header
31665         file name.
31666         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31667         two extra empty pages in PDF output.
31668
31669 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
31670
31671         PR objc/47078
31672         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31673         for error recovery purposes behave as if it was not specified so
31674         that the default type is usd.
31675
31676 2011-01-07  Jan Hubicka  <jh@suse.cz>
31677
31678         PR tree-optmization/46469
31679         * ipa.c (function_and_variable_visibility): Clear needed flags on
31680         nodes with external decls; handle weakrefs merging correctly.
31681
31682 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
31683
31684         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31685         not false.
31686
31687 2011-01-07  Jan Hubicka  <jh@suse.cz>
31688
31689         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31690         and no longer claim that gold is required for linker plugin.
31691         * configure: Regenerate.
31692         * gcc.c (PLUGIN_COND): New macro.
31693         (LINK_COMMAND_SPEC): Use it.
31694         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31695         * config.in (HAVE_LTO_PLUGIN): New.
31696         * configure.ac (--with-lto-plugin): New parameter; autodetect
31697         HAVE_LTO_PLUGIN.
31698
31699 2011-01-07  Jan Hubicka  <jh@suse.cz>
31700
31701         PR tree-optimization/46367
31702         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31703         when we can update original.
31704         (cgraph_mark_inline_edge): Sanity check.
31705         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31706
31707 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31708
31709         * config/spu/spu.h (ASM_COMMENT_START): Define.
31710
31711 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
31712
31713         PR driver/42445
31714         * gcc.c (%>S): New.
31715         (SWITCH_KEEP_FOR_GCC): Likewise.
31716         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31717         (do_spec_1): Handle "%>".
31718
31719         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31720
31721 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
31722
31723         PR target/47201
31724         * config/i386/i386.c (ix86_delegitimize_address): If
31725         simplify_gen_subreg fails, return orig_x.
31726
31727         PR bootstrap/47187
31728         * value-prof.c (gimple_stringop_fixed_value): Handle
31729         lhs of the call properly.
31730
31731 2011-01-07  Jan Hubicka  <jh@suse.cz>
31732
31733         PR lto/45375
31734         * lto-opt.c (lto_reissue_options): Set flag_shlib.
31735
31736 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31737
31738         * target.def (function_switched_text_sections): New hook.
31739         * doc/tm.texi: Regenerated.
31740         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31741         * final.c (default_function_switched_text_sections): New.
31742         (final_scan_insn): Call function_switched_text_sections when a
31743         mid-function section change occurs.
31744         * output.h (default_function_switched_text_sections): Declare.
31745         * config/darwin-protos.h (darwin_function_switched_text_sections):
31746         Likewise.
31747         * config/darwin.c (darwin_function_switched_text_sections): New.
31748         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31749
31750 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31751
31752         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
31753         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
31754         the secondary code fragment when outputting for DWARF == 2.
31755
31756 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
31757
31758         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31759         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31760         Remove.
31761         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31762         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31763
31764 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31765
31766         PR debug/46704
31767         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31768         when it is not empty.
31769
31770 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
31771
31772         Bobcat Enablement
31773         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31774         (case ${target}): Add btver1.
31775         * config/i386/driver-i386.c (host_detect_local_cpu): Let
31776         -march=native recognize btver1 processors.
31777         * config/i386/i386-c.c (ix86_target_macros_internal): Add
31778         btver1 def_and_undef
31779         * config/i386/i386.c (struct processor_costs btver1_cost): New
31780         btver1 cost table.
31781         (m_BTVER1): New definition.
31782         (m_AMD_MULTIPLE): Includes m_BTVER1.
31783         (initial_ix86_tune_features): Add btver1 tune.
31784         (processor_target_table): Add btver1 entry.
31785         (static const char *const cpu_names): Add btver1 entry.
31786         (software_prefetching_beneficial_p): Add btver1.
31787         (ix86_option_override_internal): Add btver1 instruction sets.
31788         (ix86_issue_rate): Add btver1.
31789         (ix86_adjust_cost): Add btver1.
31790         * config/i386/i386.h (TARGET_BTVER1): New definition.
31791         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31792         (enum processor_type): Add PROCESSOR_BTVER1.
31793         * config/i386/i386.md (define_attr "cpu"): Add btver1.
31794
31795 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31796
31797         PR target/43309
31798         * config/i386/i386.c (legitimize_tls_address)
31799         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31800         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31801         (tls_initial_exec_64_sun): New pattern.
31802
31803 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31804
31805         * doc/invoke.texi (Overall Options): Improve wording and markup
31806         of the description of -wrapper.
31807
31808 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31809
31810         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31811         rdynamic, threads): New Driver options.
31812
31813 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31814
31815         PR target/38118
31816         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31817         if coming from .tdata.
31818         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31819
31820 2011-01-06  Jan Hubicka  <jh@suse.cz>
31821
31822         PR lto/47188
31823         * collect2.c (main): Do not enable LTOmode when plugin is active.
31824
31825 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31826
31827         PR other/45915
31828         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31829         --version output if supported.
31830         * configure: Regenerate.
31831
31832 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31833
31834         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31835         Driver options.
31836
31837 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
31838
31839         PR c/47150
31840         * c-convert.c (convert): When converting a complex expression
31841         other than COMPLEX_EXPR to a different complex type, ensure
31842         c_save_expr is called instead of save_expr, unless in_late_binary_op.
31843         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31844         when converting COMPLEX_TYPE.
31845
31846 2011-01-06  Ira Rosen  <irar@il.ibm.com>
31847
31848         PR tree-optimization/47139
31849         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31850         only the last reduction value is used outside the loop.  Update
31851         documentation.
31852
31853 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
31854
31855         * config/rtems.opt: New.
31856         * config.gcc (*-*-rtems*): Use rtems.opt.
31857
31858 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
31859
31860         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31861         processors do not support 3DNow instructions.
31862
31863 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31864
31865         * config/spu/spu.c (spu_option_override): Set parameter
31866         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31867
31868 2011-01-05  Jan Hubicka  <jh@suse.cz>
31869
31870         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31871         at the command line.
31872
31873 2011-01-05  Martin Jambor  <mjambor@suse.cz>
31874
31875         PR lto/47162
31876         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31877         deltas on streamed outgoing edges.
31878         (output_node_opt_summary): Output info for outgoing edges only when
31879         the node is in new parameter set.
31880         (output_cgraph_opt_summary): New parameter set, passed to the two
31881         aforementioned functions.  Update its forward declaration and its
31882         callee too.
31883
31884 2011-01-05  Tom Tromey  <tromey@redhat.com>
31885
31886         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31887         operator to c_finish_omp_atomic.
31888         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31889         (build_unary_op): Update.
31890         (build_modify_expr): Update.
31891         (build_asm_expr): Update.
31892
31893 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31894
31895         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31896         newly inserted insns.
31897         (pad_bb): Likewise.
31898         (spu_emit_branch_hint): Likewise.
31899         (insert_hbrp_for_ilb_runout): Likewise.
31900         (spu_machine_dependent_reorg): Call df_finish_pass after
31901         schedule_insns returns.
31902
31903 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31904
31905         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31906
31907 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31908
31909         PR tree-optimization/47005
31910         * tree-sra.c (struct access): Add 'non_addressable' bit.
31911         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
31912         (decide_one_param_reduction): Return 0 if the parameter is passed by
31913         reference and one of the accesses in the group is non_addressable.
31914
31915 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31916
31917         PR tree-optimization/47056
31918         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
31919         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
31920         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
31921
31922 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31923
31924         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
31925         initializer.  Skip view conversions from aggregate types.
31926
31927 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
31928
31929         PR bootstrap/47055
31930         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
31931
31932 2011-01-04  Philipp Thomas  <pth@suse.de>
31933
31934         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
31935         obvious typo.
31936
31937 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31938
31939         * function.c (thread_prologue_and_epilogue_insns): Do not crash
31940         on empty epilogue sequences.
31941
31942 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
31943
31944         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
31945         non-static): New Driver options.
31946
31947 2011-01-04  Jie Zhang  <jie@codesourcery.com>
31948
31949         PR driver/47137
31950         * gcc.c (default_compilers[]): Set combinable field to 0
31951         for all assembly languages.
31952
31953 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
31954
31955         * config/mips/loongson3a.md: New file.
31956         * config/mips/mips.md: Include loongson3a.md.
31957         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
31958         TUNE_LOONGSON_3A.
31959
31960 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
31961
31962         PR middle-end/47017
31963         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
31964         instead of convert_memory_address_addr_space on the base expression.
31965
31966 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31967
31968         * config/spu/spu.c (spu_option_override): Update error text
31969         for bad -march= / -mtune= values.
31970
31971 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31972
31973         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
31974         if branch-hint optimization will be performed.
31975
31976 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31977
31978         PR tree-optimization/47148
31979         * ipa-split.c (split_function): Convert arguments to
31980         DECL_ARG_TYPE if possible.
31981
31982         PR tree-optimization/47155
31983         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
31984         when computing uns.
31985
31986         PR rtl-optimization/47157
31987         * combine.c (try_combine): If undobuf.other_insn becomes
31988         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
31989         and set *new_direct_jump_p too.
31990
31991 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
31992
31993         PR tree-optimization/47021
31994         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
31995
31996 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
31997
31998         * gcc.c (process_command): Update copyright notice dates.
31999         * gcov.c (print_version): Likewise.
32000         * gcov-dump.c (print_version): Likewise.
32001         * mips-tfile.c (main): Likewise.
32002         * mips-tdump.c (main): Likewise.
32003
32004 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32005
32006         PR tree-optimization/46801
32007         * tree-sra.c (type_internals_preclude_sra_p): Check whether
32008         aggregate fields start at byte boundary instead of the bit-field flag.
32009
32010 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
32011
32012         PR driver/47137
32013         * gcc.c (main): Revert revision 168407.
32014
32015 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32016
32017         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32018
32019 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32020
32021         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32022         vector optab to expand vector/scalar shift, update gimple to vector.
32023
32024 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32025
32026         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32027         a thunk.
32028
32029 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32030
32031         PR tree-optimization/46984
32032         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32033         HOST_WIDE_INT.
32034         (cgraph_create_indirect_edge): Fixed line length.
32035         (cgraph_indirect_call_info): Declare.
32036         (cgraph_make_edge_direct) Update declaration.
32037         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32038         (cgraph_create_indirect_edge): Use it.
32039         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
32040         callees.
32041         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32042         the new thunk_delta representation.
32043         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32044         HOST_WIDE_INT.
32045         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32046         (ipa_read_indirect_edge_info): Likewise.
32047         * lto-cgraph.c (output_edge_opt_summary): New function.
32048         (output_node_opt_summary): Call it on all outgoing edges.
32049         (input_edge_opt_summary): New function.
32050         (input_node_opt_summary): Call it on all outgoing edges.
32051
32052 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
32053
32054         PR driver/47137
32055         * gcc.c (main): Don't check have_o when settting combine_inputs.
32056
32057 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
32058
32059         * regrename.c: Add general comment describing the pass.
32060         (struct du_head): Remove 'length' field.
32061         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32062         (regrename_optimize): Do not sort chains.  Rework comments, add others.
32063         Force renaming to the preferred class (if any) in the first pass and do
32064         not consider registers that belong to it in the second pass.
32065         (create_new_chain): Do not set 'length' field.
32066         (scan_rtx_reg): Likewise.
32067
32068 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
32069
32070         PR tree-optimization/47140
32071         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32072         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32073         to bit_value_binop.
32074
32075         PR rtl-optimization/47028
32076         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32077         parm_birth_insn instead of at the beginning of first bb.
32078
32079 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
32080
32081         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32082         Remove the word "see" before "@pxref".
32083         * doc/rtl.texi: Remove the word "see" before "@pxref".
32084
32085 2011-01-01  Jan Hubicka  <jh@suse.cz>
32086
32087         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32088         memory.
32089
32090 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
32091
32092         PR target/38662
32093         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32094
32095 \f
32096 Copyright (C) 2011 Free Software Foundation, Inc.
32097
32098 Copying and distribution of this file, with or without modification,
32099 are permitted in any medium without royalty provided the copyright
32100 notice and this notice are preserved.