* Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-20  Michael Matz  <matz@suse.de>
2
3         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4
5 2011-05-20  Michael Matz  <matz@suse.de>
6             Richard Guenther  <rguenther@suse.de>
7
8         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
9         use lto_streamer_cache_append directly instead of returning a VEC.
10         (preload_common_node): Remove.
11         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12         track seen nodes.
13         (lto_streamer_cache_create): Call lto_preload_common_nodes.
14
15 2011-05-20  Richard Guenther  <rguenther@suse.de>
16
17         PR tree-optimization/49079
18         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
19         MEM_REFs correctly for the trailing array access detection.
20         Special case constants the same way as decls for overall size
21         constraining.
22
23 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
24
25         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
26         argument expansion.
27
28 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
29
30         PR tree-optimization/49073
31         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
32         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
33         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
34
35 2011-05-20  Richard Guenther  <rguenther@suse.de>
36
37         PR middle-end/48849
38         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
39         of pointer types the same way the middle-end does.
40
41 2011-05-20  Richard Guenther  <rguenther@suse.de>
42
43         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
44         or pointer-to chains.  Delay all fixup to uniquify_nodes.
45
46 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
47
48         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
49         (fma4_fmaddsub): Likewise
50
51 2011-05-19  Jan Hubicka  <jh@suse.cz>
52
53         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
54         (GIMPLE_TYPE_PAIR_SIZE): New macro.
55         (type_pair_cache): New static var.
56         (lookup_type_pair): Use fixed sized custom hash; make inline.
57         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
58         calls of lookup_type_pair.
59         (print_gimple_types_stats): Remove cache stats.
60         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
61         and gtc_ob.
62
63 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
64
65         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
66         when TARGET_RDRND is active.
67         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
68         Generate dummy SImode target register when target is NULL.
69
70 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
71
72         * config/arm/arm-fpus.def: New.
73         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
74         arm-fpus.def.
75         * config/arm/arm-tables.opt: Regenerate.
76         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
77         (arm_option_override): Don't decode FPU name to string here.
78         * config/arm/arm.opt (mfpu=): Use Enum.
79         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
80         Update dependencies.
81
82 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
83
84         * collect2.c: Include diagnostic.h.
85         (fatal_perror, fatal, error, fancy_abort): Remove.
86         (main): Set progname.  Call xmalloc_set_program_name and
87         diagnostic_initialize.
88         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
89         scan_libraries, resolve_lib_name): Call fatal_error instead of
90         fatal and fatal_perror.
91         * collect2.h (error, fatal, fatal_perror): Don't declare.
92         * tlink.c: Include diagnostic-core.h.
93         (recompile_files): Call fatal_error instead of fatal_perror.
94         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
95         pretty-print.o and input.o.
96         (collect2.o, tlink.o): Update dependencies.
97
98 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
99
100         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
101
102 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
103
104         PR target/40483
105         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
106         COMDAT group syntax, both SPARC and x86 variants.
107         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
108         * configure: Regenerate.
109         * config/sol2.h (TARGET_SOLARIS): Define.
110         (PUSHSECTION_FORMAT): Remove.
111         (SECTION_NAME_FORMAT): Define.
112         * config/sol2.c: Include hashtab.h.
113         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
114         expansion, using SECTION_NAME_FORMAT.
115         (solaris_comdat_htab): New variable.
116         (struct comdat_entry): Define.
117         (comdat_hash): New function.
118         (comdat_eq): New function.
119         (solaris_elf_asm_comdat_section): New function.
120         (solaris_define_comdat_signature): New function.
121         (solaris_code_end): New function.
122         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
123         (solaris_code_end): Declare.
124         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
125         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
126         solaris_code_end.
127         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
128         Remove ATTRIBUTE_UNUSED.
129         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
130         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
131         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
132         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
133         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
134         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
135         (PUSHSECTION_FORMAT): Remove.
136         (SECTION_NAME_FORMAT): Redefine.
137
138 2011-05-19  Kai Tietz  <ktietz@redhat.com>
139
140         * tree-cfg.c (verify_gimple_assign_binary): Barf on
141         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
142         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
143
144 2011-05-19  Anatoly Sokolov <aesok@post.ru>
145             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
146
147         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
148
149 2011-05-19  Richard Guenther  <rguenther@suse.de>
150
151         PR middle-end/48985
152         * tree-object-size.c (addr_object_size): If the pointed-to
153         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
154
155 2011-05-19  Richard Guenther  <rguenther@suse.de>
156
157         * gimple.c (gimple_types_compatible_p_1): Compare names of
158         the types themselves.
159         (iterative_hash_gimple_type): And hash them that way.
160         (gimple_register_type_1): If we register a main variant properly
161         initialize the leader to ourselves.
162
163 2011-05-19  Tom de Vries  <tom@codesourcery.com>
164
165         PR target/45098
166         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
167         get_loop_invariant_expr_id.
168         (get_loop_invariant_expr_id): Use get_expr_id.
169         (parm_decl_cost): New function.
170         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
171         Improve bound cost estimation.  Use different inv_expr_id for elim and
172         express cases.
173
174 2011-05-19  Tom de Vries  <tom@codesourcery.com>
175
176         PR target/45098
177         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
178         cost_base.cost == 0.
179
180 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
181
182         PR target/49002
183         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
184         Properly handle load cast.
185
186 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
187
188         PR tree-optimization/49039
189         * tree-vrp.c (extract_range_from_binary_expr): For
190         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
191         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
192
193 2011-05-18  Tom de Vries  <tom@codesourcery.com>
194
195         PR target/45098
196         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
197
198 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
199
200         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
201         (*tls_global_dynamic_64): Ditto.
202         (*tls_local_dynamic_base_32_gnu): Ditto.
203         (*tls_local_dynamic_base_64): Ditto.
204         (tls_initial_exec_64_sun): Ditto.
205
206 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
207
208         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
209         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
210         bf592-none.
211         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
212         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
213         * config/bfin/bfin.c (bfin_cpus): Add bf592.
214         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
215         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
216         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
217         * config/bfin/elf.h (LIB_SPEC): Add bf592.
218
219 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
220
221         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
222         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
223         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
224         target_thread_pointer, arm_structure_size_boundary, struct
225         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
226         struct abi_name, arm_all_abis): Remove.
227         (arm_option_override) Don't process most enumerated option values here.
228         Don't process target_fpe_name here.  Work with integer not string for
229         structure size boundary; use separate diagnostics for each case.
230         * config/arm/arm.h (enum float_abi_type, enum
231         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
232         to arm-opts.h.
233         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
234         arm_structure_size_boundary): Remove.
235         * config/arm/arm.opt (mabi=): Use Enum and Init.
236         (arm_abi_type): New Enum and EnumValue entries.
237         (mfloat-abi=): Use Enum and Init.
238         (float_abi_type): New Enum and EnumValue entries.
239         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
240         (mfp16-format=): Use Enum and Init.
241         (arm_fp16_format_type): New Enum and EnumValue entries.
242         (mstructure-size-boundary=): Use UInteger and Init.
243         (mtp=): Use Enum and Init.
244         (arm_tp_type): New Enum and EnumValue entries.
245
246 2011-05-18  Richard Guenther  <rguenther@suse.de>
247
248         PR tree-optimization/49018
249         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
250         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
251         gimple_has_side_effects.
252
253 2011-05-18  Richard Guenther  <rguenther@suse.de>
254
255         * gimple.c (gimple_register_type_1): New function, split out from ...
256         (gimple_register_type): ... here.  Avoid infinite recursion.
257
258 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
259
260         PR tree-optimization/41881
261         * tree-vectorizer.h (struct _loop_vec_info): Add new field
262         reduction_chains along with a macro for its access.
263         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
264         (destroy_loop_vec_info): Free reduction chains.
265         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
266         (vect_is_slp_reduction): New function.
267         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
268         (vect_create_epilog_for_reduction): Support SLP reduction chains.
269         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
270         definition types for reduction chains.
271         (vect_supported_load_permutation_p): Don't allow permutations for
272         reduction chains.
273         (vect_analyze_slp_instance): Support reduction chains.
274         (vect_analyze_slp): Try to build SLP instance from reduction chains.
275         (vect_get_constant_vectors):  Handle reduction chains.
276         (vect_schedule_slp_instance): Mark the first statement of the
277         reduction chain as reduction.
278
279 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
280
281         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
282         names for group elements access.
283         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
284         reduction chains as well.  Remove data reference and interleaving
285         related words from the fields names.
286         * tree-vect-loop.c (vect_transform_loop): Use new names for group
287         elements access.
288         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
289         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
290         vect_update_interleaving_chain, vect_same_range_drs,
291         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
292         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
293         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
294         vect_analyze_group_access, vect_analyze_data_ref_access,
295         vect_create_data_ref_ptr, vect_transform_strided_load,
296         vect_record_strided_load_vectors): Likewise.
297         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
298         vect_model_load_cost, vectorizable_store, vectorizable_load,
299         vect_remove_stores, new_stmt_vec_info): Likewise.
300         * tree-vect-slp.c (vect_build_slp_tree,
301         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
302
303 2011-05-18  Richard Guenther  <rguenther@suse.de>
304
305         PR middle-end/48989
306         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
307         operand verification.
308         (verify_gimple_assign_binary): Likewise.
309         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
310         to non-1-precision BOOLEAN_TYPEs.
311
312 2011-05-18  Tom de Vries  <tom@codesourcery.com>
313
314         PR target/45098
315         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
316
317 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
318
319         PR tree-optimization/49000
320         * tree-ssa.c (execute_update_addresses_taken): Call
321         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
322         be rewritten and decl has been marked for renaming, reset
323         the debug stmt.
324
325 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
326
327         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
328         enum_opts_set when testing if attributes have set -mfpmath=.
329
330 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
331
332         * config/mips/mips.c (mips_handle_option): Remove unused variable.
333
334 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
335
336         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
337         info->entry with 0
338         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
339         id.transform_lang_insert_block with NULL.
340
341 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
342
343         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
344         (output_fp_compare): Change args 3 and 4 to bool.
345         (ix86_expand_call): Change arg 6 to bool.
346         (ix86_attr_length_immediate_default): Change arg 2 to bool.
347         (ix86_attr_length_vex_default): Change arg 3 to bool.
348         * config/i386/i386.md: Update all uses.
349         * config/i386/i386.c: Ditto.
350         (ix86_flags_dependent): Change return type to bool.
351
352 2011-05-17  Richard Guenther  <rguenther@suse.de>
353
354         * gimple.c (type_hash_pair_compare): Fix comparison.
355
356 2011-05-17  Richard Guenther  <rguenther@suse.de>
357
358         * gimple.c (iterative_hash_gimple_type): Simplify singleton
359         case some more, fix final hash value of the non-singleton case.
360
361 2011-05-17  Richard Guenther  <rguenther@suse.de>
362
363         PR bootstrap/49013
364         Revert
365         2011-05-16  Richard Guenther  <rguenther@suse.de>
366
367         * gimple.c (gimple_types_compatible_p_1): Use names of the
368         type itself, not its main variant.
369         (iterative_hash_gimple_type): Likewise.
370
371 2011-05-17  Richard Guenther  <rguenther@suse.de>
372
373         * gimple.c (gimple_register_canonical_type): Use the main-variant
374         leader for computing the canonical type.
375
376 2011-05-17  Nick Clifton  <nickc@redhat.com>
377
378         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
379         moves.
380
381         * config/rx/rx.md: Add peephole to remove redundant extensions
382         after loads.
383         (bitset_in_memory): Use rx_restricted_mem_operand.
384         (bitinvert_in_memory): Likewise.
385         (bitclr_in_memory): Likewise.
386
387 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
388             Nick Clifton  <nickc@redhat.com>
389
390         * config/rx/rx.md: Add peepholes to match a register move followed
391         by a comparison of the moved register.  Replace these with an
392         addition of zero that does both actions in one instruction.
393
394 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
395
396         PR target/48986
397         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
398         predicate to allow CONST_INT.
399         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
400
401 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
402
403         * opts-common.c (opt_enum_arg_to_value): New.
404         * opts.h (opt_enum_arg_to_value): Declare.
405         * config/i386/i386.opt (fpmath): Remove.
406         (mfpmath=): Use Enum, Init and Save.
407         (fpmath_unit): New Enum and EnumValue entries.
408         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
409         name for function fpmath state.
410         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
411         * config/i386/i386.c: Include diagnostic.h.
412         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
413         (ix86_target_string): Take enum fpmath_unit value instead of string.
414         (ix86_debug_options): Update call to ix86_target_string.
415         (ix86_option_override_internal): Don't process fpmath strings here.
416         (x86_function_specific_save, ix86_function_specific_restore):
417         Don't handle fpmath state specially.
418         (ix86_function_specific_print): Pass fpmath state to
419         ix86_target_string instead of printing in this function.
420         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
421         Handle enum attributes.
422         (IX86_ATTR_ENUM, ix86_opt_enum): New.
423         (ix86_valid_target_attribute_tree): Update option_strings
424         handling.  Handle fpmath as enum option.
425         (ix86_can_inline_p): Update field names for function fpmath state.
426         (ix86_expand_builtin): Update call to ix86_target_string.
427         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
428         (ix86_fpmath): Remove.
429         * config/i386/t-i386 (i386.o): Update dependencies.
430
431 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
432
433         PR preprocessor/48677
434         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
435         from decoded_options[0], not from itself.
436
437 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
438
439         * config/i386/constraints.md (z): New constraint.
440         * config/i386/i386.c (c): New mode attribute.
441         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
442         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
443         constraint for operand 0.
444         (*call_vzeroupper): Ditto.
445         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
446         (*call_rex64_ms_sysv_vzeroupper): Ditto.
447         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
448         Use "lzm" constraint for operand 0.
449         (*call_pop_vzeroupper): Ditto.
450         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
451         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
452         constraint for operand 0.
453         (*sibcall_vzeroupper): Ditto.
454         (*sibcall_rex64_ms_sysv): Ditto.
455         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
456         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
457         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
458         (*sibcall_pop_vzeroupper): Ditto.
459         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
460         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
461         mode iterator.  Use "<c>zm" constraint for operand 1.
462         (*call_value_vzeroupper): Ditto.
463         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
464         for operand 1.
465         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
466         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
467         *call_value_pop_1.  Use "lzm" constraint for operand 1.
468         (*call_value_pop_vzeroupper): Ditto.
469         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
470         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
471         mode iterator.  Use "Uz" constraint for operand 1.
472         (*sibcall_value_vzeroupper): Ditto.
473         (*sibcall_value_rex64_ms_sysv): Ditto.
474         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
475         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
476         constraint for operand 1.
477         (*sibcall_value_pop_vzeroupper): Ditto.
478         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
479         and "z" constraint for operand 2.
480         (*tls_global_dynamic_32_gnu): Ditto.
481         (*tls_local_dynamic_base_32_gnu): Ditto.
482         (*tls_local_dynamic_base_64): Ditto.
483         (*tls_local_dynamic_32_once): Ditto.
484         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
485         Update all callers.
486         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
487
488 2011-05-16  Richard Guenther  <rguenther@suse.de>
489
490         * gimple.c (gimple_types_compatible_p_1): Use names of the
491         type itself, not its main variant.
492         (iterative_hash_gimple_type): Likewise.
493
494 2011-05-16  Richard Guenther  <rguenther@suse.de>
495
496         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
497         always visit pointer target and function result and argument types.
498
499 2011-05-16  Jason Merrill  <jason@redhat.com>
500
501         PR c++/48999
502         * tree-inline.c (copy_statement_list): Put back recursion.
503
504 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
505
506         PR target/27663
507         PR target/41076
508         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
509         * config/avr/avr.md ("*ior<mode>qi.byte0",
510         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
511
512 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
513
514         PR target/45099
515         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
516         register is needed for a function argument.
517
518 2011-05-16  Richard Guenther  <rguenther@suse.de>
519
520         * gimple.c (struct type_hash_pair): New type.
521         (type_hash_pair_compare): New function.
522         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
523
524 2011-05-16  Revital Eres  <revital.eres@linaro.org>
525
526         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
527
528 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
529
530         * config/i386/i386.md (floating point move splitters): Fix
531         usage of standard_80387_constant_p.
532         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
533
534 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
535
536         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
537
538 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
539
540         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
541         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
542         (tree_ssa_lim_finalize): Likewise.
543
544 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
545
546         * config/i386/constraint.md (Yd, Yx): New register constraints.
547         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
548         Yd conditional register constraint.
549         (*movtf_internal): Use standard_sse_constant_opcode.
550         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
551         Yx conditional register constraint.
552         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
553         Yd conditional register constraint.  Use standard_sse_constant_p to
554         check for valid SSE constants and call standard_sse_constant_opcode to
555         output SSE insn.
556         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
557         constants and call standard_sse_constant_opcode to output SSE insn.
558         * config/i386/i386.c (ix86_option_ovverride_internal): Set
559         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
560         optimize_size is set.
561         (standard_sse_constant_opcode): Output conditional AVX insn templates.
562
563 2011-05-14  Tobias Burnus  <burnus@net-b.de>
564
565         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
566
567 2011-05-13  Martin Jambor  <mjambor@suse.cz>
568
569         * ipa-prop.c (ipa_cst_from_jfunc): New function.
570         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
571         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
572         (evaluate_conditions_for_ipcp_clone): Removed.
573         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
574         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
575         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
576
577 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
578
579         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
580         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
581         lieu of MAY_HAVE_DEBUG_STMTS.
582         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
583         debug statements if !MAY_HAVE_DEBUG_STMTS.
584
585 2011-05-13  Martin Thuresson  <martint@google.com>
586
587         PR gcov-profile/47793
588         * libgcov.c (gcov_exit): Support relative profile paths.
589         * doc/invoke.texi (-fprofile-dir): Update for above change.
590
591 2011-05-13  Richard Guenther  <rguenther@suse.de>
592
593         * gimple.c (gimple_canonical_types_compatible_p): Do not use
594         type-pair caching, do not compare hashes.
595
596 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
597
598         PR middle-end/48965
599         * tree-cfg.c (edge_to_cases_cleanup): Return true.
600         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
601
602 2011-05-13  Kai Tietz  <ktietz@redhat.com>
603
604         * gimplify.c (gimplify_expr): Make sure operand is boolified.
605         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
606         compatible type for TRUTH_NOT_EXPR.
607
608 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
609
610         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
611         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
612         can_create_pseudo_p ().
613
614 2011-05-13  Richard Guenther  <rguenther@suse.de>
615
616         PR lto/48978
617         * gimple.c (iterative_hash_gimple_type): Revert change in
618         pointer target and function result and argument hashing.
619
620 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
621
622         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
623         (*movxf_internal_nointeger): Ditto.
624         (*movdf_internal_rex64): Ditto.
625         (*movdf_internal): Ditto.
626         (*movdf_internal_nointeger): Ditto.
627         (*movsf_internal): Ditto.
628         (sincos splitters): Use can_create_pseudo ().
629
630 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
631
632         * config/i386/i386-opts.h: New.
633         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
634         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
635         ix86_section_threshold): Remove.
636         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
637         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
638         OPT_mbranch_cost_.
639         (ix86_option_override_internal): Don't decode strings for options
640         other than -march=, -mtune= and -mfpmath=.  Don't allow for
641         __attribute__ uses in remaining diagnostics for options with
642         string arguments.  Don't check for integer arguments being negative.
643         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
644         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
645         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
646         ix86_branch_cost, ix86_section_threshold): Remove.
647         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
648         HeaderInclude.
649         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
650         but not Var.
651         (masm=): Use Enum and Init.
652         (asm_dialect): New Enum and EnumValue entries.
653         (mbranch-cost=): Use UInteger.
654         (mlarge-data-threshold=): Use UInteger and Init.
655         (mcmodel=): Use Enum and Init.
656         (cmodel): New Enum and EnumValue entries.
657         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
658         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
659         mregparm=): Use UInteger.
660         (mstringop-strategy=): Use Enum and Init.
661         (stringop_alg): New Enum and EnumValue entries.
662         (mtls-dialect=): Use Enum and Init.
663         (tls_dialect): New Enum and EnumValue entries.
664         (mabi=): Use Enum and Init.
665         (calling_abi): New Enum and EnumValue entries.
666         (mveclibabi=): Use Enum and Init.
667         (ix86_veclibabi): New Enum and EnumValue entries.
668
669 2011-05-13  Nick Clifton  <nickc@redhat.com>
670
671         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
672         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
673
674 2011-05-13  Kai Tietz  <ktietz@redhat.com>
675
676         PR middle-end/48984
677         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
678         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
679         (gimple_boolify): Check for cast for boolean_type_node instead for
680         BOOLEAN_TYPE.
681
682 2011-05-13  Richard Guenther  <rguenther@suse.de>
683
684         PR tree-optimization/48172
685         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
686         multiplying by number of iterations for equal step.
687         (vect_create_cond_for_alias_checks): Likewise.
688
689 2011-05-13  Andreas Schwab  <schwab@redhat.com>
690
691         * configure.ac: Use AS_HELP_STRING throughout.
692         * configure: Regenerate.
693
694 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
695
696         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
697         (ix86_emit_restore_regs_using_mov): Likewise.
698         (ix86_emit_restore_sse_regs_using_mov): Likewise.
699
700 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
701
702         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
703         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
704         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
705         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
706         RTX_OK_FOR_OLO10_P): ...here.
707         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
708         SYMBOLIC_CONST.
709
710 2011-05-12  Kai Tietz  <ktietz@redhat.com>
711
712         * gimplify.c (gimple_boolify): Re-boolify expression
713         arguments even if expression type is of kind BOOLEAN_TYPE.
714         (gimplify_boolean_expr): Removed.
715         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
716         and XOR. Additional take care that we keep expression's type.
717         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
718         of TRUTH_AND|OR|XOR_EXPR.
719
720 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
721
722         PR tree-optimization/48975
723         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
724         on all bbs here and free and clear ifc_bbs at the end.
725
726 2011-05-12  Richard Guenther  <rguenther@suse.de>
727
728         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
729         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
730         until after simple checks.
731         (gimple_types_compatible_p): Likewise.
732         (iterative_hash_gimple_type): Always hash pointer targets
733         and function return and argument types.
734         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
735         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
736         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
737         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
738         completely in the simple compare section.
739         (gimple_register_canonical_type): Query the cache again after
740         registering.
741
742 2011-05-12  Richard Guenther  <rguenther@suse.de>
743
744         PR tree-optimization/48172
745         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
746         the number of iterations from the segment size calculation.
747         (vect_create_cond_for_alias_checks): Adjust.
748
749 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
750
751         PR debug/48967
752         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
753         if validate_subreg fails.
754
755 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
756
757         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
758         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
759         early.
760
761 2011-05-12  DJ Delorie  <dj@redhat.com>
762
763         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
764         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
765         created builtin into rx_builtins array.
766         (rx_builtin_decl): New function.
767         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
768
769 2011-05-12  DJ Delorie  <dj@redhat.com>
770             Nick Clifton  <nickc@redhat.com>
771
772         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
773         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
774         (rx_is_legitimate_address): Add pre-decrement and post-increment
775         addressing in HImode and QImode.  Fix test for out of range
776         REG+INT addressing.
777         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
778         (rx_align_for_label): Test label before extracting its usage count.
779         (rx_adjust_insn_lengths): Fix selection of insn codes.
780         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
781
782 2011-05-11  Jason Merrill  <jason@redhat.com>
783
784         * tree.c (type_hash_canon): Use struct tree_type_non_common.
785
786 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
787
788         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
789         reindent the subsequent block.
790
791 2011-05-11  Satoru Takabayashi  <satorux@google.com>
792             Paul Pluzhnikov  <ppluzhnikov@google.com>
793
794         * doc/install.texi (Configuration): Document --with-linker-hash-style.
795         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
796         * config.in: Add LINKER_HASH_STYLE.
797         * configure.ac: Add --with-linker-hash-style.
798         * configure: Regenerate.
799
800 2011-05-11  Richard Guenther  <rguenther@suse.de>
801
802         PR middle-end/48964
803         * gimple.c (iterative_hash_canonical_type): Fix typo.
804
805 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
806
807         * config/i386/i386.c (legitimize_tls_address)
808         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
809         expanders directly for TARGET_GNU2_TLS.  Determine pic and
810         __tls_get_addr symbol reference here.  Update call to
811         gen_tls_global_dynamic_{32,64} for added arguments.
812         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
813         expanders directly for TARGET_GNU2_TLS.  Determine
814         __tls_get_addr symbol reference here.  Update call to
815         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
816         unique UNSPEC REG_EQUIV to libcall block.
817         (ix86_tls_get_addr): Declare static.
818         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
819         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
820         Do not determine pic and __tls_get_addr symbol reference here. Do not
821         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
822         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
823         (tls_global_dynamic_64): Add operand 2.  Do not determine
824         __tls_get_addr symbol reference here.  Do not call
825         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
826         (tls_local_dynamic_base64): Ditto for operand 1.
827
828 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
829
830         * function.c (expand_function_start): Initialize stack_check_probe_note
831         only if the generic stack checking mechanism is used.
832
833 2011-05-11  Richard Guenther  <rguenther@suse.de>
834
835         PR tree-optimization/15256
836         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
837         (A & B) | C, combine (A op CST1) op CST2.
838         (tree_ssa_forward_propagate_single_use_vars): Only bother to
839         visit assigns that have uses.
840
841 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
842
843         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
844         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
845         (unpack_ts_type_common_value_fields): ...this.  Update comment.
846         (unpack_value_fields): Adjust for renaming.
847         (lto_input_ts_type_tree_pointers): Split into...
848         (lto_input_ts_type_common_tree_pointer): ...this and...
849         (lto_input_ts_type_non_common_tree_pointers): ...this.
850         (lto_input_tree_pointers): Adjust for above split.
851         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
852         (pack_ts_type_common_value_fields): ...this.  Update comment.
853         (lto_output_ts_type_tree_pointers): Split into...
854         (lto_output_ts_type_common_tree_pointers): ...this and...
855         (lto_output_ts_type_non_common_tree_pointers): ...this.
856         (lto_output_tree_pointers): Adjust for above split.
857         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
858         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
859         * stor-layout.c (vector_type_mode): Adjust location of mode field.
860         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
861         Define.
862         (struct tree_type): Split into...
863         (struct tree_type_common: ...this and...
864         (struct tree_type_with_lang_specific): ...this and...
865         (struct tree_type_non_common): ...this.  Adjust accessor macros
866         accordingly.
867         (TYPE_VALUES_RAW): Define.
868         (union tree_node): Update for above changes.
869         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
870         TS_TYPE_NON_COMMON.
871         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
872         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
873         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
874         * treestructu.def (TS_TYPE): Remove.
875         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
876         Define.
877
878 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
879
880         PR debug/48159
881         * tree-ssa.c (reset_debug_uses): New function.
882         * tree-flow.h (reset_debug_uses): New prototype.
883         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
884         * tree-loop-distribution.c (generate_loops_for_partition): Call
885         reset_debug_uses on the stmts that will be removed.  Keep around
886         all debug stmts, don't count them as bits in partition bitmap.
887         (generate_builtin): Don't count debug stmts or labels as bits in
888         partition bitmap.
889
890 2011-05-11  Richard Guenther  <rguenther@suse.de>
891
892         * gimple.c (gimple_type_hash_1): Merge with ...
893         (gimple_type_hash): ... this.
894         (gtc_visit): Remove mode parameter and simplify accordingly.
895         (gimple_types_compatible_p_1): Likewise.
896         (gimple_types_compatible_p): Likewise.
897         (iterative_hash_gimple_type): Likewise.
898         (visit): Likewise.
899         (gimple_type_eq): Adjust.
900
901 2011-05-11  Revital Eres  <revital.eres@linaro.org>
902
903         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
904         enters the branch create an anti edge in the opposite direction
905         to prevent the creation of reg-moves.
906         * modulo-sched.c: Adjust comment to reflect the fact we are
907         scheduling closing branch.
908         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
909         (stage_count): New field in struct partial_schedule.
910         (calculate_stage_count): New function.
911         (normalize_sched_times): Rename to reset_sched_times and handle
912         incrementing the sched time of the nodes by a constant value
913         passed as parameter.
914         (duplicate_insns_of_cycles): Skip closing branch.
915         (sms_schedule_by_order): Schedule closing branch.
916         (ps_insn_find_column): Handle closing branch.
917         (sms_schedule): Call reset_sched_times and adjust the code to
918         support scheduling of the closing branch.
919         (ps_insert_empty_row): Update calls to normalize_sched_times
920         and rotate_partial_schedule functions.
921
922 2011-05-11  Richard Guenther  <rguenther@suse.de>
923
924         PR middle-end/48953
925         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
926
927 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
928
929         * opts.c (finish_options): Move warning settings from process_options.
930         * toplev.c (process_options): Move warning settings to finish_options.
931
932 2011-05-11  Richard Guenther  <rguenther@suse.de>
933
934         PR tree-optimization/18041
935         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
936         (simplify_bitwise_binary): ... this.  Handle operand conversions
937         by applying them to the result instead.
938         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
939
940 2011-05-11  Richard Guenther  <rguenther@suse.de>
941
942         * gimple.c (gimple_canonical_types_compatible_p): Split out
943         from gimple_types_compatible_p and friends.  Do not recurse
944         to pointed-to types.
945         (gimple_canonical_type_eq): Use it.
946         (iterative_hash_canonical_type): Split out from
947         iterative_hash_gimple_type and friends.  Do not recurse
948         to pointed-to types.
949         (gimple_canonical_type_hash): Use it, allocate the hash here.
950
951 2011-05-11  Revital Eres  <revital.eres@linaro.org>
952
953         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
954         recognizing doloop.
955
956 2011-05-11  Revital Eres  <revital.eres@linaro.org>
957
958         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
959         instead of PREV_INSN.
960
961 2011-05-11  Revital Eres  <revital.eres@linaro.org>
962
963         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
964         * loop-doloop.c (doloop_condition_get): Likewise.
965         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
966         (doloop_end): New.
967         * config/arm/arm.md (*addsi3_compare0): Remove "*".
968
969 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
970
971         * tree.def (CASE_LABEL_EXPR): Add an operand.
972         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
973
974 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
975
976         * c-decl.c (c_override_global_bindings_to_false): Remove.
977         (global_bindings_p): Don't check
978         c_override_global_bindings_to_false.
979         * c-tree.h (c_override_global_bindings_to_false): Remove.
980         * c-typeck.c (composite_type): Don't set
981         c_override_global_bindings_to_false.
982
983 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
984
985         PR target/48857, 48495
986         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
987         (VSX_MODE): Ditto.
988         (VSX_MOVE_MODE): Ditto.
989         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
990         VSX vector types.  Add V2DImode.
991         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
992         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
993         (MODES_TIEABLE_P): Ditto.
994
995         * config/rs6000/rs6000.c (rs6000_emit_move): Use
996         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
997         VSX_VECTOR_MODE.
998         (init_cumulative_args): Ditto.
999         (rs6000_function_arg_boundary): Ditto.
1000         (rs6000_function_arg_advance_1): Ditto.
1001         (rs6000_function_arg): Ditto.
1002         (rs6000_function_ok_for_sibcall): Ditto.
1003         (emit_frame_save): Ditto.
1004         (rs6000_function_value): Ditto.
1005         (rs6000_libcall_value): Ditto.
1006
1007 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1008
1009         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1010         i386/darwin-lib.h to $libgcc_tm_file.
1011         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1012
1013 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1014
1015         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1016
1017 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1018
1019         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1020         * config/rs6000/rs6000-tables.opt: New file (generated).
1021         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1022         rs6000/rs6000-tables.opt to extra_options.
1023         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1024         * config/rs6000/rs6000.c (rs6000_select): Remove.
1025         (processor_target_table): Move contents to rs6000-cpus.def.
1026         (darwin_rs6000_override_options): Check
1027         global_options_set.x_rs6000_cpu_index instead of
1028         rs6000_select[1].string.
1029         (rs6000_option_override_internal): Likewise.
1030         (rs6000_handle_option): Don't assert that global structures are in
1031         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1032         (rs6000_default_cpu): New variable.
1033         (rs6000_file_start): Set it instead of local default_cpu.  Check
1034         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1035         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1036         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1037         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1038         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1039         rs6000_select): Remove.
1040         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1041         Remove.
1042         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1043         * config/rs6000/t-rs6000
1044         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1045         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1046         global_options_set.x_rs6000_cpu_index instead of
1047         rs6000_select[1].string.
1048         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1049         global_options_set.x_rs6000_cpu_index instead of
1050         rs6000_select[1].string.
1051
1052 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1053
1054         * config.gcc (libgcc_tm_file): Define instead of including files
1055         from ../../libgcc/config/ in tm_file.
1056         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1057         * configure: Regenerate.
1058         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1059         libgcc_tm.h, cs-libgcc_tm.h): New.
1060         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1061         (clean): Remove libgcc_tm.h.
1062         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1063         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1064         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1065
1066 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1067
1068         PR target/48896
1069         * config/avr/avr.c (avr_ret_register): Return unsigned int
1070         instead of int.
1071         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1072         it to avr_libcall_value.
1073         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1074         expand_expr.
1075         (avr_expand_binop_builtin): Ditto.
1076         (avr_expand_unop_builtin): Ditto.
1077
1078 2011-05-10  DJ Delorie  <dj@redhat.com>
1079
1080         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1081         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1082         * config/rx/rx.c (rx_align_for_label): Add label and
1083         uses_threshold parameters.  Do not align when the label is not
1084         used enough.
1085         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1086
1087 2011-05-10  Richard Guenther  <rguenther@suse.de>
1088
1089         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1090         a series of conversions and apply foldings similar to what
1091         fold-const does.
1092         (tree_ssa_forward_propagate_single_use_vars): Call it.
1093
1094 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1095
1096         PR tree-optimization/48611
1097         PR tree-optimization/48794
1098         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1099         referenced from RESX or EH_DISPATCH arguments.
1100
1101         PR debug/48928
1102         * dfp.c (decimal_to_decnumber): Handle conversion from
1103         dconst{1,2,m1,half}.
1104
1105 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1106
1107         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1108         for !flag_prefer_avx128.
1109         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1110
1111 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1112
1113         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1114         (fold_ternary_loc): Use expr_location_or.
1115
1116 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1117
1118         PR debug/48853
1119         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1120         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1121         Pmode and mem_mode is not VOIDmode.
1122
1123 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1124
1125         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1126         TYPE_QUAL_RESTRICT): Convert to enum.
1127
1128 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1129
1130         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1131         (const_pow2_1_to_8_operand): Ditto.
1132         (const_pow2_1_to_128_operand): Ditto.
1133         (const_pow2_1_to_32768_operand): Ditto.
1134         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1135         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1136         in insn constraint to check integer value of operand 3.
1137         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1138
1139         (PINSR_MODE): New mode iterator.
1140         (sse2p4_1): New mode attribute.
1141         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1142         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1143         iterator.  Use const_int_operand instead of
1144         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1145         exact_log2 in insn constraint to check integer value of operand 3.
1146
1147 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1148
1149         * config/i386/sse.md (blendbits): Remove mode attribute.
1150         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1151         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1152         Check integer value of operand 3 in insn constraint.
1153
1154 2011-05-09  Richard Guenther  <rguenther@suse.de>
1155
1156         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1157         for diagnostics.
1158         (lto_symtab_merge): Likewise.  Do not register types here.
1159         (lto_symtab_merge_decls_2): Likewise.
1160         (lto_symtab_merge_decls_1): Likewise.
1161         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1162         * gimple.c (enum gtc_mode): Declare.
1163         (gimple_types_compatible_p): Make static.
1164
1165 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1166
1167         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1168         temporary register to match Pmode.
1169
1170 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1171
1172         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1173         and *vec_concatv4si_1_avx.
1174
1175 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1176
1177         PR rtl-optimization/48927
1178         * ira-conflicts.c (commutative_constraint_p): Use
1179         recog_data.alternative_enabled_p to disable alternatives where
1180         "enabled" attribute is false.
1181         (get_dup_num): Ditto.
1182         * ira-lives.c (single_reg_class): Ditto.
1183         (ira_implicitly_set_insn_hard_regs): Ditto.
1184
1185 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1186
1187         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1188         (dataflow_set_preserve_mem_locs): Likewise.
1189
1190 2011-05-09  Philipp Thomas  <pth@suse.de>
1191
1192         * config/mep/mep.c (mep_validate_vliw): Syntax description
1193         should not be translated.
1194
1195 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1196
1197         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1198         * config/mips/mips-tables.opt: New file (generated).
1199         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1200         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1201         MIPS_ARCH_OPTION_NATIVE): Define.
1202         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1203         mips-cpus.def.
1204         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1205         mips_parse_cpu): Remove.
1206         (mips_cpu_info_from_opt, mips_default_arch): New.
1207         (mips_handle_option): Don't assert that global structures are in
1208         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1209         (mips_option_override): Use new variables and functions to set
1210         state of these options.  Use strcmp to check for individual CPU names.
1211         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1212         definition.
1213         * config/mips/mips.opt (march=): Use ToLower and Enum.
1214         (mips): Use ToLower, Enum and Var.
1215         (mtune=): Use ToLower and Enum.
1216         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1217
1218 2011-05-08  Jan Hubicka  <jh@suse.cz>
1219
1220         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1221         Arrange type pairs to be UID ordered.
1222         (gimple_lookup_type_leader): Make inline.
1223
1224 2011-05-09  Nick Clifton  <nickc@redhat.com>
1225
1226         PR target/48899
1227         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1228         PROCESSOR_DEFAULT.
1229
1230         PR target/48897
1231         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1232         variable 's'.
1233
1234 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1235
1236         * combine.c (simplify_comparison): Abstract out parts into...
1237         (simplify_compare_const): ... new function.
1238         (try_combine): Generalize parallel arithmetic/compare combining
1239         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1240
1241 2011-05-08  Jan Hubicka  <jh@suse.cz>
1242
1243         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1244         (cgraph_create_virtual_clone): Call hooks once virtual clone
1245         is finished.
1246         * cgraph.h (cgraph_clone_node): Update prototype.
1247         * ipa-cp.c (ipcp_estimate_growth): Use
1248         estimate_ipcp_clone_size_and_time.
1249         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1250         * lto-cgraph.c (input_node): Update.
1251         * ipa-inline.c (recursive_inlining): Update.
1252         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1253         (evaluate_conditions_for_known_args): Break out from ...
1254         (evaluate_conditions_for_edge): ... here.
1255         (evaluate_conditions_for_ipcp_clone): New function.
1256         (inline_node_duplication_hook): Update clone summary based
1257         on parameter map.
1258         (estimate_callee_size_and_time): Rename to ...
1259         (estimate_node_size_and_time): take NODE instead of EDGE;
1260         take POSSIBLE_TRUTHS as argument.
1261         (estimate_callee_size_and_time): Update.
1262         (estimate_ipcp_clone_size_and_time): New function.
1263         (do_estimate_edge_time): Update.
1264
1265 2011-05-08  Richard Guenther  <rguenther@suse.de>
1266
1267         PR middle-end/48908
1268         PR middle-end/48905
1269         * expmed.c (expand_shift_1): Compute adjusted constant shift
1270         amount manually.
1271
1272 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1273
1274         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1275
1276 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1277
1278         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1279
1280 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1281
1282         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1283
1284 2011-05-07  Jan Hubicka  <jh@suse.cz>
1285
1286         * ipa-inline-transform.c (inline_call): Account when program size
1287         decreases.
1288         * ipa-inline.c (relative_time_benefit): New function.
1289         (edge_badness): Reorganize to be power 2 based; fix thinko when
1290         computing badness for negative growth; update comments to match
1291         reality; better dumps.
1292
1293 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1294
1295         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1296         type to bool and adjust comment.
1297         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1298         (fold_mathfn_compare): Remove calls to global_bindings_p.
1299         (fold_inf_compare): Likewise.
1300         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1301         * c-tree.h (global_bindings_p): Adjust prototype.
1302         * c-decl.c (global_bindings_p): Return bool and simplify.
1303
1304 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1305
1306         PR tree-optimization/48837
1307         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1308         when accumulator transformation is performed.
1309
1310 2011-05-06  Jan Hubicka  <jh@suse.cz>
1311
1312         * i386.h (ix86_tune_indices): Add
1313         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1314         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1315         * i386.c (initial_ix86_tune_features): Add
1316         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1317         (software_prefetching_beneficial_p): Remove predicate.
1318         (ix86_option_override_internal): Use new macro.
1319
1320 2011-05-06  Jan Hubicka  <jh@suse.cz>
1321
1322         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1323
1324 2011-05-06  Jan Hubicka  <jh@suse.cz>
1325
1326         * cgraph.c (cgraph_add_thunk): Create real function node instead
1327         of alias node; finalize it and mark needed/reachale; arrange visibility
1328         to be right and add it into the corresponding same comdat group list.
1329         (dump_cgraph_node): Dump thunks.
1330         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1331         cgraph_function_with_gimple_body_p,
1332         cgraph_first_function_with_gimple_body,
1333         cgraph_next_function_with_gimple_body): New functions.
1334         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1335         New macros.
1336         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1337         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1338         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1339         devirtualization when optimizing.
1340         (verify_cgraph_node): Verify thunks.
1341         (cgraph_analyze_function): Analyze thunks.
1342         (cgraph_mark_functions_to_output): Output thunks only in combination
1343         with function they are assigned to.
1344         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1345         alias into normal node.
1346         (assemble_thunks): New functoin.
1347         (cgraph_expand_function): Use it.
1348         * lto-cgraph.c (lto_output_node): Stream thunks.
1349         (input_overwrite_node): Stream in thunks.
1350         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1351         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1352         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1353         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1354         (inline_analyze_function): Do not care about thunk jump functions.
1355         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1356         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1357         cgraph_function_with_gimple_body_p.
1358         * passes.c (do_per_function_toporder): Use
1359         cgraph_function_with_gimple_body_p.
1360         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1361         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1362         (function_called_by_processed_nodes_p): Likewise.
1363
1364 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1365
1366         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1367         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1368         entries.
1369         (mabi=): Replace with separate entries for mabi=altivec,
1370         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1371         mabi=ieeelongdouble and mabi=ibmlongdouble.
1372         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1373         check for -mabi=spe without SPE ABI support here.
1374         (rs6000_handle_option): Replace OPT_mabi_ handling with
1375         OPT_mabi_altivec and OPT_mabi_spe handling.
1376
1377 2011-05-06  Cary Coutant  <ccoutant@google.com>
1378
1379         * dwarf2out.c (contains_subprogram_definition): New function.
1380         (should_move_die_to_comdat): Call it.
1381
1382 2011-05-06  Jeff Law  <law@redhat.com>
1383
1384         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1385         remove_ctrl_stmt_and_useless_edges.
1386         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1387         (fixup_template_block, thread_single_edge): Likewise.
1388         (mark_threaded_blocks): Use THREAD_TARGET.
1389
1390 2011-05-06  Alan Modra  <amodra@gmail.com>
1391
1392         PR target/48900
1393         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1394         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1395
1396 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1397
1398         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1399         constraint modifier to "r".
1400
1401 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1402
1403         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1404         fall through for OPT_mcmodel_.
1405
1406 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1407
1408         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1409         instruction sizes.
1410         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1411
1412 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1413
1414         PR target/47930
1415         * config/arm/arm.opt (marm): Document it.
1416         (mthumb): Reject negative variant.
1417
1418 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1419
1420         PR target/48898
1421         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1422         Fix typo in "ccvt" variable name.
1423
1424 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1425
1426         PR target/48895
1427         * config/vms/vms-ar.c (main): Remove cwd variable.
1428
1429 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1430
1431         PR debug/48902
1432         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1433
1434 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1435
1436         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1437         * gimplify.c (gimplify_switch_expr): Likewise.
1438         * omp-low.c (expand_omp_sections): Likewise.
1439         * tree-eh.c (lower_try_finally_switch): Likewise.
1440         (lower_eh_dispatch): Likewise.
1441         * tree.h (build_case_label): Declare.
1442         * tree.c (build_case_label): Define.
1443
1444 2011-05-05  Jason Merrill  <jason@redhat.com>
1445
1446         PR c++/40975
1447         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1448         (copy_statement_list): Don't recurse.
1449         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1450         STATEMENT_LIST.
1451
1452 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1453
1454         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1455         through from -mfpu= handling.
1456         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1457
1458 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1459
1460         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1461         POST_MODIFY.
1462
1463 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1464
1465         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1466         for 11.31.
1467         (hppa[12]*-*-hpux11*): Ditto.
1468         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1469         * config/ia64/hpux-unix2003.h: New.
1470         * config/pa/pa-hpux1131.opt: New.
1471         * config/pa/pa-hpux1131.h: New.
1472         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1473         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1474         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1475
1476 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1477
1478         PR debug/48853
1479         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1480         instead of mode as 3rd argument to recursive call.
1481         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1482         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1483         VOIDmode.
1484         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1485         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1486         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1487         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1488
1489 2011-05-05  Julian Brown  <julian@codesourcery.com>
1490
1491         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1492         parenthesis in D-register case.
1493
1494 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1495
1496         * opt-functions.awk (var_type_struct): Handle Enum options.
1497         * optc-gen.awk: Don't check range of variables of character type.
1498         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1499         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1500         rs6000_sdata_name, rs6000_explicit_options): Remove.
1501         (rs6000_option_override_internal): Check for -malign-power here.
1502         Use global_options_set instead of rs6000_explicit_options.
1503         (rs6000_parse_fpu_option): Remove.
1504         (rs6000_handle_option): Access variables via opts and opts_set
1505         pointers.  Use error_at and warning_at.  Add fall-through
1506         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1507         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1508         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1509         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1510         here.  Don't use rs6000_parse_fpu_option.
1511         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1512         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1513         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1514         (mrecip=): Use Var.
1515         (mspe): Use Var and Save.
1516         (mtraceback=): Use Enum and Var.
1517         (rs6000_traceback_type): New Enum and EnumValue entries.
1518         (mfloat-gprs=): Use Enum, Var and Save.
1519         (rs6000_float_gprs): New Enum and EnumValue entries.
1520         (mlong-double-): use Var and Save.
1521         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1522         (malign-): Use Enum and Var.
1523         (rs6000_alignment_flags): New Enum and EnumValue entries.
1524         (mfpu=): Use Enum.
1525         (fpu_type_t): New Enum and EnumValue entries.
1526         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1527         global_options_set instead of rs6000_explicit_options.
1528         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1529         global_options_set instead of rs6000_explicit_options.
1530         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1531         global_options_set instead of rs6000_explicit_options.
1532         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1533         global_options_set instead of rs6000_explicit_options.
1534         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1535         global_options_set instead of rs6000_explicit_options.
1536         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1537         global_options_set instead of rs6000_explicit_options.
1538         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1539         definition.
1540         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1541         global_options_set instead of rs6000_explicit_options.
1542         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1543         (rs6000_cmodel): New Enum and EnumValue entries.
1544         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1545         global_options_set instead of rs6000_explicit_options.
1546         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1547         (mtls-size=): Use Enum and Var.
1548         (rs6000_tls_size): New Enum and EnumValue entries.
1549
1550 2011-05-05  Michael Matz  <matz@suse.de>
1551
1552         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1553         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1554         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1555         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1556         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1557         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1558         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1559         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1560         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1561         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1562         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1563         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1564         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1565         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1566         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1567         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1568
1569 2011-05-05  Richard Guenther  <rguenther@suse.de>
1570
1571         * expmed.c (expand_variable_shift): Rename to ...
1572         (expand_shift_1): ... this.  Take an expanded shift amount.
1573         For rotates recurse directly not building trees for the shift amount.
1574         (expand_variable_shift): Wrap around expand_shift_1.
1575         (expand_shift): Adjust.
1576
1577 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1578
1579         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1580
1581 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1582
1583         * tree.h (get_pending_sizes): Remove prototype.
1584         (put_pending_size): Likewise.
1585         (put_pending_sizes): Likewise.
1586         * stor-layout.c (pending_sizes): Delete.
1587         (get_pending_sizes): Likewise.
1588         (put_pending_size): Likewise.
1589         (put_pending_sizes): Likewise.
1590         (variable_size): Do not call put_pending_size and tidy up.
1591         * function.h (struct function): Remove dont_save_pending_sizes_p.
1592         * lto-streamer-in.c (input_function): Do not stream it.
1593         * lto-streamer-out.c (output_function): Likewise.
1594         * tree-inline.c (initialize_cfun): Do not copy it.
1595         * c-decl.c (store_parm_decls): Do not set it.
1596         * omp-low.c (create_task_copyfn): Likewise.
1597         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1598
1599 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1600
1601         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1602         conditions.
1603         (*movdf_internal): Ditto.
1604         (*movdf_internal_nointeger): Ditto.
1605         (*movsf_internal): Ditto.
1606
1607 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1608
1609         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1610         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1611         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1612         (c_variable_size): Remove.
1613         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1614         call put_pending_sizes.
1615         (get_parm_info): Add parameter expr.  Use it to set
1616         arg_info->pending_sizes.
1617         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1618         get_pending_sizes.
1619         * c-parser.c (c_parser_parms_declarator): Update call to
1620         c_parser_parms_list_declarator.
1621         (c_parser_parms_list_declarator): Take parameter expr.  Update
1622         call to push_parm_decl.  Update recursive call.  Don't call
1623         get_pending_sizes.  Update calls to get_parm_info.
1624         (c_parser_objc_method_definition): Update calls to
1625         c_parser_objc_method_decl and objc_start_method_definition.
1626         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1627         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1628         grokparm.
1629         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1630         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1631         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1632
1633 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1634
1635         PR pch/45979
1636         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1637         __ARM_EABI__ hosts.
1638
1639 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1640
1641         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1642         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1643         (spu_output_mi_thunk): New function.
1644
1645 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1646
1647         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1648         targetm.asm_out.print_operand.
1649         * config/sol2.c: Include target.h.
1650
1651 2011-05-04  Jan Hubicka  <jh@suse.cz>
1652
1653         * ipa-inline.c (reset_edge_caches): New function.
1654         (update_caller_keys): Add check_inlinablity_for; do not
1655         reset edge caches; remove now unnecesary loop.
1656         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1657         (update_all_callee_keys): Likewise.
1658         (inline_small_functions): Sanity check cache; update code
1659         recomputing it.
1660
1661 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1662
1663         PR rtl-optimization/47612
1664         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1665         as the last insn of the sequence to be moved.
1666
1667 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1668
1669         PR fortran/48864
1670         * doc/invoke.texi (Ofast): Document that it
1671         enables Fortran's -fno-protect-parens.
1672
1673 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1674
1675         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1676
1677 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1678
1679         * stor-layout.c (variable_size): Do not issue errors.
1680
1681 2011-05-04  Richard Guenther  <rguenther@suse.de>
1682
1683         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1684         for array-ref indices.
1685         (tree_coverage_counter_addr): Likewise.
1686         (build_fn_info_type): Use size_int for index types.
1687         (build_gcov_info): Likewise.
1688
1689 2011-05-04  Richard Guenther  <rguenther@suse.de>
1690
1691         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1692         to build_int_cst.
1693         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1694         for constructor indices.
1695         (push_init_level): Likewise.
1696
1697 2011-05-04  Richard Guenther  <rguenther@suse.de>
1698
1699         * explow.c (promote_mode): Move variable declarations before code.
1700
1701 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1702
1703         * tree.h (build_function_type_array): Declare.
1704         (build_varargs_function_type_array): Declare.
1705         (build_function_type_vec, build_varargs_function_type_vec): Define.
1706         * tree.c (build_function_type_array_1): New function.
1707         (build_function_type_array): New function.
1708         (build_varargs_function_type_array): New function.
1709
1710 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1711
1712         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1713         before setting STMT_VINFO_TYPE.
1714
1715 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1716
1717         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1718         instead of spu_pass_by_reference.
1719
1720 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1721
1722         * calls.c (emit_library_call_value_1): Invoke
1723         promote_function_mode hook on libcall arguments.
1724         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1725         argument being NULL.
1726         * targhooks.c (default_promote_function_mode): Lisewise.
1727         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1728         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1729
1730         * doc/tm.texi: Document that TYPE argument might be NULL.
1731
1732 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1733
1734         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1735
1736 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1737
1738         From Bernd Schmidt
1739         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1740
1741 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1742
1743         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1744         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1745         Move ...
1746         * mips-tfile.c: ... here.
1747         Don't include coretypes.h, tm.h, filenames.h.
1748         (saber_stop): Remove definition and all calls.
1749         [__SABER__]: Remove.
1750         (__LINE__): Remove default.
1751         (Size_t, Ptrdiff_t): Remove definitions.
1752         Replace by size_t, ptrdiff_t.
1753         [!MIPS_DEBUGGING_INFO]: Remove.
1754         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1755         (progname): Add const.
1756         (STATIC): Remove.
1757         Replace all uses by static.
1758         (ALIGN_SYMTABLE_OFFSET): Remove default.
1759         * mips-tdump.c: Don't include coretypes.h, tm.h.
1760         Remove !MIPS_IS_STAB guard.
1761         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1762         $(TM_H), filenames.h dependencies.
1763         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1764
1765 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1766
1767         From Jie Zhang
1768         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1769         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1770
1771 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1772
1773         From Bernd Schmidt
1774         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1775         account and save/restore RETS.
1776         (PROFILE_BEFORE_PROLOGUE): Define.
1777         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1778         the push insn to use predecrement.
1779
1780 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1781
1782         From Jie Zhang
1783         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1784
1785 2011-05-04  Nick Clifton  <nickc@redhat.com>
1786
1787         * config/mn10300/mn10300.c: Include cfgloop.h.
1788         (DUMP): New macro.
1789         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1790         Lcc or a FLcc insn into the instruction stream.
1791         (mn10300_block_contains_call): New function.  Returns true if the
1792         given basic block contains a CALL insn.
1793         (mn10300_loop_contains_call_insn): New function.  Returns true if
1794         the given loop contains a CALL insn.
1795         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1796         to use the SETLB and Lcc or FLcc insns.
1797         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1798         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1799         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1800         disable the SETLB optimization.
1801         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1802         __SETLB__ or __NO_SETLB__.
1803         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1804         (movsf_internal): Handle MDR register.
1805         (cmpsi): Make visible.
1806         (setlb): New pattern.
1807         (Lcc): New pattern.
1808         (FLcc): New pattern.
1809
1810 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1811
1812         PR target/48860
1813         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1814         for reg<->xmm moves.
1815         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1816         (vec_concatv2di_rex64_sse): Ditto.
1817         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1818         (*vec_extractv2di_1_rex64): Ditto.
1819
1820         Revert:
1821         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1822
1823         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1824         reg<->xmm moves.
1825         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1826
1827 2011-05-04  Richard Guenther  <rguenther@suse.de>
1828
1829         * tree.h (int_const_binop): Remove notrunc argument.
1830         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1831         create integer constants that are properly truncated.
1832         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1833         (const_binop): Remove zero notrunc argument to int_const_binop.
1834         (size_binop_loc): Likewise.
1835         (fold_div_compare): Likewise.
1836         (maybe_canonicalize_comparison_1): Likewise.
1837         (fold_comparison): Likewise.
1838         (fold_binary_loc): Likewise.
1839         (multiple_of_p): Likewise.
1840         * expr.c (store_constructor): Likewise.
1841         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1842         (maybe_fold_stmt_addition): Likewise.
1843         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1844         * stor-layout.c (layout_type): Likewise.
1845         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1846         * tree-sra.c (build_ref_for_offset): Likewise.
1847         (build_user_friendly_ref_for_offset): Likewise.
1848         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1849         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1850         * tree-ssa-loop-niter.c (inverse): Likewise.
1851         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1852         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1853         * tree-switch-conversion.c (check_range): Likewise.
1854         (build_constructors): Likewise.
1855         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1856         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1857         (extract_range_from_assert): Likewise.
1858         (vrp_int_const_binop): Likewise.
1859         (extract_range_from_binary_expr): Likewise.
1860         (extract_range_from_unary_expr): Likewise.
1861         (check_array_ref): Likewise.
1862         (find_case_label_range): Likewise.
1863         (simplify_div_or_mod_using_ranges): Likewise.
1864         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1865         comparing case labels for merging.
1866
1867 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1868
1869         * dwarf2out.c (debug_str_hash_forced): Removed.
1870         (gen_label_for_indirect_string): Removed.
1871         (get_debug_string_label): Removed.
1872         (AT_string_form): Generate label directly.
1873         (output_indirect_string): Test indirect_string_node for
1874         DW_FORM_strp instead of checking label and refcount.
1875         (prune_indirect_string): Removed.
1876         (prune_unused_types): Don't check debug_str_hash_forced or
1877         call prune_indirect_string.
1878
1879 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1880
1881         PR other/48093
1882         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1883
1884 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1885
1886         PR debug/47994
1887         PR debug/47919
1888         * combine.c (try_combine): Skip debug insns at m_split tests.
1889
1890 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1891
1892         PR42288
1893         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1894         when info_section_emitted.
1895
1896 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1897
1898         * config/mips/mips-opts.h: New.
1899         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1900         to mips-opts.h.
1901         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1902         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1903         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1904         via opts pointer.
1905         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1906         mips-opts.h.
1907         (mips_abi, mips_code_readable): Don't declare.
1908         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1909         (mabi=): Use Enum and Var.
1910         (mips_abi): New Enum and EnumValue entries.
1911         (mcode-readable=): Use Enum and Var.
1912         (mips_code_readable_setting): New Enum and EnumValue entries.
1913         (mr10k-cache-barrier=): Use Enum and Var.
1914         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1915
1916 2011-05-03  Jan Hubicka  <jh@suse.cz>
1917
1918         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1919         replace hash by pointer map.
1920         (cgraph_node_set_element_def, cgraph_node_set_element,
1921         const_cgraph_node_set_element, varpool_node_set_element_def,
1922         varpool_node_set_element, const_varpool_node_set_element): Remove.
1923         (free_cgraph_node_set, free_varpool_node_set): New function.
1924         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1925         * tree-emutls.c: Free varpool node set.
1926         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1927         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1928         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1929         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1930         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1931         Move here from ipa.c; implement using pointer_map
1932         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1933         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1934         debug_cgraph_node_set, varpool_node_set_new,
1935         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1936         dump_varpool_node_set, debug_varpool_node_set):
1937         Move to ipa-uitls.c.
1938         * passes.c (ipa_write_summaries): Update.
1939
1940 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1941
1942         From Mike Frysinger:
1943         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1944         bf542/bf544/bf547/bf548/bf549.
1945
1946 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1947
1948         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1949
1950 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1951
1952         From Bernd Schmidt:
1953         * config/bfin/bfin.md (MOVCC): New mode_macro.
1954         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1955         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1956         comments from generated assembly.
1957
1958 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1959
1960         From Bernd Schmidt
1961         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1962         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1963         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1964         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1965         * config/bfin/lib1funcs.asm (___muldi3): New function.
1966
1967 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1968
1969         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1970         build_function_type_list instead of build_function_type.
1971         Rearrange initialization of `args' to do so.
1972
1973 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1974
1975         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1976         instead of build_function_type.
1977
1978 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1979
1980         * config/rs6000/rs6000.c (spe_init_builtins): Call
1981         build_function_type_list instead of build_function_type.
1982         (paired_init_builtins, altivec_init_builtins): Likewise.
1983         (builtin_function_type): Likewise.
1984
1985 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1986
1987         * config/sh/sh.c (sh_media_init_builtins): Call
1988         build_function_type_list instead of build_function_type.
1989
1990 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1991
1992         * config/sparc/sparc.c (sparc_file_end): Call
1993         build_function_type_list instead of build_function_type.
1994
1995 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1996
1997         * config/alpha/alpha.c (alpha_init_builtins): Call
1998         build_function_type_list instead of build_function_type.
1999
2000 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2001
2002         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2003         build_function_type_list instead of build_function_type.
2004
2005 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2006
2007         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2008         build_function_type_list instead of build_function_type.
2009         Delete `endlink' variable.
2010
2011 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2012
2013         * config/avr/avr.c (avr_init_builtins): Call
2014         build_function_type_list instead of build_function_type.
2015
2016 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2017
2018         * config/picochip/picochip.c (picochip_init_builtins): Call
2019         build_function_type_list instead of build_function_type.
2020         Delete `endlink' variable.
2021
2022 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2023
2024         * config/bfin/bfin.c (bfin_init_builtins): Call
2025         build_function_type_list instead of build_function_type.
2026
2027 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2028
2029         From Bernd Schmidt
2030         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2031         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2032
2033 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2034
2035         From Jie Zhang:
2036         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2037         libbffastfp overrides libgcc when -mfast-fp.
2038
2039 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2040
2041         Originally from Bernd Schmidt
2042         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2043         * config/bfin/bfin.c (override_options): Test it and error if
2044         TARGET_FDPIC.
2045
2046 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2047
2048         Originally From Bernd Schmidt
2049         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2050         FD-PIC.
2051
2052 2011-05-03  Jeff Law  <law@redhat.com>
2053
2054         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2055         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2056         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2057         than accessing AUX field directly.  Free the AUX field before
2058         clearing it.
2059         (thread_block, thread_through_loop_header): Likewise.
2060         (thread_single_edge, mark_threaded_blocks): Likewise.
2061         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2062         (register_jump_thread): Do not attempt to thread to a NULL edge.
2063
2064 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2065
2066         * function.c (init_function_start): Call decide_function_section.
2067         * varasm.c (decide_function_section): New function.
2068         (assemble_start_function): When not using
2069         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2070         or first_function_block_is_cold.
2071         * rtl.h (decide_function_section): Declare.
2072
2073 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2074             Jakub Jelinek  <jakub@redhat.com>
2075
2076         PR target/48774
2077         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2078         only succeed if req_mode is the same as set_mode.
2079
2080 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2081
2082         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2083         * genemit.c (gen_exp): Handle RETURN.
2084         * emit-rtl.c (verify_rtx_sharing): Likewise.
2085         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2086         * rtl.c (copy_rtx): RETURN is shared.
2087         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2088         (ret_rtx): New.
2089         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2090         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2091         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2092         * config/cris/cris.c (cris_expand_return): Likewise.
2093         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2094         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2095         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2096         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2097         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2098         Likewise.
2099         * config/v850/v850.c (expand_epilogue): Likewise.
2100         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2101         * config/arm/arm.md (epilogue): Likewise.
2102         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2103         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2104         variable to ret_reg.
2105
2106 2011-05-03  Richard Guenther  <rguenther@suse.de>
2107
2108         PR lto/48846
2109         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2110         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2111         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2112
2113 2011-05-03  Richard Guenther  <rguenther@suse.de>
2114
2115         * c-decl.c (grokdeclarator): Instead of looking at
2116         TREE_OVERFLOW check if the constant fits in the index type.
2117
2118 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2119
2120         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2121         (vec_store_lanes<mode><mode>): Likewise.
2122
2123 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2124
2125         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2126         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2127         convert_optab_index values.
2128         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2129         * genopinit.c (optabs): Initialize the new optabs.
2130         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2131         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2132         (expand_STORE_LANES): New functions.
2133         * tree.h (build_array_type_nelts): Declare.
2134         * tree.c (build_array_type_nelts): New function.
2135         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2136         (vect_model_load_cost): Likewise.
2137         (vect_store_lanes_supported, vect_load_lanes_supported)
2138         (vect_record_strided_load_vectors): Declare.
2139         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2140         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2141         (vect_transform_strided_load): Split out statement recording into...
2142         (vect_record_strided_load_vectors): ...this new function.
2143         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2144         (write_vector_array, create_array_ref): New functions.
2145         (vect_model_store_cost): Add store_lanes_p argument.
2146         (vect_model_load_cost): Add load_lanes_p argument.
2147         (vectorizable_store): Try to use store-lanes functions for
2148         interleaved stores.
2149         (vectorizable_load): Likewise load-lanes and loads.
2150         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2151         to vect_model_store_cost.
2152         (vect_build_slp_tree): Likewise vect_model_load_cost.
2153
2154 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2155
2156         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2157         * hooks.c (hook_bool_mode_uhwi_false): New function.
2158         * target.def (array_mode_supported_p): New hook.
2159         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2160         * doc/tm.texi: Regenerate.
2161         * stor-layout.c (mode_for_array): New function.
2162         (layout_type): Use it.
2163         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2164         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2165
2166 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2167
2168         PR target/48723
2169         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2170         for -fstack-check if the size to allocate is negative.
2171
2172 2011-05-02  Lawrence Crowl  <crowl@google.com>
2173
2174         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2175         (timevar_cond_start): New for starting a timer only when it is not
2176         already running.
2177         (timevar_cond_stop): New for stopping a timer when it was not already
2178         running.
2179
2180         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2181         (timevar_cond_start): New as above.
2182         (timevar_cond_stop): New as above.
2183
2184         * timevar.def: Add start/stop timers for compiler phases,
2185         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2186         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2187         and TV_PHASE_FINALIZE.
2188         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2189         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2190         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2191         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2192         Make unused TV_OVERLOAD into a start/stop timer.
2193
2194         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2195         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2196         to indicate that they are start/stop timers.
2197
2198         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2199         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2200         Move initialization to do_compile.
2201         (do_compile): Add initialization from above.
2202         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2203
2204         * c-decl.c (c_write_global_declarations): Add start/stop of
2205         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2206
2207         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2208         or TV_PARSE_INLINE, as appropriate.
2209         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2210         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2211
2212 2011-05-02  Jason Merrill  <jason@redhat.com>
2213
2214         PR c++/40975
2215         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2216
2217 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2218
2219         PR c/35445
2220         * c-decl.c (finish_decl): Only create a composite if the types are
2221         compatible.
2222
2223 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2224
2225         * config/fr30/fr30-protos.h (Mmode): Don't define.
2226         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2227         definition where used.
2228         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2229         define.  Expand definitions where used.
2230         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2231         Expand definitions where used.
2232         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2233         rx_function_arg, rx_function_arg_advance,
2234         rx_function_arg_boundary): Expand definitions of those macros.
2235         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2236         definition where used.
2237
2238 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2239
2240         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2241         reg<->xmm moves.
2242         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2243         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2244         with *movv2sf_internal_rex64_avx.
2245         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2246         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2247         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2248         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2249         "vex" in "prefix" attribute calculation.
2250         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2251
2252 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2253
2254         PR target/47951
2255         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2256         inputs match the output.
2257
2258 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2259
2260         PR target/47955
2261         * config/m68k/m68k.c (m68k_expand_prologue): Set
2262         current_function_static_stack_size.
2263
2264 2011-05-02   Jan Hubicka  <jh@suse.cz>
2265
2266         * lto-streamer.c (lto_streamer_cache_insert_1,
2267         lto_streamer_cache_lookup, lto_streamer_cache_create,
2268         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2269         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2270
2271 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2272
2273         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2274         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2275         config/m68k/t-opts: New files.
2276         * config/m68k/m68k-tables.opt: New file (generated).
2277         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2278         extra_options and m68k/t-opts to tmake_file.
2279         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2280         (all_isas): Initialize using m68k-isas.def.
2281         (all_microarchs): Initialize using m68k-microarchs.def.
2282         (m68k_find_selection): Remove.
2283         (m68k_handle_option): Don't assert that global structures are in
2284         use.  Use error_at.  Access variables via opts pointer.  Don't
2285         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2286         directly for -m68020-40 and -m68020-60.
2287         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2288         m68k_tune_entry here.
2289         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2290         to m68k-opts.h.
2291         (m68k_library_id_string): Remove declaration.
2292         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2293         (m68k_library_id_string): New Variable.
2294         (march=, mcpu=, mtune=): Use Enum and Var.
2295
2296 2011-05-02  Richard Guenther  <rguenther@suse.de>
2297
2298         * varasm.c (output_constructor_regular_field): Compute zero-based
2299         index with double-ints.  Make sure to ICE instead of producing
2300         wrong code.
2301         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2302         in asserts.  Properly use a signed type.
2303
2304 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2305
2306         * config/i386/sse.md (V): New mode iterator.
2307         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2308         TARGET_SSE2.
2309         (V_256): Rename from AVX256MODE.
2310         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2311         condition to all users.
2312         (VF1): Ditto.
2313         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2314         condition to all users.
2315         (VF_128): Make V4SF mode unconditional.
2316         (VF_256): Rename from AVX256MODEF2P.
2317         (VI4F_128): Rename from SSEMODE4S.
2318         (VI8F_128): Rename from SSEMODE2D.
2319         (VI4F_256): Rename from AVX256MODE8P.
2320         (VI8F_256): Rename from AVX256MODE4P.
2321         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2322         (ssescalarmodesuffix): Remove SF and DF modes.
2323         (SSEMODE124): Remove.
2324         (SSEMODE1248): Ditto.
2325         (SSEMODEF2P): Ditto.
2326         (AVXMODEF2P): Ditto.
2327         (AVXMODEFDP): Ditto.
2328         (AVXMODEFSP): Ditto.
2329         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2330         unconditional.
2331         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2332         unconditional.
2333         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2334         xop_pcmov_<mode>256.  Use V mode iterator.
2335
2336         Adjust RTX patterns globally for renamed mode attributes.
2337
2338 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2339
2340         * haifa-sched.c (sched_emit_insn): Emit insn before first
2341         non-scheduled insn.  Inform back-end about new insn.  Add
2342         new insn to scheduled_insns list.
2343
2344 2011-05-02  Richard Guenther  <rguenther@suse.de>
2345
2346         PR tree-optimization/48822
2347         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2348         (process_scc): Indicate which iteration we start.
2349
2350 2011-05-02  Jan Hubicka  <jh@suse.cz>
2351
2352         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2353         (lto_section_overrun): New.
2354         * lto-section-out.c (append_block): Rename to ...
2355         (lto_append_block): ... this one; export.
2356         (lto_output_1_stream): Move lto lto-streamer.h
2357         (lto_output_data_stream): Update.
2358         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2359         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2360         functions.
2361
2362 2011-05-02  Richard Guenther  <rguenther@suse.de>
2363
2364         * tree.c (tree_code_counts): New global array.
2365         (record_node_allocation_statistics): Count individual tree codes.
2366         (dump_tree_statistics): Dump individual code stats.
2367
2368 2011-05-01  Jan Hubicka  <jh@suse.cz>
2369
2370         * ipa-inline.c (caller_growth_limits): Fix thinko when
2371         looking for largest stack frame.
2372         * ipa-inline.h (dump_inline_summary): Declare.
2373         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2374         on stack usage.
2375         (dump_inline_summary): Export.
2376         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2377
2378 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2379
2380         * reginfo.c (memory_move_cost): Change rclass argument type form
2381         'enum reg_class' to reg_class_t.
2382         * reload.h (memory_move_cost): Update prototype.
2383         * postreload.c reload_cse_simplify_set): Change type dclass var to
2384         reg_class_t.
2385         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2386         Update prototype.
2387         (ira_allocate_and_set_costs): Change aclass argument type form
2388         'enum reg_class' to reg_class_t.
2389         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2390         Change aclass argument type to reg_class_t.
2391         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2392         to reg_class_t.
2393         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2394         memory_move_cost call.
2395
2396         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2397         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2398         Change type tmp var to reg_class_t.
2399
2400 2011-04-30  Jan Hubicka  <jh@suse.cz>
2401
2402         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2403         inlining into function with flatten attribute.
2404         (want_inline_small_function_p): Be more realistic about inlining
2405         cold calls where callee size grows.
2406
2407 2011-04-30  Jan Hubicka  <jh@suse.cz>
2408
2409         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2410         flags.
2411
2412 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2413
2414         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2415         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2416         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2417         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2418         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2419         (print_operand): Rename to...
2420         (sparc_print_operand): ...this. Make static. Adjust
2421         sparc_print_operand function call.
2422         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2423         functions.
2424
2425 2011-04-30  Jan Hubicka  <jh@suse.cz>
2426
2427         PR middle-end/48752
2428         * ipa-inline.c (early_inliner): Disable when doing late
2429         addition of function.
2430
2431 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2432
2433         * dwarf2out.c (get_address_mode): New inline.
2434         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2435         if not dwarf_strict emit
2436         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2437         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2438         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2439         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2440         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2441         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2442         mem_loc_descriptor callers.
2443         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2444         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2445         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2446         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2447         (base_types): New variable.
2448         (get_base_type_offset, calc_base_type_die_sizes,
2449         base_type_for_mode, mark_base_types, base_type_cmp,
2450         move_marked_base_types): New functions.
2451         (calc_die_sizes): Assert that die_offset is 0 or equal to
2452         next_die_offset.
2453         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2454         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2455         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2456         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2457         (gen_subprogram_die): Don't give up on call site parameters
2458         with non-integral or large integral modes.  Adjust
2459         mem_loc_descriptor callers.
2460         (prune_unused_types): Call prune_unused_types_mark on base_types
2461         vector entries.
2462         (resolve_addr): Call mark_base_types.
2463         (dwarf2out_finish): Call move_marked_base_types.
2464
2465         PR tree-optimization/48809
2466         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2467         type.
2468         (gen_inbound_check): Don't compute index_expr - range_min in utype
2469         again, instead reuse SSA_NAME initialized in build_arrays.
2470         Remove two useless gsi_for_stmt calls.
2471
2472 2011-04-29  Jeff Law  <law@redhat.com>
2473
2474         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2475
2476 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2477
2478         * cgraph.h (cgraph_postorder): Remove declaration.
2479         * ipa-utils.h (ipa_free_postorder_info): Declare.
2480         (ipa_reverse_postorder): Likewise.
2481         * cgraphunit.c: Include ipa-utils.h.
2482         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2483         * ipa-inline.c: Include ipa-utils.h.
2484         (ipa_inline): Update call to ipa_reverse_postorder.
2485         * ipa-pure-const.c (propagate_pure_const): Update call to
2486         ipa_reduced_postorder and ipa_print_order.  Call
2487         ipa_free_postorder_info to clean up.
2488         (propagate_nothrow): Likewise.
2489         * ipa-reference.c (propagate): Removed a useless call to
2490         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2491         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2492         * ipa.c: Include ipa-utils.h.
2493         (ipa_profile): Update call to ipa_reverse_postorder.
2494         (cgraph_postorder): Moved to...
2495         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2496         (ipa_utils_print_order): Renamed to ipa_print_order.
2497         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2498         comments.
2499         (ipa_free_postorder_info): New function.
2500         * passes.c: Include ipa-utils.h.
2501         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2502         (ipa_write_summaries): Likewise.
2503         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2504         (cgraphunit.o): Likewise.
2505         (ipa.o): Likewise.
2506         (ipa-inline.o): Likewise.
2507
2508 2011-04-29  Jan Hubicka  <jh@suse.cz>
2509
2510         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2511         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2512         * ipa-inline.h (clause_t): Turn into unsigned int.
2513         * ipa-inline-analysis.c (add_clause): Do more simplification.
2514         (and_predicates): Shortcut more cases.
2515         (predicates_equal_p): Move forward; check that clauses are properly
2516         ordered.
2517         (or_predicates): Shortcut more cases.
2518         (edge_execution_predicate): Rewrite as...
2519         (set_cond_stmt_execution_predicate): ... this function; handle
2520         __builtin_constant_p.
2521         (set_switch_stmt_execution_predicate): New .
2522         (compute_bb_predicates): New.
2523         (will_be_nonconstant_predicate): Update TODO.
2524         (estimate_function_body_sizes): Use compute_bb_predicates
2525         and free them later, always try to estimate if stmt is constant.
2526         (estimate_time_after_inlining, estimate_size_after_inlining):
2527         Gracefully handle optimized out edges.
2528         (read_predicate): Fix off by one error.
2529
2530 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2531
2532         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2533
2534 2011-04-27  Xinliang David Li  <davidxl@google.com>
2535
2536         * tree-profile.c (init_ic_make_global_vars): Set
2537         tls attribute on ic vars.
2538         * coverage.c (coverage_end_function): Initialize
2539         function_list with zero.
2540
2541 2011-04-29  Richard Guenther  <rguenther@suse.de>
2542
2543         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2544         for the type of the result.
2545         (fold_builtin_isascii): Likewise.
2546         (fold_builtin_toascii): Use integer_type_node where appropriate.
2547         (fold_builtin_logb): Likewise.
2548         (fold_builtin_frexp): Likewise.
2549         (fold_builtin_strstr): Likewise.
2550         (fold_builtin_strpbrk): Likewise.
2551         (fold_builtin_fputs): Likewise.
2552         (fold_builtin_sprintf): Likewise.
2553         (fold_builtin_snprintf): Likewise.
2554         (fold_builtin_printf): Likewise.
2555         (do_mpfr_remquo): Use a proper type for the assigned constant.
2556         (do_mpfr_lgamma_r): Likewise.
2557         * dwarf2out.c (resolve_one_addr): Use size_int.
2558         * except.c (init_eh): Likewise.
2559         (assign_filter_values): Use integer_type_node for filter values.
2560         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2561         indices.
2562         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2563         for EH region numbers.
2564         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2565         for the shift amount.
2566
2567 2011-04-29  Richard Guenther  <rguenther@suse.de>
2568
2569         * expr.h (expand_shift): Rename to ...
2570         (expand_variable_shift): ... this.
2571         (expand_shift): Take a constant shift amount.
2572         * expmed.c (expand_shift): Rename to ...
2573         (expand_variable_shift): ... this.
2574         (expand_shift): New wrapper around expand_variable_shift.
2575         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2576         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2577         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2578         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2579         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2580         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2581         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2582         emit_store_flag_1, emit_store_flag): Likewise.
2583         * builtins.c (expand_builtin_signbit): Likewise.
2584         * calls.c (load_register_parameters): Likewise.
2585         * function.c (assign_parm_setup_block): Likewise.
2586         * lower-subreg.c (resolve_shift_zext): Likewise.
2587         * optabs.c (widen_bswap, expand_abs_nojump,
2588         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2589         * spu/spu.c (spu_expand_extv): Likewise.
2590         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2591
2592 2011-04-29  Richard Guenther  <rguenther@suse.de>
2593
2594         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2595         for the remapped region number.
2596         * predict.c (build_predict_expr): Use integer_type_node for the
2597         predict kind.
2598         * fold-const.c (fold_binary_loc): Use integer_type_node for
2599         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2600
2601 2011-04-29  Michael Matz  <matz@suse.de>
2602
2603         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2604         other trees that just builtins.
2605         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2606
2607 2011-04-29  Richard Guenther  <rguenther@suse.de>
2608
2609         * tree-nested.c (get_trampoline_type): Use size_int.
2610         (get_nl_goto_field): Likewise.
2611         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2612         for all indexes.
2613         (lower_eh_constructs_2): Likewise.
2614         (lower_resx): Likewise.
2615         (lower_eh_dispatch): Likewise.
2616         * tree-mudflap.c (mf_build_string): Use size_int.
2617         (mudflap_register_call): Use integer_type_node for the flag.
2618         (mudflap_enqueue_constant): Use size_int.
2619         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2620         instead of rebuilding it.
2621
2622 2011-04-29  Richard Guenther  <rguenther@suse.de>
2623
2624         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2625         Handle OBJ_TYPE_REF.
2626         (find_func_aliases_for_call): Use it more consistently.
2627
2628 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2629
2630         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2631         (rank_for_schedule): Use it.
2632         (schedule_block): Set it.
2633
2634 2011-04-28  David Li  <davidxl@google.com>
2635
2636         * tree.c (crc32_string): Use crc32_byte.
2637         (crc32_byte): New function.
2638         * tree.h (crc32_byte): New function.
2639         * gcov.c (read_graph_file): Handle new cfg_cksum.
2640         (read_count_file): Ditto.
2641         * profile.c (instrument_values): Ditto.
2642         (get_exec_counts): Ditto.
2643         (read_profile_edge_counts): Ditto.
2644         (compute_branch_probabilities): Ditto.
2645         (compute_value_histograms): Ditto.
2646         (branch_prob): Ditto.
2647         (end_branch_prob): Ditto.
2648         * coverage.c (read_counts_file): Ditto.
2649         (get_coverage_counts): Ditto.
2650         (tree_coverage_counter_addr): Ditto.
2651         (coverage_checksum_string): Ditto.
2652         (coverage_begin_output): Ditto.
2653         (coverage_end_function): Ditto.
2654         (build_fn_info_type): Ditto.
2655         (build_fn_info_value): Ditto.
2656         * libgcov.c (gcov_exit): Ditto.
2657         * gcov-dump.c (tag_function): Ditto.
2658         (compute_checksum): Remove.
2659
2660 2011-04-29  Alan Modra  <amodra@gmail.com>
2661
2662         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2663         unspec plus offset.  Tidy macho code.
2664
2665 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2666
2667         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2668         node instead of a decl.  Update all callers.
2669         * cgraph.h: Update declaration.
2670
2671 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2672
2673         PR tree-optimization/48765
2674         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2675         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2676         to indicate if loop aware SLP is being used.  Scan the statements
2677         and update the vectorization factor according to the type of
2678         vectorization before statement analysis.
2679         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2680         pass it to vect_analyze_loop_operations.
2681         (vectorizable_reduction): Set number of copies to 1 in case of pure
2682         SLP statement.
2683         * tree-vect-stmts.c (vectorizable_conversion,
2684         vectorizable_assignment, vectorizable_shift,
2685         vectorizable_operation, vectorizable_type_demotion,
2686         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2687         Likewise.
2688         (vectorizable_condition): Move the check that it is not SLP
2689         vectorization before the number of copies check.
2690         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2691         to vectorize the loop using SLP.
2692
2693 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2694
2695         PR middle-end/48597
2696         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2697         inline asm.
2698
2699 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2700
2701         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2702         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2703         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2704         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2705         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2706         linux*.h headers.
2707         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2708         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2709         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2710         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2711         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2712         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2713         REG_NAME.
2714         * config/i386/linux.h (REG_NAME): Don't define.
2715         * config/i386/linux64.h (REG_NAME): Don't define.
2716         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2717         Undefine before defining.
2718
2719 2011-04-28  Jan Hubicka  <jh@suse.cz>
2720
2721         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2722         nonconstant_names array.
2723         (estimate_function_body_sizes): Build nonconstant_names array; handle
2724         BUILT_IN_CONSTANT_P.
2725
2726 2011-04-28  Richard Guenther  <rguenther@suse.de>
2727
2728         PR bootstrap/48804
2729         Revert
2730         2011-04-28  Richard Guenther  <rguenther@suse.de>
2731
2732         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2733         as late as possible.
2734
2735 2011-04-28  Richard Guenther  <rguenther@suse.de>
2736
2737         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2738         (debug_constraint): Do it here.
2739         (dump_constraints): And here.
2740         (rewrite_constraints): And here.
2741         (dump_constraint_edge): Remove.
2742         (dump_constraint_graph): Rewrite to produce DOT output.
2743         (solve_constraints): Build succ graph as late as possible.
2744         Dump constraint graphs before and after solving.
2745
2746 2011-04-28  Richard Guenther  <rguenther@suse.de>
2747
2748         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2749         New function split out from ...
2750         (find_func_aliases): ... here.  Call it.
2751         (find_func_aliases_for_call): Likewise.
2752
2753 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2754
2755         * internal-fn.h (internal_fn_name_array): Declare.
2756         (internal_fn_flags_array): Likewise.
2757
2758 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2759
2760         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2761         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2762         Move from sse.md.
2763         (ssemodefsuffix): Remove.
2764         (ssevecmodesuffix): New mode attribute.
2765         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2766         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2767         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2768         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2769         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2770         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2771         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2772         ssemodesuffix mode attribute.
2773         (float splitters): Use ssevecmodesuffix mode attribute.
2774         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2775         (sseinsmode): Rename from avxvecmode.
2776         (avxsizesuffix): Rename from avxmodesuffix.
2777         (sseintvecmode): Rename from avxpermvecmode.
2778         (ssedoublevecmode): Rename from ssedoublesizemode.
2779         (ssehalfvecmode): Rename from avxhalfvecmode.
2780         (ssescalarmode): Rename from avxscalarmode.
2781         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2782         templates for ssemodesuffix mode attribute.
2783         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2784         mode attribute.
2785
2786         Adjust RTX patterns globally for renamed mode attributes.
2787
2788 2011-04-27  Jan Hubcika  <jh@suse.cz>
2789
2790         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2791         * ipa-inline-analysis.c: Include alloc-pool.h.
2792         (edge_predicate_pool): New.
2793         (trye_predicate_p): New function
2794         (false_predicate_p): New function.
2795         (add_clause): Sanity check that false clauses are "optimized";
2796         never add clauses to predicate that is already known to be false.
2797         (and_predicate): Use flase_predicate_p.
2798         (evaulate_predicate): Rename to ...
2799         (evaluate_predicate): ... this one; update all callers; assert
2800         that false is not listed among possible truths.
2801         (dump_predicate): Use true_predicate_p.
2802         (account_size_time): Use false_predicate_p.
2803         (evaulate_conditions_for_edge): Rename to ...
2804         (evaluate_conditions_for_edge) ... this one.
2805         (edge_set_predicate): New function.
2806         (inline_edge_duplication_hook): Duplicate edge predicates.
2807         (inline_edge_removal_hook): Free edge predicates.
2808         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2809         (dump_inline_summary): Update.
2810         (estimate_function_body_sizes): Set edge predicates.
2811         (estimate_calls_size_and_time): Handle predicates.
2812         (estimate_callee_size_and_time): Update.
2813         (remap_predicate): Add toplev_predicate; update comment.
2814         (remap_edge_predicates): New function.
2815         (inline_merge_summary): Compute toplev predicate; update.
2816         (read_predicate): New function.
2817         (read_inline_edge_summary): Use it.
2818         (inline_read_section): Likewise.
2819         (write_predicate): New function.
2820         (write_inline_edge_summary): Use it.
2821         (inline_write_summary): Likewise.
2822         (inline_free_summary): Free alloc pool and edge summary vec.
2823
2824 2011-04-27  Richard Guenther  <rguenther@suse.de>
2825
2826         * tree-ssa-structalias.c (changed_count): Remove.
2827         (changed): Use a bitmap.
2828         (unify_nodes): Adjust.
2829         (do_sd_constraint): Likewise.
2830         (do_ds_constraint): Likewise.
2831         (do_complex_constraint): Likewise.
2832         (solve_graph): Likewise.
2833
2834 2011-04-27  Jan Hubicka  <jh@suse.cz>
2835
2836         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2837
2838 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2839
2840         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2841         (avx_vperm2f128_*_operand): Ditto.
2842         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2843         Use avx_vpermilp_parallel in insn condition.
2844         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2845         Use avx_vperm2f128_parallel in insn condition.
2846
2847 2011-04-27  Richard Guenther  <rguenther@suse.de>
2848
2849         * Makefile.in (tree-ssa-structalias.o): Remove
2850         gt-tree-ssa-structalias.h dependency.
2851         (GTFILES): Remove tree-ssa-structalias.c.
2852         * tree.c (allocate_decl_uid): New function.
2853         (make_node_stat): Use it.
2854         (copy_node_stat): Likewise.
2855         * tree.h (allocate_decl_uid): Declare.
2856         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2857         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2858         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2859         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2860         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2861         (struct heapvar_map): Likewise.
2862         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2863         heapvar_insert): Likewise.
2864         (make_heapvar_for): Rename to ...
2865         (make_heapvar): ... this.  Simplify.
2866         (fake_var_decl_obstack): New global var.
2867         (build_fake_var_decl): New function.
2868         (make_constraint_from_heapvar): Adjust.
2869         (handle_lhs_call): Likewise.
2870         (create_function_info_for): Likewise.
2871         (intra_create_variable_infos): Likewise.
2872         (init_alias_vars): Allocate fake_var_decl_obstack.
2873         (init_alias_heapvars, delete_alias_heapvars): Remove.
2874         (compute_points_to_sets): Do not call init_alias_heapvars.
2875         (ipa_pta_execute): Likewise.
2876         (delete_points_to_sets): Free fake_var_decl_obstack.
2877
2878 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2879
2880         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2881         (si_from_UTItype, si_to_UTItype): New functions.
2882         (__udivmodti4): Use them to implement type-punning.
2883         * config/spu/multi3.c (union qword_TItype): New data type.
2884         (si_from_TItype, si_to_TItype): New functions.
2885         (__multi3): Use them to implement type-punning.
2886
2887 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2888
2889         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2890
2891 2011-04-27  Jan Hubicka  <jh@suse.cz>
2892
2893         * ipa-prop.c (function_insertion_hook_holder): New holder.
2894         (ipa_add_new_function): New function.
2895         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2896         Register/deregister holder.
2897
2898 2011-04-27  Richard Guenther  <rguenther@suse.de>
2899
2900         PR tree-optimization/48772
2901         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2902
2903 2011-04-27  Richard Guenther  <rguenther@suse.de>
2904
2905         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2906         TARGET_MEM_REF handling.
2907
2908 2011-04-27  Nick Clifton  <nickc@redhat.com>
2909
2910         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2911         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2912         (REG_CLASS_NAMES): Likewise.
2913         (REG_CLASS_CONTENTS): Likewise.
2914         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2915         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2916         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2917         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2918         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2919         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2920         duplicate register classes.
2921         (frv_class_likely_spilled_p): Likewise.
2922         (frv_register_move_cost): Likewise.
2923
2924         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2925         end of the regno_reg_class array.
2926
2927 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2928
2929         PR c/48742
2930         * c-typeck.c (build_binary_op): Don't wrap arguments if
2931         int_operands is true.
2932
2933 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2934
2935         PR target/48767
2936         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2937         targetm.calls.must_pass_in_stack for void type.
2938
2939 2011-04-26  Jan Hubicka  <jh@suse.cz>
2940
2941         * cgraphbuild.c (build_cgraph_edges): Update call
2942         of cgraph_create_edge and cgraph_create_indirect_edge.
2943         * cgraph.c (cgraph_create_edge_including_clones,
2944         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2945         cgraph_update_edges_for_call_stmt_node): Do not take nest
2946         argument; do not initialize call_stmt_size/time.
2947         (dump_cgraph_node): Do not dump nest.
2948         (cgraph_clone_edge): Do not take loop_nest argument;
2949         do not propagate it; do not clone call_stmt_size/time.
2950         (cgraph_clone_node): Likewise.
2951         (cgraph_create_virtual_clone): Update.
2952         * cgraph.h (struct cgraph_edge): Remove
2953         call_stmt_size/call_stmt_time/loop_nest.
2954         (cgraph_create_edge, cgraph_create_indirect_edge,
2955         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2956         prototype.
2957         * tree-emutls.c (gen_emutls_addr): Update.
2958         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2959         loop_nest; handle indirect calls, too.
2960         (clone_inlined_nodes): Do not care about updating inline summaries.
2961         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2962         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2963         stream call_stmt_size/call_stmt_time/loop_nest.
2964         * ipa-inline.c (edge_badness): Update.
2965         (ipa_inline): dump summaries after inlining.
2966         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2967         New.
2968         (inline_edge_summary): New function.
2969         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2970         (inline_edge_removal_hook): Handle edge summaries.
2971         (inline_edge_duplication_hook): New hook.
2972         (inline_summary_alloc): Alloc hooks.
2973         (initialize_growth_caches): Do not register removal hooks.
2974         (free_growth_caches); Do not free removal hook.
2975         (dump_inline_edge_summary): New function.
2976         (dump_inline_summary): Use it.
2977         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2978         (inline_update_callee_summaries): New function.
2979         (inline_merge_summary): Use it.
2980         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2981         (read_inline_edge_summary): New function.
2982         (inline_read_section): Use it.
2983         (write_inline_edge_summary): New function.
2984         (inline_write_summary): Use it.
2985         (inline_free_summary): Free edge new holders.
2986         * tree-inline.c (copy_bb): Update.
2987
2988 2011-04-26  Jason Merrill  <jason@redhat.com>
2989
2990         * tree-eh.c (lower_try_finally_switch): Create the label along with
2991         the CASE_LABEL_EXPR.
2992
2993 2011-04-26  David S. Miller  <davem@davemloft.net>
2994             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2995
2996         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2997         * configure: Regenerate.
2998
2999 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3000
3001         PR target/48258
3002         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3003         reduction.
3004         (VEC_reduc): New code iterator and splitters for vector reduction.
3005         (VEC_reduc_name): Ditto.
3006         (VEC_reduc_rtx): Ditto.
3007         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3008         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3009
3010         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3011         support for extracting SF on VSX.
3012
3013         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3014         generating xscvspdp.
3015         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3016         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3017         double add, minimum, maximum vector reduction.
3018         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3019         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3020         optimize double vector reduction.
3021         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3022
3023 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3024
3025         * config/fr30/fr30.h (inhibit_libc): Don't define.
3026         * config/m32r/m32r-protos.h: Correct comment.
3027         * config/v850/v850.h (GHS_default_section_names,
3028         GHS_current_section_names): Use tree, not union tree_node *.
3029
3030 2011-04-26  Xinliang David Li  <davidxl@google.com>
3031
3032         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3033         * c-family/c-opts.c (c_common_handle_option): Set
3034         warn_maybe_uninitialized.
3035         * opts.c (common_handle_option): Ditto.
3036         * common.opt:  New option.
3037         * tree-ssa.c (warn_uninit): Add one more parameter.
3038         (warn_uninitialized_var): Pass warning code.
3039         * tree-flow.h: Interface change.
3040
3041
3042 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3043
3044         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3045         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3046         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3047
3048 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3049
3050         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3051         * config/mips/mips.opt (mmips-tfile): Remove.
3052
3053         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3054         mips-tdump reference to ...
3055         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3056         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3057         reference by Tru64 UNIX.
3058
3059 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3060
3061         PR debug/48768
3062         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3063         is error_mark_node, set value to NULL.
3064
3065         PR tree-optimization/48734
3066         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3067         if return value from maybe_fold_*_comparsions isn't something
3068         the code is prepared to handle.
3069
3070 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3071
3072         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3073         mode check.
3074         (ext_QIreg_nomode_operands): Remove.
3075         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3076         (*andsi_1): Ditto.
3077         (*andhi_1): Ditto.
3078
3079 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3080
3081         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3082
3083 2011-04-26  Richard Guenther  <rguenther@suse.de>
3084
3085         * c-typeck.c (build_unary_op): Do not expand array-refs via
3086         pointer arithmetic.  Only adjust qualifiers for function types.
3087
3088 2011-04-26  Richard Guenther  <rguenther@suse.de>
3089
3090         PR middle-end/48694
3091         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3092         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3093         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3094         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3095
3096 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3097
3098         * doc/extend.texi: Document __underlying_type.
3099
3100 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3101
3102         * config/rs6000/titan.md (automata_option "progress"): Remove.
3103
3104 2011-04-25  Jeff Law  <law@redhat.com>
3105
3106         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3107
3108 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3109
3110         * system.h (ENUM_BITFIELD): Remove.
3111
3112 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3113             Eric Botcazou  <ebotcazou@adacore.com>
3114
3115         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3116         for STORE_FLAG_VALUE==-1 case.
3117
3118 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3119
3120         PR target/43804
3121         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3122         LEGITIMATE_PIC_OPERAND_P.
3123
3124 2011-04-24  Jan Hubicka  <jh@suse.cz>
3125
3126         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3127         WPA hack.
3128         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3129         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3130         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3131         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3132         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3133         Sanity check predicate length.
3134         (remap_predicate): Likewise; sanity check jump functions.
3135         (inline_read_section, inline_write_summary): Sanity check
3136         predicate length.
3137
3138 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3139
3140         PR other/48748
3141         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3142         __is_literal_type, and __is_trivial; update throughout about
3143         possibly cv-qualified void types.
3144
3145 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3146
3147         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3148         testsuite and make it version agnostic.
3149
3150 2011-04-22  Jan Hubicka  <jh@suse.cz>
3151
3152         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3153
3154 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3155
3156         PR c/48685
3157         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3158         to VOID_TYPE even around MODIFY_EXPR.
3159
3160 2011-04-22  Mike Stump  <mikestump@comcast.net>
3161
3162         * gensupport.c (read_md_rtx): Fix typo in comment.
3163         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3164         comment.
3165
3166 2011-04-22  Jan Hubicka  <jh@suse.cz>
3167
3168         * gengtype.c (open_base_files): Add ipa-inline.h include.
3169         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3170         ipa-prop.c; update all uses.
3171         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3172         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3173         merge summary of inlined function into former caller.
3174         * ipa-inline.c (max_benefit): Remove.
3175         (edge_badness): Compensate for removal of benefits.
3176         (update_caller_keys): Use
3177         reset_node_growth_cache/reset_edge_growth_cache.
3178         (update_callee_keys): Likewise.
3179         (update_all_callee_keys): Likewise.
3180         (inline_small_functions): Do not collect max_benefit; do not reset
3181         estimated_growth; call free_growth_caches and initialize_growth_caches.
3182         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3183         struct size_time_entry): New structures.
3184         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3185         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3186         and estimated_growth.
3187         (edge_growth_cache_entry): New structure.
3188         (node_growth_cache, edge_growth_cache): New global vars.
3189         (estimate_growth): Turn into inline.
3190         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3191         initialize_growth_caches, free_growth_caches): Declare.
3192         (estimate_edge_growth): Rewrite.
3193         (estimate_edge_time): Implement as inline cache lookup.
3194         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3195         functions.
3196         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3197         (NUM_CONDITIONS): New constant.
3198         (predicate_conditions): New enum.
3199         (IS_NOT_CONSTANT): New constant.
3200         (edge_removal_hook_holder): New var.
3201         (node_growth_cache, edge_growth_cache): New global vars.
3202         (true_predicate, single_cond_predicate, false_predicate,
3203         not_inlined_predicate, add_condition, add_clause, and_predicates,
3204         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3205         dump_clause, dump_predicate, account_size_time,
3206         evaulate_conditions_for_edge): New functions.
3207         (inline_summary_alloc): Move to heap.
3208         (inline_node_removal_hook): Clear condition and entry vectors.
3209         (inline_edge_removal_hook): New function.
3210         (initialize_growth_caches, free_growth_caches): New function.
3211         (dump_inline_summary): Update.
3212         (edge_execution_predicate): New function.
3213         (will_be_nonconstant_predicate): New function.
3214         (estimate_function_body_sizes): Compute BB and constantness predicates.
3215         (compute_inline_parameters): Do not clear estimated_growth.
3216         (estimate_edge_size_and_time): New function.
3217         (estimate_calls_size_and_time): New function.
3218         (estimate_callee_size_and_time): New function.
3219         (remap_predicate): New function.
3220         (inline_merge_summary): New function.
3221         (do_estimate_edge_time): New function based on...
3222         (estimate_edge_time): ... this one.
3223         (do_estimate_edge_growth): New function.
3224         (do_estimate_growth): New function based on....
3225         (estimate_growth): ... this one.
3226         (inline_analyze_function): Analyze after deciding on jump functions.
3227         (inline_read_section): New function.
3228         (inline_read_summary): Use it.
3229         (inline_write_summary): Write all the new data.
3230         * ipa-prop.c (ipa_get_param_decl_index): Export.
3231         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3232         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3233         Declare.
3234         (ipa_get_lattice): Move here from ipa-cp.c
3235         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3236         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3237         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3238         cgraph_edge_inlinable_p): Remove.
3239         * cgraphunit.c: Include ipainline.h
3240         (cgraph_process_new_functions): Update call of
3241         compute_inline_parameters.
3242
3243 2011-04-22  Richard Guenther  <rguenther@suse.de>
3244
3245         * tree.c (build_int_cst): Properly create canonicalized integer
3246         constants.
3247         (build_int_cst_type): Remove scary comments.
3248
3249 2011-04-22  Xinliang David Li  <davidxl@google.com>
3250
3251         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3252         by default when -Wno-error is not specified.
3253         * opts-global.c (decode_options): Remove call to
3254         control_warning_options.
3255
3256 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3257
3258         PR tree-optimization/48717
3259         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3260         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3261
3262 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3263
3264         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3265         definition where used.
3266
3267 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3268
3269         PR c/48716
3270         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3271         TREE_STATIC variables declared inside of some OpenMP construct.
3272
3273 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3274
3275         PR middle-end/48585
3276         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3277
3278 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3279
3280         PR c/36750
3281         * c-typeck.c (pop_init_level): Do not warn about initializing
3282         with ` = {0}'.
3283
3284 2011-04-22  Alan Modra  <amodra@gmail.com>
3285
3286         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3287         when returning call_cookie.
3288         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3289         pointers, to functions with no more vector args than the current
3290         function, and some non-local calls for ABI_V4.
3291         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3292         sibcall_nonlocal_aix64): Combine to ..
3293         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3294         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3295         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3296         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3297         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3298         operand.
3299         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3300         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3301         sibcall_value_symbolic_64): Delete.
3302
3303 2011-04-21  Xinliang David Li  <davidxl@google.com>
3304
3305         * cgraph.h: Remove pid.
3306         * cgraph.c: Remove pid.
3307         * value-prof.c (init_node_map): New function.
3308         (del_node_map): New function.
3309         (find_func_by_funcdef_no): New function.
3310         (gimple_ic_transform): Call new function.
3311         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3312         * function.c (get_last_funcdef_no): New function.
3313         * function.h (get_last_funcdef_no): New function.
3314         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3315         to libgcov function.
3316         (tree-profiling): Call node map init and delete function.
3317
3318 2011-04-21  Ian Lance Taylor  <iant@google.com>
3319
3320         * godump.c (go_format_type): Use exported Go name for anonymous
3321         field name.
3322
3323 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3324
3325         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3326         Call builtin_function_type_list instead of builtin_function_type.
3327         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3328
3329 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3330
3331         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3332         build_function_type_list instead of build_function_type.
3333         Delete variable `endlink'.
3334
3335 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3336
3337         * config/s390/s390.c (s390_init_builtins): Call
3338         build_function_type_list instead of build_function_type.
3339
3340 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3341
3342         * config/ia64/ia64.c (ia64_init_builtins): Call
3343         build_function_type_list instead of builtin_function_type.
3344
3345 2011-04-21  Easwaran Raman  <eraman@google.com>
3346
3347         * cfgexpand.c (stack_var): Remove OFFSET...
3348         (add_stack_var): ...and its reference here...
3349         (expand_stack_vars): ...and here.
3350         (stack_var_cmp): Sort by descending order of size.
3351         (partition_stack_vars): Change heuristic.
3352         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3353         (dump_stack_var_partition): Add newline after each partition.
3354
3355 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3356             Jeff Law  <law@redhat.com>
3357
3358         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3359         * gengtype.c (matching_file_name_substitute): Likewise.
3360
3361 2011-04-21  Richard Guenther  <rguenther@suse.de>
3362
3363         PR lto/48703
3364         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3365
3366 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3367
3368         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3369
3370 2011-04-21  Richard Guenther  <rguenther@suse.de>
3371
3372         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3373         file name.
3374
3375 2011-04-21  Richard Guenther  <rguenther@suse.de>
3376
3377         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3378         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3379         Use DECL_P, not SSA_VAR_P.
3380         (ptr_derefs_may_alias_p): Likewise.
3381         (ptr_deref_may_alias_ref_p_1): Likewise.
3382         (decl_refs_may_alias_p): Likewise.
3383         (refs_may_alias_p_1): Likewise.
3384         (ref_maybe_used_by_call_p_1): Likewise.
3385         (call_may_clobber_ref_p_1): Likewise.
3386         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3387         are either MEM_REF or TARGET_MEM_REF.
3388         (indirect_refs_may_alias_p): Likewise.
3389         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3390         for MEM_EXPR of indirect calls.
3391
3392 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3393
3394         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3395         (dst_file_info_struct): Remove flen field.
3396         (lookup_filename): Remove code that set flen field.
3397
3398 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3399
3400         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3401
3402 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3403
3404         PR target/48708
3405         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3406         vec_extract and vec_concat for non-SSE4_1 targets.
3407
3408 2011-04-21  Richard Guenther  <rguenther@suse.de>
3409
3410         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3411         return statements.
3412
3413 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3414
3415         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3416         undefine.
3417         (FILE): Don't undefine.
3418
3419 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3420
3421         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3422         struct rtx_def *.
3423         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3424         struct rtx_def *.
3425         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3426         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3427         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3428         rtx_def *.
3429         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3430         definitions where used.
3431         * config/microblaze/microblaze.h (struct microblaze_args): Use
3432         rtx, not struct rtx_def *.
3433         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3434         rtx_def *.
3435         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3436         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3437         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3438         not struct rtx_def *.
3439         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3440         struct rtx_def *.
3441         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3442         rtx_def *.
3443         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3444
3445 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3446
3447         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3448         operand_equal_p to compare DR_BASE_ADDRESSes.
3449         (vect_check_interleaving): Likewise.
3450
3451 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3452
3453         PR target/46329
3454         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3455         for all Neon struct constants.
3456
3457 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3458
3459         * target.def (legitimate_constant_p): New hook.
3460         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3461         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3462         * doc/tm.texi: Regenerate.
3463         * hooks.h (hook_bool_mode_rtx_true): Declare.
3464         * hooks.c (hook_bool_mode_rtx_true): Define.
3465         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3466         * calls.c (precompute_register_parameters): Replace uses of
3467         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3468         (emit_library_call_value_1): Likewise.
3469         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3470         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3471         * ira-costs.c (scan_one_insn): Likewise.
3472         * recog.c (general_operand, immediate_operand): Likewise.
3473         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3474         * reload1.c (init_eliminable_invariants): Likewise.
3475
3476         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3477         mode argument.
3478         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3479         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3480         argument.
3481         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3482         * config/alpha/predicates.md (input_operand): Update call to
3483         alpha_legitimate_constant_p.
3484
3485         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3486         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3487         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3488         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3489         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3490         (arm_legitimate_constant_p): New functions.
3491         (arm_cannot_force_const_mem): Make static.
3492
3493         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3494
3495         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3496         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3497         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3498         instead of bfin_legitimate_constant_p.
3499         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3500         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3501
3502         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3503
3504         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3505
3506         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3507         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3508         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3509         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3510
3511         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3512         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3513         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3514
3515         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3516         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3517         * config/i386/i386.c (legitimate_constant_p): Rename to...
3518         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3519         argument.
3520         (ix86_cannot_force_const_mem): Update accordingly.
3521         (ix86_legitimate_address_p): Likewise.
3522         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3523         * config/i386/i386.md: Update commentary.
3524
3525         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3526         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3527         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3528         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3529
3530         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3531
3532         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3533         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3534         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3535         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3536
3537         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3538         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3539         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3540
3541         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3542         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3543         (m32r_legitimate_constant_p): New function.
3544
3545         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3546         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3547         LEGITIMATE_CONSTANT_P.
3548         (LEGITIMATE_CONSTANT_P): Delete.
3549         * config/m68k/m68k.c (m68k_expand_prologue): Call
3550         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3551         (m68k_legitimate_constant_p): New function.
3552         * config/m68k/m68k.md: Update comments.
3553
3554         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3555         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3556         (mcore_legitimate_constant_p): New function.
3557
3558         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3559         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3560         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3561         Add a mode argument.
3562         (mep_legitimate_address): Update accordingly.
3563         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3564
3565         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3566         Delete.
3567         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3568         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3569         static.  Check OP's mode for VOIDmode.
3570         (microblaze_legitimate_constant_p): New function.
3571         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3572
3573         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3574         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3575         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3576         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3577         * config/mips/predicates.md: Update comments.
3578
3579         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3580         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3581         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3582         (mmix_legitimate_constant_p): Make static, return a bool, and take
3583         a mode argument.
3584         (mmix_print_operand_address): Update accordingly.
3585
3586         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3587         Delete.
3588         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3589         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3590         static.  Add a mode argument.
3591         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3592
3593         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3594
3595         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3596         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3597         (pa_legitimate_constant_p): New function.
3598
3599         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3600
3601         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3602         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3603         (pdp11_legitimate_constant_p): New function.
3604
3605         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3606         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3607         (rs6000_legitimate_constant_p): New function.
3608
3609         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3610         (rx_legitimate_constant_p): ...this.
3611         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3612         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3613         (rx_legitimate_constant_p): ...this.
3614         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3615         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3616
3617         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3618         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3619         * config/s390/s390.c (legitimate_constant_p): Rename to...
3620         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3621         and add a mode argument.
3622         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3623
3624         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3625
3626         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3627         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3628         (sh_legitimate_constant_p): New function.
3629
3630         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3631         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3632         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3633         (legitimate_constant_p): Rename to...
3634         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3635         argument.
3636         (constant_address_p): Update accordingly.
3637
3638         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3639         argument and return a bool.
3640         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3641         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3642         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3643         (spu_rtx_costs): Update accordingly.
3644         * config/spu/predicates.md (vec_imm_operand): Likewise.
3645
3646         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3647
3648         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3649         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3650         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3651
3652         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3653         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3654         * config/vax/vax.c (legitimate_constant_p): Likewise.
3655
3656         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3657         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3658         (xtensa_legitimate_constant_p): New function.
3659
3660 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3661
3662         * target.def (cannot_force_const_mem): Add a mode argument.
3663         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3664         * doc/tm.texi: Regenerate.
3665         * hooks.h (hook_bool_mode_rtx_false): Declare.
3666         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3667         (hook_bool_mode_const_rtx_true): Likewise.
3668         (hook_bool_mode_rtx_false): New function.
3669         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3670         to be non-VOID.  Update call to cannot_force_const_mem.
3671         (find_reloads): Update accordingly.
3672         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3673         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3674         argument.
3675         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3676         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3677         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3678         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3679         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3680         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3681         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3682         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3683         (m68k_cannot_force_const_mem): ...this new function.
3684         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3685         argument.
3686         (mips_const_insns, mips_legitimize_const_move): Update calls.
3687         (mips_secondary_reload_class): Likewise.
3688         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3689         (pa_cannot_force_const_mem): ...this new function.
3690         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3691         (rs6000_cannot_force_const_mem): ...this new function.
3692         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3693         argument.
3694         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3695         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3696         to...
3697         (xtensa_cannot_force_const_mem): ...this new function.
3698
3699 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3700
3701         * config/mips/mips.c (mips16_build_function_stub): Call
3702         build_function_type_list instead of build_function_type.
3703         (mips16_build_call_stub): Likewise.
3704
3705 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3706
3707         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3708         instead of build_function_type.
3709
3710 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3711
3712         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3713         instead of build_function_type.
3714
3715 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3716
3717         PR target/48678
3718         * config/i386/i386.md (insv): Change operand 0 constraint to
3719         "register_operand".  Change operand 1 and 2 constraint to
3720         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3721         * config/i386/sse.md (sse4_1_pinsrb): Export.
3722         (sse2_pinsrw): Ditto.
3723         (sse4_1_pinsrd): Ditto.
3724         (sse4_1_pinsrq): Ditto.
3725         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3726         * config/i386/i386.c (ix86_expand_pinsr): New.
3727
3728 2011-04-20  Easwaran Raman  <eraman@google.com>
3729
3730         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3731         containing union type only with -fstrict-aliasing.
3732
3733 2011-04-20  Jim Meyering  <meyering@redhat.com>
3734
3735         Remove useless if-before-free tests.
3736         * calls.c (expand_call, save_area): Likewise.
3737         * cfgcleanup.c (try_forward_edges): Likewise.
3738         * collect2.c (collect_execute): Likewise.
3739         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3740         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3741         * coverage.c (coverage_checksum_string): Likewise.
3742         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3743         * cselib.c (cselib_init): Likewise.
3744         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3745         (df_set_clean_cfg): Likewise.
3746         * function.c (free_after_compilation): Likewise.
3747         * gcc.c (do_spec_1, main): Likewise.
3748         * gcov.c (create_file_names): Likewise.
3749         * gensupport.c (identify_predicable_attribute): Likewise.
3750         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3751         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3752         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3753         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3754         * ipa-pure-const.c (local_pure_const): Likewise.
3755         * ipa-reference.c (propagate): Likewise.
3756         * ira-costs.c (free_ira_costs): Likewise.
3757         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3758         * matrix-reorg.c (mat_free): Likewise.
3759         * prefix.c (get_key_value): Likewise.
3760         * profile.c (compute_value_histograms): Likewise.
3761         * reload1.c (free_reg_equiv): Likewise.
3762         * sched-deps.c (free_deps): Likewise.
3763         * sel-sched-ir.c (fence_clear): Likewise.
3764         * sese.c (set_rename, if_region_set_false_region): Likewise.
3765         * tree-data-ref.c (free_rdg): Likewise.
3766         * tree-eh.c (lower_try_finally): Likewise.
3767         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3768         * tree-ssa-live.c (delete_var_map): Likewise.
3769         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3770         * tree-ssa-pre.c (phi_trans_add): Likewise.
3771
3772 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3773
3774         PR tree-optimization/48611
3775         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3776         beyond ERT_MUST_NOT_THROW region.
3777
3778 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3779
3780         * config/mips/mips.opt (mfix-24k): New.
3781         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3782         * config/mips/mips.md (length): Increase by 4 for stores if
3783         fixing 24K errata.
3784         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3785         all noreorder if fixing 24K errata.
3786         * doc/invoke.texi: Document mfix-24k.
3787
3788 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3789
3790         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3791         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3792
3793 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3794
3795         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3796         (const_ok_for_op): ... to here.
3797
3798 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3799
3800         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3801         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3802
3803 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3804
3805         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3806
3807 2011-04-20  Richard Guenther  <rguenther@suse.de>
3808
3809         PR tree-optimization/47892
3810         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3811         are if-convertible.
3812
3813 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3814
3815         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3816
3817 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3818
3819         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3820
3821 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3822
3823         PR target/18145
3824
3825         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3826         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3827         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3828         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3829         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3830
3831         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3832         New prototype.
3833
3834         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3835         (avr_asm_named_section, avr_asm_output_aligned_common,
3836         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3837         New functions to update...
3838         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3839         (avr_asm_init_sections): Overwrite section callbacks for
3840         data_section, bss_section.
3841         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3842         from here to...
3843         (avr_file_end): ...here.
3844
3845 2011-04-20  Richard Guenther  <rguenther@suse.de>
3846
3847         PR middle-end/48695
3848         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3849         objects and types here.  Adjust for their offset before comparing.
3850
3851 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3852
3853         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3854         statement per copy.
3855
3856 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3857
3858         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3859         (GIMPLE_H): Include $(INTERNAL_FN_H).
3860         (OBJS-common): Add internal-fn.o.
3861         (internal-fn.o): New rule.
3862         * internal-fn.def: New file.
3863         * internal-fn.h: Likewise.
3864         * internal-fn.c: Likewise.
3865         * gimple.h: Include internal-fn.h.
3866         (GF_CALL_INTERNAL): New gf_mask.
3867         (gimple_statement_call): Put fntype into a union with a new
3868         internal_fn field.
3869         (gimple_build_call_internal): Declare.
3870         (gimple_build_call_internal_vec): Likewise.
3871         (gimple_call_same_target_p): Likewise.
3872         (gimple_call_internal_p): New function.
3873         (gimple_call_internal_fn): Likewise.
3874         (gimple_call_fntype): Return null for internal calls.
3875         (gimple_call_set_fntype): Assert that the function is not internal.
3876         (gimple_call_set_fn): Likewise.
3877         (gimple_call_set_fndecl): Likewise.
3878         (gimple_call_set_internal_fn): New function.
3879         (gimple_call_addr_fndecl): Handle null functions.
3880         (gimple_call_return_type): Likewise null types.
3881         * gimple.c (gimple_build_call_internal_1): New function.
3882         (gimple_build_call_internal): Likewise.
3883         (gimple_build_call_internal_vec): Likewise.
3884         (gimple_call_same_target_p): Likewise.
3885         (gimple_call_flags): Handle calls to internal functions.
3886         (gimple_call_fnspec): New function.
3887         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3888         (gimple_has_side_effects): Handle null functions.
3889         (gimple_rhs_has_side_effects): Likewise.
3890         (gimple_call_copy_skip_args): Handle calls to internal functions.
3891         * cfgexpand.c (expand_call_stmt): Likewise.
3892         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3893         * gimple-fold.c (gimple_fold_call): Handle null functions.
3894         (gimple_fold_stmt_to_constant_1): Don't fold
3895         calls to internal functions.
3896         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3897         functions.
3898         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3899         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3900         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3901         (do_warn_unused_result): Likewise.
3902         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3903         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3904         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3905         the target of a call.
3906         (initialize_hash_element): Update accordingly.
3907         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3908         (iterative_hash_hashable_expr): Handle calls to internal functions.
3909         (print_expr_hash_elt): Likewise.
3910         * tree-ssa-pre.c (can_value_number_call): Likewise.
3911         (eliminate): Handle null functions.
3912         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3913         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3914         (find_func_aliases): Likewise.
3915         * value-prof.c (gimple_ic_transform): Likewise.
3916         (gimple_indirect_call_to_profile): Likewise.
3917         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3918         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3919
3920 2011-04-19  Jan Hubicka  <jh@suse.cz>
3921
3922         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3923         * ipa-inline.c (inline_small_functions): Compute summaries first,
3924         populate heap later.
3925
3926 2011-04-19  Jan Hubicka  <jh@suse.cz>
3927
3928         * cgraph.h (save_inline_function_body): Remove.
3929         * ipa-inline-transform.c: New file, broke out of...
3930         * ipa-inline.c: ... this one; Update toplevel comment.
3931         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3932         make global.
3933         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3934         (cgraph_mark_inline_edge): Rename to inline_call; move to
3935         ipa-inline-transform.c.
3936         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3937         move to ipa-inline-transform.c
3938         (recursive_inlining, inline_small_functions, flatten_function,
3939         ipa_inline, inline_always_inline_functions,
3940         early_inline_small_functions): Update.
3941         (inline_transform): Move to ipa-inline-transform.c.
3942         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3943         Declare.
3944         * Makefile.in (ipa-inline-transform.o): New file.
3945         * cgraphunit.c (save_inline_function_body): Move to
3946         ipa-inline-transform.c
3947
3948 2011-04-19  DJ Delorie  <dj@redhat.com>
3949
3950         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3951         registers if we already know there aren't any.
3952         (m32c_emit_epilogue): Don't emit a barrier here.
3953         (m32c_emit_eh_epilogue): Likewise.
3954         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3955         operands at expand time.
3956         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3957         int" wchar type.
3958         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3959         duplicates.  Provide aliases instead.
3960         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3961         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3962         the compiler.
3963
3964 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3965
3966         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3967         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3968         (general_or_i64_p, sparc_register_move_cost): New function.
3969
3970 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3971
3972         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3973         Add lynx, mipssde.  Sort table.
3974
3975 2011-04-19  Xinliang David Li  <davidxl@google.com>
3976
3977         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3978         not negative.
3979
3980 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3981
3982         PR target/48678
3983         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3984         is a SUBREG with non-MODE_INT mode inside of it.
3985
3986 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3987
3988         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3989         also according to actual contants.
3990         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3991         (gimple_fold_call): Use it.
3992         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3993
3994 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3995
3996         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3997         non-pointer assignments.
3998
3999 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4000
4001         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4002         account anc_offset and otr_type from the indirect edge info.
4003         * ipa-prop.c (get_ancestor_addr_info): New function.
4004         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4005         get_ancestor_addr_info, call it.
4006         (ipa_note_param_call): Do not initialize information about polymorphic
4007         calls, return the indirect call graph edge.  Remove the last
4008         parameter, adjust all callers.
4009         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4010         parameters.  Initialize polymorphic information in the indirect edge.
4011
4012 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4013
4014         PR lto/48148
4015         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4016         the types if they have different enumeration identifiers.
4017
4018 2011-04-19  Jan Hubicka  <jh@suse.cz>
4019
4020         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4021         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4022         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4023         (optimize_function_for_size_p) ... here.
4024
4025 2011-04-19  Richard Guenther  <rguenther@suse.de>
4026
4027         PR lto/48207
4028         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4029         langhook.
4030
4031 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4032
4033         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4034         if DECL_NO_INLINE_WARNING_P is set on the function.
4035
4036 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4037
4038         PR fortran/47976
4039         * reload1.c (inc_for_reload): Return void. All callers changed.
4040         (emit_input_reload_insns): Don't try to delete previous output
4041         reloads to a register, or record spill_reg_store for autoincs.
4042
4043 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4044
4045         * gengtype.h: Updated copyright year.
4046         (struct input_file_st): Add inpisplugin field.
4047         (type_fileloc): New function.
4048         * gengtype.c
4049         (write_typed_struct_alloc_def): Add gcc_assert.
4050         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4051         (write_typed_alloc_defns): Don't output for plugin files.
4052         (input_file_by_name): Clear inpisplugin field.
4053         (main): Set inpisplugin field for plugin files.
4054
4055 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4056
4057         * gengtype-state.c (string_eq): New.
4058         (read_state): Use string_eq instead of strcmp when creating the
4059         state_ident_tab.
4060
4061 2011-04-19  Wei Guozhi  <carrot@google.com>
4062
4063         PR target/47855
4064         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4065         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4066         linkage.
4067         * config/arm/constraints.md (Uu): New constraint.
4068         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4069
4070 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4071
4072         * config.gcc (-*-*-*vms): Added.
4073         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4074         definitions moved.
4075         * config/vms/vms-ld.c: New file.
4076         * config/vms/vms-ar.c: New file.
4077         * config/vms/t-vmsnative: New file.
4078
4079 2011-04-18  Xinliang David Li  <davidxl@google.com>
4080
4081         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4082
4083 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4084
4085         PR middle-end/48661
4086         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4087         if TREE_TYPE (v) is non-NULL.
4088
4089         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4090         gimple_get_virt_mehtod_for_binfo.
4091         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4092         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4093         callers.
4094         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4095
4096 2011-04-18  Michael Matz  <matz@suse.de>
4097             Steve Ellcey  <sje@cup.hp.com>
4098
4099         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4100         use its mode as source mode if it isn't VOIDmode.
4101
4102 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4103
4104         * doc/passes.texi: Fill crossref nodes.
4105
4106 2011-04-18  Jim Meyering  <meyering@redhat.com>
4107
4108         Fix doubled-word typos in comments and strings
4109         * config/alpha/vms-unwind.h: s/for for/for/
4110         * config/arm/unwind-arm.h: Likewise.
4111         * config/microblaze/microblaze.c: Likewise.
4112         * config/sh/constraints.md: s/in in/in/
4113         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4114
4115 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4116
4117         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4118         (AVX_FLOAT_MODE_P): Ditto.
4119         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4120         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4121         (AVX_VEC_FLOAT_MODE_P): Ditto.
4122         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4123         (UNSPEC_MASKSTORE): Ditto.
4124         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4125         Merge from <sse>_movmsk<ssemodesuffix> and
4126         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4127         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4128         iterator.
4129         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4130         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4131         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4132
4133 2011-04-18  Jan Hubicka  <jh@suse.cz>
4134
4135         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4136
4137         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4138         (want_inline_function_called_once_p): Break out the logic from
4139         ipa_inline.
4140         (edge_badness): Ensure that profile is not misupdated.
4141         (lookup_recursive_calls): Prioritize by call frequencies.
4142         (inline_small_functions): Move program size estimates here;
4143         actually process whole queue even when unit growth has been
4144         met. (to properly compute inline_failed reasons and for the
4145         case unit size decrease.) Revisit comments on recursive inlining.
4146         (ipa_inline): Remove unit summary code; first inline hot calls
4147         of functions called once, cold calls next.
4148         (order, nnodes): Remove unused variables.
4149         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4150         (GTFILES): Remove ipa-inline.c
4151         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4152
4153 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4154
4155         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4156
4157 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4158             Richard Earnshaw  <rearnsha@arm.com>
4159
4160         * arm.c (neon_builtin_type_bits): Remove.
4161         (typedef enum neon_builtin_mode): New.
4162         (T_MAX): Don't define.
4163         (typedef enum neon_builtin_datum): Remove bits, codes[],
4164         num_vars and base_fcode.  Add mode, code and fcode.
4165         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4166         VAR10): Change accordingly.
4167         (neon_builtin_data[]): Change accordingly
4168         (arm_init_neon_builtins): Change accordingly.
4169         (neon_builtin_compare): Remove.
4170         (locate_neon_builtin_icode): Remove.
4171         (arm_expand_neon_builtin): Change accordingly.
4172
4173         * arm.h (enum arm_builtins): Move to ...
4174         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4175
4176         * arm.c (arm_builtin_decl): Declare.
4177         (TARGET_BUILTIN_DECL): Define.
4178         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4179         (arm_builtin_decls[]): New.
4180         (arm_init_neon_builtins): Store builtin declarations in
4181         arm_builtin_decls[].
4182         (arm_init_tls_builtins): Likewise.
4183         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4184         (arm_builtin_decl): New.
4185
4186 2011-04-18  Richard Guenther  <rguenther@suse.de>
4187
4188         * tree.c (upper_bound_in_type): Build properly canonicalized
4189         INTEGER_CSTs.
4190         (lower_bound_in_type): Likewise.
4191
4192 2011-04-18  Richard Guenther  <rguenther@suse.de>
4193
4194         * gimple.h (gimple_call_addr_fndecl): New function.
4195         (gimple_call_fndecl): Use it.
4196         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4197         for direct calls.
4198         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4199         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4200
4201 2011-04-18  Richard Guenther  <rguenther@suse.de>
4202
4203         PR middle-end/48650
4204         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4205
4206 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4207
4208         PR lto/48492
4209         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4210         DECL_IN_CONSTANT_POOL without RTL.
4211
4212 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4213             Ira Rosen  <ira.rosen@linaro.org>
4214
4215         PR target/48252
4216         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4217         to match neon_vzip/vuzp/vtrn_internal.
4218         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4219         outputs explicitly dependent on both inputs.
4220         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4221
4222 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4223
4224         PR tree-optimization/48616
4225         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4226         whether the shift is by scalar or vector based on whether all SLP
4227         scalar stmts have the same rhs.
4228
4229 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4230
4231         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4232         memory operands.
4233
4234 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4235
4236         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4237         registers.
4238
4239 2011-04-17  Jan Hubicka  <jh@suse.cz>
4240
4241         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4242         * cgrpahunit.c (cgraph_finalize_function): Do not set
4243         finalized_by_frontend.
4244         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4245         finalized_by_frontend.
4246
4247 2011-04-17  Jan Hubicka  <jh@suse.cz>
4248
4249         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4250         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4251         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4252         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4253         method.
4254         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4255         gimple-fold.c
4256         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4257
4258 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4259
4260         PR lto/48538
4261         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4262         is non-null before accessing it.
4263         (input_cgraph): Remove trailing spaces.
4264
4265 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4266
4267         * params.def (sms-min-sc): New param flag.
4268         * modulo-sched.c (sms_schedule): Use it.
4269         * doc/invoke.texi (sms-min-sc): Document it.
4270
4271 2011-04-17  Jan Hubicka  <jh@suse.cz>
4272
4273         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4274         present, also set gimple_call_set_cannot_inline.
4275         * ipa-inline.c: Update toplevel comment.
4276         (MAX_TIME): Remove.
4277         (cgraph_clone_inlined_nodes): Fix linebreaks.
4278         (cgraph_check_inline_limits): Restructure to ...
4279         (caller_growth_limits): ... this one; be more tolerant
4280         on growth in nested inline chains; add explanatory comment;
4281         fix stack accounting thinko introduced by previous patch.
4282         (cgraph_default_inline_p): Remove.
4283         (report_inline_failed_reason): New function.
4284         (can_inline_edge_p): New function.
4285         (can_early_inline_edge_p): New function.
4286         (leaf_node_p): Move upwards in file.
4287         (want_early_inline_function_p): New function.
4288         (want_inline_small_function_p): New function.
4289         (want_inline_self_recursive_call_p): New function.
4290         (cgraph_edge_badness): Rename to ...
4291         (edge_badness) ... this one; fix linebreaks.
4292         (update_edge_key): Update call of edge_baddness; add
4293         detailed dump about queue updates.
4294         (update_caller_keys): Use can_inline_edge_p and
4295         want_inline_small_function_p.
4296         (cgraph_decide_recursive_inlining): Rename to...
4297         (recursive_inlining): Use can_inline_edge_p and
4298         want_inline_self_recursive_call_p; simplify and remove no longer
4299         valid FIXME.
4300         (cgraph_set_inline_failed): Remove.
4301         (add_new_edges_to_heap): Use can_inline_edge_p and
4302         want_inline_small_function_p.
4303         (cgraph_decide_inlining_of_small_functions): Rename to ...
4304         (inline_small_functions): ... this one; cleanup; use
4305         can/want predicates; cleanup debug ouput; work edges till fibheap
4306         is exhausted and do not stop once unit growth is reached; remove
4307         later loop processing remaining edges.
4308         (cgraph_flatten): Rename to ...
4309         (flatten_function): ... this one; use can_inline_edge_p
4310         and can_early_inline_edge_p predicates.
4311         (cgraph_decide_inlining): Rename to ...
4312         (ipa_inline): ... this one; remove unreachable nodes before
4313         inlining functions called once; simplify the pass.
4314         (cgraph_perform_always_inlining): Rename to ...
4315         (inline_always_inline_functions): ... this one; use
4316         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4317         (cgraph_decide_inlining_incrementally): Rename to ...
4318         (early_inline_small_functions): ... this one; simplify
4319         using new predicates; cleanup; make dumps prettier.
4320         (cgraph_early_inlining): Rename to ...
4321         (early_inliner): newer inline regular functions into always-inlines;
4322         fix updating of call stmt summaries.
4323         (pass_early_inline): Update for new names.
4324         (inline_transform): Fix formating.
4325         (gate_cgraph_decide_inlining): Rename to ...
4326         (pass_ipa_inline): ... this one.
4327         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4328         * ipa-inline-analysis.c (dump_inline_summary): Update.
4329         (compute_inline_parameters): Do not compute disregard_inline_limits;
4330         look for mismatching arguments.
4331         (estimate_growth): Fix handlig of non-trivial self recursion.
4332         (inline_read_summary): Do not read info->disregard_inline_limits.
4333         (inline_write_summary): Do not write info->disregard_inline_limits.
4334         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4335         and move all checks into can_inline_edge_p predicate; re-enable code
4336         comparing optimization levels.
4337         (expand_call_inline): Do not test inline_forbidden_into_p.
4338         * Makefile.in (ipa-inline.o): Update arguments.
4339
4340 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4341
4342         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4343
4344 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4345
4346         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4347
4348 2011-04-17  Michael Matz  <matz@suse.de>
4349
4350         PR tree-optimization/48622
4351         PR lto/48645
4352         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4353         in same order as they're written.
4354
4355 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4356
4357         * config/pa/predicates.md: Reorganize and simplify predicates.
4358         Eliminate duplicate code checks.
4359         (arith_operand): Rename to arith14_operand
4360         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4361         * config/pa/pa.md: Use renamed operands.
4362         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4363         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4364         arith11_operand, adddi3_operand, indexed_memory_operand,
4365         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4366         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4367         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4368         move_dest_operand, move_src_operand, prefetch_cc_operand,
4369         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4370         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4371         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4372         div_operand, int5_operand, movb_comparison_operator,
4373         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4374         arith_double_operand, ireg_operand, lhs_lshift_operand,
4375         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4376         integer_store_memory_operand): Likewise.
4377         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4378         (integer_store_memory_operand, read_only_operand,
4379         function_label_operand, borx_reg_operand,
4380         non_hard_reg_operand): Likewise.
4381         (eq_neq_comparison_operator): Delete unused operator.
4382         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4383         function_label_operand.
4384         (emit_move_sequence): Likewise.
4385
4386 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4387
4388         * config/i386/sse.md (sseunpackmode): New mode attribute.
4389         (ssepackmode): Ditto.
4390         (vec_pack_trunc_<mode>): Macroize expander from
4391         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4392         (vec_unpacks_lo_<mode>): Macroize expander from
4393         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4394         (vec_unpacks_hi_<mode>): Macroize expander from
4395         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4396         (vec_unpacku_lo_<mode>): Macroize expander from
4397         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4398         (vec_unpacku_hi_<mode>): Macroize expander from
4399         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4400         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4401         ix86_expand_sse4_unpack.
4402         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4403
4404 2011-04-16  Jan Hubicka  <jh@suse.cz>
4405
4406         * cgraphbuild.c: Include ipa-inline.h.
4407         (reset_inline_failed): Use initialize_inline_failed.
4408         * cgraph.c: Include ipa-inline.h.
4409         (cgraph_create_node_1): Do not initialize estimated_growth.
4410         (initialize_inline_failed): More to ipa-inline-analysis.c
4411         (dump_cgraph_node): Do not dump inline flags.
4412         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4413         and disregard_inline_limits flags.
4414         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4415         time, size, estimated_growth.
4416         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4417         Update.
4418         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4419         DECL_DISREGARD_INLINE_LIMITS.
4420         (cgraph_analyze_function): Do not initialize
4421         node->local.disregard_inline_limits.
4422         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4423         inlinable, versionable and disregard_inline_limits.
4424         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4425         cgraph_check_inline_limits, cgraph_default_inline_p,
4426         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4427         add_new_edges_to_heap): Update.
4428         (cgraph_decide_inlining_of_small_function): Update; set
4429         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4430         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4431         cgraph_decide_inlining_incrementally): Update.
4432         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4433         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4434         time, size and estimated_growth parameters.
4435         (estimate_edge_growth): Update.
4436         (initialize_inline_failed): Declare.
4437         * ipa-split.c: Include ipa-inline.h
4438         (execute_split_functions): Update.
4439         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4440         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4441         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4442         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4443         estimated_growth to INT_MIN.
4444         (inline_node_duplication_hook): Likewise.
4445         (dump_inline_summary): Dump new fields.
4446         (compute_inline_parameters): Update.
4447         (estimate_edge_time, estimate_time_after_inlining,
4448         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4449         inline_write_summary):
4450         (initialize_inline_failed): Move here from cgraph.c.
4451         * tree-sra.c: Include ipa-inline.h.
4452         (ipa_sra_preliminary_function_checks): Update.
4453         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4454         ipa-inline.h.
4455
4456 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4457
4458         * config/i386/sse.md (V16): New mode iterator.
4459         (VI1, VI8): Ditto.
4460         (AVXMODEQI, AVXMODEDI): Remove.
4461         (sse2, sse3): New mode attribute.
4462         (mov<mode>): Use V16 mode iterator.
4463         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4464         (push<mode>1): Use V16 mode iterator.
4465         (movmisalign<mode>): Ditto.
4466         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4467         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4468         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4469         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4470         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4471         avx_movdqu<avxmodesuffix>.
4472         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4473         *avx_movdqu<avxmodesuffix>.
4474         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4475         avx_lddqu<avxmodesuffix>.
4476         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4477         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4478         avx_movnt<AVXMODEDI:mode>.
4479         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4480         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4481
4482 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4483
4484         PR target/48629
4485         * haifa-sched.c (prune_ready_list, schedule_block): Use
4486         sched_pressure_p rather than flag_sched_pressure.
4487
4488 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4489
4490         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4491         cgraph_get_node instead of cgraph_get_create_node.
4492
4493 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4494
4495         * cfgexpand.c (expand_debug_expr): Use
4496         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4497
4498 2011-04-15  Michael Matz  <matz@suse.de>
4499
4500         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4501         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4502         * function.c (gimplify_parameters): Ditto.
4503         * gimplify.c (gimplify_vla_decl): Ditto.
4504
4505         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4506         (gimple_call_set_alloca_for_var): New inline function.
4507         (gimple_call_alloca_for_var_p): Ditto.
4508         * gimple.c (gimple_build_call_from_tree): Remember
4509         CALL_ALLOCA_FOR_VAR_P state.
4510         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4511
4512         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4513         calls if they were for VLA objects.
4514
4515 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4516
4517         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4518         of ADR_EXPRs.
4519
4520 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4521
4522         PR middle-end/48601
4523         * tree-emutls.c (lower_emutls_function_body): Call
4524         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4525         result is non-NULL.
4526
4527 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4528
4529         * c-decl.c (detect_field_duplicates): Call
4530         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4531
4532 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4533
4534         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4535         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4536         * ipa-pure-const.c (check_stmt): Call it.
4537         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4538
4539 2011-04-15  Richard Guenther  <rguenther@suse.de>
4540
4541         PR tree-optimization/48290
4542         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4543         Properly decide inhibiting propagation based on the valueized
4544         operand.  Do loop-closed SSA form preserving here ...
4545         (init_copy_prop): ... not here.
4546
4547 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4548
4549         PR target/48612
4550         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4551         (*ieee_smax<mode>3): Likewise.
4552
4553 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4554
4555         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4556         Replace match_operand with match_dup for the third operand in
4557         these expanders.
4558
4559 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4560
4561         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4562         to track processing of conditionals.  Update all callers.
4563         (try_combine, simplify_if_then_else): Update.
4564
4565 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4566
4567         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4568         -fsched-pressure.
4569
4570 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4571
4572         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4573         instead of match_operand for operand 3.
4574
4575 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4576
4577         * recog.h (insn_operand_data): Add an "allows_mem" field.
4578         * genoutput.c (output_operand_data): Initialize it.
4579         * optabs.c (maybe_legitimize_operand_same_code): New function.
4580         (maybe_legitimize_operand): Use it when matching the original
4581         op->value.
4582
4583 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4584
4585         * gimplify.c: Fix issues in comments throughout.
4586         (voidify_wrapper_expr): Fix long line.
4587         (build_stack_save_restore): Likewise.
4588         (gimplify_loop_expr): Likewise.
4589         (gimplify_compound_lval): Likewise.
4590         (gimplify_init_ctor_eval): Likewise.
4591         (gimplify_modify_expr_rhs): Likewise.
4592         (omp_notice_threadprivate_variable): Likewise.
4593
4594 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4595
4596         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4597         original one if this is not a builtin function.
4598
4599 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4600
4601         PR target/48605
4602         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4603         offset it as needed based on top 2 bits in operands[3], change
4604         MEM mode to SFmode and mask those 2 bits away from operands[3].
4605
4606 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4607
4608         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4609         change from objc_declare_protocols() to objc_declare_protocol().
4610
4611 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4612
4613         * config/i386/sse.md (sse4_1): New mode attribute.
4614         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4615         avx_blend<ssemodesuffix><avxmodesuffix> and
4616         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4617         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4618         avx_blendv<ssemodesuffix><avxmodesuffix> and
4619         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4620         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4621         avx_dp<ssemodesuffix><avxmodesuffix> and
4622         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4623         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4624         (sse4_1_packusdw): Merge with *avx_packusdw.
4625         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4626         (sse4_1_pblendw): Merge with *avx_pblendw.
4627         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4628         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4629         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4630         VF mode iterator.
4631         (sse4_1_round<ssescalarmodesuffix>): Merge with
4632         *avx_round<ssescalarmodesuffix>.
4633         (aesenc): Merge with *avx_aesenc.
4634         (aesenclast): Merge with *avx_aesenclast.
4635         (aesdec): Merge with *avx_aesdec.
4636         (aesdeclast): Merge with *avx_aesdeclast.
4637         (pclmulqdq): Merge with *pclmulqdq.
4638         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4639         New predicate.
4640         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4641
4642 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4643
4644         PR middle-end/48608
4645         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4646         (align_local_variable): This.  Update DECL_ALIGN.
4647         (add_stack_var): Updated.
4648         (expand_one_stack_var): Likewise.
4649
4650 2011-04-14  Richard Guenther  <rguenther@suse.de>
4651
4652         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4653         Remove.
4654         (dse_initialize_block_local_data, dse_leave_block,
4655         record_voperand_set, get_stmt_uid): Likewise.
4656         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4657         (dse_optimize_stmt): Remove voperand set handling code.
4658         Simplify and improve to handle any kind of killing stmt.
4659         (dse_record_phi): Remove.
4660         (dse_enter_block): Simplify.
4661         (tree_ssa_dse): Likewise.
4662         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4663
4664 2011-04-14  Jan Hubicka  <jh@suse.cz>
4665
4666         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4667         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4668         (cgraph_local_info): Remove inline_summary.
4669         * ipa-cp.c: Include ipa-inline.h.
4670         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4671         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4672         accesor.
4673         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4674         (input_overwrite_node): Do not set inline summary.
4675         (input_node): Do not stream inline summary.
4676         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4677         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4678         growth; we do not have inline parameters computed for that anyway.
4679         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4680         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4681         (inline_summary_t): New type and VECtor.
4682         (debug_inline_summary, dump_inline_summaries): Declare.
4683         (inline_summary): Use VOCtor.
4684         (estimate_edge_growth): Kill hack computing call stmt size directly.
4685         * lto-section-in.c (lto_section_name): Add inline section.
4686         * ipa-inline-analysis.c: Include lto-streamer.h
4687         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4688         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4689         (inline_summary_vec): Define.
4690         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4691         dump_inline_summaries): New functions.
4692         (estimate_function_body_sizes): Properly compute size/time of outgoing
4693         calls.
4694         (compute_inline_parameters): Alloc inline_summary; do not compute
4695         size/time of incomming calls.
4696         (estimate_edge_time): Avoid missing time summary hack.
4697         (inline_read_summary): Read inline summary info.
4698         (inline_write_summary): Write inline summary info.
4699         (inline_free_summary): Free all hooks and inline summary vector.
4700         * lto-streamer.h: Add LTO_section_inline_summary section.
4701         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4702         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4703
4704 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4705
4706         * tree-vectorizer.h (vect_strided_store_supported): Add a
4707         HOST_WIDE_INT argument.
4708         (vect_strided_load_supported): Likewise.
4709         (vect_permute_store_chain): Return void.
4710         (vect_transform_strided_load): Likewise.
4711         (vect_permute_load_chain): Delete.
4712         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4713         count argument.  Check that the count is a power of two.
4714         (vect_strided_load_supported): Likewise.
4715         (vect_permute_store_chain): Return void.  Update after above changes.
4716         Assert that the access is supported.
4717         (vect_permute_load_chain): Likewise.
4718         (vect_transform_strided_load): Return void.
4719         * tree-vect-stmts.c (vectorizable_store): Update calls after
4720         above interface changes.
4721         (vectorizable_load): Likewise.
4722         (vect_analyze_stmt): Don't check for strided powers of two here.
4723
4724 2011-04-14  Richard Guenther  <rguenther@suse.de>
4725
4726         PR tree-optimization/48590
4727         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4728         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4729         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4730         BUILT_IN_STACK_SAVE.
4731         * tree-ssa-dce.c (propagate_necessity): Handle
4732         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4733
4734 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4735
4736         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4737         objc_declare_class.
4738
4739 2011-04-14  Richard Guenther  <rguenther@suse.de>
4740
4741         * tree.h (get_object_alignment_1): Declare.
4742         * builtins.c (get_object_alignment_1): Split out worker from ...
4743         (get_object_alignment): ... here.
4744         * fold-const.c (get_pointer_modulus_and_residue): Use
4745         get_object_alignment_1.
4746
4747 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4748
4749         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4750         type parameter.
4751         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4752         parameter.  Generalise code to handle arrays as well as vectors.
4753         (vect_setup_realignment): Update accordingly.
4754         * tree-vect-stmts.c (vectorizable_store): Likewise.
4755         (vectorizable_load): Likewise.
4756
4757 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4758
4759         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4760         within the per-copy loop.
4761
4762 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4763
4764         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4765         in the dump file.
4766
4767 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4768
4769         * doc/options.texi (Negative): Explicitly mention that the
4770         Negative chain must be circular.
4771
4772 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4773
4774         * function.h (block_chainon): Declare.
4775         * function.c (block_chainon): Define.
4776
4777 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4778             Eric Weddington  <eric.weddington@atmel.com>
4779             Georg-Johann Lay  <avr@gjlay.de>
4780
4781         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4782         New Includes
4783         (avr_init_builtins, avr_expand_builtin,
4784         avr_expand_delay_cycles, avr_expand_unop_builtin,
4785         avr_expand_binop_builtin ): New functions.
4786         (avr_builtin_id): New enum
4787         (struct avr_builtin_description): New struct
4788         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4789         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4790
4791         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4792         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4793         UNSPECV_DELAY_CYCLES): new enumeration values
4794         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4795         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4796         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4797         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4798         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4799         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4800         "fmulsu"): New insns
4801
4802         * config/avr/avr-c.c: fix line endings
4803         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4804         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4805         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4806         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4807         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4808
4809         * doc/extend.texi (AVR Built-in Functions): New node
4810         (Target Builtins): Add documentation of AVR
4811         built-in functions.
4812
4813 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4814
4815         PR target/44643
4816         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4817         alone. Error if non-const data has attribute progmem.
4818
4819 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4820
4821         * tree.h (struct tree_constructor): Include tree_typed instead of
4822         tree_common.
4823         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4824         TS_TYPED instead of TS_COMMON.
4825
4826 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4827
4828         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4829         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4830         (sse2_psadbw): Merge with *avx_psadbw.
4831         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4832         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4833         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4834         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4835         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4836         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4837         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4838         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4839         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4840         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4841         (ssse3_palignrti): Merge with *avx_palignrti.
4842
4843 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4844
4845         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4846         * tree-ssanames.c (fini_ssanames): VEC_free it.
4847         (make_ssa_name_fn): Update for VECness of free_ssanames.
4848         (release_ssa_name, release_dead_ssa_names): Likewise.
4849         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4850         tree_common.
4851         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4852         TS_TYPED instead of TS_COMMON.
4853
4854 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4855
4856         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4857         statistics_counter_event.
4858         * tree-ssa-copyrename.c (stats): Define.
4859         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4860         statistics_counter_event.
4861         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4862         (bswap_stats, widen_mul_stats): Define.
4863         (insert_reciprocals): Increment rdivs_inserted.
4864         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4865         rfuncs_inserted.  Add calls to statistics_counter_event.
4866         (execute_cse_sincos_1): Increment inserted.
4867         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4868         statistics_counter_event.
4869         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4870         of bswap_stats.  Add calls to statistics_counter_event.
4871         (convert_mult_to_widen): Increment widen_mults_inserted.
4872         (convert_plusminus_to_widen): Increment maccs_inserted.
4873         (convert_mult_to_fma): Increment fmas_inserted.
4874         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4875         calls to statistics_counter_event.
4876
4877 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4878
4879         PR rtl-optimization/48455
4880         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4881         `temp_costs->mem_cost'.
4882
4883 2011-04-13  Jan Hubicka  <jh@suse.cz>
4884
4885         * ipa-inline.h: New file.
4886         * ipa-inline-analysis.c: New file. Broken out of ...
4887         * ipa-inline.c: ... this file; update toplevel comment;
4888         include ipa-inline.h
4889         (inline_summary): Move to ipa-inline.h
4890         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4891         ipa-inline-analysis.c.
4892         (cgraph_estimate_time_after_inlining): Rename to
4893         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4894         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4895         to estimate_edge_growth.
4896         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4897         rename to estimate_size_after_inlining.
4898         (cgraph_mark_inline_edge): Update for new naming convention.
4899         (cgraph_check_inline_limits): Likewise.
4900         (cgraph_edge_badness): Likewise.
4901         (cgraph_decide_recursive_inlining): Likewise.
4902         (cgraph_decide_inlining_of_small_functions): Likewise.
4903         (cgraph_decide_inlining_incrementally): Likewise.
4904         (cgraph_estimate_growth): Rename to estimate_growth; move to
4905         ipa-inline-analysis.c.
4906         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4907         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4908         (compute_inline_parameters): Likewise.
4909         (compute_inline_parameters_for_current): Likewise.
4910         (pass_inline_parameters): Likewise.
4911         (inline_indirect_intraprocedural_analysis): Likewise.
4912         (analyze_function): Rename to inline_analyze_function; likewise.
4913         (add_new_function): Move to ipa-inline-analysis.c.
4914         (inline_generate_summary): Likewise.
4915         (inline_read_summary): Likewise.
4916         (inline_write_summary): Likewise.
4917         * Makefile.in (ipa-inline-analysis.c): New file.
4918
4919 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4920
4921         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4922         * configure: Regenerate.
4923
4924 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4925
4926         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4927         instead of tree_common.
4928         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4929         Likewise.
4930         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4931         TS_TYPED rather than TS_COMMON.
4932         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4933
4934 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4935
4936         PR target/45263
4937         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4938         r20 around calls of __tablejump_elpm__
4939
4940 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4941
4942         PR middle-end/48591
4943         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4944         NULL.
4945         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4946
4947 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4948
4949         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4950         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4951         (cfi_vec): New typedef.
4952         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4953         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4954         (cie_cfi_vec): New static variable.
4955         (cie_cfi_head): Delete.
4956         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4957         declaration changed. Use vector rather than list operations.
4958         (new_cfi): Don't initialize the dw_cfi_next field.
4959         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4960         rather than list operations.
4961         (lookup_cfa): Use vector rather than list operations.
4962         (output_cfis): New argument upto. Accept a cfi_vec rather than
4963         a dw_cfi_ref list head as argument. All callers changed.
4964         Iterate over the vector using upto as a maximum index.
4965         (output_all_cfis): New static function.
4966         (output_fde): Use vector rather than list operations. Use the
4967         new upto argument for output_cfis rather than manipulating a
4968         list.
4969         (dwarf2out_begin_prologue): Change initializations to match
4970         new struct members.
4971         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4972         from the vector length rather than searching for the end of a list.
4973         Use output_all_cfis.
4974         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4975
4976 2011-04-13  Nick Clifton  <nickc@redhat.com>
4977
4978         * config/rx/rx.md (movmemsi): Do not use this pattern when
4979         volatile pointers are involved.
4980
4981 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4982
4983         * config/i386/sse.md (pinsrbits): Remove.
4984         (sse2_packsswb): Merge with *avx_packsswb.
4985         (sse2_packssdw): Merge with *avx_packssdw.
4986         (sse2_packuswb): Merge with *avx_packuswb.
4987         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4988         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4989         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4990         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4991         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4992         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4993         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4994         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4995         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4996         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4997         (sse2_loadld): Merge with *avx_loadld.
4998         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4999         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5000         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5001         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5002         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5003
5004 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5005
5006         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5007         calling TREE_CHAIN.
5008         * print-tree.c (print_node): Likewise.
5009         * tree-inline.c (copy_tree_r): Likewise.
5010         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5011         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5012         instead of TS_COMMON.
5013         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5014         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5015         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5016         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5017         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5018         ...and these...
5019         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5020         * tree.h: ...here.
5021         (TREE_CHAIN): Check for a TS_COMMON structure.
5022         (TREE_TYPE): Check for a TS_TYPED structure.
5023
5024 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5025
5026         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5027         cgraph_get_create_node instead of cgraph_node.
5028
5029 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5030
5031         * c-parser.c (c_parser_initelt): Updated call to
5032         objc_build_message_expr.
5033         (c_parser_postfix_expression): Likewise.
5034
5035 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5036
5037         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5038         MASK_MS_BITFIELD_LAYOUT bit.
5039
5040 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5041
5042         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5043         assert it is always true.
5044         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5045         moves.
5046
5047 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5048
5049         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5050         compiling Objective-C to be more efficient.
5051
5052 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5053
5054         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5055         argv_copied.
5056
5057 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5058
5059         * recog.h, genoutput.c, optabs.c: Revert last patch.
5060
5061 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5062
5063         PR target/48090
5064         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5065
5066 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5067
5068         * recog.h (insn_operand_data): Add an "allows_mem" field.
5069         * genoutput.c (output_operand_data): Initialize it.
5070         * optabs.c (maybe_legitimize_operand_same_code): New function.
5071         (maybe_legitimize_operand): Use it when matching the original
5072         op->value.
5073
5074 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5075
5076         * genpreds.c (process_define_predicate): Move most processing
5077         to gensupport.c.  Continue to validate the expression.
5078         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5079         (process_define_predicate): Move processing to gensupport.c.
5080         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5081         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5082         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5083         argument.
5084         (valid_predicate_name_p): New function, split out from old
5085         genpreds.c:process_define_predicate.
5086         (process_define_predicate): New function, combining code from
5087         old genpreds.c and genrecog.c functions.
5088         (process_rtx): Call it for DEFINE_PREDICATE and
5089         DEFINE_SPECIAL_PREDICATE.
5090
5091 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5092
5093         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5094         size of a '%A' memory reference.
5095         (T_DREG, T_QREG): New neon_builtin_type_bits.
5096         (arm_init_neon_builtins): Assert that the load and store operands
5097         are neon_struct_operands.
5098         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5099         (NEON_ARG_MEMORY): New builtin_arg.
5100         (neon_dereference_pointer): New function.
5101         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5102         Handle NEON_ARG_MEMORY.
5103         (arm_expand_neon_builtin): Update after above interface changes.
5104         Use NEON_ARG_MEMORY for loads and stores.
5105         * config/arm/predicates.md (neon_struct_operand): New predicate.
5106         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5107         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5108         (V_four_elem): Tweak formatting.
5109         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5110         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5111         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5112         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5113         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5114         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5115         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5116         Use %A in the output template.
5117         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5118         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5119         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5120         the width of the memory access.  Remove post-increment.
5121         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5122
5123 2011-04-12  Nick Clifton  <nickc@redhat.com>
5124
5125         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5126         instruction for interrupt handlers if the target is the basic V850
5127         architecture.
5128         (expand_epilogue): Likewise.
5129
5130 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5131
5132         PR rtl-optimization/48549
5133         * combine.c (propagate_for_debug): Also stop after BB_END of
5134         this_basic_block.  Process LAST and just stop processing after it.
5135         (combine_instructions): If last_combined_insn has been deleted,
5136         set last_combined_insn to its PREV_INSN.
5137
5138 2011-04-12  Richard Guenther  <rguenther@suse.de>
5139
5140         PR tree-optimization/46076
5141         * gimple.h (struct gimple_statement_call): Add fntype field.
5142         (gimple_call_fntype): Adjust.
5143         (gimple_call_set_fntype): New function.
5144         * gimple.c (gimple_build_call_1): Set the call function type.
5145         * gimplify.c (gimplify_call_expr): Preserve the function
5146         type the frontend used for the call.
5147         (gimplify_modify_expr): Likewise.
5148         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5149         function type.
5150         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5151         function type.
5152         * tree-ssa.c (useless_type_conversion_p): Function pointer
5153         conversions are useless.
5154
5155 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5156
5157         * cgraph.h (cgraph_node): Remove function declaration.
5158         (cgraph_create_node): Declare.
5159         (cgraph_get_create_node): Likewise.
5160         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5161         Updated all callers.
5162         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5163         the decl does not already exist.  Call cgraph_get_create_node instead
5164         of cgraph_node.
5165         (cgraph_get_create_node): New function.
5166         (cgraph_same_body_alias): Update comment.
5167         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5168         assert it does not return NULL.
5169         (cgraph_update_edges_for_call_stmt): Likewise.
5170         (cgraph_clone_edge): Likewise.
5171         (cgraph_create_virtual_clone): Likewise.
5172         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5173         instead of cgraph_node.
5174         (cgraph_add_new_function): Call cgraph_create_node or
5175         cgraph_get_create_node instead of cgraph_node.
5176         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5177         instead of cgraph_node.
5178         (record_eh_tables): Likewise.
5179         (mark_address): Likewise.
5180         (mark_load): Likewise.
5181         (build_cgraph_edges): Call cgraph_get_create_node instead
5182         of cgraph_node.
5183         (rebuild_cgraph_edges): Likewise.
5184         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5185         instead of cgraph_node.
5186         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5187         cgraph_node.
5188         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5189         cgraph_create_node instead of cgraph_node.
5190         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5191         of cgraph_node.
5192         * lto-cgraph.c (input_node): Likewise.
5193         * lto-streamer-in.c (input_function): Likewise.
5194         * varasm.c (mark_decl_referenced): Likewise.
5195         (assemble_alias): Likewise.
5196
5197 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5198
5199         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5200         instead of cgraph_node and assert it does not return NULL.
5201         * lto-streamer-in.c (lto_read_body): Likewise.
5202         * omp-low.c (new_omp_context): Likewise.
5203         (create_task_copyfn): Likewise.
5204         * tree-emutls.c (lower_emutls_function_body): Likewise.
5205         * matrix-reorg.c (transform_allocation_sites): Likewise.
5206
5207 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5208
5209         PR c/48552
5210         * c-typeck.c (build_asm_expr): Error out on attempts to use
5211         void type outputs or inputs for constraints that allow reg or
5212         don't allow memory.
5213
5214 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5215             Richard Earnshaw  <rearnsha@arm.com>
5216
5217         PR target/48250
5218         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5219         to use sign-magnitude offsets. Reject unsupported unaligned
5220         cases. Add detailed description in comments.
5221         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5222         condition from TARGET_32BIT to TARGET_ARM.
5223
5224 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5225
5226         * tree.h (struct typed_tree): New.
5227         (struct tree_common): Include it instead of tree_base.
5228         (TREE_TYPE): Update for new location of type field.
5229         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5230         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5231         (union tree_node): Add typed field.
5232         * treestruct.def (TS_TYPED): New.
5233         * lto-streamer.c (check_handled_ts_structures): Handle it.
5234         * tree.c (MARK_TS_TYPED): New macro.
5235         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5236
5237 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5238
5239         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5240         (force_nonfallthru): Do not alter the loop nest if no basic block
5241         was created.
5242
5243 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5244
5245         * config/i386/sse.md (VI): New mode iterator.
5246         (SSEMODEI): Remove.
5247         (AVX256MODEI): Ditto.
5248         (AVXMODEF4P): Ditto.
5249         (avxvecpsmode): Ditto.
5250         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5251         (sse2_andnot<mode>3): New expander.
5252         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5253         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5254         (<any_logic:code><mode>3): Use VI mode iterator.
5255         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5256         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5257         (*andnottf3): Handle AVX three-operand constraints.
5258         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5259
5260 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5261             Robert Millan  <rmh@gnu.org>
5262
5263         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5264         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5265         GNU_USER_DYNAMIC_LINKER64): Define.
5266         (REG_NAME): Don't undefine.
5267         (MD_UNWIND_SUPPORT): Undefine.
5268         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5269         (REG_NAME): Don't undefine.
5270         (MD_UNWIND_SUPPORT): Undefine.
5271         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5272
5273 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5274
5275         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5276         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5277
5278 2011-04-11  Xinliang David Li  <davidxl@google.com>
5279
5280         * value-profile.c (check_ic_target): New function.
5281         (gimple_ic_transform): Sanity check indirect call target.
5282         * gimple-low.c (gimple_check_call_args): Interface change.
5283         (gimple_check_call_matching_types): New function.
5284         * tree-inline.c (tree_can_inline_p): Call new function.
5285
5286 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5287
5288         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5289         tree-pretty-print.h & realmpfr.h.
5290
5291 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5292
5293         PR middle-end/48464
5294         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5295         (setup_allocno_and_important_classes): Ditto.
5296
5297 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5298
5299         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5300         GNU_USER_DYNAMIC_LINKER.
5301         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5302         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5303         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5304         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5305         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5306         GNU_USER_TARGET_OS_CPP_BUILTINS.
5307         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5308         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5309         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5310         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5311         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5312         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5313         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5314         GNU_USER_TARGET_OS_CPP_BUILTINS.
5315         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5316         GNU_USER_DYNAMIC_LINKER.
5317         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5318         GNU_USER_TARGET_OS_CPP_BUILTINS.
5319         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5320         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5321         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5322         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5323         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5324         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5325         GNU_USER_DYNAMIC_LINKER64): Remove.
5326         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5327         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5328         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5329         GNU_USER_DYNAMIC_LINKER.
5330         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5331         GNU_USER_TARGET_OS_CPP_BUILTINS.
5332         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5333         GNU_USER_TARGET_OS_CPP_BUILTINS.
5334         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5335         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5336         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5337         GNU_USER_TARGET_OS_CPP_BUILTINS.
5338         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5339         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5340         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5341         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5342         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5343         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5344         GNU_USER_DYNAMIC_LINKER.
5345         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5346         GNU_USER_TARGET_OS_CPP_BUILTINS.
5347         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5348         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5349         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5350         GNU_USER_DYNAMIC_LINKER.
5351         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5352         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5353         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5354         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5355         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5356         GNU_USER_DYNAMIC_LINKER.
5357         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5358         GNU_USER_DYNAMIC_LINKERN32.
5359         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5360         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5361         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5362         GNU_USER_DYNAMIC_LINKER32.
5363         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5364         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5365         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5366         GNU_USER_DYNAMIC_LINKER.
5367         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5368         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5369         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5370         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5371         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5372         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5373         GNU_USER_DYNAMIC_LINKER32.
5374         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5375         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5376         GNU_USER_DYNAMIC_LINKER.
5377         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5378         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5379         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5380         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5381         GNU_USER_DYNAMIC_LINKER64.
5382         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5383         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5384         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5385         GNU_USER_DYNAMIC_LINKER.
5386         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5387         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5388         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5389         GNU_USER_DYNAMIC_LINKER.
5390         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5391         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5392         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5393         GNU_USER_DYNAMIC_LINKER32.
5394         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5395         GNU_USER_DYNAMIC_LINKER64.
5396         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5397         GNU_USER_DYNAMIC_LINKER64.
5398         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5399         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5400         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5401         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5402         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5403
5404 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5405
5406         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5407         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5408         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5409         GNU_USER_DYNAMIC_LINKER.
5410         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5411         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5412         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5413         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5414         GNU_USER_DYNAMIC_LINKER64.
5415         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5416         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5417         GNU_USER_LINK_EMULATION.
5418         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5419         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5420         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5421         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5422         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5423         CPP_SPEC, CC1_SPEC): Remove.
5424         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5425         (GNU_USER_DYNAMIC_LINKER): Define.
5426         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5427         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5428         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5429         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5430         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5431         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5432         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5433         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5434         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5435         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5436         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5437         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5438         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5439         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5440         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5441         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5442         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5443         GNU_USER_DYNAMIC_LINKER.
5444         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5445         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5446         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5447         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5448         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5449         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5450         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5451         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5452         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5453         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5454
5455 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5456
5457         PR target/9601
5458         PR target/11772
5459         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5460         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5461         comment.
5462         (ix86_is_msabi_thiscall): Removed.
5463         (ix86_is_type_thiscall): Likewise.
5464         (ix86_get_callcvt): New function.
5465         (ix86_comp_type_attributes): Simplify check.
5466         (ix86_function_regparm): Use ix86_get_callcvt for calling
5467         convention attribute checks.
5468         (ix86_return_pops_args): Likewise.
5469         (ix86_static_chain): Likewise.
5470         (x86_this_parameter): Likewise.
5471         (x86_output_mi_thunk): Likewise.
5472         (ix86_function_type_abi): Optimize check for types without attributes.
5473         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5474         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5475         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5476         by flag-values.
5477         (IX86_BASE_CALLCVT): Helper macro.
5478         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5479         Use ix86_get_callcvt for calling convention attribute checks and avoid
5480         symbol-decoration for stdcall in TARGET_RTD case.
5481         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5482         Likewise.
5483         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5484         for declaration.
5485
5486 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5487
5488         * config/i386/sse.md (VI_128): New mode iterator.
5489         (VI12_128): Rename from SSEMODE12.
5490         (VI14_128): Rename from SSEMODE14.
5491         (VI124_128): New mode iterator.
5492         (VI24_128): Rename from SSEMODE248.
5493         (VI248_128): Rename from SSEMODE248.
5494         (SSEMODE124C8): Remove.
5495         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5496         (*sse2_<plusminus_insn><mode>3): Merge with
5497         *avx_<plusminus_insn><mode>3.
5498         (*mulv8hi3): Merge with *avx_mulv8hi3.
5499         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5500         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5501         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5502         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5503         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5504         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5505         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5506         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5507         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5508         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5509         (*<smaxmin:code>v8hi3): Ditto.
5510         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5511         (*<smaxmin:code>v16qi3): Ditto.
5512         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5513         (*sse2_eq<mode>3): Ditto.
5514         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5515         (*sse2_gt<mode>3): Ditto.
5516         (vcondv2di): Split out of vcond<mode>.
5517         (vconduv2di): Split out of vcondu<mode>.
5518
5519 2011-04-11  Richard Guenther  <rguenther@suse.de>
5520
5521         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5522         before calling tree_low_cst.
5523
5524 2011-04-11  Richard Guenther  <rguenther@suse.de>
5525
5526         * stor-layout.c (layout_type): Compute all array index size operations
5527         in the original type.
5528         (initialize_sizetypes): Add comment.
5529         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5530
5531 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5532
5533         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5534
5535 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5536
5537         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5538         of cgraph_node, handle NULL return value.
5539         (cgraph_global_info): Likewise.
5540         (cgraph_rtl_info): Likewise.
5541         * tree-inline.c (estimate_num_insns): Likewise.
5542         * gimplify.c (unshare_body): Likewise.
5543         (unvisit_body): Likewise.
5544         (gimplify_body): Likewise.
5545         * predict.c (optimize_function_for_size_p): Likewise.
5546         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5547         (call_may_clobber_ref_p_1): Likewise.
5548         * varasm.c (function_section_1): Likewise.
5549         (assemble_start_function): Likewise.
5550
5551 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5552
5553         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5554         of cgraph_node.
5555         * final.c (rest_of_clean_state): Likewise.
5556         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5557         * passes.c (pass_init_dump_file): Likewise.
5558         (execute_all_ipa_transforms): Likewise.
5559         (function_called_by_processed_nodes_p): Likewise.
5560         * predict.c (maybe_hot_frequency_p): Likewise.
5561         (probably_never_executed_bb_p): Likewise.
5562         (compute_function_frequency): Likewise.
5563         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5564         (unnest_nesting_tree_1): Likewise.
5565         (lower_nested_functions): Likewise.
5566         * tree-optimize.c (execute_fixup_cfg): Likewise.
5567         (tree_rest_of_compilation): Likewise.
5568         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5569         * tree-sra.c (ipa_early_sra): Likewise.
5570         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5571         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5572         * ipa.c (record_cdtor_fn): Likewise.
5573         * ipa-inline.c (cgraph_early_inlining): Likewise.
5574         (compute_inline_parameters_for_current): Likewise.
5575         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5576         * ipa-pure-const.c (local_pure_const): Likewise.
5577         * ipa-split.c (split_function): Likewise.
5578         (execute_split_functions): Likewise.
5579         * cgraphbuild.c (build_cgraph_edges): Likewise.
5580         (rebuild_cgraph_edges): Likewise.
5581         (cgraph_rebuild_references): Likewise.
5582         (remove_cgraph_callee_edges): Likewise.
5583         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5584         (verify_cgraph_node): Likewise.
5585         (cgraph_analyze_functions): Likewise.
5586         (cgraph_preserve_function_body_p): Likewise.
5587         (save_inline_function_body): Likewise.
5588         (save_inline_function_body): Likewise.
5589         * tree-inline.c (copy_bb): Likewise.
5590         (optimize_inline_calls): Likewise.
5591
5592 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5593
5594         PR tree-optimization/48195
5595         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5596         ipa_check_create_edge_args.
5597         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5598         ipa_check_create_edge_args.
5599         * ipa-inline.c (inline_generate_summary): Do not call
5600         ipa_check_create_node_params and ipa_check_create_edge_args.
5601         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5602         ipa_check_create_edge_args.
5603
5604 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5605
5606         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5607         instead of loop.
5608         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5609         * function.c (record_hard_reg_sets): Likewise.
5610         * ira.c (compute_regs_asm_clobbered): Likewise.
5611         * sched-deps.c (sched_analyze_1): Likewise.
5612         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5613
5614 2011-04-09  Xinliang David Li  <davidxl@google.com>
5615
5616         PR tree-optimization/PR48484
5617         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5618         has_valid_pred lazily
5619
5620 2011-04-09  Duncan Sands  <baldrick@free.fr>
5621
5622         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5623
5624 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5625
5626         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5627         cost of I0 to zero at the end, if any.
5628
5629 2011-04-08  Xinliang David Li  <davidxl@google.com>
5630
5631         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5632         to insane profile data.
5633
5634 2011-04-08  Xinliang David Li  <davidxl@google.com>
5635
5636         * ipa-cp.c (ipcp_update_profiling): Correct
5637          negative scale factor due to insane profile data.
5638
5639 2011-04-08  Xinliang David Li  <davidxl@google.com>
5640
5641         * final.c (dump_basic_block_info): New function.
5642         (final): Dump basic block.
5643         (final_scan_insn): Remove old dump.
5644
5645 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5646
5647         PR target/47829
5648         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5649         crtbegin/crtend.
5650
5651 2011-04-08  Michael Matz  <matz@suse.de>
5652
5653         PR middle-end/48389
5654         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5655         functions.
5656         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5657         * rtl.h (rebuild_jump_labels_chain): Declare.
5658         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5659         insns inserted on edges.
5660
5661 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5662
5663         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5664         * config/arm/arm-arches.def: New.
5665         * config/arm/arm-opts.h: New.
5666         * config/arm/genopt.sh: New.
5667         * config/arm/arm-tables.opt: New (generated).
5668         * config/arm/arm.c (arm_handle_option, arm_target_help,
5669         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5670         (all_architectures): Get most table contents from arm-arches.def.
5671         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5672         arm_selected_tune here.
5673         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5674         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5675         (march=, mcpu=, mtune=): Use Enum and Var.
5676         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5677         (arm.o): Update dependencies.
5678
5679 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5680
5681         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5682         of header_file.
5683         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5684         (write_typed_alloc_defns): Likewise.
5685         (main): Calls write_typed_alloc_defns with output_header.
5686
5687 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5688
5689         PR inline-asm/48435
5690         * ira-color.c (setup_profitable_hard_regs): Add comments.
5691         Don't take prohibited hard regs into account.
5692         (setup_conflict_profitable_regs): Rename to
5693         get_conflict_profitable_regs.
5694         (check_hard_reg_p): Check prohibited hard regs.
5695
5696 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5697
5698         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5699         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5700         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5701
5702 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5703
5704         PR target/48366
5705         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5706         move from floating point to shift amount register.
5707         (emit_move_sequence): Remove secondary reload support for floating
5708         point to shift amount amount register copies.
5709         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5710         amount register copies.
5711         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5712         register, return false if mode isn't a scalar integer mode.
5713         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5714
5715 2011-04-08  Richard Guenther  <rguenther@suse.de>
5716
5717         * gimple.c (gimple_call_flags): Remove kludge.
5718
5719 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5720
5721         * sel-sched.c (sel_region_init): Move call to
5722         sel_setup_region_sched_flags after setup_current_loop_nest.
5723
5724 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5725
5726         PR rtl-optimization/48272
5727         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5728         init_insn_reg_pressure_info.  Adjust a caller.
5729         * sched-int.h (init_insn_reg_pressure_info): Declare.
5730         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5731         when sched-pressure is enabled.
5732
5733 2011-04-08  Richard Guenther  <rguenther@suse.de>
5734
5735         * gimple.c (gimple_set_modified): Do not queue calls to
5736         MODIFIED_NORETURN_CALLS here ...
5737         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5738
5739 2011-04-08  Richard Guenther  <rguenther@suse.de>
5740
5741         PR lto/48467
5742         * toplev.c (lang_dependent_init): Do not open asm_out_file
5743         in WPA mode, nor perform debug machinery initialization.
5744         (finalize): Do not unlink asm_out_file in WPA mode.
5745
5746 2011-04-08  Richard Guenther  <rguenther@suse.de>
5747
5748         * gimple.h (gimple_call_fntype): New function.
5749         (gimple_call_return_type): Use it.
5750         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5751         * gimple-low.c (gimple_check_call_args): Likewise.
5752         * gimple.c (gimple_call_flags): Likewise.
5753         (gimple_call_arg_flags): Likewise.
5754         (gimple_call_return_flags): Likewise.
5755         * tree-cfg.c (verify_gimple_call): Likewise.
5756         (do_warn_unused_result): Likewise.
5757         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5758         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5759
5760 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5761
5762         PR rtl-optimization/48235
5763         * sel-sched.c (code_motion_process_successors): Recompute the last
5764         insn in basic block if control flow changed.
5765         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5766         Update condition for ilist_remove.
5767
5768 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5769
5770         PR rtl-optimization/48302
5771         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5772         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5773         it to record added preheader blocks.
5774         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5775         on to sel_add_loop_preheaders.
5776         (sel_region_init): Move call to setup_current_loop_nest after
5777         sel_init_bbs.
5778
5779 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5780
5781         PR target/48273
5782         * cfgloop.h (loop_has_exit_edges): New helper.
5783         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5784         non-clonable.
5785         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5786         that have no exit edges.
5787
5788 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5789
5790         PR rtl-optimization/48442
5791         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5792         all callers.  Adjust assert.
5793
5794 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5795
5796         PR tree-optimization/48377
5797         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5798         is_packed to true even for types with smaller TYPE_ALIGN than
5799         TYPE_SIZE.
5800
5801 2011-04-08  Richard Guenther  <rguenther@suse.de>
5802
5803         PR bootstrap/48513
5804         * doc/tm.texi: Re-generate.
5805
5806 2011-04-08  Wei Guozhi  <carrot@google.com>
5807
5808         PR target/47855
5809         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5810         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5811         * config/arm/arm.md (*push_multi): Change the length computation to
5812         call a C function.
5813
5814 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5815
5816         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5817         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5818         * doc/tm.texi: Regenerate.
5819         * system.h (ASM_OUTPUT_BSS): Poison.
5820         * varasm.c (asm_output_bss): Remove function.
5821         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5822
5823         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5824         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5825         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5826         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5827         Likewise.
5828         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5829         Likewise.
5830         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5831         Likewise.
5832         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5833
5834 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5835
5836         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5837         EnumValue lines.
5838
5839 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5840
5841         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5842         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5843         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5844         OPT_mcpu32.
5845         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5846         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5847         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5848         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5849         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5850         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5851         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5852         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5853         options.  Don't map other m68k options manually.  Don't handle
5854         old-style options as canonical.
5855         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5856         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5857
5858 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5859
5860         * basic-block.h (force_nonfallthru): Move to...
5861         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5862         (force_nonfallthru): ...here.
5863         * cfghooks.c (force_nonfallthru): New function.
5864         * cfgrtl.c (force_nonfallthru): Rename into...
5865         (rtl_force_nonfallthru): ...this.
5866         (commit_one_edge_insertion): Do not set AUX field.
5867         (commit_edge_insertions): Do not discover new basic blocks.
5868         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5869         (cfg_layout_rtl_cfg_hooks): Likewise.
5870         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5871         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5872         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5873
5874 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5875
5876         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5877         Remove macros.
5878
5879 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5880
5881         * config/i386/sse.md: Update copyright year.
5882         (avxcvtvecmode): Remove.
5883         (sse_movhlps): Merge with *avx_movhlps.
5884         (sse_movlhps): Merge with *avx_movlhps.
5885         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5886         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5887         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5888         (sse_loadhps): Merge with *avx_loadhps.
5889         (sse_storelps): Merge with *avx_storelps.
5890         (sse_loadlps): Merge with *avx_loadlps.
5891         (sse_movss): Merge with *avx_movss.
5892         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5893         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5894         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5895         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5896         (vec_set<mode>_0): Ditto.
5897         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5898         (sse4_1_insertps): Merge with *avx_insertps.
5899         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5900         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5901         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5902         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5903         (sse2_storehpd): Merge with *avx_storehpd.
5904         (sse2_loadhpd): Merge with *avx_loadhpd.
5905         (sse2_loadlpd): Merge with *avx_loadlpd.
5906         (sse2_movsd): Merge with *avx_movsd.
5907         (*vec_concatv2df): Merge with *vec_concatv2df.
5908
5909 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5910
5911         PR debug/48343
5912         * combine.c (combine_instructions): Add last_combined_insn,
5913         update it if insn is after it, pass it to all try_combine calls.
5914         (try_combine): Add last_combined_insn parameter, pass it instead of
5915         i3 to propagate_for_debug.
5916
5917 2011-04-07  Nick Clifton  <nickc@redhat.com>
5918
5919         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5920         to handle MDR <-> data register transfers.
5921         (movhi_internal): Likewise.
5922
5923 2011-04-07  Alan Modra  <amodra@gmail.com>
5924
5925         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5926         previous stack info.
5927
5928 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5929
5930         PR target/43920
5931         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5932         flow_find_cross_jump.  Swap variables to implement backward replacement.
5933         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5934
5935 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5936
5937         PR target/43920
5938         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5939         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5940         and bb2.
5941         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5942         src1 or src2.  Redirect edges to the last basic block.  Update
5943         frequency and count on multiple basic blocks in case of fallthru.
5944
5945 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5946
5947         PR target/43920
5948         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5949         function.
5950         (old_insns_match_p): Change return type.  Replace return false/true
5951         with return dir_none/dir_both.  Use can_replace_by.
5952         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5953         direction from dir_p.  Register replacement direction in dir, last_dir
5954         and afterlast_dir.  Handle new return type of old_insns_match_p using
5955         merge_dir.  Return replacement direction in dir_p.
5956         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5957         return type of old_insns_match_p.
5958         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5959         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5960         flow_find_cross_jump.
5961         * basic-block.h (enum replace_direction): New type.
5962         (flow_find_cross_jump): Add parameter to declaration.
5963
5964 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5965
5966         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5967         (AVXMODEDCVTPS2DQ): Ditto.
5968         (VEC_FLOAT_MODE): Ditto.
5969         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5970         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5971         (<any_logic:code><mode>3): Use VF mode iterator.
5972         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5973         Use VF mode iterator.
5974         (copysign<mode>3): Use VF mode iterator.
5975         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5976         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5977         (*<any_logic:code><MODEF:mode>3): Merge with
5978         *avx_<any_logic:code><MODEF:mode>3.
5979         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5980         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5981         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5982         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5983         (sse2_cvtdq2ps): Use %v modifier.
5984         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5985         (avx_cvtps2dq<avxmodesuffix>): Remove.
5986         (sse2_cvtps2dq): Use %v modifier.
5987         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5988         (avx_cvttps2dq<avxmodesuffix>): Remove.
5989         (sse2_cvttps2dq): Use %v modifier.
5990         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5991         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5992         (sse2_cvtsd2siq): Fix insn template.
5993         (sse2_cvtsd2siq_2): Ditto.
5994         (sse2_cvttsd2siq): Ditto.
5995         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5996         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5997
5998 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5999
6000         * gcov-io.c: Use GCC Runtime Library Exception.
6001
6002 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6003
6004         PR debug/48466
6005         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6006         as base_reg whatever register reg has been eliminated to, instead
6007         of hardcoding STACK_POINTER_REGNUM.
6008
6009 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6010
6011         * doc/tm.texi.in: Document C target hooks as separate from general
6012         target hooks.
6013         * doc/tm.texi: Regenerate.
6014         * genhooks.c (struct hook_desc): Add docname field.
6015         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6016         docname field.
6017         (hook_array): Include c-target.def.
6018         (emit_documentation): Use docname field in output.
6019         (emit_init_macros): Take docname argument.  Only emit definitions
6020         for hooks matching docname.
6021         (main): Expect additional arguments in all cases.  Pass argument
6022         to emit_init_macros.
6023         * target.def: Move initial macro definitions and comments to
6024         target-hooks-macros.h.
6025         (gcc_targetcm): Move to c-family/c-target.def.
6026         * target.h (targetcm): Move declaration to c-family/c-target.h.
6027         * targhooks.c (default_handle_c_option): Move to
6028         c-family/c-opts.c.
6029         * targhooks.h (default_handle_c_option): Move declaration to
6030         c-family/c-common.h.
6031         * target-hooks-macros.h: New file.
6032         * config.gcc (target_has_targetcm): Define and use to add to
6033         c_target_objs and cxx_target_objs.
6034         * config/default-c.c: New file.
6035         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6036         of target.h and target-def.h.
6037         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6038         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6039         darwin_check_cfstring_format_arg): Make static.
6040         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6041         TARGET_STRING_OBJECT_REF_TYPE_P,
6042         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6043         * config/darwin-protos.h (darwin_objc_construct_string,
6044         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6045         declare.
6046         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6047         TARGET_STRING_OBJECT_REF_TYPE_P,
6048         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6049         * config/t-darwin (darwin-c.o): Update dependencies.
6050         * system.h (TARGET_HAS_TARGETCM): Poison.
6051         * Makefile.in (TARGET_H): Update.
6052         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6053         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6054         (default-c.o): New target.
6055         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6056         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6057         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6058         c-target.def.
6059         (build/genhooks.o): Update dependencies.
6060
6061 2011-04-06  Richard Guenther  <rguenther@suse.de>
6062
6063         * ipa-inline.c (enum inlining_mode): Remove.
6064         (cgraph_flatten): Use some other token.
6065         (cgraph_edge_early_inlinable_p): New function, split out from ...
6066         (cgraph_perform_always_inlining): New function, split out from ...
6067         (cgraph_decide_inlining_incrementally): ... here.
6068         (cgraph_mark_inline_edge): Adjust.
6069         (cgraph_early_inlining): Re-structure.
6070         (pass_early_inline): Require SSA form.
6071
6072 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6073             Julian Brown  <julian@codesourcery.com>
6074             Mark Shinwell  <shinwell@codesourcery.com>
6075
6076         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6077         LO_REGS only for Thumb-1.
6078         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6079         be used in short instructions when optimising for size on Thumb-2.
6080
6081 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6082
6083         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6084         associated with user returns to be preserved.
6085
6086 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6087
6088         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6089         symbol_queue_size, DBXOUT_DECR_NESTING,
6090         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6091         if XCOFF_DEBUGGING_INFO.
6092
6093 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6094
6095         * config/i386/i386.md (attribute isa): New.
6096         (attribute enabled): New.
6097         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6098         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6099         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6100         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6101         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6102         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6103         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6104         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6105
6106         * config/i386/sse.md (VF): New mode iterator.
6107         (VF1): Ditto.
6108         (VF2): Ditto.
6109         (VF_128): Ditto.
6110         (SSEMODEF4): Remove.
6111         (attribute sse): Handle V8SF and V4DF modes.
6112         (<absneg:code><mode>2): Use VF mode iterator.
6113         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6114         mode iterator.
6115         (<plusminus_insn><mode>3): Use VF mode iterator.
6116         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6117         Use VF mode iterator.
6118         (<sse>_vm<plusminus_insn><mode>3): Merge with
6119         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6120         (mul<mode>3): Use VF mode iterator.
6121         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6122         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6123         mode iterator.
6124         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6125         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6126         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6127         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6128         mode iterator.
6129         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6130         Use VF1 mode iterator.
6131         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6132         (sqrt<VF2:mode>2): New expander.
6133         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6134         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6135         and sqrtv2df2.  Use VF mode iterator.
6136         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6137         mode iterator.
6138         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6139         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6140         Use VF1 mode iterator.
6141         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6142         (<smaxmin:code><mode>3): Use VF mode iterator.
6143         (*<smaxmin:code><mode>3_finite): Merge with
6144         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6145         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6146         (<sse>_vm<smaxmin:code><mode>2): Merge with
6147         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6148         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6149         mode iterator.
6150         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6151         mode iterator.
6152         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6153         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6154         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6155         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6156         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6157         VF mode iterator.
6158         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6159         Use VF_128 mode iterator.
6160         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6161         mode iterator.
6162         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6163         VF_128 mode iterator.
6164         (vcond<mode>): Use VF mode iterator.
6165         * config/i386/predicates.md (sse_comparison_operator): Merge with
6166         avx_comparison_float_operator.  Do not declare as special_predicate.
6167         * config/i386/i386.c (struct builtin_description): Update for renamed
6168         compare patterns.
6169         (ix86_expand_args_builtin): Ditto.
6170         (ix86_expand_sse_compare_mask): Ditto.
6171
6172 2011-04-06  Richard Guenther  <rguenther@suse.de>
6173
6174         * tree-inline.c (estimate_num_insns): For calls simply account
6175         for all passed arguments and a used return value.
6176
6177 2011-04-06  Richard Guenther  <rguenther@suse.de>
6178
6179         PR tree-optimization/47663
6180         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6181         call_stmt_time fields.
6182         (cgraph_edge_inlinable_p): Declare.
6183         (cgraph_edge_recursive_p): New inline function.
6184         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6185         (cgraph_clone_edge): Copy it.
6186         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6187         Account for call stmt time.
6188         (cgraph_estimate_time_after_inlining): Take edge argument.
6189         (cgraph_estimate_edge_growth): Account call stmt size.
6190         (cgraph_estimate_size_after_inlining): Take edge argument.
6191         (cgraph_mark_inline_edge): Adjust.
6192         (cgraph_check_inline_limits): Likewise.
6193         (cgraph_recursive_inlining_p): Remove.
6194         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6195         (cgraph_decide_recursive_inlining): Take edge argument and
6196         adjust.
6197         (cgraph_decide_inlining_of_small_functions): Do not avoid
6198         diags for recursive inlining here.
6199         (cgraph_flatten): Adjust.
6200         (cgraph_decide_inlining_incrementally): Likewise.
6201         (estimate_function_body_sizes): Remove call cost handling.
6202         (compute_inline_parameters): Initialize caller edge call costs.
6203         (cgraph_estimate_edge_growth): New function.
6204         (cgraph_estimate_growth): Use it.
6205         (cgraph_edge_badness): Likewise.
6206         (cgraph_check_inline_limits): Take an edge argument.
6207         (cgraph_decide_inlining_of_small_functions): Adjust.
6208         (cgraph_decide_inlining): Likewise.
6209         * tree-inline.c (estimate_num_insns): Only account for call
6210         return value if it is used.
6211         (expand_call_inline): Avoid diagnostics on recursive inline
6212         functions here.
6213         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6214         (input_edge): Input edge call costs.
6215
6216 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6217
6218         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6219
6220 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6221
6222         * doc/invoke.texi (Spec Files): Fix typo.
6223
6224 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6225
6226         * profile.c (branch_prob): Move declaration of local variable.  Remove
6227         obsolete ??? comment.  Expand the location explicitly instead of using
6228         the LOCATION_FILE and LOCATION_LINE macros.
6229
6230 2011-04-06  Wei Guozhi  <carrot@google.com>
6231
6232         PR target/47855
6233         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6234         (arm_cond_branch): Likewise.
6235         (arm_cond_branch_reversed): Likewise.
6236         (arm_jump): Likewise.
6237         (push_multi): Likewise.
6238         * config/arm/constraints.md (Py): New constraint.
6239
6240 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6241
6242         PR bootstrap/48471
6243         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6244         Move these...
6245         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6246         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6247         #ifdef DBX_DEBUGGING_INFO.
6248
6249 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6250
6251         PR bootstrap/48403
6252         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6253         if old and new states differ.
6254
6255 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6256
6257         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6258         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6259         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6260         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6261         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6262         mcfv4e): Use Alias.
6263         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6264         ColdFire options to -mcpu= options.
6265
6266 2011-04-05  Jeff Law  <law@redhat.com>
6267
6268         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6269         check if BB is a successor of LOOP->header and return
6270         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6271
6272 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6273
6274         * cprop.c (struct reg_use): Remove.
6275         (reg_use_table): Make an array of RTX.
6276         (find_used_regs, constprop_register, local_cprop_pass,
6277         bypass_block): Simplify users of reg_use_table.
6278         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6279         on one of the uses found by find_used_regs.
6280
6281 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6282
6283         PR bootstrap/48469
6284         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6285         declaration.
6286
6287 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6288
6289         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6290         as an rtx.
6291         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6292
6293 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6294
6295         PR middle-end/48441
6296         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6297
6298 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6299
6300         * combine.c: Include obstack.h.
6301         (struct insn_link): Define.
6302         (uid_log_links): Adjust type.
6303         (FOR_EACH_LOG_LINK): New macro.
6304         (insn_link_obstack): Declare.
6305         (alloc_insn_link): Define.
6306         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6307         type of link variables.
6308         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6309         (try_combine, record_promoted_values, distribute_notes): Likewise.
6310         (distribute_links): Likewise.  Tweak prototype.
6311         (clear_log_links): Delete.
6312         (adjust_for_new_dest): Call alloc_insn_link.
6313         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6314
6315 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6316
6317         * gcse.c (modify_mem_list): Convert to an array of VECs.
6318         (canon_modify_mem_list, compute_transp): Tweak formatting.
6319         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6320         (load_killed_in_block_p): Likewise.
6321         (record_last_mem_set_info): Likewise.
6322         (clear_modify_mem_tables): Likewise.
6323
6324 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6325
6326         PR middle-end/48461
6327         * function.c (emit_use_return_register_into_block): Only define if
6328         HAVE_return.
6329
6330 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6331
6332         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6333
6334 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6335
6336         * config/rx/rx-opts.h: New.
6337         * config/rx/rx.c (rx_cpu_type): Remove.
6338         (rx_handle_option): Don't assert that global structures are in
6339         use.  Access variables via opts pointer.  Defer most handling of
6340         OPT_mint_register_.  Use error_at.
6341         (rx_option_override): Handle deferred OPT_mint_register_ here.
6342         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6343         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6344         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6345         (rx_cpu_types): New Enum and EnumValue entries.
6346         (mint-register=): Use Defer and use Var accordingly.
6347
6348 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6349
6350         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6351         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6352         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6353         Move these...
6354         (debug_free_queue, debug_nesting, symbol_queue_index):
6355         ...and these...
6356         * dbxout.c: ...to here.  Make static.
6357
6358 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6359
6360         * gcse.c (modify_pair): Define.  Define a VEC of it.
6361         (canon_modify_mem_list): Convert to an array of VECs.
6362         (free_insn_expr_list_list): Delete.
6363         (clear_modify_mem_tables): Call VEC_free instead.
6364         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6365         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6366         (canon_list_insert, compute_transp): Likewise.
6367
6368 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6369
6370         PR target/43920
6371         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6372         for size.
6373
6374 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6375
6376         PR target/43920
6377         * function.c (emit_use_return_register_into_block): New function.
6378         (thread_prologue_and_epilogue_insns): Use
6379         emit_use_return_register_into_block.
6380
6381 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6382
6383         PR target/43920
6384         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6385         insn.
6386
6387 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6388
6389         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6390
6391 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6392
6393         * config/arm/arm.md (define_constants for unspec): Replace with
6394         define_c_enum.
6395         (define_constants for unspecv): Replace with define_c_enum.
6396         * config/arm/neon.md (define_constants for unspec): Replace with
6397         define_c_enum.
6398
6399 2011-04-04  Richard Henderson  <rth@redhat.com>
6400
6401         PR bootstrap/48400
6402         * dwarf2out.c (output_line_info): Always emit line info from
6403         at least one section.
6404         (dwarf2out_init): Create text_section_line_info here ...
6405         (set_cur_line_info_table): ... not here.
6406
6407 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6408
6409         PR target/48380
6410         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6411         not called.
6412
6413         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6414
6415 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6416
6417         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6418         (expr_equiv_p): Remove.
6419         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6420         (hash_scan_set): Update call to insert_set_in_table.
6421         (dump_hash_table): Dump <dest, src> pair.
6422         (lookup_set): Simplify.  Lookup <dest, src> pair.
6423         (compute_transp): Remove, fold heavily simplified code into...
6424         (compute_local_properties): ...here.  Expect COMP and TRANSP
6425         unconditionally.
6426         (find_avail_set): Take set directly from struct expr.
6427         (find_bypass-set): Likewise.
6428         (bypass_block): Likewise.
6429         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6430
6431         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6432         checks on form of COND from find_implicit_sets to here.
6433         (find_implicit_sets): Cleanup control flow. Split critical edges
6434         if it exposes implicit sets.  Allocate/resize implicit_sets as
6435         necessary.
6436         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6437         changed something.  Run df_analyze after find_implicit_sets if any
6438         edges were split.  Do not allocate implicit_sets here.
6439
6440         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6441         (gcse_obstack): Renamed to cprop_obstack.
6442         (GNEW, GNEWVEC, GNEWVAR): Remove.
6443         (gmalloc): Remove.
6444         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6445         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6446         (gcse_alloc): Likewise, and rename to cprop_alloc.
6447         (alloc_gcse_men, free_gcse_mem): Remove.
6448         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6449         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6450         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6451
6452         * cprop.c (oprs_not_set_p): Remove.
6453         (mark_set, mark_clobber): Remove.
6454         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6455         (reg_not_set_p): New function.
6456         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6457         (cprop_insn): Likewise.
6458         (cprop_jump): Use FOR_EACH_EDGE.
6459
6460 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6461
6462         PR bootstrap/48403
6463         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6464         (rank_for_schedule): Use scheduled_insns vector instead of
6465         last_scheduled_insn.
6466         (ok_for_early_queue_removal): Likewise.
6467         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6468         we have a dbg_cnt.
6469         (choose_ready): Likewise.
6470         (commit_schedule): Use VEC_iterate.
6471         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6472         a dbg_cnt, use it and ensure the first insn is in the ready list.
6473         (haifa_sched_init): Allocate scheduled_insns.
6474         (sched_extend_ready_list): Don't allocate it; reserve space.
6475         (haifa_sched_finish): Free it.
6476
6477 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6478
6479         * optc-gen.awk: Always remove type from Variable entry before
6480         recording in var_seen.
6481
6482 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6483
6484         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6485         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6486         call to tidy_fallthru_edges.
6487
6488 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6489
6490         * doc/options.texi (ToLower): Document.
6491         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6492         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6493         * opts.h (cl_option): Add cl_tolower field.
6494         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6495         arguments with lowercase strings.
6496         * config/rx/rx.opt (mcpu=): Add ToLower.
6497         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6498         argument.
6499
6500 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6501
6502         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6503
6504 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6505
6506         * config/vax/vax.c: Include reload.h.
6507
6508 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6509
6510         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6511         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6512         (sparc_preferred_reload_class): New function.
6513
6514 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6515
6516         PR debug/48401
6517         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6518         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6519
6520 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6521
6522         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6523         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6524
6525 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6526
6527         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6528         (ASM_OUTPUT_ALIGNED_BSS): Define.
6529
6530 2011-04-03  Michael Matz  <matz@suse.de>
6531
6532         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6533         and next_slot members.
6534         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6535         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6536         (lto_streamer_cache_append): Declare.
6537         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6538         unsigned index, remove offset parameter, ensure that we append
6539         or update existing entries.
6540         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6541         parameter, update next_slot for append.
6542         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6543         parameter.
6544         (lto_streamer_cache_insert_at): Likewise.
6545         (lto_streamer_cache_append): New function.
6546         (lto_streamer_cache_lookup): Use unsigned index.
6547         (lto_streamer_cache_get): Likewise.
6548         (lto_record_common_node): Don't test tree_node_can_be_shared.
6549         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6550         (lto_streamer_cache_delete): Don't free offsets member.
6551         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6552         (lto_output_string_with_length): Use lto_output_data_stream.
6553         (lto_output_tree_header): Remove ix parameter, don't write it.
6554         (lto_output_builtin_tree): Likewise.
6555         (lto_write_tree): Adjust callers to above, don't track and write
6556         offset, write unsigned index.
6557         (output_unreferenced_globals): Don't emit all global vars.
6558         (write_global_references): Use unsigned indices.
6559         (lto_output_decl_state_refs): Likewise.
6560         (write_symbol): Likewise.
6561         * lto-streamer-in.c (lto_input_chain): Move earlier.
6562         (input_function): Use unsigned index.
6563         (input_alias_pairs): Don't read and then ignore all global vars.
6564         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6565         don't pass it back, use lto_streamer_cache_append.
6566         (lto_register_var_decl_in_symtab): Use unsigned index.
6567         (lto_register_function_decl_in_symtab): Likewise.
6568         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6569         index.
6570         (lto_get_builtin_tree): Don't read index, use
6571         lto_streamer_cache_append.
6572         (lto_read_tree): Adjust call to lto_materialize_tree.
6573
6574         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6575         don't use function calls in arguments to MIN.
6576
6577         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6578         twice.
6579
6580         * gimple.c (gimple_type_leader_entry): Mark deletable.
6581
6582 2011-04-03  Alan Modra  <amodra@gmail.com>
6583
6584         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6585
6586 2011-04-03  Michael Matz  <matz@suse.de>
6587
6588         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6589         an integer.
6590         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6591
6592 2011-04-03  Michael Matz  <matz@suse.de>
6593
6594         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6595         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6596         without function context.
6597         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6598         current_function_decl and cfun.
6599
6600 2011-04-03  Michael Matz  <matz@suse.de>
6601
6602         * tree.c (decl_init_priority_insert): Don't create entry for
6603         default priority.
6604         (decl_fini_priority_insert): Ditto.
6605         (fields_compatible_p, find_compatible_field): Remove.
6606         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6607         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6608
6609 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6610
6611         * combine.c (try_combine): Remove useless local variable.
6612
6613 2011-04-03  Richard Guenther  <rguenther@suse.de>
6614             Ira Rosen  <ira.rosen@linaro.org>
6615
6616         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6617         non-variable offsets and compare the remaining bases of the two
6618         accesses instead of looking for exact same data-ref.
6619
6620 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6621
6622         PR target/48416
6623         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6624
6625         * i386.c (ix86_is_msabi_thiscall): New helper function.
6626         (ix86_is_type_thiscall): New helper function.
6627         (ix86_comp_type_attributes): Handle thiscall for method-functions
6628         special.
6629         (init_cumulative_args): Likewise.
6630         (find_drap_reg): Likewise.
6631         (ix86_static_chain): Likewise.
6632         (x86_this_parameter): Likewise.
6633         (x86_output_mi_thunk): Likewise.
6634
6635 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6636             Nicolas Setton  <setton@adacore.com>
6637             Eric Botcazou  <ebotcazou@adacore.com>
6638
6639         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6640         (add_gnat_descriptive_type_attribute): New function.
6641         (gen_array_type_die): Call it.
6642         (gen_enumeration_type_die): Likewise.
6643         (gen_struct_or_union_type_die): Likewise.
6644         (modified_type_die): Likewise.
6645         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6646         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6647         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6648
6649 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6650
6651         PR bootstrap/48148
6652         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6653         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6654
6655         Revert:
6656         2011-03-17  Richard Guenther  <rguenther@suse.de>
6657
6658         PR bootstrap/48148
6659         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6660         origin for decls in other ltrans units.
6661         (input_varpool_node): Likewise.
6662
6663 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6664
6665         PR middle-end/48335
6666         * expr.c (expand_assignment): Handle all possibilities
6667         if TO_RTX is CONCAT.
6668         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6669         (store_split_bit_field): If SUBREG_REG (op0) or
6670         op0 itself has smaller mode than word, return it
6671         for offset 0 and const0_rtx for out-of-bounds stores.
6672         If word is const0_rtx, skip it.
6673
6674 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6675
6676         * config/h8300/h8300.c (print_operand_address): Rename to...
6677         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6678         Call h8300_print_operand and h8300_print_operand_address instead of
6679         print_operand and print_operand_address. Declare.
6680         (print_operand): Renake to...
6681         (h8300_print_operand): ...this. Make static. Adjust comments.
6682         Call h8300_print_operand instead of print_operand. Declare.
6683         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6684         (h8300_register_move_cost): Likewise.
6685         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6686         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6687         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6688         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6689         * config/h8300/h8300-protos.h (print_operand): Delete.
6690         (print_operand_address): Delete.
6691
6692 2011-04-01  Richard Henderson  <rth@redhat.com>
6693
6694         PR 48400
6695         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6696         in strict mode before dwarf4.  Re-order tests to early out
6697         before switching sections.
6698
6699 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6700
6701         * config/h8300/constraints.md: New file.
6702         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6703         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6704         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6705         * config/h8300/predicates.md (bit_operand): Likewise.
6706         (incdec_operand): Use satisfies_constraint_M and
6707         satisfies_constraint_O.  Don't use C code block.
6708         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6709         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6710         (compute_mov_length): Use satisfies_constraint_G.
6711         (fix_bit_operand): Use satisfies_constraint_U.
6712         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6713         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6714         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6715         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6716         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6717         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6718         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6719         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6720         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6721         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6722         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6723         (EXTRA_MEMORY_CONSTRAINT): Delete.
6724
6725 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6726             Michael Meissner  <meissner@linux.vnet.ibm.com>
6727
6728         PR target/48262
6729         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6730         operands, as per the specifications.
6731
6732         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6733         (vec_extract_evenv4sf): Ditto.
6734         (vec_extract_evenv8hi): Ditto.
6735         (vec_extract_evenv16qi): Ditto.
6736         (vec_extract_oddv4si): Ditto.
6737
6738 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6739
6740         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6741         high_pc attribute if the CU has no associated code. Only output
6742         DW_AT_entry_pc for CU if not generating strict dwarf and
6743         dwarf_version < 4.
6744
6745 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6746
6747         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6748         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6749         out of ...
6750         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6751         * final.c (final_start_function): Call the new function rather
6752         than using a NULL argument for dwarf2out_frame_debug.
6753
6754         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6755         that contains the prologue.
6756
6757         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6758         changed.  Print it in debugging output.
6759
6760         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6761
6762         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6763         Split most of the code into...
6764         (begin_move_insn): ... here.  New function.
6765         (ebb_sched_info): Add a pointer to it.
6766         * haifa-sched.c (scheduled_insns): New static variable.
6767         (sched_extend_ready_list): Allocate it.
6768         (schedule_block): Use it to record the order of scheduled insns.
6769         Perform RTL changes to move insns only after all scheduling
6770         decisions have been made.
6771         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6772         begin_move_insn field.
6773         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6774         * sched-int.h (struct haifa_sched_info): Remove second argument
6775         from begin_schedule_ready hook.  Add new member begin_move_insn.
6776         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6777         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6778
6779         * haifa-sched.c (prune_ready_list): New function, broken out of
6780         schedule_block.
6781         (schedule_block): Use it.
6782
6783 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6784
6785         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6786
6787 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6788
6789         * config.gcc (*-*-mingw*): Allow as option the
6790         posix threading model.
6791         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6792         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6793         definition.
6794         (CPP_SPEC): Add pthread/no-pthread handling.
6795         (LIB_SPEC): Likewise.
6796         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6797         (LIB_SPEC): Likewise.
6798         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6799         flag to pass -pthread option for shared libgcc build.
6800         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6801         for shared libgcc build.
6802         * config/i386/t-mingw-pthread: New file.
6803         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6804         New define to enable use of library pthread by default.
6805         * config/i386/mingw.opt (pthread): New driver option.
6806         (no-pthread): New driver option.
6807         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6808         * config/i386/mingw-w64.opt: Likewise.
6809
6810 2011-04-01  Gary Funck  <gary@intrepid.com>
6811
6812         * c-decl.c (grokdeclarator): Fix formatting.
6813
6814 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6815
6816         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6817         instead of n_operands.
6818         (set_storage_via_setmem): Likewise.
6819         * optabs.c (maybe_gen_insn): Likewise.
6820         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6821         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6822         (mips_expand_builtin_direct): Likewise.
6823         * config/spu/spu.c (expand_builtin_args): Likewise.
6824
6825 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6826
6827         * recog.h (insn_data_d): Add n_generator_args.
6828         * genoutput.c (data): Likewise.
6829         (output_insn_data): Print it.
6830         (max_opno, num_dups): Delete.
6831         (scan_operands): Just fill in "d->operand[...]".
6832         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6833
6834 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6835
6836         * gensupport.h (pattern_stats): New structure.
6837         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6838         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6839         (max_operand_1, max_operand_vec): Delete.
6840         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6841
6842 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6843
6844         * emit-rtl.c (emit_pattern_after_setloc): New function.
6845         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6846         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6847         (emit_pattern_after): New function.
6848         (emit_insn_after, emit_jump_insn_after): Call it.
6849         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6850         (emit_pattern_before_setloc): New function.
6851         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6852         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6853         Likewise.
6854         (emit_pattern_before): New function.
6855         (emit_insn_before, emit_jump_insn_before): Call it.
6856         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6857
6858 2011-03-31  Richard Henderson  <rth@redhat.com>
6859
6860         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6861         (dw_separate_line_info_entry): Remove.
6862         (enum dw_line_info_opcode): New.
6863         (dw_line_info_entry): Use it.
6864         (dw_line_info_table, dw_line_info_table_p): New.
6865         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6866         (line_info_table, line_info_label_num): Remove.
6867         (line_info_table_in_use): Remove.
6868         (separate_line_info_table): Remove.
6869         (separate_line_info_table_allocated): Remove.
6870         (separate_line_info_table_in_use): Remove.
6871         (LINE_INFO_TABLE_INCREMENT): Remove.
6872         (line_info_label_num): New.
6873         (cur_line_info_table): New.
6874         (text_section_line_info, cold_text_section_line_info): New.
6875         (separate_line_info): New.
6876         (SEPARATE_LINE_CODE_LABEL): Remove.
6877         (print_dwarf_line_table): Remove.
6878         (debug_dwarf): Don't dump it.
6879         (output_one_line_info_table): New.
6880         (output_line_info): Use it.
6881         (new_line_info_table): New.
6882         (set_cur_line_info_table): New.
6883         (dwarf2out_switch_text_section): Use it.
6884         (dwarf2out_begin_function): Likewise.
6885         (push_dw_line_info_entry): New.
6886         (dwarf2out_source_line): Rewrite for new line info tables.
6887         (dwarf2out_init): Remove dead initailizations.
6888
6889 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6890
6891         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6892         various flags.
6893         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6894         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6895         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6896         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6897         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6898         * opt-functions.awk (flag_init, switch_bit_fields): New.
6899         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6900         generate CL_MISSING_OK or CL_SAVE.
6901         * optc-gen.awk: Update to generate bit-field output as well as
6902         flags field.
6903         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6904         bit-field instead of CL_REJECT_DRIVER flag.
6905         * opts-common.c (generate_canonical_option,
6906         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6907         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6908         instead of CL_REJECT_NEGATIVE flag.
6909         * toplev.c (print_switch_values): Use cl_report bit-field instead
6910         of CL_REPORT flag.
6911
6912 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6913
6914         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6915         a zero minimum index only if it is redundant.
6916
6917 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6918
6919         PR rtl-optimization/48381
6920         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6921         instead of ira_class_hard_reg_index for calculating conflicting
6922         hard registers.
6923
6924 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6925
6926         * cprop.c: Clean up hash table building.
6927         (reg_avail_info): Remove.
6928         (oprs_available_p): Remove.
6929         (record_last_reg_set_info): Remove.
6930         (record_last_set_info): Remove.
6931         (reg_available_p): New function.
6932         (gcse_constant_p): Do not treat unfolded conditions as constants.
6933         (make_set_regs_unavailable): New function.
6934         (hash_scan_set): Simplify with new reg_available_p.
6935         (compute_hash_table_work): Traverse insns stream only once.
6936         Do not compute reg_avail_info. Traverse insns in reverse order.
6937         Record implicit sets after recording explicit sets from the block.
6938
6939 2011-03-31  Michael Matz  <matz@suse.de>
6940
6941         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6942
6943 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6944
6945         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6946         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6947         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6948         (h8300_mode_dependent_address_p): New function.
6949         (h8300_get_index): Make static.
6950
6951 2011-03-31  Jeff Law  <law@redhat.com>
6952
6953         * reload1.c (elimination_effects): Fix typo in recent change.
6954
6955         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6956         typo potentially leading to null pointer dereference.
6957
6958         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6959         (setup_save_areas): Corresponding changes to avoid useless
6960         assignments.
6961
6962         * jump.c (reversed_comparison_code_parts): Avoid successive return
6963         statements when REVERSE_CONDITION is defined.
6964
6965         * expr.c (expand_assignment): Avoid useless assignments.
6966         (expand_expr_real_1): Likewise.
6967         (expand_expr_real_2): Avoid useless statements.
6968
6969         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6970
6971         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6972
6973         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6974         statements.
6975
6976         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6977
6978 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6979
6980         PR target/47109
6981         * doc/tm.texi.in (TARGET_VERSION): Remove.
6982         * doc/tm.texi: Regenerate.
6983         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6984         * collect2.c (main): Don't use TARGET_VERSION.
6985         * mips-tdump.c (main): Don't use TARGET_VERSION.
6986         * mips-tfile.c (main): Don't use TARGET_VERSION.
6987         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6988         * config/rs6000/vxworksae.h: Remove.
6989         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6990         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6991         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6992         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6993         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6994         * config/arm/arm.h (TARGET_VERSION): Remove.
6995         * config/arm/coff.h (TARGET_VERSION): Remove.
6996         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6997         * config/arm/elf.h (TARGET_VERSION): Remove.
6998         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6999         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7000         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7001         * config/arm/pe.h (TARGET_VERSION): Remove.
7002         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7003         * config/arm/semi.h (TARGET_VERSION): Remove.
7004         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7005         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7006         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7007         * config/avr/avr.h (TARGET_VERSION): Remove.
7008         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7009         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7010         * config/frv/frv.h (TARGET_VERSION): Remove.
7011         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7012         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7013         * config/i386/darwin.h (TARGET_VERSION): Remove.
7014         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7015         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7016         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7017         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7018         * config/i386/gnu.h (TARGET_VERSION): Remove.
7019         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7020         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7021         * config/i386/linux.h (TARGET_VERSION): Remove.
7022         * config/i386/linux64.h (TARGET_VERSION): Remove.
7023         * config/i386/lynx.h (TARGET_VERSION): Remove.
7024         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7025         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7026         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7027         * config/i386/netware.h (TARGET_VERSION): Remove.
7028         * config/i386/nto.h (TARGET_VERSION): Remove.
7029         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7030         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7031         * config/ia64/elf.h (TARGET_VERSION): Remove.
7032         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7033         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7034         * config/ia64/linux.h (TARGET_VERSION): Remove.
7035         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7036         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7037         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7038         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7039         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7040         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7041         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7042         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7043         * config/m68k/linux.h (TARGET_VERSION): Remove.
7044         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7045         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7046         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7047         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7048         * config/mep/mep.h (TARGET_VERSION): Remove.
7049         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7050         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7051         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7052         * config/mips/linux.h (TARGET_VERSION): Remove.
7053         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7054         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7055         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7056         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7057         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7058         * config/pa/pa.h (TARGET_VERSION): Remove.
7059         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7060         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7061         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7062         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7063         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7064         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7065         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7066         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7067         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7068         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7069         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7070         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7071         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7072         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7073         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7074         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7075         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7076         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7077         * config/s390/linux.h (TARGET_VERSION): Remove.
7078         * config/s390/s390.h (TARGET_VERSION): Remove.
7079         * config/s390/tpf.h (TARGET_VERSION): Remove.
7080         * config/score/score.h (TARGET_VERSION): Remove.
7081         * config/sh/linux.h (TARGET_VERSION): Remove.
7082         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7083         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7084         * config/sh/sh.h (TARGET_VERSION): Remove.
7085         * config/sh/sh64.h (TARGET_VERSION): Remove.
7086         * config/sh/superh.h (TARGET_VERSION): Remove.
7087         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7088         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7089         * config/sparc/linux.h (TARGET_VERSION): Remove.
7090         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7091         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7092         TARGET_NAME32, TARGET_NAME): Remove.
7093         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7094         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7095         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7096         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7097         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7098         * config/spu/spu.h (TARGET_VERSION): Remove.
7099         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7100         * config/v850/v850.h (TARGET_VERSION): Remove.
7101         * config/vax/linux.h (TARGET_VERSION): Remove.
7102         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7103         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7104         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7105
7106 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7107
7108         PR target/48142
7109         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7110         frame-related from frame-unrelated adjustments to the stack pointer.
7111
7112 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7113
7114         * common.opt (fdebug-types-section): Move earlier.
7115         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7116
7117 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7118
7119         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7120         var.
7121
7122 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7123
7124         * tree.h (CASE_CHAIN): Define.
7125         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7126         (gimple_redirect_edge_and_branch): Likewise.
7127
7128 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7129
7130         PR middle-end/48367
7131         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7132         calculation.
7133
7134 2011-03-30  Jeff Law  <law@redhat.com>
7135
7136         * PR bootstrap/48371
7137         * reload1.c (reload): Fix botch in last change.
7138
7139         * reload.h (struct reload): Fix typo introduced in last change.
7140
7141 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7142
7143         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7144         Undocumented.  Remove help text.
7145         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7146         -mhard-float.
7147
7148 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7149
7150         * doc/options.texi (NegativeAlias): Document.
7151         (Alias): Mention NegativeAlias.
7152         * opt-functions.awk: Handle NegativeAlias.
7153         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7154         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7155         * opts.h (CL_NEGATIVE_ALIAS): Define.
7156         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7157         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7158         OPT_mspe_.
7159         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7160         Alias entries.
7161         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7162         mno-spe and mno-isel instead of mspe=no and -misel=no.
7163
7164 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7165
7166         * common.opt (fdebug-types-section): New flag.
7167         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7168         * dwarf2out.c (use_debug_types): New define.
7169         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7170         (print_die): Guard output of type unit signatures using
7171         use_debug_types.
7172         (build_abbrev_table): Replace assert of dwarf_version >= 4
7173         with assert on use_debug_types.
7174         (size_of_die): Likewise.
7175         (unmark_dies): Likewise.
7176         (value_format): Decide AT_ref_external form on use_debug_types.
7177         (output_die): Replace dwarf_version version check guard with
7178         use_debug_types where appropriate.
7179         (modified_type_die): Likewise.
7180         (gen_reference_type_die): Likewise.
7181         (dwarf2out_start_source_file): Likewise.
7182         (dwarf2out_end_source_file): Likewise.
7183         (prune_unused_types_walk_attribs): Likewise.
7184         (dwarf2out_finish): Likewise.
7185
7186 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7187
7188         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7189
7190 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7191
7192         PR rtl-optimization/48332
7193         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7194         mode of input operand N and modeN to its actual mode.
7195
7196 2011-03-30  Jeff Law  <law@redhat.com>
7197
7198         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7199         define accessor macro.
7200         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7201         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7202         (reg_equiv_init): Likewise.
7203         (reg_equivs_size): New variable.
7204         (reg_equiv_init_size): Remove.
7205         (allocate_initial_values): Move prototype to here from....
7206         * integrate.h (allocate_initial_values): Remove prototype.
7207         * integrate.c: Include reload.h.
7208         (allocate_initial_values): Corresponding changes.
7209         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7210         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7211         (update_equiv_regs): Corresponding changes.
7212         (ira): Corresponding changes.
7213         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7214         (push_secondary_reload): Corresponding changes.
7215         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7216         (make_memloc, find_reloads_address): Corresponding changes.
7217         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7218         (find_reloads_address_1): Corresponding changes.
7219         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7220         (refers_to_regno_for_reload_p): Corresponding changes.
7221         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7222         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7223         * reload1.c: Include ggc.h.
7224         (grow_reg_equivs): New function.
7225         (replace_pseudos_in, reload): Corresponding changes.
7226         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7227         (eliminate_regs_1, elimination_effects): Corresponding changes.
7228         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7229         (delete_output_reload): Likewise.
7230         * caller-save.c (mark_referenced_regs): Corresponding changes.
7231         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7232         * frv/predicates.md (frv_load_operand): Corresponding changes.
7233         * microblaze/microblaze.c (double_memory_operand): Corresponding
7234         changes.
7235         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7236         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7237         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7238         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7239         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7240         changes.
7241         * pa/pa.c (emit_move_sequence): Corresponding changes.
7242         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7243
7244 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7245
7246         PR target/47551
7247         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7248         structure modes.  Don't check neon_vector_mem_operand for
7249         vector or structure modes.
7250
7251 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7252             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7253
7254         PR target/43590
7255         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7256         operand 1 and reshuffle the operands to match.
7257         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7258
7259 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7260
7261         PR driver/48208
7262         * config/c.opt (F): Added 'Driver' to -F option.
7263
7264         PR driver/48260
7265         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7266           handler function.
7267         * config/darwin.opt: Added '-arch' option.
7268
7269 2011-03-30  Nick Clifton  <nickc@redhat.com>
7270
7271         * config/rx/rx.md: Add peepholes and patterns to combine
7272         extending loads and simple arithmetic instructions.
7273         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7274         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7275         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7276         modes to use pre-decrement and post-increment addressing.
7277         (rx_is_restricted_memory_address): Add range checking of REG+INT
7278         addresses.
7279         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7280         (rx_memory_move_cost): Adjust cost of stores.
7281         (rx_adjust_insn_length): New function.
7282
7283 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7284
7285         PR c/48305
7286         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7287         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7288         matching arg00/arg01 types.
7289
7290 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7291
7292         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7293         last_location to UNKNOWN_LOCATION.
7294
7295 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7296
7297         PR target/48349
7298         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7299         FLOAT_SSE_REGS.
7300
7301 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7302             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7303
7304         PR bootstrap/48337
7305         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7306         Init(PROCESSOR_V7).
7307         (sparc_cpu): Likewise.
7308         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7309         PROCESSOR_V7.
7310
7311 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7312
7313         PR target/48336
7314         PR middle-end/48342
7315         PR rtl-optimization/48345
7316         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7317         hard regs for given mode from profitable regs when doing secondary
7318         allocation.
7319
7320 2011-03-29  Jeff Law  <law@redhat.com>
7321
7322         PR bootstrap/48327
7323         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7324         do_not_duplicate field.
7325         (lookup_redirection_data): Corresponding changes.
7326         (create_duplicates): Always create a template block.
7327         (redirect_edges): Remove code which reused the original block
7328         when it was going to become unreachable code.
7329         (thread_block): Don't set do_not_duplicate field.
7330
7331 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7332
7333         * lto-opts.c (register_user_option_p, lto_register_user_option):
7334         Make type argument unsigned.
7335         * lto-streamer.h (lto_register_user_option): Make type argument
7336         unsigned.
7337         * opth-gen.awk: Make CL_* macros unsigned.
7338         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7339         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7340         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7341         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7342         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7343         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7344         (find_opt): Make lang_mask argument unsigned.
7345
7346 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7347
7348         PR rtl-optimization/48331
7349         PR rtl-optimization/48334
7350         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7351         for any used algorithm.
7352
7353 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7354
7355         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7356         to parent_max.
7357
7358 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7359
7360         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7361         (alpha_option_override): Don't set alpha_sr_alias_set.
7362         (emit_frame_store_1): Use gen_frame_mem rather than calling
7363         set_mem_alias_set.
7364         (alpha_expand_epilogue): Ditto.
7365
7366 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7367
7368         PR tree-optimization/48290
7369         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7370         vectorization, check that relevant phis in the basic block after
7371         the inner loop are really inner loop's exit phis.
7372
7373 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7374
7375         PR debug/48190
7376         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7377         (cached_dw_loc_list_def): New structure.
7378         (cached_dw_loc_list): New typedef.
7379         (cached_dw_loc_list_table): New variable.
7380         (cached_dw_loc_list_table_hash): New function.
7381         (cached_dw_loc_list_table_eq): Likewise.
7382         (add_location_or_const_value_attribute): Take a bool cache_p.
7383         Cache the list when the parameter is true.
7384         (gen_formal_parameter_die): Update caller.
7385         (gen_variable_die): Likewise.
7386         (dwarf2out_finish): Likewise.
7387         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7388         while generating debug info for the decl.
7389         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7390         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7391         (resolve_addr): Cache the result of resolving a chain of
7392         location lists.
7393
7394 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7395
7396         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7397         conflict object hard regset nodes have intersecting hard reg sets.
7398
7399         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7400         after regstat_init_n_sets_and_refs.
7401
7402         * ira.c: Add more comments at the top.
7403         (setup_stack_reg_pressure_class, setup_pressure_classes):
7404         Add comments how we compute the register pressure classes.
7405         (setup_allocno_and_important_classes): Add more comments.
7406         (setup_class_translate_array, reorder_important_classes)
7407         (setup_reg_class_relations): Add comments.
7408
7409         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7410         start of the file.
7411
7412         * ira-color.c: Add 2011 to the Copyright line.
7413         (assign_hard_reg):  Add more comments.
7414         (improve_allocation): Ditto.
7415
7416         * ira-costs.c: Add 2011 to the Copyright line.
7417         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7418         comments.
7419         (setup_regno_cost_classes_by_mode): Ditto.
7420
7421         Initial patches from ira-improv branch:
7422
7423         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7424
7425         * ira-build.c (ira_create_object): Remove initialization of
7426         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7427         (ira_create_allocno): Remove initialization of
7428         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7429         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7430         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7431         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7432         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7433         Initialize ALLOCNO_ADD_DATA.
7434         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7435         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7436         ALLOCNO_REG.
7437         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7438         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7439
7440         * ira.c (ira_reallocate): Remove.
7441         (setup_pressure_classes): Call
7442         ira_init_register_move_cost_if_necessary.  Use
7443         ira_register_move_cost instead of ira_get_register_move_cost.
7444         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7445         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7446
7447         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7448         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7449         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7450         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7451         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7452         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7453         Fix formatting.
7454         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7455         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7456         (struct allocno_color_data): New.
7457         (allocno_color_data_t): New typedef.
7458         (allocno_color_data): New definition.
7459         (ALLOCNO_COLOR_DATA): New macro.
7460         (struct object_color_data): New.
7461         (object_color_data_t): New typedef.
7462         (object_color_data): New definition.
7463         (OBJECT_COLOR_DATA): New macro.
7464         (update_copy_costs, calculate_allocno_spill_cost): Call
7465         ira_init_register_move_cost_if_necessary.  Use
7466         ira_register_move_cost instead of ira_get_register_move_cost.
7467         (move_spill_restore, update_curr_costs): Ditto.
7468         (allocno_spill_priority): Make it inline.
7469         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7470         (struct coalesce_data, coalesce_data_t): New.
7471         (allocno_coalesce_data): New definition.
7472         (ALLOCNO_COALESCE_DATA): New macro.
7473         (merge_allocnos, coalesced_allocno_conflict_p): Use
7474         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7475         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7476         (coalesce_allocnos): Ditto.
7477         (setup_coalesced_allocno_costs_and_nums): Ditto.
7478         (collect_spilled_coalesced_allocnos): Ditto.
7479         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7480         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7481         (coalesce_spill_slots): Ditto.
7482         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7483         free allocno_coalesce_data.
7484
7485         * ira-conflicts.c: Fix formatting.
7486         (process_regs_for_copy): Call
7487         ira_init_register_move_cost_if_necessary.  Use
7488         ira_register_move_cost instead of ira_get_register_move_cost.
7489         (build_object_conflicts): Optimize.
7490
7491         * ira-costs.c (record_reg_classes): Optimize.  Call
7492         ira_init_register_move_cost_if_necessary.  Use
7493         ira_register_move_cost, ira_may_move_in_cost, and
7494         ira_may_move_out_cost instead of ira_get_register_move_cost and
7495         ira_get_may_move_cost.
7496         (record_address_regs): Ditto.
7497         (scan_one_insn): Optimize.
7498         (find_costs_and_classes): Optimize.
7499         (process_bb_node_for_hard_reg_moves): Call
7500         ira_init_register_move_cost_if_necessary.  Use
7501         ira_register_move_cost instead of ira_get_register_move_cost.
7502
7503         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7504         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7505         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7506         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7507         definitions.
7508         (ira_initiate_emit_data, ira_finish_emit_data)
7509         (create_new_allocno): New functions.
7510         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7511         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7512         Use ira_register_move_cost instead of ira_get_register_move_cost.
7513
7514         * ira-int.h: Fix some comments.
7515         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7516         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7517         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7518         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7519         add_data.
7520         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7521         bitfield after mode.  Make hard_regno a short int.  Make
7522         hard_regno short.  Remove first_coalesced_allocno and
7523         next_coalesced_allocno.  Move mem_optimized_dest_p,
7524         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7525         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7526         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7527         temp, colorable_p.  Add new member add_data.
7528         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7529         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7530         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7531         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7532         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7533         (ALLOCNO_ADD_DATA): New macro.
7534         (ira_emit_data_t): New typedef.
7535         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7536         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7537         from struct ira_allocno.
7538         (ALLOCNO_EMIT_DATA): New macro.
7539         (ira_allocno_emit_data, allocno_emit_reg): New.
7540         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7541         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7542         (OBJECT_ADD_DATA): New macro.
7543         (ira_reallocate): Remove.
7544         (ira_initiate_emit_data, ira_finish_emit_data): New.
7545         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7546         (ira_init_register_move_cost_if_necessary): New.
7547         (ira_object_conflict_iter_next): Merge into
7548         ira_object_conflict_iter_cond.
7549         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7550
7551         * ira-live.c (process_single_reg_class_operands): Call
7552         ira_init_register_move_cost_if_necessary.  Use
7553         ira_register_move_cost instead of ira_get_register_move_cost.
7554
7555         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7556
7557         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7558
7559         * ira-costs.c: Fix formatting.
7560         (cost_classes, cost_classes_num): Remove.
7561         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7562         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7563         (cost_classes_del, cost_classes_htab): New.
7564         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7565         (initiate_regno_cost_classes, setup_cost_classes): New.
7566         (setup_regno_cost_classes_by_aclass): New.
7567         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7568         (record_reg_classes): Use regno_cost_classes instead of
7569         cost_classes.  Move checking opposite operand up.
7570         (record_address_regs): Use regno_cost_classes
7571         instead of cost_classes.
7572         (scan_one_insn): Ditto.  Use always general register.
7573         (print_allocno_costs): Use regno_cost_classes instead of
7574         cost_classes.
7575         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7576         (find_costs_and_classes): Set up cost classes for each registers.
7577         Use also their mode for this.  Use regno_cost_classes instead of
7578         cost_classes.
7579         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7580         cost_classes.
7581         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7582         (ira_costs, ira_set_pseudo_classes): Call
7583         initiate_regno_cost_classes and finish_regno_cost_classes.
7584
7585         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7586
7587         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7588
7589         * target.def (ira_cover_classes): Remove.
7590
7591         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7592
7593         * doc/tm.texi.in: Ditto.
7594
7595         * ira-conflicts.c: Remove mentioning cover classes from the file.
7596         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7597         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7598
7599         * targhooks.c (default_ira_cover_classes): Remove.
7600
7601         * targhooks.h (default_ira_cover_classes): Ditto.
7602
7603         * haifa-sched.c: Remove mentioning cover classes from the file.
7604         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7605         ira_pressure_classes and ira_pressure_classes_num instead of
7606         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7607         sched_regno_pressure_class instead of sched_regno_cover_class.
7608         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7609         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7610
7611         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7612         classes from the file.
7613         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7614         (struct object_hard_regs, struct object_hard_regs_node): New.
7615         (struct ira_object): New members profitable_hard_regs,
7616         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7617         (struct ira_allocno): Rename cover_class to aclass.  Rename
7618         cover_class_cost and updated_cover_class_cost to class_cost and
7619         updated_class_cost.  Remove splay_removed_p and
7620         left_conflict_size.  Add new members colorable_p.
7621         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7622         (ALLOCNO_COLORABLE_P): New macro.
7623         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7624         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7625         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7626         (OBJECT_...): Rename parameter C to O.
7627         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7628         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7629         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7630         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7631         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7632         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7633         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7634         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7635         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7636         x_ira_reg_class_subunion.
7637         (ira_max_memory_move_cost, ira_max_register_move_cost)
7638         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7639         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7640         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7641         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7642         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7643         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7644         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7645         (ira_tune_allocno_costs_and_cover_classes): Rename to
7646         ira_tune_allocno_costs.
7647         (ira_debug_hard_regs_forest): New.
7648         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7649         (ira_object_conflict_iter_next): Fix comments.
7650         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7651         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7652         cover_class to aclass.
7653         (ira_allocate_and_accumulate_costs): Ditto.
7654         (ira_allocate_and_set_or_copy_costs): Ditto.
7655
7656         * opts.c (decode_options): Remove ira_cover_class check.
7657
7658         * ira-color.c: Remove mentioning cover classes from the file.  Use
7659         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7660         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7661         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7662         (splay-tree.h): Remove include.
7663         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7664         before copy_freq_compare_func.
7665         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7666         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7667         New definitions.
7668         (hard_regs_roots, hard_regs_node_vec): Ditto.
7669         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7670         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7671         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7672         (create_new_object_hard_regs_node): Ditto.
7673         (add_new_object_hard_regs_node_to_forest): Ditto.
7674         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7675         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7676         Ditto.
7677         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7678         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7679         (remove_unused_object_hard_regs_nodes): Ditto.
7680         (enumerate_object_hard_regs_nodes): Ditto.
7681         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7682         (object_hard_regs_subnode_t): Ditto.
7683         (struct object_hard_regs_subnode): Ditto.
7684         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7685         (setup_object_hard_regs_subnode_index): Ditto.
7686         (get_object_hard_regs_subnodes_num): Ditto.
7687         (form_object_hard_regs_nodes_forest): Ditto.
7688         (finish_object_hard_regs_nodes_tree): Ditto.
7689         (finish_object_hard_regs_nodes_forest): Ditto.
7690         (allocnos_have_intersected_live_ranges_p): Rename to
7691         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7692         (pseudos_have_intersected_live_ranges_p): Rename to
7693         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7694         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7695         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7696         (update_copy_costs): Remove assert.  Skip cost update if the hard
7697         reg does not belong the class.
7698         (assign_hard_reg): Process only profitable hard regs.
7699         (uncolorable_allocnos_num): Make it scalar.
7700         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7701         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7702         and ira_reg_class_max_nregs.
7703         (bucket_allocno_compare_func): Check frequency first.
7704         (sort_bucket): Add compare function as a parameter.
7705         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7706         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7707         (push_allocno_to_stack): Rewrite for checking new allocno
7708         colorability.
7709         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7710         (push_only_colorable): Pass new parameter to sort_bucket.
7711         (push_allocno_to_spill): Remove.
7712         (allocno_spill_priority_compare): Make it inline and rewrite.
7713         (splay_tree_allocate, splay_tree_free): Remove.
7714         (allocno_spill_sort_compare): New function.
7715         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7716         build and use splay tree.  Choose first allocno in uncolorable
7717         allocno bucket to spill.  Remove setting spill cost.
7718         (all_conflicting_hard_regs): Remove.
7719         (setup_allocno_available_regs_num): Check only profitable hard
7720         regs.  Print info about hard regs nodes.
7721         (setup_allocno_left_conflicts_size): Remove.
7722         (put_allocno_into_bucket): Don't call
7723         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7724         (improve_allocation): New.
7725         (color_allocnos): Call setup_profitable_hard_regs,
7726         form_object_hard_regs_nodes_forest, improve_allocation,
7727         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7728         (print_loop_title): Use pressure classes.
7729         (color_allocnso): Ditto.
7730         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7731         and allocnos_for_spilling.
7732         (ira_sort_regnos_for_alter_reg): Don't setup members
7733         {first,next}_coalesced_allocno.
7734         (color): Remove allocating and freeing removed_splay_allocno_vec.
7735         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7736         prohibited_class_mode_regs.
7737
7738         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7739         formatting.
7740         (update_allocno_pressure_excess_length): Use pressure classes.
7741         (inc_register_pressure, dec_register_pressure): Check for pressure
7742         class.
7743         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7744         pressure class.  Use ira_reg_class_nregs instead of
7745         ira_reg_class_max_nregs.
7746         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7747         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7748         (single_reg_class): Use ira_reg_class_nregs instead of
7749         ira_reg_class_max_nregs.
7750         (process_bb_node_lives): Use pressure classes.
7751
7752         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7753         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7754         (change_loop): Use pressure classes.
7755         (modify_move_list): Call ira_set_allocno_class instead of
7756         ira_set_allocno_cover_class.
7757
7758         * ira-build.c: Remove mentioning cover classes from the file.  Use
7759         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7760         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7761         ALLOCNO_UPDATED_CLASS_COST instead of
7762         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7763         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7764         (ira_create_allocno): Remove initialization of
7765         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7766         ALLOCNO_COLORABLE_P.
7767         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7768         Update conflict regs for the objects.
7769         (create_cap_allocno): Remove assert.  Don't propagate
7770         ALLOCNO_AVAILABLE_REGS_NUM.
7771         (ira_free_allocno_costs): New function.
7772         (finish_allocno): Change a part of code into call of
7773         ira_free_allocno_costs.
7774         (low_pressure_loop_node_p): Use pressure classes.
7775         (object_range_compare_func): Don't compare classes.
7776         (setup_min_max_conflict_allocno_ids): Ditto.
7777
7778         * loop-invariant.c: Remove mentioning cover classes from the file.
7779         Use ira_pressure_classes and ira_pressure_classes_num instead of
7780         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7781         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7782         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7783         Use reg_allocno_class instead of reg_cover_class.
7784         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7785         STACK_REG_COVER_CLASS.
7786         (get_regno_cover_class): Rename to get_regno_pressure_class.
7787         (move_loop_invariants): Initialize and finalize regstat.
7788
7789         * ira.c: Remove mentioning cover classes from the file.  Add
7790         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7791         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7792         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7793         setup_class_subset_and_memory_move_costs.
7794         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7795         (setup_cover_and_important_classes): Rename to
7796         setup_allocno_and_important_classes.
7797         (setup_class_translate_array): New.
7798         (setup_class_translate): Call it for allocno and pressure classes.
7799         (cover_class_order): Rename to allocno_class_order.
7800         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7801         of ira_class_translate.
7802         (reorder_important_classes): Set up ira_important_class_nums.
7803         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7804         (print_class_cover): Rename to print_classes.  Add parameter.
7805         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7806         Print pressure classes too.
7807         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7808         setup_reg_subclasses.
7809         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7810         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7811         (setup_prohibited_class_mode_regs): Use
7812         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7813         (clarify_prohibited_class_mode_regs): New function.
7814         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7815         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7816         (ira_init_once): Initialize them.
7817         (free_register_move_costs): Process them.
7818         (ira_init): Move calls of find_reg_classes and
7819         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7820         Call clarify_prohibited_class_mode_regs.
7821         (ira_no_alloc_reg): Remove.
7822         (too_high_register_pressure_p): Use pressure classes.
7823
7824         * sched-deps.c: Remove mentioning cover classes from the file.
7825         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7826         ira_pressure_classes and ira_pressure_classes_num instead of
7827         ira_reg_class_cover_size and ira_reg_class_cover.
7828         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7829         sched_regno_pressure_class instead of sched_regno_cover_class.
7830         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7831         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7832
7833         * ira.h: Add 2010 to Copyright.
7834         (ira_no_alloc_reg): Remove external.
7835         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7836         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7837         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7838         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7839         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7840         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7841         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7842         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7843         x_ira_no_alloc_regs.
7844         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7845         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7846         ira_allocno_classes_num and ira_allocno_classes.
7847         (ira_class_translate): Rename to ira_allocno_class_translate.
7848         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7849         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7850         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7851         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7852         (ira_no_alloc_regs): New.
7853
7854         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7855         classes from the file.  Use ALLOCNO_CLASS instead of
7856         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7857         ALLOCNO_COVER_CLASS_COST.
7858         (regno_cover_class): Rename to regno_aclass.
7859         (record_reg_classes): Use ira_reg_class_subunion instead of
7860         ira_reg_class_union.
7861         (record_address_regs): Check overflow.
7862         (scan_one_insn): Ditto.
7863         (print_allocno_costs): Print total mem cost fore regional allocation.
7864         (print_pseudo_costs): Use REG_N_REFS.
7865         (find_costs_and_classes): Use classes intersected with them on the
7866         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7867         ira_reg_class_union.  Use ira_allocno_class_translate and
7868         regno_aclass instead of ira_class_translate and regno_cover_class.
7869         Modify code for finding regno_aclass.  Setup preferred classes for
7870         the next pass.
7871         (setup_allocno_cover_class_and_costs): Rename to
7872         setup_allocno_class_and_costs.  Use regno_aclass instead of
7873         regno_cover_class.  Use ira_set_allocno_class instead of
7874         ira_set_allocno_cover_class.
7875         (init_costs, finish_costs): Use regno_aclass instead of
7876         regno_cover_class.
7877         (ira_costs): Use setup_allocno_class_and_costs instead of
7878         setup_allocno_cover_class_and_costs.
7879         (ira_tune_allocno_costs_and_cover_classes): Rename to
7880         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7881         by processing objects.  Use ira_reg_class_max_nregs instead of
7882         ira_reg_class_nregs.
7883
7884         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7885
7886         * sched-int.h: Remove mentioning cover classes from the file.
7887         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7888
7889         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7890         classes from the file.
7891         (struct reg_pref): Rename coverclass into allocnoclass.
7892         (reg_cover_class): Rename to reg_allocno_class.
7893
7894         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7895
7896         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7897
7898         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7899
7900         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7901
7902         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7903
7904         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7905
7906         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7907
7908         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7909
7910         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7911
7912         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7913
7914         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7915         (i386_ira_cover_classes): Ditto.
7916
7917         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7918
7919         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7920
7921         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7922
7923         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7924
7925         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7926
7927         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7928
7929         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7930         (mips_ira_cover_classes): Ditto.
7931
7932         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7933
7934         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7935
7936         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7937
7938         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7939
7940         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7941
7942         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7943         (IRA_COVER_CLASSES_VSX): Ditto.
7944
7945         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7946         (rs6000_ira_cover_classes): Ditto.
7947
7948         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7949
7950         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7951
7952         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7953
7954         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7955
7956         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7957
7958         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7959
7960         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7961
7962         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7963
7964         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7965
7966         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7967
7968 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7969
7970         PR debug/48253
7971         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7972         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7973         dw_fde_unlikely_section_end_label, cold_in_std_section,
7974         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7975         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7976         fields.
7977         (output_fde): Use dw_fde_second_{begin,end} if second is
7978         true, otherwise dw_fde_{begin,end}.
7979         (output_call_frame_info): Test dw_fde_second_begin != NULL
7980         instead of dw_fde_switched_sections.
7981         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7982         fields, initialize new fields.  Initialize in_std_section
7983         unconditionally from the first partition.
7984         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7985         dw_fde_second_begin is non-NULL.
7986         (dwarf2out_switch_text_section): Stop initializing removed
7987         dw_fde_struct fields, initialize new fields, initialize
7988         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7989         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7990         (struct var_loc_list_def): Add last_before_switch field.
7991         (arange_table, arange_table_allocated, arange_table_in_use,
7992         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7993         (size_of_aranges): Count !in_std_section and !second_in_std_section
7994         hunks in fdes, instead of looking at arange_table_in_use.
7995         (output_aranges): Add aranges_length argument, don't call
7996         size_of_aranges here.  Instead of using aranges_table*
7997         emit ranges for fdes when !in_std_section resp.
7998         !second_in_std_section.
7999         (dw_loc_list): Break ranges crossing section switch.
8000         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8001         use dw_fde_second_end instead of dw_fde_end as end of last range.
8002         (gen_subprogram_die): Don't call add_arange.  Use
8003         dw_fde_{begin,end} for first partition and if switched
8004         section dw_fde_second_{begin,end} for the second.
8005         (var_location_switch_text_section_1,
8006         var_location_switch_text_section): New functions.
8007         (dwarf2out_begin_function): Initialize cold_text_section even
8008         when function_section () isn't text_section.
8009         (prune_unused_types): Don't walk arange_table.
8010         (dwarf2out_finish): Don't needlessly test
8011         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8012         If info_section_emitted, call size_of_aranges and if it indicates
8013         non-empty .debug_aranges, call output_aranges with the computed
8014         size.  Stop using removed dw_fde_struct fields, use
8015         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8016         for second.
8017
8018         PR debug/48203
8019         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8020         create ENTRY_VALUE if incoming or address of incoming's MEM
8021         is a hard REG.
8022         * dwarf2out.c (mem_loc_descriptor): Don't emit
8023         DW_OP_GNU_entry_value of DW_OP_fbreg.
8024         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8025         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8026         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8027         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8028         ENTRY_VALUE_EXPs.
8029         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8030         is a REG_P or MEM_P with REG_P address, compute hash directly
8031         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8032         (preserve_only_constants): Don't clear VALUES forwaring
8033         ENTRY_VALUE to some other VALUE.
8034
8035 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8036
8037         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8038         instead of GEN_INT.
8039
8040 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8041
8042         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8043         block before expanding the statement.
8044         (expand_gimple_stmt_1): Likewise.  Set them here...
8045         (expand_gimple_stmt): ...and not here.  Tidy.
8046         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8047         unknown.
8048
8049 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8050
8051         * Makefile.in: New rule for cprop.o.
8052         * gcse.c: Move constant/copy propagation to cprop.c.
8053         (compute_local_properties): Only handle expression tables.
8054         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8055         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8056         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8057         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8058         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8059         compute_cprop_data, find_used_regs, try_replace_reg,
8060         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8061         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8062         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8063         find_bypass_set, reg_killed_on_edge, bypass_block,
8064         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8065         execute_rtl_cprop, pass_rtl_cprop): Move to...
8066         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8067         moved from gcse.c to here with minor cleanups in duplicated code.
8068
8069 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8070
8071         * config/i386/i386.c (flag_opts): Fix a typo in
8072         -mavx256-split-unaligned-store.
8073
8074 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8075
8076         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8077         LIBCALL_VALUE): Remove macros.
8078         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8079         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8080         (h8300_function_value, h8300_libcall_value,
8081         h8300_function_value_regno_p): New functions.
8082
8083 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8084
8085         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8086
8087 2011-03-28  Jeff Law  <law@redhat.com>
8088
8089         * tree-ssa-threadupdate.c (redirect_edges): Call
8090         create_edge_and_update_destination_phis as needed.
8091         (create_edge_and_update_destination_phis): Accept new BB argument.
8092         All callers updated.
8093         (thread_block): Do not update the profile when threading around
8094         intermediate blocks.
8095         (thread_single_edge): Likewise.
8096         (determine_bb_domination_status): If BB is not a successor of the
8097         loop header, return NONDOMINATING.
8098         (register_jump_thread): Note when we register a jump thread around
8099         an intermediate block.
8100         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8101         (thread_across_edge): Use it.
8102
8103 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8104
8105         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8106         when for_return is 2.
8107
8108 2011-03-28  Jeff Law  <law@redhat.com>
8109
8110         * var-tracking.c (canonicalize_values_mark): Delete unused
8111         lhs assignment.
8112         (canonicalize_values_star, set_variable_part): Likewise.
8113         (clobber_variable_part, delete_variable_part): Likewise.
8114
8115 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8116
8117         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8118
8119 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8120
8121         * tree-inline.c (expand_call_inline): Do not check that destination
8122         node is analyzed.
8123         (optimize_inline_calls): Assert that destination node is analyzed.
8124         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8125         not call tree_lowering_passes.
8126         * cgraph.h (cgraph_analyze_function): Declare.
8127         * cgraphunit.c (cgraph_analyze_function): Make public.
8128
8129 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8130
8131         * config/sparc/sparc-opts.h: New.
8132         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8133         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8134         (sparc_option_override): Store processor_type enumeration rather
8135         than string in cpu_default.  Remove name and enumeration from
8136         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8137         without using sparc_select.  Use target_flags_explicit instead of
8138         fpu_option_set.
8139         * config/sparc/sparc.h (enum processor_type): Move to
8140         sparc-opts.h.
8141         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8142         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8143         HeaderInclude entry.
8144         (mcpu=, mtune=): Use Var and Enum.
8145         (sparc_processor_type): New Enum and EnumValue entries.
8146
8147 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8148             Iain Sandoe  <iains@gcc.gnu.org>
8149
8150         PR target/48245
8151         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8152
8153 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8154
8155         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8156         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8157         Insert new statements at it in lieu of STMT.
8158         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8159         * tree-vect-stmts.c (vectorizable_store): Likewise.
8160         (vectorizable_load): Likewise.
8161
8162 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8163
8164         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8165         (divtf3): Ditto.
8166         (multf3): Ditto.
8167         (subtf3): Ditto.
8168
8169 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8170
8171         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8172         unaligned 256bit load/store.
8173         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8174         (*avx_movdqu<avxmodesuffix>): Likewise.
8175
8176 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8177
8178         PR target/48288
8179         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8180         * config/pa/pa.md (iordi3): Use new predicate in expander.
8181         (iorsi3): Likewise.
8182
8183 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8184
8185         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8186         FUNCTION_VALUE_REGNO_P): Remove macros.
8187         * config/mips/mips-protos.h (mips_function_value): Remove.
8188         * config/mips/mips.c (mips_function_value): Rename to...
8189         (mips_function_value_1): ... this. Make static.  Handle receiving
8190         the function type in 'fn_decl_or_type' argument.
8191         (mips_function_value, mips_libcall_value,
8192         mips_function_value_regno_p): New function.
8193         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8194         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8195
8196 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8199         and -mavx256-split-unaligned-store.
8200         (ix86_option_override_internal): Split 32-byte AVX unaligned
8201         load/store by default.
8202         (ix86_avx256_split_vector_move_misalign): New.
8203         (ix86_expand_vector_move_misalign): Use it.
8204
8205         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8206         -mavx256-split-unaligned-store.
8207
8208         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8209         256bit load/store.  Generate unaligned store on misaligned memory
8210         operand.
8211         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8212         256bit load/store.
8213         (*avx_movdqu<avxmodesuffix>): Likewise.
8214
8215         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8216         -mavx256-split-unaligned-store.
8217
8218 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8219
8220         PR target/38598
8221         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8222         Update commentary.
8223
8224 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8225
8226         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8227         opno arguments with an expand_operand.  Use create_input_operand.
8228         (mips_prepare_builtin_target): Delete.
8229         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8230         functions.
8231         (mips_expand_builtin_direct): Use create_output_operand and
8232         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8233         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8234         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8235
8236 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8237
8238         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8239         function.
8240         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8241
8242 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8243
8244         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8245         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8246         basic blocks and call commit_edge_insertions directly.
8247         (fixup_abnormal_edges): Move from here to...
8248         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8249         on the edges and return whether some have actually been inserted.
8250         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8251         compensation code.
8252
8253 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8254
8255         PR rtl-optimization/48144
8256         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8257         (merge_expr_data): ... here.
8258         (av_set_intersect): Rename to av_set_code_motion_filter.
8259         Update all callers.  Call merge_history_vect when an expression
8260         is found in both sets.
8261         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8262
8263 2011-03-26  Alan Modra  <amodra@gmail.com>
8264
8265         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8266         cmodel medium addresses.
8267         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8268         64-bit gpr loads and stores.
8269         (rs6000_secondary_reload_ppc64): New function.
8270         * config/rs6000/rs6000-protos.h: Declare it.
8271         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8272
8273 2011-03-26  Alan Modra  <amodra@gmail.com>
8274
8275         PR target/47487
8276         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8277         GNU Go in traceback table.
8278
8279 2011-03-25  Richard Henderson  <rth@redhat.com>
8280
8281         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8282         if there are exactly 6 operands.
8283         (set_storage_via_setmem): Similarly.
8284
8285 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8286
8287         * collect2.c (write_c_file_stat): Handle backslash
8288         as right-hand directory separator.
8289         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8290         checking just for slash.
8291         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8292         instead of checking for trailing slash.
8293         * gcc.c (record_temp_file): Use filename_cmp instead
8294         of strcmp.
8295         (do_spec_1): Likewise.
8296         (replace_outfile_spec_function): Likewise.
8297         (is_directory): Use filename_ncmp instead of strncmp.
8298         (print_multilib_info): Likewise.
8299         * gcov.c (find_source): Use filename_cmp instead
8300         instead of strcmp.
8301         (make_gcov_file_name): Fix order of slash/backslash
8302         checks.
8303         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8304         (add_standard_paths): Likewise.
8305         * mips-tfile.c (saber_stop): Handle backslash.
8306         * prefix.c (update_path): Use filename_ncmp instead of
8307         strncmp.
8308         * profile.c (output_location): Use filename_cmp instead
8309         of strcmp.
8310         * read-md.c (handle_toplevel_file): Handle backslash.
8311         * tlink.c (frob_extension):  Likewise.
8312         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8313         strcmp.
8314         * tree-dump.c (dequeue_and_dump): Handle backslash.
8315         * tree.c (get_file_function_name): Likewise.
8316         * gengtype.c (read_input_list): Likewise.
8317         (get_file_realbasename): Likewise.
8318         (get_output_file_with_visibility): Use filename_cmp
8319         instead of strcmp.
8320
8321 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8322
8323         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8324         case to VFPv1.
8325
8326 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8327
8328         * fold-const.c (expr_location_or): New function.
8329         (fold_truth_not_expr): Call it.
8330
8331 2011-03-25  Jeff Law  <law@redhat.com>
8332
8333         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8334         va_end.
8335         * c-family/c-common.c (def_fn_type): Likewise.
8336         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8337         * emit-rtl.c (gen_rtvec): Likewise.
8338         * lto/lto-lang.c (def_fn_type): Likewise.
8339
8340 2011-03-25  Richard Guenther  <rguenther@suse.de>
8341
8342         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8343         also generate copies.
8344         (fini_copy_prop): Handle constant values properly.
8345
8346 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8347
8348         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8349         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8350         (hash_loc_operands, compare_loc_operands): Handle
8351         DW_OP_GNU_entry_value.
8352
8353 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8354
8355         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8356         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8357         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8358         comment and use macro TARGET_64BIT_MS_ABI instead.
8359         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8360         and change default behavior for 32-bit MS_ABI.
8361         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8362         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8363         32-bit, too.
8364         (ix86_cfun_abi): Likewise.
8365         (ix86_maybe_switch_abi): Adjust comment.
8366         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8367         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8368         instead of checking for SYSV_ABI.
8369         (ix86_nsaved_sseregs): Likewise.
8370         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8371         to 16 bytes.
8372         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8373         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8374         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8375         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8376         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8377
8378 2011-03-25  Richard Guenther  <rguenther@suse.de>
8379
8380         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8381         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8382         (verify_gimple): Remove.
8383         * tree-cfg.c (verify_gimple_call): Merge verification
8384         from verify_stmts.
8385         (verify_gimple_phi): Merge verification from verify_stmts.
8386         (verify_gimple_label): New function.
8387         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8388         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8389         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8390         (verify_stmts): Rename to verify_gimple_in_cfg.
8391         (verify_gimple_in_cfg): New function.
8392         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8393         * tree-ssa.c (verify_ssa): Likewise.
8394         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8395
8396 2011-03-25  Richard Guenther  <rguenther@suse.de>
8397
8398         * passes.c (init_optimization_passes): Add FRE pass after
8399         early SRA.
8400
8401 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8402             Andrew Stubbs  <ams@codesourcery.com>
8403
8404         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8405         for Cortex-A8.
8406         (arm_movdi_vfp_cortexa8): New pattern.
8407         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8408         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8409         instructions when tuning for Cortex-A8.  Set attribute "arch".
8410         * config/arm/arm.md: Move include arm-tune.md up a bit.
8411         (define_attr "arch"): Add "onlya8" and "nota8" values.
8412         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8413
8414 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8415
8416         PR bootstrap/48282
8417         Revert:
8418         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8419
8420         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8421         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8422         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8423         * passes.c (init_optimization_passes): Move
8424         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8425
8426 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8427
8428         * c-typeck.c (comptypes_internal): Replace target
8429         hook call of comp_type_attributes by version in tree.c file.
8430         * gimple.c (gimple_types_compatible_p_1): Likewise.
8431         * tree-ssa.c (useless_type_conversion_p): Likewise.
8432         * tree.c (build_type_attribute_qual_variant): Likewise.
8433         (attribute_value_equal): New static helper function.
8434         (comp_type_attributes): New function.
8435         (merge_attributes): Use attribute_value_equal for comparison.
8436         (attribute_list_contained): Likewise.
8437         * tree.h (comp_type_attributes): New prototype.
8438
8439 2011-03-25  Richard Guenther  <rguenther@suse.de>
8440
8441         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8442         of complex types at -O0.
8443         (verify_gimple_assign_binary): Likewise.
8444         (verify_gimple_assign_ternary): Likewise.
8445
8446 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8447
8448         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8449         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8450
8451 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8452
8453         PR debug/48041
8454         * dwarf2out.c (output_abbrev_section): Only write table when
8455         abbrev_die_table_in_use > 1.
8456
8457 2011-02-24  Richard Henderson  <rth@redhat.com>
8458
8459         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8460         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8461         (alpha_expand_unaligned_load_words): Use extql.
8462         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8463         (emit_insxl): Handle all modes for consistency.
8464
8465 2011-02-24  Richard Henderson  <rth@redhat.com>
8466
8467         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8468         (alpha_expand_unaligned_load): Likewise.
8469         (alpha_expand_unaligned_store): Likewise.
8470         (alpha_expand_unaligned_load_words): Likewise.
8471         (alpha_expand_unaligned_store_words): Likewise.
8472         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8473         (alpha_split_lock_test_and_set_12): Likewise.
8474         (print_operand, alpha_fold_builtin_extxx): Likewise.
8475         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8476         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8477         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8478         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8479         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8480         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8481         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8482         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8483         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8484         (extwl, extll, extql): Similarly.
8485         (inswh, inslh, insqh): Similarly.
8486         (mskbl, mskwl, mskll, mskql): Similarly.
8487         (mskwh, msklh, mskqh): Similarly.
8488
8489 2011-02-24  Richard Henderson  <rth@redhat.com>
8490
8491         * config/alpha/alpha.md (attribute isa): Add er, ner.
8492         (attribute enabled): Handle them.
8493         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8494
8495 2011-02-24  Richard Henderson  <rth@redhat.com>
8496
8497         * config/alpha/alpha.md (attribute isa): Add vms.
8498         (attribute enabled): Handle it.
8499         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8500         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8501         (*movtf): Rename from *movtf_internal for consistency.
8502         (*movsi): Merge with *movsi_nt_vms.
8503         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8504         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8505         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8506         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8507
8508 2011-02-24  Richard Henderson  <rth@redhat.com>
8509
8510         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8511         (extendqisi2, extendhisi2): Likewise.
8512         (extendqidi2): Simplify BWX/non-BWX expansions.
8513         (extendhidi2): Similarly.
8514
8515 2011-02-24  Richard Henderson  <rth@redhat.com>
8516
8517         * config/alpha/alpha.md (attribute isa): New.
8518         (attribute enabled): New.
8519         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8520         (zero_extendqisi2, zero_extendqidi2): Similarly.
8521         (zero_extendhisi2, zero_extendhidi2): Similarly.
8522         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8523
8524 2011-02-24  Richard Henderson  <rth@redhat.com>
8525
8526         * config/alpha/predicates.md (input_operand): Revert last change;
8527         update comment to mention 32-bit VMS rather than Windows.
8528
8529 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8530
8531         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8532         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8533         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8534         * passes.c (init_optimization_passes): Move
8535         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8536
8537 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8538
8539         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8540
8541 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8542
8543         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8544         correctly.
8545
8546 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8547
8548         PR debug/48204
8549         * simplify-rtx.c (simplify_const_unary_operation): Call
8550         real_convert when changing mode class with FLOAT_EXTEND.
8551
8552 2011-03-24  Nick Clifton  <nickc@redhat.com>
8553
8554         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8555         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8556         * config/rx/rx.c (rx_option_override): Set align_jumps,
8557         align_loops and align_labels if not set by the user.
8558         (rx_align_for_label): New function.
8559         (rx_max_skip_for_label): New function.
8560         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8561         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8562         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8563         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8564         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8565
8566 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8567
8568         PR rtl-optimization/48263
8569         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8570         and original commutative_p handling.  Use maybe_gen_insn.
8571
8572 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8573
8574         * reload.c (find_reloads_subreg_address): Add address_reloaded
8575         parameter and return true there if the full address has been
8576         reloaded.
8577         (find_reloads_toplev): Pass address_reloaded flag.
8578         (find_reloads_address_1): Don't use address_reloaded parameter.
8579
8580 2011-03-24  Jeff Law  <law@redhat.com>
8581
8582         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8583         unused variable "ann".
8584         (remove_unused_locals): Likewise.
8585
8586         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8587         statement.
8588
8589         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8590         after it is freed.
8591
8592 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8593
8594         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8595         for invalid symbolic addresses.
8596         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8597         larl operands.
8598
8599 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8600
8601         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8602         the argument in calls to fold_truth_not_expr.
8603
8604 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8605
8606         * tree.c (record_node_allocation_statistics): New function.
8607         (make_node_stat, copy_node_stat, build_string): Call it.
8608         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8609         (build1_stat, build_omp_clause): Likewise.
8610
8611 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8612
8613         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8614         last commit.
8615
8616 2011-03-24  Richard Guenther  <rguenther@suse.de>
8617
8618         PR tree-optimization/48271
8619         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8620         blocks that still exist.
8621
8622 2011-03-24  Richard Guenther  <rguenther@suse.de>
8623
8624         PR tree-optimization/48270
8625         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8626         not free datarefs before ddrs.
8627
8628 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8629
8630         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8631         from the address built for a reference with variable offset.
8632
8633 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8634
8635         PR target/48237
8636         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8637         alternatives that can be handled with movq or movabsq insn.
8638         (*movdf_internal): Disable for !TARGET_64BIT.
8639         (*movdf_internal_nointeger): Ditto.
8640         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8641
8642 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8643
8644         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8645         (FUNCTION_ARG_ADVANCE): Likewise.
8646         * tm.texi.in: Change references to them to hook references.
8647         * tm.texi: Regenerate.
8648         * targhooks.c (default_function_arg): Eliminate check for target macro.
8649         (default_function_incoming_arg): Likewise.
8650         (default_function_arg_advance): Likewise.
8651         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8652         (function_arg_advance): Likewise.
8653         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8654
8655 2011-03-24  Richard Guenther  <rguenther@suse.de>
8656
8657         PR middle-end/48269
8658         * tree-object-size.c (addr_object_size): Do not double-account
8659         for MEM_REF offsets.
8660
8661 2011-03-24  Diego Novillo  <dnovillo@google.com>
8662
8663         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8664         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8665         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8666         Update all users.
8667         (lto_input_string): Rename from input_string.  Make extern.
8668         Update all users.
8669         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8670         output_string_with_length.
8671         Output 0 to indicate a non-NULL string.  Update all callers to
8672         not emit 0.
8673         (lto_output_string): Rename from output_string.  Make extern.
8674         Update all users.
8675         (lto_output_decl_state_streams): Make extern.
8676         (lto_output_decl_state_refs): Make extern.
8677         * lto-streamer.h (lto_input_string): Declare.
8678         (lto_input_data_block): Declare.
8679         (lto_output_string): Declare.
8680         (lto_output_string_with_length): Declare.
8681         (lto_output_decl_state_streams): Declare.
8682         (lto_output_decl_state_refs): Declare.
8683
8684 2011-03-24  Richard Guenther  <rguenther@suse.de>
8685
8686         PR tree-optimization/46562
8687         * tree.c (build_invariant_address): New function.
8688         * tree.h (build_invariant_address): Declare.
8689         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8690         a renamed function moved ...
8691         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8692         Take valueization callback parameter.
8693         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8694         * gimple-fold.h: New file.
8695         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8696         (ccp_fold, fold_const_aggregate_ref,
8697         fold_ctor_reference, fold_nonarray_ctor_reference,
8698         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8699         get_base_constructor): Move ...
8700         * gimple-fold.c: ... here.
8701         (gimple_fold_stmt_to_constant_1): New function
8702         split out from ccp_fold.  Take a valueization callback parameter.
8703         Valueize all operands.
8704         (gimple_fold_stmt_to_constant): New wrapper function.
8705         (fold_const_aggregate_ref_1): New function split out from
8706         fold_const_aggregate_ref.  Take a valueization callback parameter.
8707         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8708         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8709         invariant POINTER_PLUS_EXPRs to invariant form.
8710         (vn_valueize): New function.
8711         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8712         * tree-vrp.c (vrp_valueize): New function.
8713         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8714         to fold statements to constants.
8715         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8716         function declarations.
8717         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8718         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8719
8720 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8721
8722         * config/h8300/predicates.md (jump_address_operand): Fix register
8723         mode check.
8724
8725 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8726
8727         * doc/invoke.texi (max-stores-to-sink): Document.
8728         * params.h (MAX_STORES_TO_SINK): Define.
8729         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8730         if either vectorization or if-conversion is disabled.
8731         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8732         tree-vect-data-refs.c vect_equal_offsets.
8733         (dr_equal_offsets_p): New function.
8734         (find_data_references_in_bb): Remove static.
8735         * tree-data-ref.h (find_data_references_in_bb): Declare.
8736         (dr_equal_offsets_p): Likewise.
8737         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8738         (vect_drs_dependent_in_basic_block): Update calls to
8739         vect_equal_offsets.
8740         (vect_check_interleaving): Likewise.
8741         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8742         (cond_if_else_store_replacement): Rename to...
8743         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8744         documentation.
8745         (cond_if_else_store_replacement): New function.
8746         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8747         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8748
8749 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8750
8751         PR target/46934
8752         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8753         to subtract lower bound instead of GEN_INT().
8754
8755 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8756
8757         PR other/48179
8758         PR other/48221
8759         PR other/48234
8760         * doc/extend.texi (Alignment): Move section to match order in TOC.
8761         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8762         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8763
8764 2011-03-23  Jeff Law  <law@redhat.com>
8765
8766         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8767         before removing the edge.
8768
8769         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8770         it may have been freed by redirect_branch_edge or
8771         redirect_edge_succ_nodup.
8772
8773 2011-03-23  Richard Guenther  <rguenther@suse.de>
8774
8775         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8776         (check_va_list_escapes): Likewise.
8777         (check_all_va_list_escapes): Likewise.
8778
8779 2011-03-23  Richard Guenther  <rguenther@suse.de>
8780
8781         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8782         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8783         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8784         (alias.o): Likewise.
8785         (ipa-type-escape.o): Remove.
8786         (ipa-struct-reorg.o): Likewise.
8787         (GTFILES): Remove ipa-struct-reorg.c.
8788         * alias.c: Do not include ipa-type-escape.h.
8789         * tree-ssa-alias.c: Likewise.
8790         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8791         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8792         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8793         and ipa-type-escape passes.
8794         * tree-pass.h (pass_ipa_type_escape): Remove.
8795         (pass_ipa_struct_reorg): Likewise.
8796         * ipa-struct-reorg.h: Remove.
8797         * ipa-struct-reorg.c: Likewise.
8798         * ipa-type-escape.h: Likewise.
8799         * ipa-type-escape.c: Likewise.
8800         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8801         (--param struct-reorg-cold-struct-ratio): Likewise.
8802         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8803         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8804         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8805
8806 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8807
8808         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8809         cpu attribute value.
8810         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8811         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8812         * config/s390/s390.c (processor_flags_table): New constant array.
8813         (s390_handle_arch_option): Remove.
8814         (s390_handle_option): Remove s390_handle_arch_option invocations
8815         and OPT_mwarn_framesize_ handling.
8816         (s390_option_override): Remove s390_handle_arch_option invocation.
8817         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8818         warnings.
8819         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8820         * config/s390/s390.opt (s390_tune, s390_arch)
8821         (march=): Replace s390_arch_option enum and values with
8822         processor_type.  Set variable name to s390_arch.  Set
8823         initialization value.
8824         (mtune=): Replace s390_arch_option with processor_type.  Set
8825         variable name to s390_tune.  Set initialization value.
8826
8827 2011-03-23  Julian Brown  <julian@codesourcery.com>
8828
8829         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8830         accesses which are not naturally aligned.
8831
8832 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8833
8834         PR target/47553
8835         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8836
8837 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8838
8839         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8840         parameter from "int" to "enum insn_code".
8841         (expand_operand_type): New enum.
8842         (expand_operand): New structure.
8843         (create_expand_operand): New function.
8844         (create_fixed_operand, create_output_operand): Likewise
8845         (create_input_operand, create_convert_operand_to): Likewise.
8846         (create_convert_operand_from, create_address_operand): Likewise.
8847         (create_integer_operand): Likewise.
8848         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8849         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8850         (expand_insn, expand_jump_insn): Likewise.
8851         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8852         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8853         (expand_movstr, expand_builtin___clear_cache): Likewise.
8854         (expand_builtin_lock_release): Likewise.
8855         * explow.c (allocate_dynamic_stack_space): Likewise.
8856         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8857         and use the default handling in that case.
8858         * expmed.c (check_predicate_volatile_ok): Delete.
8859         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8860         (emit_cstore): Likewise.
8861         * expr.c (emit_block_move_via_movmem): Likewise.
8862         (set_storage_via_setmem, expand_assignment): Likewise.
8863         (emit_storent_insn, try_casesi): Likewise.
8864         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8865         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8866         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8867         (expand_twoval_unop, expand_twoval_binop): Likewise.
8868         (expand_unop_direct, emit_indirect_jump): Likewise.
8869         (emit_conditional_move, vector_compare_rtx): Likewise.
8870         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8871         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8872         (expand_sync_lock_test_and_set): Likewise.
8873         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8874         (emit_unop_insn): Likewise.
8875         (expand_copysign_absneg): Change icode to an insn_code.
8876         (create_convert_operand_from_type): New function.
8877         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8878         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8879         (expand_insn, expand_jump_insn): Likewise.
8880         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8881         than const_int_operand for operand 2.
8882
8883 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8884
8885         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8886         if possible.
8887
8888 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8889
8890         * emit-rtl.c (emit_pattern_before_noloc): New function.
8891         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8892         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8893         (emit_pattern_after_noloc): New function.
8894         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8895         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8896
8897 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8898
8899         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8900         (__ffsDI2): Likewise.
8901
8902 2011-03-22  Richard Henderson  <rth@redhat.com>
8903
8904         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8905         of !TARGET_ABI_OPEN_VMS.
8906         (alpha_trampoline_init, alpha_start_function): Likewise.
8907         (alpha_expand_epilogue, alpha_file_start): Likewise.
8908         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8909         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8910         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8911         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8912         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8913
8914 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8915
8916         * config/s390/s390-opts.h: New.
8917         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8918         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8919         s390_stack_guard): Remove.
8920         (s390_handle_arch_option): Return void.  Take enum
8921         s390_arch_option value instead of string and searching array.
8922         (s390_handle_option): Don't assert that global structures are in
8923         use.  Access variables via opts pointer.  Use error_at.  Don't use
8924         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8925         s390_handle_arch_option.
8926         (s390_option_override): Update call to s390_handle_arch_option.
8927         (s390_emit_prologue): Use %d format for s390_stack_size in
8928         diagnostic.  Use %wd for HOST_WIDE_INT.
8929         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8930         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8931         * config/s390/s390.opt (config/s390/s390-opts.h): New
8932         HeaderInclude entry.
8933         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8934         s390_arch_flags, s390_warn_framesize): New Variable entries.
8935         (s390_arch_option): New Enum and EnumValue entries.
8936         (march=): Use Enum instead of Var.
8937         (mstack-guard=, mstack-size=): Use UInteger and Var.
8938         (mtune=): Use Enum.
8939
8940 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8941
8942         * config/score/score.c (score_handle_option): Don't assert that
8943         global structures are in use.  Access target_flags via opts
8944         pointer.  Use value of -march= option to determine target_flags
8945         settings.
8946         * config/score/score.opt (march=): Use Enum.
8947         (score_arch): New Enum and EnumValue entries.
8948
8949 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8950
8951         * config/mep/mep.c (option_mtiny_specified): Remove.
8952         (mep_option_override): Move register handling for -mivc2 from
8953         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8954         instead of option_mtiny_specified.
8955         (mep_handle_option): Access target_flags via opts pointer.  Don't
8956         assert that global structures are in use.  Defer part of -mivc2
8957         handling and move it to mep_option_override.
8958         * config/mep/mep.opt (IVC2): New Mask entry.
8959         (mivc2): Use Var and Defer instead of Mask.
8960
8961 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8962
8963         * config/v850/v850-opts.h: New.
8964         * config/v850/v850.c (small_memory): Replace with
8965         small_memory_physical_max array.  Make that array static const.
8966         (v850_handle_memory_option): Take integer value of argument.  Take
8967         gcc_options pointer, option text and location.  Return void.
8968         Update for changes to small memory structures.
8969         (v850_handle_option): Access target_flags via opts pointer.  Don't
8970         assert that global structures are in use.  Update calls to
8971         v850_handle_memory_option.
8972         (v850_encode_data_area): Update references to small memory settings.
8973         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8974         (enum small_memory_type): Move to v850-opts.h.
8975         * config/v850/v850.opt (config/v850/v850-opts.h): New
8976         HeaderInclude entry.
8977         (small_memory_max): New Variable entry.
8978         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8979         (mtda, mzda): Likewise.
8980
8981 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8982
8983         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8984         pointer.  Don't assert that global structures are in use.
8985
8986 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8987
8988         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8989         via opts pointer.  Don't assert that global structures are in use.
8990
8991 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8992
8993         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8994         (munix=93): Use Var.
8995         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8996         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8997         * config/pa/pa-opts.h: New.
8998         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8999         (pa_handle_option): Don't assert that global structures are in
9000         use.  Access target_flags via opts pointer.  Don't handle
9001         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9002         OPT_munix_98 here.
9003         (pa_option_override): Handle deferred OPT_mfixed_range_.
9004
9005 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9006
9007         * config/mn10300/mn10300-opts.h: New.
9008         * config/mn10300/mn10300.c (mn10300_processor,
9009         mn10300_tune_string): Remove.
9010         (mn10300_handle_option): Don't assert that global structures are
9011         in use.  Access mn10300_processor via opts pointer.  Don't handle
9012         OPT_mtune_ here.
9013         * config/mn10300/mn10300.h (enum processor_type): Move to
9014         mn10300-opts.h.
9015         (mn10300_processor): Remove.
9016         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9017         HeaderInclude entry.
9018         (mn10300_processor): New Variable entry.
9019         (mtune=): Use Var.
9020
9021 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9022
9023         * config/microblaze/microblaze.c: Don't include opts.h.
9024         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9025         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9026         (mno-clearbss): Use Var and Warn.
9027
9028 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9029
9030         * config/m32r/m32r-opts.h: New.
9031         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9032         (m32r_handle_option): Don't assert that global structures are in
9033         use.  Access target_flags and m32r_cache_flush_func via opts
9034         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9035         OPT_mno_flush_trap here.
9036         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9037         include of m32r-opts.h.
9038         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9039         HeaderInclude entry.
9040         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9041         (mmodel=): Use Enum and Var.
9042         (m32r_model): New Enum and EnumValue entries.
9043         (mno-flush-trap): Use Var.
9044         (msdata=): Use Enum and Var.
9045         (m32r_sdata): New Enum and EnumValue entries.
9046
9047 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9048
9049         * config/m32c/m32c.c: Don't include opts.h.
9050         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9051         m32c_handle_option): Remove.
9052         (m32c_option_override): Check global_options_set.x_target_memregs
9053         instead of target_memregs_set.
9054         * config/m32c/m32c.h (target_memregs): Remove.
9055         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9056         variable.
9057
9058 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9059
9060         * config/iq2000/iq2000-opts.h: New.
9061         * config/iq2000/iq2000.c: Don't include opts.h.
9062         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9063         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9064         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9065         HeaderInclude entry.
9066         (iq2000_tune): New Variable entry.
9067         (march=): Add comment.  Use Enum.
9068         (iq2000_arch): New Enum and EnumValue entries.
9069         (mcpu=): Use Enum and Var.
9070         (iq2000_tune): New Enum and EnumValue entries.
9071
9072 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9073
9074         * config/ia64/ia64-opts.h: New.
9075         * config/ia64/ia64.c (ia64_tune): Remove.
9076         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9077         here.  Use error_at.
9078         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9079         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9080         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9081         HeaderInclude entry.
9082         (ia64_tune): New Variable entry.
9083         (mfixed-range=): Use Defer and Var.
9084         (mtune=): Use Enum and Var.
9085         (ia64_tune): New Enum and EnumValue entries.
9086
9087 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9088
9089         * config/frv/frv-opts.h: New.
9090         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9091         frv-opts.h.
9092         (frv_cpu_type): Remove.
9093         * config/frv/frv.c: Don't include opts.h.
9094         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9095         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9096         (frv_cpu_type): New Variable entry.
9097         (frv_cpu): New Enum and EnumValue entries.
9098
9099 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9100
9101         * config/cris/cris.c (cris_handle_option): Access target_flags via
9102         opts pointer.  Don't assert that global structures are in use.
9103         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9104         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9105
9106 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9107
9108         * config/bfin/bfin-opts.h: New.
9109         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9110         bfin_si_revision, bfin_workarounds): Remove.
9111         (bfin_cpus): Make static const.
9112         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9113         not bfin_lib_id_given.
9114         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9115         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9116         pointer. Use error_at.  Don't assert that global structures are in use.
9117         * config/bfin/bfin.h: Include bfin-opts.h.
9118         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9119         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9120         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9121         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9122         entries.
9123
9124 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9125
9126         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9127         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9128         or -msoft-float here.
9129         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9130         -msoft-float and -mhard-float.
9131         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9132         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9133         msoft-float.
9134         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9135         -msoft-float.
9136         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9137         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9138         not mhard-float.
9139         (LIBGCC_SPEC): Don't handle -msoft-float.
9140         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9141         -mhard-float.
9142         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9143         msoft-float.
9144         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9145         -mfloat-abi=*, not -msoft-float and -mhard-float.
9146         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9147         -msoft-float.
9148         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9149         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9150         mhard-float and msoft-float.
9151         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9152         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9153         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9154         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9155         mhard-float.
9156         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9157         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9158         msoft-float.
9159         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9160         not mhard-float.
9161         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9162         not msoft-float.
9163
9164 2011-03-22  Richard Henderson  <rth@redhat.com>
9165
9166         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9167         TARGET_ABI_WINDOWS_NT.
9168         (alpha_output_function_end_prologue): Likewise.
9169         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9170         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9171         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9172         (trap, *movsi_nt_vms): Likewise.
9173         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9174         (*tablejump_osf_nt_internal): Remove.
9175         * config/alpha/predicates.md (input_operand): Only test Pmode.
9176
9177 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9178
9179         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9180         via opts pointer.  Use error_at.  Don't assert that global
9181         structures are in use.
9182
9183 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9184
9185         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9186         (ix86_handle_option): Access ix86_isa_flags and
9187         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9188         global structures are in use.
9189         (ix86_function_specific_save, ix86_function_specific_restore):
9190         Update ix86_isa_flags_explicit field name.
9191         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9192         (ix86_isa_flags_explicit): Rename TargetSave entry to
9193         x_ix86_isa_flags_explicit.
9194
9195 2011-03-22  Richard Henderson  <rth@redhat.com>
9196
9197         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9198         (alpha_option_override, direct_return): Likewise.
9199         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9200         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9201         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9202         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9203         (alpha_expand_epilogue, alpha_end_function): Likewise.
9204         (alpha_init_libfuncs): Likewise.
9205         (struct machine_function): Remove unicosmk members.
9206         (print_operand) ['t']: Remove.
9207         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9208         unicosmk_output_module_name, unicosmk_output_common,
9209         current_section_align, unicosmk_output_text_section_asm_op,
9210         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9211         unicosmk_section_type_flags, unicosmk_unique_section,
9212         unicosmk_asm_named_section, unicosmk_insert_attributes,
9213         unicosmk_output_align, unicosmk_defer_case_vector,
9214         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9215         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9216         unicosmk_output_ssib, unicosmk_add_call_info_word,
9217         unicosmk_extern_head, unicosmk_output_default_externs,
9218         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9219         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9220         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9221         * config/alpha/alpha-protos.h: Update.
9222         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9223         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9224         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9225         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9226         (*mulsi_se, mulvsi3): Likewise.
9227         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9228         (*divmodsi_internal, call, call_value, realign): Likewise.
9229         (moddi3, umoddi3): Likewise; remove duplicate expander.
9230         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9231         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9232         (*movdi_nofix): Remove r/U alternative.
9233         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9234         * config/alpha/constraints.md ("U"): Remove.
9235         * config/alpha/predicates.md (call_operand"): Don't test
9236         TARGET_ABI_UNICOSMK.
9237
9238 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9239
9240         * target.def (handle_option): Take gcc_options and
9241         cl_decoded_option pointers and location_t.
9242         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9243         * doc/tm.texi: Regenerate.
9244         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9245         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9246         * lto-opts.c (lto_reissue_options): Generate option structure for
9247         targetm.handle_option call.
9248         * opts.c (target_handle_option): Update call to
9249         targetm.handle_option.  Remove assertions about values now passed
9250         down to hook.
9251         * targhooks.c (default_target_handle_option): New.
9252         * targhooks.h (default_target_handle_option): Declare.
9253         * config/alpha/alpha.c: Include opts.h.
9254         (alpha_handle_option): Update to new hook interface.
9255         * config/arm/arm.c: Include opts.h.
9256         (arm_handle_option): Update to new hook interface.
9257         * config/arm/t-arm (arm.o): Update dependencies.
9258         * config/bfin/bfin.c: Include opts.h.
9259         (bfin_handle_option): Update to new hook interface.
9260         * config/cris/cris.c: Include opts.h.
9261         (cris_handle_option): Update to new hook interface.
9262         * config/frv/frv.c: Include opts.h.
9263         (frv_handle_option): Update to new hook interface.
9264         * config/i386/i386.c: Include opts.h.
9265         (ix86_handle_option): Update to new hook interface.
9266         (ix86_valid_target_attribute_inner_p): Generate option structure
9267         for call to ix86_handle_option.
9268         * config/i386/t-i386 (i386.o): Update dependencies.
9269         * config/ia64/ia64.c: Include opts.h.
9270         (ia64_handle_option): Update to new hook interface.
9271         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9272         * config/iq2000/iq2000.c: Include opts.h.
9273         (iq2000_handle_option): Update to new hook interface.
9274         * config/m32c/m32c.c: Include opts.h.
9275         (m32c_handle_option): Update to new hook interface.
9276         * config/m32r/m32r.c: Include opts.h.
9277         (m32r_handle_option): Update to new hook interface.
9278         * config/m68k/m68k.c: Include opts.h.
9279         (m68k_handle_option): Update to new hook interface.
9280         * config/mep/mep.c: Include opts.h.
9281         (mep_handle_option): Update to new hook interface.
9282         * config/microblaze/microblaze.c: Include opts.h.
9283         (microblaze_handle_option): Update to new hook interface.
9284         * config/mips/mips.c: Include opts.h.
9285         (mips_handle_option): Update to new hook interface.
9286         * config/mn10300/mn10300.c: Include opts.h.
9287         (mn10300_handle_option): Update to new hook interface.
9288         * config/pa/pa.c: Include opts.h.
9289         (pa_handle_option): Update to new hook interface.
9290         * config/pdp11/pdp11.c: Include opts.h.
9291         (pdp11_handle_option): Update to new hook interface.
9292         * config/rs6000/rs6000.c: Include opts.h.
9293         (rs6000_handle_option): Update to new hook interface.
9294         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9295         * config/rx/rx.c: Include opts.h.
9296         (rx_handle_option): Update to new hook interface.
9297         * config/s390/s390.c: Include opts.h.
9298         (s390_handle_option): Update to new hook interface.
9299         * config/score/score.c: Include opts.h.
9300         (score_handle_option): Update to new hook interface.
9301         * config/sh/sh.c: Include opts.h.
9302         (sh_handle_option): Update to new hook interface.
9303         * config/sparc/sparc.c: Include opts.h.
9304         (sparc_handle_option): Update to new hook interface.
9305         * config/v850/v850.c: Include opts.h.
9306         (v850_handle_option): Update to new hook interface.
9307
9308 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9309
9310         * gcc.c (driver_unknown_option_callback): Only permit and save
9311         unknown -Wno- options.
9312         (driver_wrong_lang_callback): Save options directly instead of via
9313         driver_unknown_option_callback.
9314
9315 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9316
9317         * combine.c (simplify_set): Try harder to find the best CC mode when
9318         simplifying a nested COMPARE on the RHS.
9319
9320 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9321
9322         * config/alpha/gnu.h: Remove.
9323         * config/arc: Remove directory.
9324         * config/arm/netbsd.h: Remove.
9325         * config/arm/t-pe: Remove.
9326         * config/crx: Remove directory.
9327         * config/i386/netbsd.h: Remove.
9328         * config/m68hc11: Remove directory.
9329         * config/m68k/uclinux-oldabi.h: Remove.
9330         * config/mcore/mcore-pe.h: Remove.
9331         * config/mcore/t-mcore-pe: Remove.
9332         * config/netbsd-aout.h: Remove.
9333         * config/rs6000/gnu.h: Remove.
9334         * config/sh/sh-symbian.h: Remove.
9335         * config/sh/symbian-base.c: Remove.
9336         * config/sh/symbian-c.c: Remove.
9337         * config/sh/symbian-cxx.c: Remove.
9338         * config/sh/symbian-post.h: Remove.
9339         * config/sh/symbian-pre.h: Remove.
9340         * config/sh/t-symbian: Remove.
9341         * config/svr3.h: Remove.
9342         * config/vax/netbsd.h: Remove.
9343         * config.build: Don't handle i[34567]86-*-pe.
9344         * config.gcc: Remove handling of deprecations for most deprecated
9345         targets.
9346         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9347         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9348         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9349         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9350         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9351         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9352         Remove cases.
9353         * config.host: Don't handle i[34567]86-*-pe.
9354         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9355         (ASM_SPEC32): Don't handle -mcall-gnu.
9356         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9357         -mcall-gnu.
9358         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9359         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9360         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9361         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9362         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9363         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9364         conditional on SYMBIAN.
9365         * configure.ac: Don't handle powerpc*-*-gnu*.
9366         * configure: Regenerate.
9367         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9368         * doc/install-old.texi (m6811, m6812): Don't mention.
9369         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9370         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9371         (m68k-uclinuxoldabi): Don't mention.
9372         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9373         Remove.
9374         (-mcall-gnu): Remove.
9375         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9376         families): Remove constraint documentation.
9377
9378 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9379
9380         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9381         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9382         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9383
9384 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9385
9386         PR target/48226
9387         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9388         vector when peeking at the next token for vector, don't expand the
9389         keywords.
9390
9391 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9392
9393         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9394         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9395         * config/avr/avr.c (init_cumulative_args)
9396         (avr_function_arg_advance): Use it.
9397         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9398         sibcall epilogues.
9399         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9400         (avr_function_ok_for_sibcall): ...this new function.
9401         (avr_lookup_function_attribute1): New static Function.
9402         (avr_naked_function_p, interrupt_function_p)
9403         (signal_function_p, avr_OS_task_function_p)
9404         (avr_OS_main_function_p): Use it.
9405         * config/avr/avr.md ("sibcall", "sibcall_value")
9406         ("sibcall_epilogue"): New expander.
9407         ("*call_insn", "*call_value_insn"): New insn.
9408         ("call_insn", "call_value_insn"): Remove
9409         ("call", "call_value", "epilogue"): Change expander to handle
9410         sibling calls.
9411
9412 2011-03-21  Nick Clifton  <nickc@redhat.com>
9413
9414         * doc/invoke.texi (Overall Options): Move closing brace to end of
9415         options list.
9416         (Optimization Options): Add missing @gol.
9417         (Directory Options): Likewise.
9418         (i386 and x86-64 Options): Likewise.
9419         (RS6000 and PowerPC Options): Likewise.
9420         (i386 and x86-64 Windows Options): Likewise.
9421         (V850 Options): Add text missing from descriptions.
9422
9423 2011-03-22  Richard Henderson  <rth@redhat.com>
9424
9425         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9426         (avr_incoming_return_addr_rtx): New.
9427         (emit_push_byte): New.
9428         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9429         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9430         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9431         (emit_pop_byte): New.
9432         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9433         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9434         (INCOMING_RETURN_ADDR_RTX): New.
9435         (INCOMING_FRAME_SP_OFFSET): New.
9436         (ARG_POINTER_CFA_OFFSET): New.
9437         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9438         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9439         (pophi): Remove.
9440
9441         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9442
9443 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9444
9445         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9446         (FUNCTION_ARG_ADVANCE): Likewise.
9447         * tm.texi.in: Change references to them to hook references.
9448         * tm.texi: Regenerate.
9449         * targhooks.c (default_function_arg): Eliminate check for target
9450         macro.
9451         (default_function_incoming_arg): Likewise.
9452         (default_function_arg_advance): Likewise.
9453         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9454         (function_arg_advance): Likewise.
9455         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9456
9457 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9458
9459         * tree.c (build_call_1): New function.
9460         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9461
9462 2011-03-22  Richard Guenther  <rguenther@suse.de>
9463
9464         PR tree-optimization/48228
9465         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9466         for single-arg PHIs.
9467
9468 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9469
9470         PR rtl-optimization/48143
9471         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9472         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9473         sse2_cvtps2pd): Likewise.
9474
9475 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9476
9477         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9478
9479 2011-03-22  Richard Guenther  <rguenther@suse.de>
9480
9481         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9482         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9483         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9484         and REALIGN_LOAD_EXPR.
9485         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9486         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9487         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9488         DOT_PROD_EXPR case ...
9489         (expand_expr_real_2): ... here.
9490         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9491         and REALIGN_LOAD_EXPR.
9492         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9493         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9494         (vect_create_epilog_for_reduction): Likewise.
9495         (vectorizable_reduction): Likewise.
9496         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9497         * tree-vect-stmts.c (vectorizable_load): Likewise.
9498
9499 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9500
9501         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9502
9503 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9504
9505         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9506         handling for PLTOFF/GOTOFF.
9507
9508 2011-03-22  Nick Clifton  <nickc@redhat.com>
9509
9510         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9511         trailing backslash from the end of the macro definition.
9512
9513 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9514
9515         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9516         and PLT unspecs.
9517
9518 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9519
9520         * expr.h (prepare_operand): Move to...
9521         * optabs.h (prepare_operand): ...here and change the insn code
9522         parameter from "int" to "enum insn_code".
9523         (insn_operand_matches): Declare.
9524         * expr.c (init_expr_target): Use insn_operand_matches.
9525         (compress_float_constant): Likewise.
9526         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9527         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9528         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9529         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9530         Likewise.
9531         (gen_cond_trap): Likewise.
9532         (prepare_operand): Likewise.  Change icode to an insn_code.
9533         (insn_operand_matches): New function.
9534         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9535         * reload1.c (gen_reload): Likewise.
9536         * targhooks.c (default_secondary_reload): Likewise.
9537
9538 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9539
9540         * config/alpha/alpha.md (unspec): New define_c_enum.
9541         (unspecv): Ditto.
9542
9543 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9544
9545         PR debug/48214
9546         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9547         between a call and its CALL_ARG_LOCATION note.
9548
9549 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9550
9551         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9552
9553 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9554
9555         PR c/42544
9556         PR c/48197
9557         * c-common.c (shorten_compare): If primopN is first sign-extended
9558         to opN and then zero-extended to result type, set primopN to opN.
9559
9560 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9561
9562         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9563         for barrier handlers.
9564
9565 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9566
9567         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9568         UNSPEC constants to be in the unspec enumeration, and redefine
9569         all UNSPECV constants to be in the unspecv enumeration, so that
9570         dumps print which unspec/unspec_volatile this is.
9571         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9572         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9573         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9574         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9575         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9576
9577         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9578         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9579         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9580         * config/rs6000/sync.md (isync, lwsync): Ditto.
9581
9582 2011-03-21  Richard Guenther  <rguenther@suse.de>
9583
9584         * params.def (lto-min-partition): Fix typo.
9585
9586 2011-03-21  Richard Guenther  <rguenther@suse.de>
9587
9588         PR c/47939
9589         * c-decl.c (grokdeclarator): Drop to the main variant only
9590         for array types.  Drop flag_gen_aux_info check.
9591
9592 2011-03-21  Richard Guenther  <rguenther@suse.de>
9593
9594         PR translation/47911
9595         * params.def (lto-partitions): Fix typo.
9596         (lto-min-partition): Fix wording.
9597
9598 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9599
9600         * config/rs6000/t-freebsd: Remove duplication from file.
9601
9602 2011-03-21  Richard Guenther  <rguenther@suse.de>
9603
9604         PR middle-end/47661
9605         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9606
9607 2011-03-21  Richard Guenther  <rguenther@suse.de>
9608
9609         PR lto/48210
9610         * params.def (lto-partitions): Require at least 1 partition.
9611
9612 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9613
9614         * gthr-solaris.h: Remove.
9615         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9616         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9617         (LIB_SPEC): Likewise.
9618         * config/sol2.opt (threads): Remove.
9619         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9620         (sparc*-*-solaris2*): Likewise.
9621         * configure.ac (enable_threads): Enable solaris support.
9622         * configure: Regenerate.
9623         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9624         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9625         solaris.
9626
9627 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9628
9629         * config.gcc: Obsolete *-*-solaris2.8*.
9630         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9631
9632 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9633
9634         PR bootstrap/48135
9635         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9636         reference.  Solaris 8 perl works.
9637
9638 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9639
9640         PR bootstrap/48135
9641         * doc/install.texi (Prerequisites): Move jar etc. up.
9642         Explain support library version requirements.
9643
9644 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9645
9646         PR bootstrap/48135
9647         * doc/install.texi (Prerequisites): Move Perl to build
9648         requirements.  Always necessary on Solaris 2 with Sun ld.
9649
9650 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9651
9652         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9653         binutils 2.21.
9654         (Specific, i?86-*-solaris2.[89]): Likewise.
9655         (Specific, i?86-*-solaris2.10): Likewise.
9656         (Specific, mips-sgi-irix6): Likewise.
9657         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9658         Update for binutils 2.21.
9659
9660 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9661
9662         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9663         Allow -fuse-linker-plugin for non-default plugin linker.
9664         * configure: Regenerate.
9665
9666 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9667
9668         PR bootstrap/48167
9669         * gengtype.c (files_rules): Added rule for cp/parser.h.
9670
9671 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9672
9673         PR target/48213
9674         * config/s390/s390.c (s390_delegitimize_address): Don't call
9675         lowpart_subreg if orig_x has BLKmode.
9676
9677 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9678
9679         PR target/12171
9680         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9681         * tree.h (attribute_spec): Add new member affects_type_identity.
9682         * attribs.c (empty_attribute_table): Adjust attribute_spec
9683         initializers.
9684         * config/alpha/alpha.c: Likewise.
9685         * config/arc/arc.c: Likewise.
9686         * config/arm/arm.c: Likewise.
9687         * config/avr/avr.c: Likewise.
9688         * config/bfin/bfin.c: Likewise.
9689         * config/crx/crx.c: Likewise.
9690         * config/darwin.h: Likewise.
9691         * config/h8300/h8300.c: Likewise.
9692         * config/i386/cygming.h: Likewise.
9693         * config/i386/i386.c: Likewise.
9694         * config/ia64/ia64.c: Likewise.
9695         * config/m32c/m32c.c: Likewise.
9696         * config/m32r/m32r.c: Likewise.
9697         * config/m68hc11/m68hc11.c: Likewise.
9698         * config/m68k/m68k.c: Likewise.
9699         * config/mcore/mcore.c: Likewise.
9700         * config/mep/mep.c: Likewise.
9701         * config/microblaze/microblaze.c: Likewise.
9702         * config/mips/mips.c: Likewise.
9703         * config/rs6000/rs6000.c: Likewise.
9704         * config/rx/rx.c: Likewise.
9705         * config/sh/sh.c: Likewise.
9706         * config/sol2.h: Likewise.
9707         * config/sparc/sparc.c: Likewise.
9708         * config/spu/spu.c: Likewise.
9709         * config/stormy16/stormy16.c: Likewise.
9710         * config/v850/v850.c: Likewise.
9711
9712 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9713
9714         * simplify-rtx.c (simplify_binary_operation_1): Handle
9715         (xor (and A B) C) case when B and C are both constants.
9716
9717 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9718
9719         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9720
9721 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9722
9723         PR bootstrap/48168
9724         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9725
9726 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9727
9728         PR rtl-optimization/48156
9729         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9730         assume df and df_lr are not NULL.
9731
9732 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9733
9734         PR debug/48023
9735         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9736         between a call and its CALL_ARG_LOCATION note.
9737
9738 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9739
9740         PR debug/48178
9741         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9742         between a call and its corresponding CALL_ARG_LOCATION note.
9743
9744 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9745
9746         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9747         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9748         * haifa-sched.c (setup_ref_regs): Ditto.
9749         * caller-save.c (add_used_regs_1): Ditto.
9750         * dse.c (look_for_hardregs): Ditto.
9751         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9752         * sched-rgn.c (check_live_1): Ditto.
9753
9754 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9755
9756         * c-decl.c (diagnose_mismatched_decls): Give an error for
9757         redefining a typedef with variably modified type.
9758
9759 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9760
9761         * c-decl.c (grokfield): Don't allow typedefs for structures or
9762         unions with no tag by default.
9763         * doc/extend.texi (Unnamed Fields): Update.
9764
9765 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9766
9767         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9768         Rewrite using indirect functions.
9769         (lwp_slwpcb): Ditto.
9770         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9771         (avx_vinsertf128<mode>): Ditto.
9772
9773 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9774
9775         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9776         unspecs.
9777
9778 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9779
9780         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9781         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9782
9783 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9784
9785         PR rtl-optimization/48170
9786         * gcse.c (hoist_code): Remove bogus asserts.
9787
9788 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9789
9790         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9791         computation for prologue/epilogue.
9792
9793 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9794
9795         * Makefile.in (check-consistency): Remove.
9796
9797 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9798
9799         PR debug/48176
9800         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9801         arange_table_in_use is 0, but either text_section_used or
9802         cold_text_section_used is true.  Don't call it if
9803         !info_section_emitted.
9804
9805 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9806
9807         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9808         FUNCTION_VALUE_REGNO_P): Remove.
9809         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9810         Remove.
9811         * config/avr/avr.c (avr_ret_register): Make static inline.
9812         (avr_function_value_regno_p): New function.
9813         (avr_libcall_value): Make static. Add 'func' argument.
9814         (avr_function_value): Make static. Rename 'func' argument to
9815         'fn_decl_or_type', forward it to avr_libcall_value. Call
9816         avr_ret_register function instead of RET_REGISTER macro.
9817         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9818
9819 2011-03-18  Jason Merrill  <jason@redhat.com>
9820
9821         PR c++/23372
9822         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9823
9824 2011-03-18  Richard Guenther  <rguenther@suse.de>
9825
9826         * doc/install.texi (--enable-gold): Remove.
9827         (--with-plugin-ld): Document.
9828         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9829
9830 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9831
9832         PR middle-end/47790
9833         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9834         again after expansion changes.
9835
9836 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9837
9838         * combine.c (try_combine): Do simplification only call of
9839         subst() on i2 even when i1 is present. Update comments.
9840
9841 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9842
9843         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9844         and UNSPEC_PCREL_SYMOFF.
9845
9846 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9847
9848         * config/s390/s390.md: Use define_c_enum for the unspec constant
9849         definitions.
9850
9851 2011-03-18  Richard Henderson  <rth@redhat.com>
9852             Jakub Jelinek  <jakub@redhat.com>
9853
9854         PR bootstrap/48161
9855         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9856         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9857
9858 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9859
9860         PR middle-end/47725
9861         * combine.c (cant_combine_insn_p): Don't check zero/sign
9862         extended hard registers.
9863
9864 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9865
9866         PR middle-end/47725
9867         * combine.c (cant_combine_insn_p): Check zero/sign extended
9868         hard registers.
9869
9870 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9871
9872         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9873         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9874         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9875         Change return type to bool.
9876         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9877
9878 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9879
9880         PR debug/48163
9881         * var-tracking.c (prepare_call_arguments): If CALL target
9882         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9883         pc instead of looking it up using cselib_lookup and use
9884         Pmode for it if x has VOIDmode.
9885         * dwarf2out.c (gen_subprogram_die): If also both first and
9886         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9887
9888         PR debug/48163
9889         * function.c (assign_parms): For data.passed_pointer parms
9890         use MEM of data.entry_parm instead of data.entry_parm itself
9891         as DECL_INCOMING_RTL.
9892         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9893         also when passed and declared mode is the same, DECL_RTL
9894         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9895         a MEM too.
9896
9897 2011-03-16  Jeff Law  <law@redhat.com>
9898
9899         PR rtl-optimization/37273
9900         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9901         handle them like argument loads from stack slots.  Do not double
9902         count memory for memory constants and argument loads from stack slots.
9903
9904 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9905
9906         PR debug/48160
9907         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9908
9909 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9910
9911         PR target/48171
9912         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9913
9914 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9915
9916         PR bootstrap/48153
9917         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9918         if dwarf_strict.
9919         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9920         Clear call_arg_locations and call_arg_loc_last always.
9921
9922         PR middle-end/48152
9923         * var-tracking.c (prepare_call_arguments): If argument needs to be
9924         passed by reference, adjust argtype and mode.
9925
9926 2011-03-17  Richard Guenther  <rguenther@suse.de>
9927
9928         PR middle-end/48134
9929         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9930         a value make sure to fold the statement.
9931
9932 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9933
9934         PR target/43872
9935         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9936         return condition with !cfun->calls_alloca.
9937
9938 2011-03-17  Richard Guenther  <rguenther@suse.de>
9939
9940         PR bootstrap/48148
9941         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9942         origin for decls in other ltrans units.
9943         (input_varpool_node): Likewise.
9944
9945 2011-03-17  Richard Guenther  <rguenther@suse.de>
9946
9947         PR middle-end/48165
9948         * tree-object-size.c (compute_object_offset): Properly return
9949         the offset operand of MEM_REFs as sizetype.
9950
9951 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9952
9953         PR rtl-optimization/48141
9954         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9955         * dse.c: Include params.h.
9956         (active_local_stores_len): New variable.
9957         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9958         to NULL.
9959         (record_store, check_mem_read_rtx): Decrease it when removing
9960         from the chain.
9961         (scan_insn): Likewise.  Increase it when adding to chain, if it
9962         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9963         set active_local_stores to NULL before the addition.
9964         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9965
9966         PR rtl-optimization/48141
9967         * dse.c (record_store): If no positions are needed in an insn
9968         that cannot be deleted, at least unchain it from active_local_stores.
9969
9970 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9971
9972         PR debug/47510
9973         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9974         (lookup_type_die_strip_naming_typedef): ... here.
9975         (get_context_die): Use it.
9976         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9977         the anonymous struct named by the naming typedef.
9978
9979 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9980
9981         PR target/48154
9982         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9983         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9984
9985 2011-03-16  Jeff Law  <law@redhat.com>
9986
9987         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9988         check for operands of conditional.  Allow type to be a pointer.
9989
9990 2011-03-16  Richard Guenther  <rguenther@suse.de>
9991
9992         PR tree-optimization/48149
9993         * fold-const.c (fold_binary_loc): Fold
9994         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9995
9996 2011-03-16  Richard Guenther  <rguenther@suse.de>
9997
9998         PR tree-optimization/26134
9999         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10000         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10001         (non_rewritable_mem_ref_base): Handle complex type component
10002         accesses, constrain offsets for vector and complex extracts
10003         more properly.
10004
10005 2011-03-16  Richard Guenther  <rguenther@suse.de>
10006
10007         PR tree-optimization/48146
10008         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10009         operands avoiding the need for renaming.
10010
10011 2011-03-16  Richard Guenther  <rguenther@suse.de>
10012
10013         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10014         constant folding.  Move MEM_REF canonicalization first.
10015         Rely on fold_const_aggregate_ref for initializer folding.
10016         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10017
10018 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10019
10020         PR middle-end/48136
10021         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10022         arg0/arg1 or their arguments are always fold converted to matching
10023         types.
10024
10025         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10026         to nargs.
10027
10028 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10029
10030         PR lto/46944
10031         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10032         Handle in-tree gold.
10033         (ld_vers): Extract binutils version for gold.
10034         (gcc_cv_ld_hidden): Handle gold here.
10035         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10036         * configure: Regenerate.
10037         * config.in: Regenerate.
10038         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10039         -fuse-linker-plugin otherwise.
10040         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10041         (LINK_COMMAND_SPEC): Use it.
10042         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10043
10044 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10045
10046         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10047         * calls.c: Remove debug.h include.
10048         (emit_call_1): Don't call virtual_call_token debug hook.
10049         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10050         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10051         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10052         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10053         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10054         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10055         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10056         dwarf2out_virtual_call): Remove.
10057         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10058         copy_call_info and virtual_call hooks.
10059         (dwarf2out_init): Don't initialize vcall_insn_table,
10060         debug_dcall_section and debug_vcall_section.
10061         (prune_unused_types): Don't mark nodes from dcall_table.
10062         (dwarf2out_finish): Don't output dcall or vcall tables.
10063         * final.c (final_scan_insn): Don't call direct_call or
10064         virtual_call debug hooks.
10065         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10066         virtual_call_token, copy_call_info and virtual_call hooks.
10067         (debug_nothing_uid): Remove prototype.
10068         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10069         copy_call_info and virtual_call hooks.
10070         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10071         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10072         * debug.c (do_nothing_debug_hooks): Likewise.
10073         (debug_nothing_uid): Remove.
10074         * doc/invoke.texi (-fenable-icf-debug): Remove.
10075         * common.opt (-fenable-icf-debug): Likewise.
10076
10077         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10078         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10079         call's MEM.  Handle functions returning aggregate through a hidden
10080         first pointer.  For virtual calls add clobbered pc to call arguments
10081         chain.
10082         * dwarf2out.c (gen_subprogram_die): Emit
10083         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10084         can't be emitted.
10085
10086         PR debug/45882
10087         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10088         * rtl.h (ENTRY_VALUE_EXP): Define.
10089         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10090         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10091         * print-rtl.c (print_rtx): Likewise.
10092         * gengtype.c (adjust_field_rtx_def): Likewise.
10093         * var-tracking.c (vt_add_function_parameter): Adjust
10094         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10095         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10096         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10097         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10098         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10099
10100         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10101         Call var_location debug hook even on CALL_INSNs.
10102         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10103         * rtl.def (ENTRY_VALUE): New.
10104         * dwarf2out.c: Include cfglayout.h.
10105         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10106         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10107         (struct call_arg_loc_node): New type.
10108         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10109         tail_call_site_count): New variables.
10110         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10111         DW_TAG_GNU_call_site_parameter.
10112         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10113         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10114         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10115         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10116         and DW_AT_GNU_all_source_call_sites.
10117         (mem_loc_descriptor): Handle ENTRY_VALUE.
10118         (add_src_coords_attributes): Don't add enything if
10119         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10120         (dwarf2out_abstract_function): Save and clear call_arg_location,
10121         call_site_count and tail_call_site_count around dwarf2out_decl call.
10122         (gen_call_site_die): New function.
10123         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10124         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10125         (dwarf2out_function_decl): Clear call_arg_locations,
10126         call_arg_loc_last, set call_site_count and tail_call_site_count
10127         to -1 and free block_map.
10128         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10129         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10130         followed by any real instructions.
10131         (dwarf2out_begin_function): Set call_site_count and
10132         tail_call_site_count to 0.
10133         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10134         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10135         attempt to force a DIE for it and worst case remove the attribute.
10136         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10137         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10138         the decl itself.
10139         * var-tracking.c: Include tm_p.h.
10140         (vt_stack_adjustments): For calls call note_register_arguments.
10141         (argument_reg_set): New variable.
10142         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10143         ensure the VALUE is resolved.
10144         (call_arguments): New variable.
10145         (prepare_call_arguments): New function.
10146         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10147         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10148         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10149         always use the best expression.
10150         (vt_expand_loc): Add ignore_cur_loc argument.
10151         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10152         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10153         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10154         note for all calls.
10155         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10156         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10157         argument.  Don't call cselib_preserve_only_values and
10158         cselib_reset_table.
10159         (note_register_arguments): New function.
10160         (vt_initialize): Compute argument_reg_set.  Call
10161         vt_add_function_parameters before processing basic blocks instead of
10162         afterwards.  For calls call prepare_call_arguments before calling
10163         cselib_process_insn.
10164         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10165         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10166         (var-tracking.o): Depend on $(TM_P_H).
10167         * cfglayout.h (insn_scope): New prototype.
10168         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10169         * cfglayout.c (insn_scope): No longer static.
10170         * insn-notes.def (CALL_ARG_LOCATION): New.
10171         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10172         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10173         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10174         nothing for DECL_EXTERNAL BLOCK_VARS.
10175
10176 2011-03-16  Alan Modra  <amodra@gmail.com>
10177
10178         PR target/45844
10179         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10180         create invalid offset address for vsx splat insn.
10181         * config/rs6000/predicates.md (splat_input_operand): New.
10182         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10183
10184 2011-03-15  Xinliang David Li  <davidxl@google.com>
10185
10186         PR c/47837
10187         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10188         (normalize_preds): New function.
10189         (is_use_properly_guarded): Normalize def predicates.
10190
10191 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10192
10193         PR target/46788
10194         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10195         in the output template.
10196
10197 2011-03-15  Richard Guenther  <rguenther@suse.de>
10198
10199         PR middle-end/47650
10200         * tree-pretty-print.c (dump_function_declaration): Properly
10201         dump unprototyped and varargs function types.
10202
10203 2011-03-15  Richard Guenther  <rguenther@suse.de>
10204
10205         PR tree-optimization/13954
10206         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10207         and friends.
10208
10209 2011-03-15  Richard Guenther  <rguenther@suse.de>
10210
10211         PR tree-optimization/48037
10212         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10213         selects into BIT_FIELD_REFs.
10214         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10215         vector select.
10216
10217 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10218
10219         PR tree-optimization/48129
10220         * builtins.c (fold_builtin_snprintf): Convert to type of
10221         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10222         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10223
10224 2011-03-15  Richard Guenther  <rguenther@suse.de>
10225
10226         PR tree-optimization/41490
10227         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10228         value but with VUSE.
10229         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10230         return statements.
10231         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10232         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10233         * tree-tailcall.c (find_tail_calls): Ignore returns.
10234
10235 2011-03-15  Richard Guenther  <rguenther@suse.de>
10236
10237         PR middle-end/48031
10238         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10239         or variable-indexed array accesses when in gimple form.
10240
10241 2011-03-15  Richard Guenther  <rguenther@suse.de>
10242
10243         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10244
10245 2011-03-15  Alan Modra  <amodra@gmail.com>
10246
10247         PR target/48032
10248         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10249         presume symbol_refs without a symbol_ref_decl are suitably
10250         aligned, nor other trees we may see here.  Handle anchor symbols.
10251         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10252         Check cmodel=medium addresses.  Adjust all calls.
10253         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10254         creating cmodel=medium optimized access to locals.
10255         * config/rs6000/constraints.md (R): Pass QImode to
10256         legitimate_constant_pool_address_p.
10257         * config/rs6000/predicates.md (input_operand): Pass mode to
10258         legitimate_constant_pool_address_p.
10259         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10260         Update prototype.
10261
10262 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10263
10264         PR target/48053
10265         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10266         64-bit constants being loaded into registers other than GPRs such
10267         as loading 0 into a VSX register.
10268
10269 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10270
10271         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10272
10273 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10274
10275         PR middle-end/47917
10276         * builtins.c (fold_builtin_snprintf): New function.
10277         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10278         (fold_builtin_4): Likewise.
10279
10280         PR middle-end/38878
10281         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10282         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10283         and C - X == X also strip nops from +/-/p+ operand.
10284         When optimizing -X == C, fold C to arg0's type.
10285
10286         PR debug/47946
10287         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10288         emit it as add_AT_int instead of add_AT_unsigned.
10289
10290 2011-03-14  Tom Tromey  <tromey@redhat.com>
10291
10292         * unwind-dw2.c: Include sys/sdt.h if it exists.
10293         (_Unwind_DebugHook): Use STAP_PROBE2.
10294         * config.in, configure: Rebuild.
10295         * configure.ac: Check for sys/sdt.h.
10296
10297 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10298
10299         * config/i386/i386.md (ROUND_FLOOR): New constant.
10300         (ROUND_CEIL): Ditto.
10301         (ROUND_TRUNC): Ditto.
10302         (ROUND_MXCSR): Ditto.
10303         (ROUND_NO_EXC): Ditto.
10304         (rint<mode>2): Use new defines instead of numerical constants.
10305         (floor<mode>2): Ditto.
10306         (ceil<mode>2): Ditto.
10307         (btrunc<mode>2): Ditto.
10308         * config/i386/i386-builtin-types.def: Define ROUND function type
10309         aliases.
10310         * config/i386/i386.c (enum ix86_builtins): Add
10311         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10312         (struct builtin_description): Add
10313         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10314         (ix86_expand_sse_round): New static function.
10315         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10316         function types.
10317         (ix86_builtin_vectorized_function): Handle
10318         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10319
10320 2011-03-14  Tom Tromey  <tromey@redhat.com>
10321
10322         * c-parser.c (c_parser_asm_string_literal): Clear
10323         warn_overlength_strings.
10324
10325 2011-03-14  Tom Tromey  <tromey@redhat.com>
10326
10327         * c-parser.c (disable_extension_diagnostics): Save
10328         warn_overlength_strings.
10329         (restore_extension_diagnostics): Restore warn_overlength_strings.
10330
10331 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10332
10333         * BASE-VER: Change to 4.7.0.
10334
10335 2011-03-14  Richard Guenther  <rguenther@suse.de>
10336
10337         PR middle-end/48098
10338         * tree.c (build_vector_from_val): Adjust assert to requirements
10339         and reality.
10340
10341 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10342
10343         PR bootstrap/48102
10344         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10345
10346 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10347
10348         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10349         terms of target_flags_explicit. Adjust copyright year.
10350
10351         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10352         * config/rs6000/t-freebsd: New file. Add override for
10353         LIB2FUNCS_EXTRA.
10354
10355 2011-03-13  Chris Demetriou  <cgd@google.com>
10356
10357         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10358         (-fno-diagnostics-show-option): this, to reflect current default.
10359         (-Werror=): Update text about -fno-diagnostics-show-option.
10360
10361 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10362
10363         PR target/48053
10364         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10365         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10366         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10367         mode is not V2DImode or V2DFmode.
10368         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10369         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10370         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10371         registers to 0.
10372         (movdi_internal64): Likewise.
10373
10374 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10375
10376         PR tree-optimization/47127
10377         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10378         parameter.
10379         (set_cloog_options): Same.
10380         (scop_to_clast): Same.
10381         (print_clast_stmt): Do not call cloog_state_malloc and
10382         cloog_state_free.
10383         (print_generated_program): Same.
10384         (gloog): Same.
10385         * graphite-clast-to-gimple.h (cloog_state): Declared.
10386         (scop_to_clast): Adjust declaration.
10387         * graphite.c (cloog_state): Defined here.
10388         (graphite_initialize): Call cloog_state_malloc.
10389         (graphite_finalize): Call cloog_state_free.
10390
10391 2011-03-11  Jason Merrill  <jason@redhat.com>
10392
10393         * attribs.c (lookup_attribute_spec): Take const_tree.
10394         * tree.h: Adjust.
10395
10396 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10397
10398         * config/sparc/sparc.c (sparc_option_override): Use
10399         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10400
10401 2011-03-11  Richard Guenther  <rguenther@suse.de>
10402
10403         PR tree-optimization/48067
10404         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10405         multiplication result will be only used once on the target
10406         stmt.
10407
10408 2011-03-11  Richard Guenther  <rguenther@suse.de>
10409
10410         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10411
10412 2011-03-11  Richard Guenther  <rguenther@suse.de>
10413
10414         PR lto/48073
10415         * tree.c (find_decls_types_r): Do not walk types only reachable
10416         from IDENTIFIER_NODEs.
10417
10418 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10419
10420         PR middle-end/48044
10421         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10422         all vnode->force_output nodes as needed.
10423
10424 2011-03-11  Jason Merrill  <jason@redhat.com>
10425
10426         PR c++/48069
10427         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10428         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10429
10430 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10431
10432         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10433         cgraph_node.
10434
10435 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10436
10437         PR tree-optimization/48063
10438         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10439         inline functions called once if !tree_can_inline_p (node->callers).
10440
10441 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10442
10443         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10444         extra_objs.
10445         * config/score/score3.c: Delete.
10446         * config/score/score3.h: Delete.
10447         * config/score/mul-div.S: Delete.
10448         * config/score/sfp-machine.h: Add new file.
10449         * config/score/constraints.md: Add new file.
10450         * config/score/t-score-softfp: Add new file.
10451         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10452         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10453         (score7_extra_constraint): Delete.
10454         (score7_option_override): Remove unused code.
10455         * config/score/score.c: Remove score3 and score5 define and code.
10456         * config/score/score.h: Remove score3 and score5 define and code.
10457         * config/score/score.md: Remove score3 template and unusual insn.
10458         * config/score/score.opt: Remove score3 and score5 options.
10459
10460 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10461
10462         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10463         when _HPUX_SOURCE is defined.
10464         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10465
10466 2011-03-10  Jason Merrill  <jason@redhat.com>
10467
10468         PR c++/48029
10469         * stor-layout.c (layout_type): Don't set structural equality
10470         on arrays of incomplete type.
10471         * tree.c (type_hash_eq): Handle comparing them properly.
10472
10473 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10474
10475         PR debug/48043
10476         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10477         result mode matches original rtl mode.
10478
10479 2011-03-10  Nick Clifton  <nickc@redhat.com>
10480
10481         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10482         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10483
10484 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10485
10486         PR rtl-optimization/47866
10487         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10488         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10489         if target wasn't scalar.
10490         * function.c (assign_stack_temp_for_type): Assert that neither
10491         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10492         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10493         macro.
10494         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10495
10496 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10497
10498         * config/s390/s390-protos.h (s390_label_align): New prototype.
10499         * config/s390/s390.c (s390_label_align): New function.
10500         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10501
10502 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10503
10504         PR target/47755
10505         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10506         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10507         (output_vec_const_move): Ditto.
10508
10509 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10510
10511         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10512         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10513         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10514         Change 'rclass' argument and result type to reg_class_t.
10515         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10516
10517 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10518
10519         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10520         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10521         (TARGET_MEMORY_MOVE_COST): Define.
10522         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10523
10524 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10525
10526         PR debug/47881
10527         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10528         removed anything.
10529
10530         PR tree-optimization/48022
10531         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10532         for EQ/NE_EXPR.
10533
10534 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10535
10536         PR debug/47991
10537         * var-tracking.c (find_use_val): Return NULL for
10538         cui->sets && cui->store_p BLKmode MEMs.
10539
10540 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10541
10542         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10543         Remove.
10544         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10545         xstormy16_print_operand_address): Remove.
10546         * config/stormy16/stormy16.c (xstormy16_print_operand,
10547         xstormy16_print_operand_address): Make static.
10548         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10549
10550 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10551
10552         PR target/47862
10553         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10554         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10555         before definition.
10556
10557 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10558
10559         PR bootstrap/48000
10560         * cfgloopmanip.c (fix_bb_placements): Return immediately
10561         if FROM is BASE_LOOP's header.
10562
10563 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10564
10565         * gimplify.c (gimplify_function_tree): Fix building calls
10566         to __builtin_return_address.
10567
10568 2011-03-07  Alan Modra  <amodra@gmail.com>
10569
10570         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10571         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10572         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10573         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10574         return_mode args.
10575         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10576         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10577         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10578         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10579         * config/rs6000/rs6000.c
10580         (rs6000_elf_end_indicate_exec_stack): Rename to..
10581         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10582         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10583         (rs6000_file_start): ..here.
10584         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10585         file scope variables.
10586         (call_ABI_of_interest): New function.
10587         (init_cumulative_args): Set above vars when function return value
10588         is a float, vector, or small struct.
10589         (rs6000_function_arg_advance_1): Likewise for function args.
10590         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10591         references float args.
10592
10593 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10594
10595         * doc/cfg.texi: Remove "See" before @ref.
10596         * doc/invoke.texi: Likewise.
10597
10598 2011-03-05  Jason Merrill  <jason@redhat.com>
10599
10600         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10601
10602 2011-03-05  Anthony Green  <green@moxielogic.com>
10603
10604         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10605
10606 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10607
10608         PR rtl-optimization/47899
10609         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10610         to flow_loop_nested_p when moving the loop upward.
10611
10612 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10613
10614         PR target/47719
10615         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10616
10617 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10618
10619         PR tree-optimization/47967
10620         * ipa-cp.c (build_const_val): Return NULL instead of creating
10621         VIEW_CONVERT_EXPR for mismatching sizes.
10622         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10623         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10624         give up on versioning.
10625
10626 2011-03-05  Alan Modra  <amodra@gmail.com>
10627
10628         PR target/47986
10629         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10630         full cmodel medium/large lo_sum + high addresses.
10631
10632 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10633
10634         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10635         pool references in UNSPEC_LTREL_OFFSET.
10636
10637 2011-03-04  Jan Hubicka  <jh@suse.cz>
10638
10639         PR lto/47497
10640         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10641         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10642         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10643         Add node pointers.
10644         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10645         cgraph_add_thunk): Add node pointers.
10646         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10647         associated to right node.
10648         (input_node): Update use of cgraph_same_body_alias
10649         and cgraph_add_thunk.
10650
10651 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10652
10653         * config/i386/i386.opt (mprefer-avx128): New flag.
10654         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10655         modes when the flag -mprefer-avx128 is on.
10656
10657 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10658
10659         * dwarf2out.c (compare_loc_operands): Fix address handling.
10660
10661 2011-03-04  Alan Modra  <amodra@gmail.com>
10662
10663         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10664
10665 2011-03-04  Richard Guenther  <rguenther@suse.de>
10666
10667         PR middle-end/47968
10668         * expmed.c (extract_bit_field_1): Prefer vector modes that
10669         vec_extract patterns can handle.
10670
10671 2011-03-04  Richard Guenther  <rguenther@suse.de>
10672
10673         PR middle-end/47975
10674         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10675
10676 2011-03-04  Richard Henderson  <rth@redhat.com>
10677
10678         * explow.c (emit_stack_save): Remove 'after' parameter.
10679         (emit_stack_restore): Likewise.
10680         * expr.h: Update to match.
10681         * builtins.c, calls.c, stmt.c: Likewise.
10682         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10683         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10684         * function.c (expand_function_end): Insert the emit_stack_save
10685         sequence before parm_birth_insn instead of after.
10686
10687 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10688
10689         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10690         (ssse3_pmaddubsw128): Ditto.
10691         (ssse3_pmaddubsw): Ditto.
10692
10693 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10694
10695         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10696
10697 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10698
10699         PR c/47963
10700         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10701         on TYPE_SIZE_UNIT if it is a DECL.
10702
10703         PR debug/47283
10704         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10705         first operand is not is_gimple_mem_ref_addr, try to fold it.
10706         If the operand still isn't is_gimple_mem_ref_addr, clear
10707         MEM_EXPR on op0.
10708
10709 2011-03-03  Richard Guenther  <rguenther@suse.de>
10710
10711         PR middle-end/47283
10712         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10713         match comment.
10714         (refs_may_alias_p_1): For release branches return true if
10715         we are confused by our input.
10716
10717 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10718
10719         * config/s390/s390.c (s390_function_value): Rename to ...
10720         (s390_function_and_libcall_value): ... this.
10721         (s390_function_value): New function.
10722         (s390_libcall_value): New function.
10723         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10724         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10725         target macro definitions.
10726         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10727
10728 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10729
10730         * config/i386/freebsd64.h (CC1_SPEC): Define.
10731         * config/i386/linux64.h (CC1_SPEC): Define.
10732         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10733
10734 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10735
10736         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10737         Remove.
10738         * config/stormy16/stormy16.c: Include reload.h.
10739         (xstormy16_memory_move_cost): New function.
10740         (TARGET_MEMORY_MOVE_COST): Define.
10741
10742 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10743
10744         PR rtl-optimization/47925
10745         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10746         with side effects.  Remove the more-specific check for volatile asms.
10747
10748 2011-03-02  Alan Modra  <amodra@gmail.com>
10749
10750         PR target/47935
10751         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10752         toc relative addresses for valid offsets.
10753
10754 2011-03-01  Richard Guenther  <rguenther@suse.de>
10755
10756         PR tree-optimization/47890
10757         * tree-vect-loop.c (get_initial_def_for_induction): Set
10758         related stmt properly.
10759
10760 2011-03-01  Richard Guenther  <rguenther@suse.de>
10761
10762         PR lto/47924
10763         * lto-streamer.c (lto_record_common_node): Also register
10764         the canonical type.
10765
10766 2011-03-01  Richard Guenther  <rguenther@suse.de>
10767
10768         PR lto/46911
10769         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10770         Do not stream DECL_ABSTRACT_ORIGIN.
10771         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10772         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10773         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10774         Do not stream DECL_ABSTRACT_ORIGIN.
10775         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10776         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10777
10778 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10779
10780         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10781         FUNCTION_VALUE_REGNO_P): Remove.
10782         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10783         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10784         Add 'outgoing' argument.
10785         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10786         function.
10787         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10788         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10789
10790 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10791
10792         PR debug/28047
10793         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10794         (lookup_filename): Likewise.
10795         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10796
10797 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10798             Jakub Jelinek  <jakub@redhat.com>
10799
10800         PR middle-end/47893
10801         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10802         (assign_stack_local_1): Change last argument type to int.
10803         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10804         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10805         don't record padding space into frame_space_list nor use those areas.
10806         (assign_stack_local): Adjust caller.
10807         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10808         of assign_stack_local, pass 0 as last argument.
10809         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10810         callers.
10811
10812 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10813
10814         PR debug/47283
10815         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10816         Use target address_mode and pointer_mode hooks instead of hardcoded
10817         Pmode and ptr_mode.  Handle some simple cases of extending if
10818         POINTERS_EXTEND_UNSIGNED < 0.
10819         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10820         Call convert_debug_memory_address.
10821         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10822         convert_debug_memory_address.
10823
10824         PR middle-end/46790
10825         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10826         * configure: Regenerated.
10827         * config.in: Regenerated.
10828         * varasm.c (default_function_section): Return NULL
10829         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10830
10831 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10832
10833         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10834         the description to match the printed values.
10835
10836 2011-02-28  Richard Guenther  <rguenther@suse.de>
10837
10838         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10839         of the copied scope tree.
10840
10841 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10842
10843         * doc/extend.texi (Function Attributes): Avoid deeply (and
10844         wrongly) nested tables.
10845
10846 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10847
10848         PR middle-end/47903
10849         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10850         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10851         r isn't op0 nor op1.
10852
10853 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10854
10855         * config/avr/avr.md: Remove magic comment for emacs.
10856
10857 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10858
10859         PR target/45261
10860         * config/avr/avr.c (avr_option_override): Use error on bad options.
10861         (avr_help): New function.
10862         (TARGET_HELP): Define.
10863
10864 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10865
10866         PR target/42240
10867         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10868         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10869
10870 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10871
10872         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10873         (ARM Options): Ditto.
10874         (i386 and x86-64 Options): Ditto.
10875         (RX Options): Ditto.
10876         (SPARC Options): Ditto.
10877
10878 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10879
10880         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10881         FreeBSD 6 and later.  Generally use cpu generic.
10882
10883 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10884
10885         * doc/cpp.texi: Update copyright years.
10886
10887 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10888
10889         PR target/46898
10890         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10891
10892 2011-02-25  Jon Beniston  <jon@beniston.com>
10893
10894         PR target/46898
10895         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10896         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10897         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10898         (lm32_block_move_inline): Add type cast to remove warning.
10899         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10900         (gen_int_relational): Move declarations to start of function.
10901
10902 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10903
10904         PR tree-optimization/45470
10905         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10906         can throw internally only.
10907         * tree-vect-stmts.c (vectorizable_call): Likewise.
10908
10909 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10910
10911         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10912         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10913         * config/stormy16/stormy16-protos.h
10914         (xstormy16_preferred_reload_class): Remove.
10915         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10916         static. Change 'rclass' argument and return type to reg_class_t.
10917         (TARGET_PREFERRED_RELOAD_CLASS,
10918         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10919
10920 2011-02-24  Richard Guenther  <rguenther@suse.de>
10921
10922         * lto-streamer-in.c (input_bb): Do not find referenced vars
10923         in debug statements.
10924
10925 2011-02-23  Jason Merrill  <jason@redhat.com>
10926
10927         * common.opt (fabi-version): Document v5 and v6.
10928
10929 2011-02-23  Richard Guenther  <rguenther@suse.de>
10930
10931         PR tree-optimization/47849
10932         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10933
10934 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10935
10936         * opts-common.c (decode_cmdline_option): Print empty string
10937         argument as "" in decoded->orig_option_with_args_text.
10938         * gcc.c (execute): Print empty string argument as ""
10939         in the verbose output.
10940         (do_spec_1): Keep empty string argument.
10941
10942 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10943
10944         * config.gcc: Declare score-* and crx-* obsolete.
10945
10946 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10947
10948         PR rtl-optimization/47763
10949         * web.c (web_main): Ignore naked clobber when replacing register.
10950
10951 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10952
10953         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10954         Remove.
10955
10956 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10957
10958         PR doc/47848
10959         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10960
10961 2011-02-22  Mike Stump  <mikestump@comcast.net>
10962
10963         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10964         assembler.
10965         * configure: Regenerate.
10966
10967 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10968
10969         PR rtl-optimization/46002
10970         * ira-color.c (update_copy_costs): Change class intersection
10971         test to reg_class_contents[] test of 'hard_regno'.
10972
10973 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10974
10975         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10976         than Driver option.
10977         * config/hpux11.opt (mt): Likewise.
10978         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10979         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10980         * config/vax/elf.opt (mno-asm-pic): Likewise.
10981         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10982
10983 2011-02-21  Mike Stump  <mikestump@comcast.net>
10984
10985         PR target/47822
10986         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10987         tree so we can get save the type.
10988         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10989         for CFString instead of trying to use past the end of the builtins.
10990         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10991         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10992         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10993         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10994         Rename to darwin_builtin_cfstring.
10995         (darwin_init_cfstring_builtins): Return the built type.
10996
10997 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10998
10999         PR target/47840
11000         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11001         (_mm256_insert_epi64): Use _mm_insert_epi64.
11002
11003 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11004
11005         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11006         * config/stormy16/stormy16-protos.h
11007         (xstormy16_mode_dependent_address_p): Remove.
11008         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11009         Make static. Change return type to bool. Change argument type to
11010         const_rtx. Remove dead code.
11011         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11012
11013 2011-02-21  Richard Guenther  <rguenther@suse.de>
11014
11015         PR lto/47820
11016         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11017         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11018         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11019         TUs context.
11020         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11021         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11022
11023 2011-02-20  Richard Guenther  <rguenther@suse.de>
11024
11025         PR lto/47822
11026         * tree.c (free_lang_data_in_decl): Clean builtins from
11027         the TU decl BLOCK_VARS.
11028
11029 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11030
11031         PR debug/47620
11032         PR debug/47630
11033         * haifa-sched.c (fix_tick_ready): Skip tick computation
11034         for debug insns.
11035
11036 2011-02-19  Richard Guenther  <rguenther@suse.de>
11037
11038         PR lto/47647
11039         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11040         Remove lazy BLOCK_VARS streaming.
11041         (lto_input_ts_block_tree_pointers): Likewise.
11042         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11043
11044 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11045
11046         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11047
11048 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11049
11050         * config/i386/biarch32.h, config/i386/mach.h,
11051         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11052
11053 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11054
11055         PR target/47800
11056         * config/i386/i386.md (peephole2 for shift and plus): Use
11057         operands[1] original mode in the first insn.
11058
11059 2011-02-18  Mike Stump  <mikestump@comcast.net>
11060
11061         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11062
11063 2011-02-18  Jan Hubicka  <jh@suse.cz>
11064
11065         PR middle-end/47788
11066         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11067         to zero when the function is not inlinable at all.
11068
11069 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11070
11071         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11072         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11073         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11074         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11075         * config/pa/t-pa64: Likewise.
11076         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11077
11078 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11079
11080         PR driver/47787
11081         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11082
11083 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11084
11085         PR target/47792
11086         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11087
11088 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11089
11090         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11091         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11092         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11093         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11094         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11095         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11096         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11097         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11098         m32r_legitimate_address_p): New functions.
11099         * config/m32r/constraints.md (constraint "S"): Don't use
11100         STORE_PREINC_PREDEC_P.
11101         (constraint "U"): Don't use LOAD_POSTINC_P.
11102
11103 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11104
11105         PR rtl-optimization/46178
11106         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11107         compute ira_hard_regno_cover_class[].
11108
11109 2011-02-18  Richard Guenther  <rguenther@suse.de>
11110
11111         PR lto/47798
11112         * lto-streamer.h (lto_global_var_decls): Declare.
11113         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11114         statics for global var processing.
11115
11116 2011-02-18  Richard Guenther  <rguenther@suse.de>
11117
11118         PR tree-optimization/47737
11119         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11120         edge dominance check.
11121
11122 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11123
11124         PR debug/47780
11125         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11126         avoid invalid rtx sharing.
11127
11128 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11129
11130         * doc/cpp.texi (Obsolete Features): Add background on the
11131         origin of assertions.
11132
11133 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11134
11135         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11136         objc_abi == 2.
11137         * config/darwin.c (output_objc_section_asm_op): Added support for
11138         ABI v1 and v2.
11139         (is_objc_metadata): New.
11140         (darwin_objc2_section): New.
11141         (darwin_objc1_section): New.
11142         (machopic_select_section): Added support for ABI v1 and v2.
11143         (darwin_emit_objc_zeroed): New.
11144         (darwin_output_aligned_bss): Detect objc metadata and treat it
11145         appropriately.
11146         (darwin_asm_output_aligned_decl_common): Same.
11147         (darwin_asm_output_aligned_decl_local): Same.
11148         * config/darwin-sections.def: Updated for ABI v1 and v2.
11149         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11150         compiling Objective-C code for the NeXT runtime, default to using
11151         ABI version 0 for 32-bit, and version 2 for 64-bit.
11152
11153 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11154
11155         * common.opt (optimize_fast): New Variable.
11156         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11157         instead of local variable ofast.
11158
11159 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11160
11161         * doc/invoke.texi (fobjc-abi-version): Documented.
11162         (fobjc-nilcheck): Documented.
11163         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11164         version.
11165
11166 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11167
11168         PR driver/47390
11169         * common.opt (export-dynamic): New Driver option.
11170         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11171
11172 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11173
11174         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11175
11176 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11177             Jan Hubicka  <jh@suse.cz>
11178
11179         PR debug/47106
11180         PR debug/47402
11181         * cfgexpand.c (account_used_vars_for_block): Remove.
11182         (estimated_stack_frame_size): Use referenced vars.
11183         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11184         that were referenced in the original function.  Test src_fn
11185         rather than cfun.  Drop redundant get_var_ann.
11186         (setup_one_parameter): Drop redundant get_var_ann.
11187         (declare_return_variable): Likewise.
11188         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11189         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11190         * ipa-inline.c (compute_inline_parameters): Do not compute
11191         disregard_inline_limits here.
11192         (compute_inlinable_for_current, pass_inlinable): New.
11193         (pass_inline_parameters): Require PROP_referenced_vars.
11194         * cgraphunit.c (cgraph_process_new_functions): Don't run
11195         compute_inline_parameters explicitly unless function is in SSA form.
11196         (cgraph_analyze_function): Set .disregard_inline_limits.
11197         * tree-sra.c (convert_callers): Compute inliner parameters
11198         only for functions already in SSA form.
11199
11200 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11201
11202         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11203         -mlittle-endian-data.
11204
11205 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11206
11207         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11208         -mno-fpu, not -fpu and -no-fpu.
11209         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11210         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11211
11212 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11213
11214         PR target/43653
11215         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11216         input reload with PLUS RTX.
11217
11218 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11219
11220         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11221         of InverseVar(MDMX).
11222
11223 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11224
11225         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11226         --m4-340.
11227
11228 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11229
11230         * config/mn10300/mn10300.opt (mno-crt0): New.
11231
11232 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11233
11234         * config/m68k/uclinux.opt (static-libc): New Driver option.
11235
11236 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11237
11238         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11239
11240 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11241
11242         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11243         %{muser-extend-enabled}.
11244
11245 2011-02-16  Richard Guenther  <rguenther@suse.de>
11246
11247         PR tree-optimization/47738
11248         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11249         the TODO from tree_predictive_commoning.
11250
11251 2011-02-15  Jeff Law  <law@redhat.com>
11252
11253         Revert
11254         2011-01-25  Jeff Law  <law@redhat.com>
11255
11256         PR rtl-optimization/37273
11257         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11258         handle them like argument loads from stack slots.  Do not double
11259         count memory for memory constants and argument loads from stack slots.
11260
11261 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11262
11263         PR middle-end/47725
11264         * combine.c (cant_combine_insn_p): Revert the last change.
11265
11266 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11267
11268         PR target/47755
11269         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11270         mode for vector constants.  Remove code that checks for TImode.
11271
11272 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11273
11274         PR debug/47106
11275         PR debug/47402
11276         * cgraph.h (compute_inline_parameters): Return void.
11277         * ipa-inline.c (compute_inline_parameters): Adjust.
11278
11279 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11280
11281         PR debug/47106
11282         PR debug/47402
11283         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11284         rather than decl.
11285         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11286         * ipa-inline.c (compute_inline_parameters): Adjust.
11287
11288 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11289
11290         PR debug/47106
11291         PR debug/47402
11292         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11293         Adjust all users.  Pass FN to...
11294         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11295         fn argument.
11296         * ipa-struct-reorg.c: Adjust.
11297         * tree-dfa.c: Adjust.
11298         * tree-into-ssa.c: Adjust.
11299         * tree-sra.c: Adjust.
11300         * tree-ssa-alias.c: Adjust.
11301         * tree-ssa-live.c: Adjust.
11302         * tree-ssa.c: Adjust.
11303         * tree-ssanames.c: Adjust.
11304         * tree-tailcall.c: Adjust.
11305
11306 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11307
11308         PR debug/47106
11309         PR debug/47402
11310         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11311         Adjust all callers.
11312         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11313         * tree-flow-inline.h: Adjust.
11314         * gimple-pretty-print.c: Adjust.
11315         * tree-into-ssa.c: Adjust.
11316         * tree-ssa.c: Adjust.
11317         * cfgexpand.c: Adjust.
11318
11319 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11320
11321         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11322         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11323         (EXTRA_CONSTRAINT): Delete.
11324         * config/iq2000/constraints.md: New file.
11325         * config/iq2000/iq2000.md: Include it.
11326         (define_insn ""): Delete.
11327         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11328         unsupported constraint letters from patterns.
11329         (call_value, call_value_internal1): Likewise.
11330         (call_value_multiple_internal1): Likewise.
11331
11332 2011-02-15  Nick Clifton  <nickc@redhat.com>
11333
11334         * config/mn10300/mn10300.c: Include tm-constrs.h.
11335         (struct liw_data): New data structure describing an LIW candidate
11336         instruction.
11337         (extract_bundle): Use struct liw_data.  Allow small integer
11338         operands for some instructions.
11339         (check_liw_constraints): Use struct liw_data.  Remove swapped
11340         parameter.  Add comments describing the checks.  Fix bug when
11341         assigning the source of liw1 to the source of liw2.
11342         (liw_candidate): Delete.  Code moved into extract_bundle.
11343         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11344         before swapping.
11345         * config/mn10300/predicates.md (liw_operand): New predicate.
11346         Allows registers and small integer constants.
11347         * config/mn10300/constraints.md (O): New constraint.  Accetps
11348         integers in the range -8 to +7 inclusive.
11349         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11350         for moving a small integer into a register.  Give this alternative
11351         LIW attributes.
11352         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11353         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11354         using the J,K,L and M constraints,
11355         (liw): Remove SI mode on second operands to allow for HI and QI
11356         mode values.
11357         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11358         instruction.
11359
11360 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11361
11362         PR middle-end/47725
11363         * combine.c (cant_combine_insn_p): Check zero/sign extended
11364         hard registers.
11365
11366 2011-02-15  Richard Guenther  <rguenther@suse.de>
11367
11368         PR tree-optimization/47743
11369         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11370         for a non-type-compatible VN lookup bail out.
11371
11372 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11373
11374         * config/fr30/constraints.md: New file.
11375         * config/fr30/fr30.md: Include it.
11376         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11377         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11378         (EXTRA_CONSTRAINT): Delete.
11379
11380 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11381
11382         * config/frv/constraints.md: New file.
11383         * config/frv/predicates.md: Include it.
11384         * config/frv/frv.c (reg_class_from_letter): Delete.
11385         (frv_option_override): Don't initialize it.
11386         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11387         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11388         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11389         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11390         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11391         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11392         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11393         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11394         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11395         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11396         (REG_CLASS_FROM_CONSTRAINT): Delete.
11397
11398 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11399
11400         PR middle-end/47581
11401         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11402         if frame size is 0 in a leaf function.
11403
11404 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11405
11406         PR pch/14940
11407         * config/alpha/host-osf.c: New file.
11408         * config/alpha/x-osf: New file.
11409         * config.host (alpha*-dec-osf*): Use it.
11410
11411 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11412
11413         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11414         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11415         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11416         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11417         type to const_rtx.
11418         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11419
11420 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11421
11422         * config/stormy16/constraints.md: New file.
11423         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11424         Use satisfies_constraint_Q and satisfies_constraint_R.
11425         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11426         Delete.
11427         (xstormy16_legitiamte_address_p): Declare.
11428         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11429         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11430         (EXTRA_CONSTRAINT): Delete.
11431         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11432         Un-staticize.
11433         (xstormy16_extra_constraint_p): Delete.
11434
11435 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11436
11437         PR tree-optimization/46494
11438         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11439         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11440         (pass_rtl_loop_done): Add TODO_verify_flow.
11441         * fwprop.c (pass_rtl_fwprop): Likewise.
11442         * modulo-sched.c (pass_sms): Likewise.
11443         * tree-ssa-dom.c (pass_dominator): Likewise.
11444         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11445         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11446         (pass_tree_loop_done): Likewise.
11447         * tree-ssa-pre.c (execute_pre): Likewise.
11448         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11449         * tree-ssa-sink.c (pass_sink_code): Likewise.
11450         * tree-vrp.c (pass_vrp): Likewise.
11451
11452 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11453
11454         * config/v850/constraints.md: New file.
11455         * config/v850/v850.md: Include it.
11456         * config/v850/predicates.md (reg_or_0_operand): Use
11457         satisfies_constraint_G.
11458         (special_symbolref_operand): Use satisfies_constraint_K.
11459         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11460         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11461         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11462         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11463         (EXTRA_CONSTRAINT): Delete.
11464         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11465         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11466         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11467
11468 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11469
11470         PR target/47696
11471         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11472         description.
11473
11474 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11475
11476         * config/mcore/constraints.md: New file.
11477         * config/mcore/mcore.md: Include it.
11478         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11479         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11480         (REG_CLASS_FROM_LETTER): Delete.
11481         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11482         insn_const_int_ok_for_constraint.
11483         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11484         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11485         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11486         (EXTRA_CONSTRAINT): Delete.
11487
11488 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11489
11490         PR ada/41929
11491         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11492         (IS_SIGHANDLER): Define.
11493         (sparc64_is_sighandler): New function, split off from
11494         sparc64_fallback_frame_state.
11495         (sparc_is_sighandler): New function, split off from
11496         sparc_fallback_frame_state.
11497         (sparc64_fallback_frame_state): Merge with ...
11498         (sparc_fallback_frame_state): ... this into ...
11499         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11500         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11501         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11502         stack instead of hardcoded offsets.
11503
11504 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11505
11506         PR target/45808
11507         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11508
11509 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11510
11511         * configure: Regenerate.
11512
11513 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11514
11515         PR driver/45731
11516         * gcc.c (asm_options): Correct spec matching --target-help.
11517
11518 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11519
11520         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11521         to gimple call error.
11522
11523 2011-02-12  Mike Stump  <mikestump@comcast.net>
11524
11525         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11526         comments in backslash regions.
11527
11528 2011-02-12  Mike Stump  <mikestump@comcast.net>
11529             Jakub Jelinek  <jakub@redhat.com>
11530             Iain Sandoe  <iains@gcc.gnu.org>
11531
11532         PR target/47324
11533         * dwarf2out.c (output_cfa_loc): When required, apply the
11534         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11535         (output_loc_sequence): Likewise.
11536         (output_loc_operands_raw): Likewise.
11537         (output_loc_sequence_raw): Likewise.
11538         (output_cfa_loc): Likewise.
11539         (output_loc_list): Suppress register number adjustment when
11540         calling output_loc_sequence()
11541         (output_die): Likewise.
11542
11543 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11544
11545         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11546         Remove macros.
11547         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11548         xtensa_memory_move_cost): New functions.
11549         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11550
11551 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11552
11553         PR lto/47225
11554         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11555         in the current directory.
11556         * configure: Rebuilt.
11557
11558 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11559
11560         * config/darwin.c (darwin_override_options): Add a hunk missed
11561         from the commit of r168571.  Trim comment line lengths and
11562         correct indents of the preceding block.
11563
11564 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11565
11566         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11567         the switch.
11568
11569 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11570
11571         * common.opt (nostartfiles): New Driver option.
11572
11573 2011-02-11  Xinliang David Li  <davidxl@google.com>
11574
11575         PR tree-optimization/47707
11576         * tree-chrec.c (convert_affine_scev): Keep type precision.
11577
11578 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11579
11580         PR tree-optimization/47420
11581         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11582
11583 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11584
11585         PR rtl-optimization/47614
11586         * rtl.h (check_for_inc_dec): Declare.
11587         * dse.c (check_for_inc_dec): Externalize...
11588         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11589         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11590
11591 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11592
11593         PR driver/47678
11594         * gcc.c (main): Do not compile inputs if there were errors in
11595         option handling.
11596         * opts-common.c (read_cmdline_option): Check for wrong language
11597         after other error checks.
11598
11599 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11600
11601         * cgraph.c: Fix comment typos.
11602         * cgraph.h: Likewise.
11603         * cgraphunit.c: Likewise.
11604         * ipa-cp.c: Likewise.
11605         * ipa-inline.c: Likewise.
11606         * ipa-prop.c: Likewise.
11607         * ipa-pure-const.c: Likewise.
11608         * ipa-ref.c: Likewise.
11609         * ipa-reference.c: Likewise.
11610
11611 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11612
11613         PR debug/47684
11614         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11615
11616 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11617
11618         PR testsuite/47400
11619         * doc/sourcebuild.texi (Require Support): Document
11620         dg-require-ascii-locale.
11621
11622 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11623
11624         * doc/lto.texi (Write summary): Fix missing parentheses.
11625
11626 2011-02-10  DJ Delorie  <dj@redhat.com>
11627
11628         * config/m32c/m32c.c (m32c_option_override): Disable
11629         -fcombine-stack-adjustments until flag value tracking and compare
11630         optimization can be rewritten.
11631
11632 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11633
11634         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11635         PROCESSOR_POWER7.
11636         (PROCESSOR_DEFAULT64): Likewise.
11637
11638 2011-02-10  Richard Henderson  <rth@redhat.com>
11639
11640         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11641         change from 2011-02-03.
11642         * config/rx/rx.c (flags_from_code): Likewise.
11643         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11644         is valid, n/pz otherwise.
11645         (rx_select_cc_mode): Return CCmode if Y is not zero.
11646
11647 2011-02-10  Richard Guenther  <rguenther@suse.de>
11648
11649         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11650
11651 2011-02-10  Richard Guenther  <rguenther@suse.de>
11652
11653         PR tree-optimization/47677
11654         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11655
11656 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11657
11658         PR target/47665
11659         * combine.c (make_compound_operation): Only change shifts into
11660         multiplication for SCALAR_INT_MODE_P.
11661
11662 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11663
11664         PR testsuite/47622
11665         Revert
11666         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11667         PR debug/42631
11668         * web.c (entry_register): Don't clobber the number of the
11669         first uninitialized reference in used[].
11670
11671 2011-02-09  Richard Guenther  <rguenther@suse.de>
11672
11673         PR tree-optimization/47664
11674         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11675         all edges again.
11676
11677 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11678
11679         PR target/46481
11680         PR target/47032
11681         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11682         PROCESSOR_POWER7.
11683         (PROCESSOR_DEFAULT64): Same.
11684         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11685
11686 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11687
11688         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11689
11690 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11691
11692         PR middle-end/45505
11693         * tree-sra.c (struct access): New flags grp_scalar_read and
11694         grp_scalar_write.  Changed description of assignment read and write
11695         flags.
11696         (dump_access): Dump new flags, reorder all of them.
11697         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11698         to detect multiple scalar reads.
11699         (analyze_access_subtree): Use the new scalar read write flags instead
11700         of the old flags.  Adjusted comments.
11701
11702 2011-02-08  DJ Delorie  <dj@redhat.com>
11703
11704         PR target/47548
11705         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11706         patterns.
11707
11708 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11709
11710         * config/m68k/uclinux.opt: New.
11711         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11712
11713 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11714
11715         * config/cris/elf.opt (sim): New Driver option.
11716
11717 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11718
11719         * config/xtensa/elf.opt: New.
11720         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11721
11722 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11723
11724         * config/vax/elf.opt: New.
11725         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11726
11727 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11730
11731 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11732
11733         * config/gnu-user.opt: New.
11734         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11735         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11736         *-*-uclinux*): Use gnu-user.opt.
11737
11738 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11739
11740         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11741         * config/i386/gnu.h (CPP_SPEC): Likewise.
11742
11743 2011-02-08  Ian Lance Taylor  <iant@google.com>
11744
11745         * common.opt (fcx-limited-range): Add SetByCombined flag.
11746         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11747         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11748         (fassociative-math, freciprocal-math): Likewise.
11749         (funsafe-math-optimizations): Likewise.
11750         * opth-gen.awk: Handle SetByCombined.
11751         * optc-gen.awk: Likewise.
11752         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11753         (set_unsafe_math_optimizations_flags): Likewise.
11754         * doc/options.texi (Option properties): Document SetByCombined.
11755
11756 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11757
11758         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11759         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11760         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11761         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11762         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11763
11764 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11765
11766         PR tree-optimization/46834
11767         PR tree-optimization/46994
11768         PR tree-optimization/46995
11769         * graphite-sese-to-poly.c (used_outside_reduction): New.
11770         (detect_commutative_reduction): Call used_outside_reduction.
11771         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11772         translate_scalar_reduction_to_array only when at least one
11773         loop-phi/close-phi tuple has been detected.
11774
11775 2011-02-08  Richard Guenther  <rguenther@suse.de>
11776
11777         PR middle-end/47639
11778         * tree-vect-generic.c (expand_vector_operations_1): Update
11779         stmts here ...
11780         (expand_vector_operations): ... not here.  Cleanup EH info
11781         and the CFG if required.
11782
11783 2011-02-08  Richard Guenther  <rguenther@suse.de>
11784
11785         PR tree-optimization/47641
11786         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11787         require type compatibility.
11788
11789 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11790
11791         * gimple-low.c (lower_function_body): Don't remove the location of
11792         the return statement here.
11793         (lower_gimple_return): Do it here instead but only if the return
11794         statement is actually used twice.
11795
11796 2011-02-08  Richard Guenther  <rguenther@suse.de>
11797
11798         PR tree-optimization/47632
11799         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11800         unused up_to_stmt parameter, return whether cfg-cleanup is
11801         necessary, remove EH info properly.
11802         (forward_propagate_into_gimple_cond): Adjust caller.
11803         (forward_propagate_into_cond): Likewise.
11804         (forward_propagate_comparison): Likewise.
11805         (tree_ssa_forward_propagate_single_use_vars): Make
11806         forward_propagate_comparison case similar to the two others.
11807
11808 2011-02-08  Nick Clifton  <nickc@redhat.com>
11809
11810         * config/mn10300/mn10300.opt (mliw): New command line option.
11811         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11812         (liw_bundling): New automaton.
11813         (liw): New attribute.
11814         (liw_op): New attribute.
11815         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11816         (movsi_internal): Add LIW attributes.
11817         (andsi3): Likewise.
11818         (iorsi3): Likewise.
11819         (xorsi3): Likewise.
11820         (addsi3): Separate register and immediate alternatives.
11821         Add LIW attributes.
11822         (subsi3): Likewise.
11823         (cmpsi): Likewise.
11824         (aslsi3): Likewise.
11825         (lshrsi3): Likewise.
11826         (ashrsi3): Likewise.
11827         (liw): New pattern.
11828         * config/mn10300/mn10300.c (liw_op_names): New
11829         (mn10300_print_operand): Handle 'W' operand descriptor.
11830         (extract_bundle): New function.
11831         (check_liw_constraints): New function.
11832         (liw_candidate): New function.
11833         (mn10300_bundle_liw): New function.
11834         (mn10300_reorg): New function.
11835         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11836         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11837         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11838         __LIW__ or __NO_LIW__.
11839         * doc/invoke.texi: Describe the -mliw command line option.
11840
11841 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11842
11843         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11844         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11845         pthread_mutex_unlock): Remove.
11846         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11847         * config/pa/t-pa64: Likewise.
11848         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11849         shared libc if not linking against libpthread.
11850         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11851
11852 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11853
11854         PR target/47558
11855         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11856         on 10.6 and later to ensure that we always use the unwinder from
11857         the system.  Only add -no_compact_unwind when tarteting darwin
11858         10.6 or later.
11859
11860 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11861
11862         PR target/46997
11863         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11864         (vec_interleave_lowv2sf): Ditto.
11865         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11866         (vec_extract_oddv2sf): Ditto.
11867
11868 2011-02-07  Mike Stump  <mikestump@comcast.net>
11869
11870         PR target/42333
11871         Add __ieee_divdc3 entry point.
11872         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11873         entry point.
11874         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11875         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11876         * config/darwin.c (darwin_rename_builtins): Add.
11877         * config/darwin-protos.h (darwin_rename_builtins): Add.
11878
11879 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11880
11881         PR target/47636
11882         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11883         for the condition.
11884
11885 2011-02-07  Mike Stump  <mikestump@comcast.net>
11886
11887         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11888
11889 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11890
11891         PR target/47534
11892         * config/avr/libgcc.S (exit): Move .endfunc
11893
11894 2011-02-07  Richard Guenther  <rguenther@suse.de>
11895
11896         PR tree-optimization/47615
11897         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11898         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11899         (run_scc_vn): Initialize it.
11900         (visit_reference_op_load): Use it.
11901         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11902
11903 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11904
11905         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11906         DImode trapping arithmetic libfuncs.
11907
11908 2011-02-07  Richard Guenther  <rguenther@suse.de>
11909
11910         PR tree-optimization/47621
11911         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11912         two duplicates ...
11913         (execute_update_addresses_taken): ... here.  Make it more
11914         conservative in what we accept.
11915
11916 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11917
11918         * config/sparc/freebsd.h (ASM_SPEC): Define.
11919         * config/sparc/vxworks.h (ASM_SPEC): Define.
11920
11921 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11922
11923         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11924
11925 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11926
11927         * doc/invoke.texi: Remove reference to compiler internals from
11928         user documentation.
11929
11930         * reg-notes.def: Remove REG_VALUE_PROFILE.
11931         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11932
11933 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11934
11935         PR middle-end/47610
11936         * varasm.c (default_section_type_flags): If decl is NULL,
11937         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11938
11939 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11940
11941         PR debug/42631
11942         * web.c (entry_register): Don't clobber the number of the
11943         first uninitialized reference in used[].
11944
11945 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11946
11947         PR tree-optimization/46194
11948         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11949         (build_classic_dist_vector_1): Do not represent classic distance
11950         vectors when the access functions are variating in different loops.
11951
11952 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11953
11954         * config/mips/iris6.opt: New.
11955         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11956
11957 2011-02-04  Richard Henderson  <rth@redhat.com>
11958             Steve Ellcey  <sje@cup.hp.com>
11959
11960         PR target/46997
11961         * config/ia64/predicates.md (mux1_brcst_element): New.
11962         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11963         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11964         (ia64_unpack_sign): New.
11965         (ia64_expand_unpack): Rewrite using new routines.
11966         (ia64_expand_widen_sum): Ditto.
11967         (ia64_expand_dot_prod_v8qi): Ditto.
11968         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11969         routines, add endian check.
11970         (pmpy2_even): Rename from pmpy2_r, add endian check.
11971         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11972         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11973         (vec_widen_smult_hi_v4hi): Ditto.
11974         (vec_widen_umult_lo_v4hi): Ditto.
11975         (vec_widen_umult_hi_v4hi): Ditto.
11976         (mulv2si3): Change endian checks.
11977         (sdot_prodv4hi): Rewrite with new calls.
11978         (udot_prodv4hi): New.
11979         (vec_pack_ssat_v4hi): Add endian check.
11980         (vec_pack_usat_v4hi): Ditto.
11981         (vec_pack_ssat_v2si): Ditto.
11982         (max1_even): Rename from max1_r, add endian check.
11983         (max1_odd): Rename from max1_l, add endian check.
11984         (*mux1_rev): Format change.
11985         (*mux1_mix): Ditto.
11986         (*mux1_shuf): Ditto.
11987         (*mux1_alt): Ditto.
11988         (*mux1_brcst_v8qi): Use new predicate.
11989         (vec_extract_evenv8qi): Remove endian check.
11990         (vec_extract_oddv8qi): Ditto.
11991         (vec_interleave_lowv4hi): Format change.
11992         (vec_interleave_highv4hi): Ditto.
11993         (mix2_even): Rename from mix2_r, add endian check.
11994         (mix2_odd): Rename from mux2_l, add endian check.
11995         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11996         (vec_extract_evenodd_helper): Format change.
11997         (vec_extract_evenv4hi): Remove endian check.
11998         (vec_extract_oddv4hi): Remove endian check.
11999         (vec_interleave_lowv2si): Format change.
12000         (vec_interleave_highv2si): Format change.
12001         (vec_initv2si): Remove endian check.
12002         (vecinit_v2si): Add endian check.
12003         (reduc_splus_v2sf): Add endian check.
12004         (reduc_smax_v2sf): Ditto.
12005         (reduc_smin_v2sf): Ditto.
12006         (vec_initv2sf): Remove endian check.
12007         (fpack): Add endian check.
12008         (fswap): Add endian check.
12009         (vec_interleave_highv2sf): Add endian check.
12010         (vec_interleave_lowv2sf): Add endian check.
12011         (fmix_lr): Add endian check.
12012         (vec_setv2sf): Format change.
12013         (*vec_extractv2sf_0_be): Use shift to extract operand.
12014         (*vec_extractv2sf_1_be): New.
12015         (vec_pack_trunc_v4hi): Add endian check.
12016         (vec_pack_trunc_v2si): Format change.
12017
12018 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12019
12020         PR inline-asm/23200
12021         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12022         do bb, locus and block comparison and disallow loads if it is not set.
12023         (stmt_is_replaceable_p): New function.
12024         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12025         callers.
12026         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12027         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12028         SSA_NAME_DEF_STMT.
12029         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12030
12031 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12032
12033         * config/rs6000/xilinx.opt: New.
12034         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12035
12036 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12037
12038         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12039
12040 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12041
12042         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12043         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12044         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12045         secondary_reload_info, xtensa_secondary_reload): Remove.
12046         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12047         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12048         (xtensa_preferred_reload_class): Make static. Change return and
12049         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12050         Use CONST_DOUBLE_P predicate.
12051         (xtensa_preferred_output_reload_class): New function.
12052         (xtensa_secondary_reload): Make static.
12053
12054 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12055
12056         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12057         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12058         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12059
12060 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12061
12062         PR middle-end/31490
12063         * output.h (SECTION_RELRO): Define.
12064         (SECTION_MACH_DEP): Adjust.
12065         (get_variable_section): New prototype.
12066         * varpool.c (varpool_finalize_named_section_flags): New function.
12067         (varpool_assemble_pending_decls): Call it.
12068         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12069         * cgraphunit.c (cgraph_output_in_order): Call
12070         varpool_finalize_named_section_flags.
12071         * varasm.c (get_section): Allow section flags conflicts between
12072         relro and read-only sections if the section hasn't been declared yet.
12073         Set SECTION_OVERRIDE after diagnosing section type conflict.
12074         (get_variable_section): No longer static.
12075         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12076         readonly sections that need relocations.
12077         (decl_readonly_section_1): New function.
12078         (decl_readonly_section): Use it.
12079
12080         Revert:
12081         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12082                     Steve Ellcey  <sje@cup.hp.com>
12083
12084         PR middle-end/31490
12085         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12086         if section attribute used.
12087
12088 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12089
12090         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12091         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12092         (darwin_init_sections): Remove assertion.
12093
12094 2011-02-03  Nick Clifton  <nickc@redhat.com>
12095
12096         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12097         lt and ge.
12098         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12099         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12100         instead of "n" and "pz".
12101         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12102         CC_FLAG_S.
12103
12104 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12105
12106         PR target/47312
12107         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12108         fma, expand FMA_EXPR as fma{,f,l} call.
12109
12110         PR lto/47274
12111         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12112         copy them into a unsigned char variable and pass address of it to
12113         lto_output_data_stream.
12114
12115         PR target/47564
12116         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12117         around backend_init_target and lang_dependent_init_target calls.
12118         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12119         (verify_cgraph_node): Don't call set_cfun here.  Use
12120         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12121         Set error_found for incorrectly represented calls to thunks.
12122
12123 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12124
12125         PR debug/43092
12126         PR rtl-optimization/43494
12127         * rtl.h (for_each_inc_dec_fn): New type.
12128         (for_each_inc_dec): Declare.
12129         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12130         (for_each_inc_dec_find_inc_dec): New fn.
12131         (for_each_inc_dec_find_mem): New fn.
12132         (for_each_inc_dec): New fn.
12133         * dse.c (struct insn_size): Remove.
12134         (replace_inc_dec, replace_inc_dec_mem): Remove.
12135         (emit_inc_dec_insn_before): New fn.
12136         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12137         (canon_address): Pass mem modes to cselib_lookup.
12138         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12139         (cselib_lookup_from_insn): Likewise.
12140         (cselib_subst_to_values): Likewise.
12141         * cselib.c (find_slot_memmode): New var.
12142         (cselib_find_slot): New fn.  Use it instead of
12143         htab_find_slot_with_hash everywhere.
12144         (entry_and_rtx_equal_p): Use find_slot_memmode.
12145         (autoinc_split): New fn.
12146         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12147         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12148         Deal with autoinc.  Special-case recursion into MEMs.
12149         (cselib_hash_rtx): Likewise.
12150         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12151         address and MEM modes.
12152         (cselib_subst_to_values): Add memmode, pass it on.
12153         Deal with autoinc.
12154         (cselib_lookup): Add memmode argument, pass it on.
12155         (cselib_lookup_from_insn): Add memmode.
12156         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12157         (struct cselib_record_autoinc_data): New.
12158         (cselib_record_autoinc_cb): New fn.
12159         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12160         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12161         (cselib_process_insn): ... here.
12162         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12163         to cselib_lookup.
12164         (add_uses): Likewise, also to cselib_subst_to_values.
12165         (add_stores): Likewise.
12166         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12167         cselib_subst_to_values.
12168         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12169         * gcse.c (do_local_cprop): Adjusted.
12170         * postreload.c (reload_cse_simplify_set): Adjusted.
12171         (reload_cse_simplify_operands): Adjusted.
12172         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12173
12174 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12175
12176         PR tree-optimization/45122
12177         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12178         unsafe assumptions when there's more than one loop exit.
12179
12180 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12181
12182         PR target/47272
12183         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12184         Document using vector double with the load/store builtins, and
12185         that the load/store builtins always use Altivec instructions.
12186
12187         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12188         to use altivec memory instructions, even on VSX.
12189         (vector_altivec_store_<mode>): Ditto.
12190
12191         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12192         function.
12193
12194         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12195         V2DF, V2DI support to load/store overloaded builtins.
12196
12197         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12198         altivec load/store builtins for V2DF/V2DI types.
12199
12200         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12201         set avoid indexed addresses on power6 if -maltivec.
12202         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12203         vector_altivec_load/vector_altivec_store builtins.
12204         (altivec_expand_st_builtin): Ditto.
12205         (altivec_expand_builtin): Add VSX memory builtins.
12206         (rs6000_init_builtins): Add V2DI types to internal types.
12207         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12208         load/store builtins.
12209         (rs6000_address_for_altivec): Insure memory address is appropriate
12210         for Altivec.
12211
12212         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12213         vec_vsx_ld and vec_vsx_st.
12214         (vsx_store_<mode>): Ditto.
12215
12216         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12217         variables to hold long long types for VSX vector memory builtins.
12218         (RS6000_BTI_unsigned_long_long): Ditto.
12219         (long_long_integer_type_internal_node): Ditti.
12220         (long_long_unsigned_type_internal_node): Ditti.
12221
12222         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12223         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12224         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12225
12226         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12227         short cuts.
12228         (vec_vsx_st): Ditto.
12229
12230 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12231
12232         * config/pa/pa-hpux10.opt: New.
12233         * config/hpux11.opt (pthread): New Driver option.
12234         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12235         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12236
12237 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12238
12239         * config/ia64/vms.opt: New.
12240         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12241
12242 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12243
12244         PR target/47580
12245         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12246         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12247         generator functions.
12248         (vsx_floatuns<VSi><mode>2): Ditto.
12249         (vsx_fix_trunc<mode><VSi>2): Ditto.
12250         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12251
12252 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12253
12254         * config/i386/djgpp.opt (posix): New Driver option.
12255
12256 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12257
12258         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12259         Move to the unsupported targets list.
12260
12261 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12262
12263         PR rtl-optimization/47525
12264         * df-scan.c: Update copyright years.
12265         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12266         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12267
12268 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12269
12270         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12271         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12272         (ASM_OUTPUT_ASCII): Remove.
12273         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12274
12275 2011-02-02  Jeff Law  <law@redhat.com>
12276
12277         PR middle-end/47543
12278         * reload.c (find_reloads_address): Handle reg+d address where both
12279         components are invalid by reloading the entire address.
12280
12281 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12282             Richard Guenther  <rguenther@suse.de>
12283
12284         PR tree-optimization/40979
12285         PR bootstrap/47044
12286         * passes.c (init_optimization_passes): After LIM call copy_prop
12287         and DCE to clean up.
12288         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12289
12290 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12291
12292         PR tree-optimization/47576
12293         PR tree-optimization/47555
12294         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12295         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12296         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12297         * tree-scalar-evolution.c (follow_ssa_edge): Use
12298         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12299
12300 2011-02-02  Richard Guenther  <rguenther@suse.de>
12301
12302         PR tree-optimization/47566
12303         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12304
12305 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12306
12307         PR debug/47106
12308         PR debug/47402
12309         * tree-inline.c (declare_return_variable): Remove unused caller
12310         variable.
12311
12312         PR debug/47106
12313         PR debug/47402
12314         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12315         * cfgexpand.c (account_used_vars_for_block): Use them.
12316         * tree-nrv.c (tree_nrv): Likewise.
12317         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12318         (dump_scope_block): Likewise.
12319         (remove_unused_locals): Likewise.
12320
12321         PR debug/47106
12322         PR debug/47402
12323         * tree-inline.c (declare_return_variable): Add result decl to
12324         local decls only once.
12325         * gimple-low.c (record_vars_into): Mark newly-created variables
12326         as referenced.
12327
12328 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12329
12330         PR debug/47498
12331         PR debug/47501
12332         PR debug/45136
12333         PR debug/45130
12334         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12335         debug insns.
12336         (no_real_insns_p, schedule_block, set_priorities): Drop special
12337         treatment of boundary debug insns.
12338         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12339         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12340         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12341         (BOUNDARY_DEBUG_INSN_P): Likewise.
12342         (SCHEDULE_DEBUG_INSN_P): Likewise.
12343         * sched-rgn.c (init_ready_list): Drop special treatment of
12344         boundary debug insns.
12345         * final.c (rest_of_clean_state): Clear notes' BB.
12346
12347 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12348
12349         * config/openbsd.opt (assert=): New Driver option.
12350
12351 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12352
12353         * config/i386/nto.opt: New.
12354         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12355
12356 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12357
12358         * config/i386/netware.opt: New.
12359         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12360
12361 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12362
12363         * config/interix.opt (posix): New Driver option.
12364
12365 2011-02-01  DJ Delorie  <dj@redhat.com>
12366
12367         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12368
12369         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12370         class for A0/A1.
12371
12372 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12373
12374         PR tree-optimization/47561
12375         * toplev.c (process_options): Print the Graphite flags.  Add
12376         flag_loop_flatten to the list of options requiring Graphite.
12377
12378 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12379
12380         * config/i386/cygming.opt (posix): New Driver option.
12381
12382 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12383
12384         * config/arm/vxworks.opt: New.
12385         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12386
12387 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12388
12389         * config/alpha/elf.opt: New.
12390         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12391         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12392
12393 2011-02-01  Richard Guenther  <rguenther@suse.de>
12394
12395         PR tree-optimization/47559
12396         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12397         store-motion on references that can throw.
12398
12399 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12400
12401         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12402         * tree-pass.h (TDF_CSELIB): New macro.
12403         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12404         cselib_lookup): Check for it rather than for TDF_DETAILS.
12405
12406 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12407
12408         PR driver/47547
12409         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12410         is HOST_BIT_BUCKET.
12411
12412         * opts.c (finish_options): Don't add x_aux_base_name if it is
12413         HOST_BIT_BUCKET.
12414
12415 2011-02-01  Richard Guenther  <rguenther@suse.de>
12416
12417         PR tree-optimization/47555
12418         Revert
12419         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12420
12421         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12422
12423 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12424
12425         PR gcc/46692
12426         * config/lm32/t-lm32: Add multilib for all CPU options.
12427
12428 2011-02-01  Richard Guenther  <rguenther@suse.de>
12429
12430         PR tree-optimization/47541
12431         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12432         sure to have a field at offset zero.
12433
12434 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12435
12436         * config/arc/arc.opt (EB, EL): New Driver options.
12437
12438 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12439
12440         * config/alpha/osf5.opt: New.
12441         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12442
12443 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12444
12445         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12446
12447 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12448
12449         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12450         -floop-interchange.
12451         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12452         is an alias of -floop-interchange and that it requires the
12453         Graphite infrastructure.
12454         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12455         flag_loop_interchange based on the value of flag_tree_loop_linear.
12456
12457 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12458             Richard Guenther  <rguenther@suse.de>
12459
12460         PR tree-optimization/47538
12461         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12462         type instead of r1type, except for comparisons.  For right
12463         shifts and comparisons punt if there are mismatches in
12464         sizetype vs. non-sizetype types.
12465
12466 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12467
12468         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12469         avx_runtime.
12470
12471 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12472
12473         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12474         version number.
12475         * configure: Regenerate.
12476
12477 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12478
12479         * configure.ac (gcc_cv_ld_static_option): Define.
12480         (gcc_cv_ld_dynamic_option): Define.
12481         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12482         instead.
12483         (HAVE_LD_STATIC_DYNAMIC): Update message.
12484         (LD_STATIC_OPTION): Define.
12485         (LD_DYNAMIC_OPTION): Define.
12486         * configure: Regenerate.
12487         * config.in: Regenerate.
12488         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12489         HAVE_LD_STATIC_DYNAMIC]: Use them.
12490
12491 2011-01-31  Nick Clifton  <nickc@redhat.com>
12492
12493         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12494         registers inside interrupt handlers if the handler is not a leaf
12495         function.
12496
12497 2011-01-31  Nick Clifton  <nickc@redhat.com>
12498
12499         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12500         reg_renumber returning an INVALID_REGNUM.
12501
12502 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12503
12504         PR libgcj/44341
12505         * doc/install.texi: Document host options discarded when cross
12506         configuring target libraries.
12507
12508 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12509
12510         Reverted:
12511         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12512         PR debug/45136
12513         PR debug/45130
12514         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12515         debug insns.
12516         (no_real_insns_p, schedule_block, set_priorities): Drop special
12517         treatment of boundary debug insns.
12518         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12519         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12520         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12521         (BOUNDARY_DEBUG_INSN_P): Likewise.
12522         (SCHEDULE_DEBUG_INSN_P): Likewise.
12523         * sched-rgn.c (init_ready_list): Drop special treatment of
12524         boundary debug insns.
12525         * final.c (rest_of_clean-state): Clear notes' BB.
12526
12527 2011-01-31  Alan Modra  <amodra@gmail.com>
12528
12529         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12530         toc relative expressions as we do in print_operand_address.
12531
12532 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12533
12534         * doc/extend.texi: Follow spelling conventions.
12535         * doc/invoke.texi: Fix a typo.
12536
12537 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12538
12539         * config/hpux11.opt: New.
12540         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12541         ia64*-*-hpux*): Use hpux11.opt.
12542
12543 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12544
12545         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12546         to tmake_file.
12547
12548 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12549
12550         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12551         support sites.
12552
12553 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12554
12555         * doc/install.texi (Binaries): Remove outdated reference for
12556         Motorola 68HC11/68HC12 downloads.
12557
12558 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12559
12560         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12561         Drepper's paper.
12562
12563 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12564
12565         PR bootstrap/47147
12566         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12567         used by NetBSD.
12568
12569 2011-01-28  Ahmad Sharif  <asharif@google.com>
12570
12571         * value-prof.c (check_counter): Corrected error message.
12572
12573 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12574
12575         * config/arm/arm.c (arm_legitimize_reload_address): New.
12576         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12577         arm_legitimize_reload_address.
12578         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12579
12580 2011-01-28  Ian Lance Taylor  <iant@google.com>
12581
12582         * godump.c (go_define): Ignore macros whose definitions include
12583         two adjacent operands.
12584
12585 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12586
12587         PR target/42894
12588         * varasm.c (force_const_mem): Store copy of x in desc->constant
12589         instead of x itself.
12590         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12591         itself into REG_EQUAL note.
12592
12593 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12594
12595         * config/freebsd.opt (posix, rdynamic): New Driver options.
12596
12597 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12598
12599         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12600         -Bstatic/-Bdynamic.
12601         * configure: Regenerate.
12602
12603 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12604
12605         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12606         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12607
12608 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12609
12610         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12611         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12612         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12613         (s390_preferred_reload_class): Make static. Change return and
12614         'rclass' argument type to reg_class_t.
12615
12616 2011-01-27  Jan Hubicka  <jh@suse.cz>
12617
12618         PR middle-end/46949
12619         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12620         (process_function_and_variable_attributes): Check defined weakrefs.
12621
12622 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12623
12624         PR tree-optimization/47228
12625         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12626         build_ref_for_offset.
12627
12628 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12629
12630         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12631
12632 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12633
12634         PR rtl-optimization/46856
12635         * postreload.c (reload_combine_recognize_const_pattern): Do not
12636         separate cc0 setter and user on cc0 targets.
12637
12638 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12639
12640         PR c/43082
12641         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12642         passed a VOID_TYPE expression, immediately emit an error and
12643         return error_mark_node.
12644
12645 2011-01-26  Jeff Law  <law@redhat.com>
12646
12647         PR rtl-optimization/47464
12648         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12649         rather than may_trap_p as needed.
12650
12651 2011-01-26  DJ Delorie  <dj@redhat.com>
12652
12653         PR rtl-optimization/46878
12654         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12655         setter/user dependency as well.
12656
12657 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12658
12659         PR rtl-optimization/44469
12660         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12661         after removing trivially dead basic blocks.
12662
12663 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12664
12665         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12666         * config/frv/frv.h (LINK_SPEC): Likewise.
12667         * config/i386/netware.h (LINK_SPEC): Likewise.
12668         * config/m68k/linux.h (ASM_SPEC): Likewise.
12669         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12670         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12671         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12672         * config/sparc/linux.h (ASM_SPEC): Likewise.
12673         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12674         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12675
12676 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12677
12678         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12679         * config/frv/frv.h (ASM_SPEC): Likewise.
12680         * config/m68k/linux.h (ASM_SPEC): Likewise.
12681         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12682         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12683         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12684         * config/sparc/linux.h (ASM_SPEC): Likewise.
12685         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12686         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12687
12688 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12689
12690         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12691         * config/frv/frv.h (LINK_SPEC): Likewise.
12692         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12693
12694 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12695
12696         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12697         * config/frv/frv.h (ASM_SPEC): Likewise.
12698         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12699         * config/m68k/linux.h (ASM_SPEC): Likewise.
12700         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12701         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12702         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12703         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12704         * config/sparc/linux.h (ASM_SPEC): Likewise.
12705         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12706         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12707         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12708
12709 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12710
12711         PR target/46997
12712         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12713         (*mux2): Ditto.
12714         (vec_extract_evenodd_help): Ditto.
12715         (vec_extract_evenv4hi): Ditto.
12716         (vec_extract_oddv4hi): Ditto.
12717         (vec_interleave_lowv2si): Ditto.
12718         (vec_interleave_highv2si): Ditto.
12719         (vec_extract_evenv2si): Ditto.
12720         (vec_extract_oddv2si: Ditto.
12721         (vec_pack_trunc_v2si): Ditto.
12722
12723 2011-01-22  Jan Hubicka  <jh@suse.cz>
12724
12725         PR target/47237
12726         * cgraph.h (cgraph_local_info): New field can_change_signature.
12727         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12728         signature can change.
12729         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12730         can change.
12731         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12732         (cgraph_function_versioning): We can not change signature of functions
12733         that don't allow that.
12734         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12735         (lto_input_node): Likewise.
12736         * ipa-inline.c (compute_inline_parameters): Compute
12737         local.can_change_signature.
12738         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12739         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12740         functions that can not change signature.
12741         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12742         init_cumulative_args): Do not use local calling conventions
12743         for functions that can not change signature.
12744
12745 2011-01-22  Jan Hubicka  <jh@suse.cz>
12746
12747         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12748
12749 2011-01-26  Richard Guenther  <rguenther@suse.de>
12750
12751         PR tree-optimization/47190
12752         * cgraphunit.c (process_common_attributes): New function.
12753         (process_function_and_variable_attributes): Use it.
12754
12755 2011-01-26  Richard Guenther  <rguenther@suse.de>
12756
12757         PR lto/47423
12758         * cgraphbuild.c (record_eh_tables): Record reference to personality
12759         function.
12760
12761 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12762
12763         PR debug/45454
12764         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12765         non-debug insns from moving up.
12766
12767 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12768
12769         PR target/40125
12770         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12771         t-dlldir{,-x} fragment for build and add it to tmake_file.
12772         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12773         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12774         * config/i386/t-dlldir: New file.
12775         (SHLIB_DLLDIR): Define.
12776         * config/i386/t-dlldir-x: New file.
12777         (SHLIB_DLLDIR): Define.
12778         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12779         (SHLIB_INSTALL): Use it.
12780
12781 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12782
12783         PR target/47246
12784         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12785         lower bound of the allowed Thumb-2 coprocessor load/store
12786         index range to -256. Add explaining comment.
12787
12788 2011-01-25  Ian Lance Taylor  <iant@google.com>
12789
12790         * godump.c (go_define): Improve lexing of macro expansion to only
12791         accept expressions which match Go spec.
12792
12793 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12794
12795         PR c++/43601
12796         * tree.c (handle_dll_attribute): Handle it.
12797         * doc/extend.texi (@item dllexport): Mention it.
12798         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12799
12800 2011-01-25  Ian Lance Taylor  <iant@google.com>
12801
12802         PR tree-optimization/26854
12803         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12804         (decl_jump_unsafe): Move higher in file, with no other change.
12805         (bind): Set has_jump_unsafe_decl if appropriate.
12806         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12807         (check_earlier_gotos): Likewise.
12808         (c_check_switch_jump_warnings): Likewise.
12809
12810 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12811
12812         * doc/invoke.texi (Warning Options): Add missing hyphen.
12813         (-fprofile-dir): Minor grammatical fixes.
12814         (-fbranch-probabilities): Likewise.
12815
12816 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12817
12818         PR debug/45136
12819         PR debug/45130
12820         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12821         debug insns.
12822         (no_real_insns_p, schedule_block, set_priorities): Drop special
12823         treatment of boundary debug insns.
12824         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12825         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12826         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12827         (BOUNDARY_DEBUG_INSN_P): Likewise.
12828         (SCHEDULE_DEBUG_INSN_P): Likewise.
12829         * sched-rgn.c (init_ready_list): Drop special treatment of
12830         boundary debug insns.
12831         * final.c (rest_of_clean-state): Clear notes' BB.
12832
12833 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12834
12835         * Makefile.in (LAMBDA_H): Removed.
12836         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12837         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12838         lambda-trans.o, and tree-loop-linear.o.
12839         (lto-symtab.o): Remove dependence on LAMBDA_H.
12840         (tree-loop-linear.o): Remove rule.
12841         (lambda-mat.o): Same.
12842         (lambda-trans.o): Same.
12843         (lambda-code.o): Same.
12844         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12845         (tree-vect-slp.o): Same.
12846         * hwint.h (gcd): Moved here.
12847         (least_common_multiple): Same.
12848         * lambda-code.c: Removed.
12849         * lambda-mat.c: Removed.
12850         * lambda-trans.c: Removed.
12851         * lambda.h: Removed.
12852         * tree-loop-linear.c: Removed.
12853         * lto-symtab.c: Do not include lambda.h.
12854         * omega.c (gcd): Removed.
12855         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12856         * tree-data-ref.c (print_lambda_vector): Moved here.
12857         (lambda_vector_copy): Same.
12858         (lambda_matrix_copy): Same.
12859         (lambda_matrix_id): Same.
12860         (lambda_vector_first_nz): Same.
12861         (lambda_matrix_row_add): Same.
12862         (lambda_matrix_row_exchange): Same.
12863         (lambda_vector_mult_const): Same.
12864         (lambda_vector_negate): Same.
12865         (lambda_matrix_row_negate): Same.
12866         (lambda_vector_equal): Same.
12867         (lambda_matrix_right_hermite): Same.
12868         * tree-data-ref.h: Do not include lambda.h.
12869         (lambda_vector): Moved here.
12870         (lambda_matrix): Same.
12871         (dependence_level): Same.
12872         (lambda_transform_legal_p): Removed declaration.
12873         (lambda_collect_parameters): Same.
12874         (lambda_compute_access_matrices): Same.
12875         (lambda_vector_gcd): Same.
12876         (lambda_vector_new): Same.
12877         (lambda_vector_clear): Same.
12878         (lambda_vector_lexico_pos): Same.
12879         (lambda_vector_zerop): Same.
12880         (lambda_matrix_new): Same.
12881         * tree-flow.h (least_common_multiple): Removed declaration.
12882         * tree-parloops.c (lambda_trans_matrix): Moved here.
12883         (LTM_MATRIX): Same.
12884         (LTM_ROWSIZE): Same.
12885         (LTM_COLSIZE): Same.
12886         (LTM_DENOMINATOR): Same.
12887         (lambda_trans_matrix_new): Same.
12888         (lambda_matrix_vector_mult): Same.
12889         (lambda_transform_legal_p): Same.
12890         * tree-pass.h (pass_linear_transform): Removed declaration.
12891         * tree-ssa-loop.c (tree_linear_transform): Removed.
12892         (gate_tree_linear_transform): Removed.
12893         (pass_linear_transform): Removed.
12894         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12895         flag_loop_interchange.
12896
12897 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12898
12899         PR tree-optimization/47265
12900         PR tree-optimization/47443
12901         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12902         if name still has some uses.
12903
12904 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12905
12906         PR tree-optimization/47382
12907         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12908         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12909
12910 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12911
12912         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12913         sjlj_except_unwind_info.
12914
12915 2011-01-25  Richard Guenther  <rguenther@suse.de>
12916
12917         PR tree-optimization/47426
12918         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12919         visible functions results escape.
12920
12921 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12922
12923         PR target/45701
12924         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12925         (arm_get_frame_offsets): Use it.
12926
12927 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12928             Jakub Jelinek  <jakub@redhat.com>
12929
12930         PR tree-optimization/47271
12931         * tree-if-conv.c (bb_postdominates_preds): New.
12932         (if_convertible_bb_p): Call bb_postdominates_preds.
12933         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12934         (predicate_scalar_phi): Call bb_postdominates_preds.
12935
12936 2011-01-25  Nick Clifton  <nickc@redhat.com>
12937
12938         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12939         * config/rx/rx.c (rx_function_value): Likewise.
12940         (rx_promote_function_mode): Likewise.
12941         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12942         in order to make it legitimate.
12943         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12944         make sure that the first operand is the same as the result register.
12945         (addsi3_unspec): Delete.
12946         (subdi3): Do not accept immediate operands.
12947         (subdi3_internal): Likewise.
12948
12949 2011-01-25  Jeff Law  <law@redhat.com>
12950
12951         PR rtl-optimization/37273
12952         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12953         handle them like argument loads from stack slots.  Do not double
12954         count memory for memory constants and argument loads from stack slots.
12955
12956 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12957
12958         PR tree-optimization/47427
12959         PR tree-optimization/47428
12960         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12961         coalesce if the new root var would be TREE_READONLY.
12962
12963 2011-01-25  Richard Guenther  <rguenther@suse.de>
12964
12965         PR middle-end/47414
12966         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12967         correct type for TBAA.
12968
12969 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12970
12971         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12972         (close_phi_written_to_memory): Call for_each_index with
12973         dr_indices_valid_in_loop.
12974
12975 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12976
12977         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12978         when it is initialized.
12979
12980 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12981
12982         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12983         call to graphite_find_data_references_in_stmt.
12984         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12985         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12986         call to graphite_find_data_references_in_stmt.
12987         (analyze_drs_in_stmts): Same.
12988         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12989         in which the scalar analysis of indices is performed.
12990         (create_data_ref): Same.  Update call to dr_analyze_indices.
12991         (find_data_references_in_stmt): Update call to create_data_ref.
12992         (graphite_find_data_references_in_stmt): Same.
12993         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12994         declaration.
12995         (create_data_ref): Same.
12996         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12997         call to create_data_ref.
12998
12999 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13000
13001         * graphite-sese-to-poly.c (build_poly_scop): Move
13002         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13003
13004 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13005
13006         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13007         VAR_DECL, PARM_DECL, and RESULT_DECL.
13008
13009 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13010
13011         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13012         in a reduction PBB.
13013         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13014         that have already been marked as PBB_IS_REDUCTION.
13015
13016 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13017
13018         * graphite-scop-detection.c (same_close_phi_node): New.
13019         (remove_duplicate_close_phi): New.
13020         (make_close_phi_nodes_unique): New.
13021         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13022
13023 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13024
13025         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13026         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13027         of both data references to be the same.
13028
13029 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13030
13031         * graphite-dependences.c (build_lexicographical_constraint): Remove
13032         the gdim parameter.
13033         (build_lexicographical_constraint): Adjust call to
13034         ppl_powerset_is_empty.
13035         (dependence_polyhedron): Same.
13036         (graphite_legal_transform_dr): Same.
13037         (graphite_carried_dependence_level_k): Same.
13038         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13039         parameter.
13040         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13041
13042 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13043
13044         * graphite-sese-to-poly.c
13045         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13046         (close_phi_written_to_memory): New.
13047         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13048         and unshare_expr.
13049
13050 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13051
13052         * doc/install.texi: Update the expected version number of PPL to 0.11.
13053         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13054         #if PPL_VERSION_MINOR < 11.
13055
13056 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13057
13058         * graphite-dependences.c: Include graphite-cloog-util.h.
13059         (new_poly_ddr): Inlined into dependence_polyhedron.
13060         (free_poly_ddr): Moved close by new_poly_ddr.
13061         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13062         Early return NULL when ppl_powerset_is_empty returns true.
13063         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13064         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13065         (graphite_legal_transform_dr): Call new_poly_ddr.
13066         (graphite_carried_dependence_level_k): Same.
13067         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13068         (dot_transformed_deps_stmt_1): Removed.
13069         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13070         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13071         (dot_deps_1): Call dot_deps_2.
13072         * Makefile.in (graphite-dependences.o): Add missing dependence on
13073         graphite-cloog-util.h.
13074
13075 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13076
13077         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13078         (build_lexicographical_constraint): Same.
13079         (dependence_polyhedron_1): Same.
13080         (graphite_legal_transform_dr): Same.
13081         (graphite_carried_dependence_level_k): Same.
13082         * graphite-ppl.c (ppl_powerset_is_empty): New.
13083         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13084         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13085
13086 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13087
13088         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13089         the "a followed by b" relation and document it.
13090
13091 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13092
13093         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13094         iteration when the bag of constraints is empty.
13095
13096 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13097
13098         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13099
13100 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13101
13102         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13103         nest and two loop depths as parameters.
13104         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13105         lst_perfect_nestify.
13106
13107 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13108
13109         * graphite-dependences.c (print_pddr): Call
13110         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13111
13112 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13113
13114         * graphite-ppl.c (debug_gmp_value): New.
13115         * graphite-ppl.h (debug_gmp_value): Declared.
13116
13117 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13118
13119         * doc/install.texi: Document availability of cloog-0.16.
13120
13121 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13122
13123         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13124         invalid postdominance info.
13125
13126 2011-01-24  Jan Hubicka  <jh@suse.cz>
13127
13128         PR c/21659
13129         * doc/extend.texi (weak pragma): Drop claim that it must
13130         appear before definition.
13131         * varasm.c (merge_weak, declare_weak): Only sanity check
13132         that DECL is not output at a time it is declared weak.
13133
13134 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13135
13136         * machmode.def: Fixed comments.
13137
13138 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13139
13140         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13141
13142 2011-01-24  Paul Koning  <ni1d@arrl.net>
13143
13144         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13145         WORDS_BIG_ENDIAN.
13146
13147 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13148
13149         PR target/46519
13150         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13151         (block_info): Add scanned and prev.
13152         (move_or_delete_vzeroupper_2): Return if the basic block
13153         has been scanned and the upper 128bit state is unchanged
13154         from the last scan.
13155         (move_or_delete_vzeroupper_1): Return true if the exit
13156         state is changed.
13157         (move_or_delete_vzeroupper): Visit basic blocks using the
13158         work-list based algorithm based on vt_find_locations in
13159         var-tracking.c.
13160
13161         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13162
13163 2011-01-24  Nick Clifton  <nickc@redhat.com>
13164
13165         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13166         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13167         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13168         then define __v850e1__.
13169         * doc/invoke.texi: Document -mv850es.
13170
13171 2011-01-24  Richard Henderson  <rth@redhat.com>
13172
13173         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13174         compound unordered comparisons.
13175         * config/rx/rx.c (rx_split_fp_compare): Remove.
13176         * config/rx/rx-protos.h: Update.
13177         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13178         (cbranchsf4): Don't call rx_split_fp_compare.
13179         (*cbranchsf4): Use rx_split_cbranch.
13180         (*cmpsf): Don't accept "i" constraint.
13181         (*conditional_branch): Only valid after reload.
13182         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13183
13184 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13185
13186         PR target/47385
13187         * config/rs6000/altivec.md (vector constant splitters): Add
13188         support for creating vector single precision constants if -mvsx is
13189         used and we would create the constant using Altivec primitives.
13190
13191 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13192             Richard Sandiford  <rdsandiford@googlemail.com>
13193
13194         PR rtl-optimization/47166
13195         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13196         mechanism for PRE_MODIFY and POST_MODIFY.
13197         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13198         reloadreg.
13199
13200 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13201
13202         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13203
13204 2011-01-22  Jan Hubicka  <jh@suse.cz>
13205
13206         PR lto/47333
13207         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13208
13209 2011-01-22  Jan Hubicka  <jh@suse.cz>
13210
13211         PR tree-optimization/43884
13212         PR lto/44334
13213         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13214         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13215
13216 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13217
13218         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13219         * config/s390/s390.c (s390_register_move_cost,
13220         s390_memory_move_cost): New.
13221         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13222
13223 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13224
13225         PR middle-end/47401
13226         * except.c (sjlj_assign_call_site_values): Move setting the
13227         crtl->uses_eh_lsda flag to ...
13228         (sjlj_mark_call_sites): ... here.
13229         (sjlj_emit_function_enter): Support NULL dispatch label.
13230         (sjlj_build_landing_pads): In a function with no landing pads
13231         that still has must-not-throw regions, generate code to register
13232         a personality function with empty LSDA.
13233
13234 2011-01-21  Richard Henderson  <rth@redhat.com>
13235
13236         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13237
13238         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13239
13240         * compare-elim.c: New file.
13241         * Makefile.in (OBJS-common): Add it.
13242         (compare-elim.o): New.
13243         * common.opt (fcompare-elim): New.
13244         * opts.c (default_options_table): Add OPT_fcompare_elim.
13245         * tree-pass.h (pass_compare_elim_after_reload): New.
13246         * passes.c (init_optimization_passes): Add it.
13247         * recog.h: Protect against re-inclusion.
13248         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13249         * doc/invoke.texi (-fcompare-elim): Document it.
13250         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13251         * doc/tm.texi: Rebuild.
13252
13253 2011-01-22  Nick Clifton  <nickc@redhat.com>
13254
13255         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13256         rx_split_fp_compare.
13257
13258 2011-01-22  Nick Clifton  <nickc@redhat.com>
13259
13260         * config/rx/rx.md (UNSPEC_CONST): New.
13261         (deallocate_and_return): Wrap the amount popped off the stack in
13262         an UNSPEC_CONST in order to stop it being rejected by
13263         -mmax-constant-size.
13264         (pop_and_return): Add a "(return)" rtx.
13265         (call): Drop the immediate operand.
13266         (call_internal): Likewise.
13267         (call_value): Likewise.
13268         (call_value_internal): Likewise.
13269         (sibcall_internal): Likewise.
13270         (sibcall_value_internal): Likewise.
13271         (sibcall): Likewise.  Generate an explicit call using
13272         sibcall_internal.
13273         (sibcall_value): Likewise.
13274         (mov<>): FAIL if a constant operand is not legitimate.
13275         (addsi3_unpsec): New pattern.
13276
13277         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13278         (ok_for_max_constant): New function.
13279         (gen_safe_add): New function.
13280         (rx_expand_prologue): Use gen_safe_add.
13281         (rx_expand_epilogue): Likewise.
13282         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13283         UNSPEC CONSTs.
13284
13285 2011-01-21  Jeff Law  <law@redhat.com>
13286
13287         PR tree-optimization/47053
13288         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13289         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13290         statements are deleted.
13291         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13292         is nonempty, then purge dead edges and cleanup the CFG.
13293
13294 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13295
13296         PR debug/47402
13297         Temporarily revert:
13298         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13299         PR debug/47106
13300         * tree-dfa.c (create_var_ann): Mark variable as used.
13301
13302 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13303
13304         PR middle-end/45566
13305         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13306         notes from other section in hot/cold partitioning even if
13307         last_action is -3.  Increment call_site_base.
13308
13309         PR rtl-optimization/47366
13310         * fwprop.c (forward_propagate_into): Return bool.  If
13311         any changes are made, -fnon-call-exceptions is used and
13312         REG_EH_REGION note is present, call purge_dead_edges
13313         and return true if it purged anything.
13314         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13315         any EH edges were purged.
13316
13317 2011-01-21  Jeff Law  <law@redhat.com>
13318
13319         PR rtl-optimization/41619
13320         * caller-save.c (setup_save_areas): Break out code to determine
13321         which hard regs are live across calls by examining the reload chains
13322         so that it is always used.
13323         Eliminate code which checked REG_N_CALLS_CROSSED.
13324
13325 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13326
13327         PR tree-optimization/47355
13328         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13329         NOP has non-debug uses beyond PHIs in new_bb.
13330
13331 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13332
13333         PR debug/47106
13334         * cfgexpand.c (account_used_vars_for_block): Only account vars
13335         that are annotated as used.
13336         (estimated_stack_frame_size): Don't set TREE_USED.
13337         * tree-dfa.c (create_var_ann): Mark variable as used.
13338
13339 2011-01-21  Richard Guenther  <rguenther@suse.de>
13340
13341         PR middle-end/47395
13342         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13343
13344 2011-01-21  Richard Guenther  <rguenther@suse.de>
13345
13346         PR tree-optimization/47365
13347         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13348         (vn_reference_lookup_pieces): Adjust.
13349         (vn_reference_lookup): Likewise.
13350         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13351         (vn_reference_lookup_3): Only look through kills if in
13352         VN_WALKREWRITE mode.
13353         (vn_reference_lookup_pieces): Adjust.
13354         (vn_reference_lookup): Likewise.
13355         (visit_reference_op_load): Likewise.
13356         (visit_reference_op_store): Likewise.
13357         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13358         (compute_avail): Likewise.
13359         (eliminate): Likewise.
13360
13361 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13362
13363         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13364         DECL_IGNORED_P non-reg vars if they are used.
13365
13366         PR tree-optimization/47391
13367         * varpool.c (const_value_known_p): Return false if
13368         decl is volatile.
13369
13370 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13371
13372         PR bootstrap/47215
13373         * config/i386/i386.c (ix86_local_alignment): Handle
13374         case for va_list_type_node is nil.
13375         (ix86_canonical_va_list_type): Likewise.
13376
13377 2011-01-21  Alan Modra  <amodra@gmail.com>
13378
13379         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13380         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13381
13382 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13383
13384         * config/arm/arm.md (define_attr type): Rename f_load
13385         and f_store to f_fpa_load and f_fpa_store. Update.
13386         (write_conflict): Deal with rename fallout.
13387         (*push_fp_multi): Likewise.
13388         * config/arm/fpa.md (f_load): Use f_fpa_load.
13389         (f_store): Use f_fpa_store.
13390         (*movsf_fpa): Likewise.
13391         (*movdf_fpa): Likewise.
13392         (*movxf_fpa): Likewise.
13393         (*thumb2_movsf_fpa): Likewise.
13394         (*thumb2_movdf_fpa): Likewise.
13395         (*thumb2_movxf_fpa): Likewise.
13396         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13397         f_loadd and f_stored.
13398         (*thumb2_movdi_vfp): Likewise.
13399         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13400         (*thumb2_movsi_vfp): Likewise.
13401         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13402         Use f_loads instead of f_load.
13403         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13404
13405 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13406
13407         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13408         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13409         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13410         (xtensa_mode_dependent_address_p): New function.
13411         (constantpool_address_p): Make static. Change return type to bool.
13412         Change argument type to const_rtx. Use CONST_INT_P predicate.
13413
13414 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13415
13416         PR debug/46583
13417         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13418
13419 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13420
13421         PR debug/47283
13422         * cfgexpand.c (expand_debug_expr): Instead of generating
13423         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13424         etc. handling.
13425
13426 2011-01-20  Richard Guenther  <rguenther@suse.de>
13427
13428         PR middle-end/47370
13429         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13430         the pointer operand of MEM_REFs.
13431
13432 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13433
13434         PR tree-optimization/46130
13435         * ipa-split.c (consider_split): If return_bb contains non-virtual
13436         PHIs other than for retval or if split_function would not adjust it,
13437         refuse to split.
13438
13439 2011-01-20  Richard Guenther  <rguenther@suse.de>
13440
13441         PR tree-optimization/47167
13442         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13443         Revert previous change, only avoid enumeral type changes.
13444
13445 2011-01-19  Mike Stump  <mikestump@comcast.net>
13446
13447         * doc/tm.texi.in (BRANCH_COST): Englishify.
13448         * doc/tm.texi (BRANCH_COST): Likewise.
13449
13450 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13451
13452         PR c++/47291
13453         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13454         (gen_scheduled_generic_parms_dies): New functions.
13455         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13456         generation for the end of CU compilation.
13457         (dwarf2out_finish): Generate template parameters DIEs here.
13458
13459 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13460
13461         PR debug/46240
13462         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13463         debug bind stmt on merge edges.
13464
13465 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13466
13467         PR debug/47079
13468         PR debug/46724
13469         * function.c (instantiate_expr): Instantiate incoming rtl of
13470         implicit arguments, and recurse on VALUE_EXPRs.
13471         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13472         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13473
13474 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13475
13476         * c-parser.c (c_parser_for_statement): Initialize
13477         collection_expression.
13478
13479 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13480
13481         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13482
13483 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13484
13485         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13486         (LINK_SHLIB_SPEC): Don't use %(link_path).
13487         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13488
13489 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13490
13491         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13492         (NO_SHARED_LIB_SUPPORT): Remove.
13493         (LINK_SHLIB_SPEC): Remove one conditional definition.
13494
13495 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13496
13497         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13498         %{call_shared}.
13499         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13500         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13501         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13502         %{call_shared} and conditionals on these options not being passed.
13503         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13504         %{call_shared}.
13505
13506 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13507
13508         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13509         simplify.
13510
13511         * ipa-split.c: Spelling fixes.
13512
13513 2011-01-19  Richard Henderson  <rth@redhat.com>
13514
13515         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13516         (*mulsi3): Likewise.
13517
13518         * longlong.h [__mn10300__] (count_leading_zeros): New.
13519         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13520         [__mn10300__] (add_ssaaaa, subddmmss): New.
13521         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13522         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13523
13524 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13525
13526         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13527
13528 2011-01-19  Richard Henderson  <rth@redhat.com>
13529
13530         * config/mn10300/mn10300.md (addsi3_flags): New.
13531         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13532         (subsi3_flags, subc_internal, subdi3): New.
13533         (subdi3_internal, *subdi3_degenerate): New.
13534         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13535
13536         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13537         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13538         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13539         * config/mn10300/mn10300-protos.h: Update.
13540         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13541         (return_ret): Likewise.  Rename from return_internal_regs.
13542         (return_internal): Remove.
13543
13544         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13545         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13546         (mn10300_legitimate_constant_p): Likewise.
13547         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13548         (mn10300_frame_size): New.
13549         (mn10300_expand_prologue): Use it.
13550         (mn10300_expand_epilogue): Likewise.
13551         (mn10300_initial_offset): Likewise.
13552         * config/mn10300/mn10300-protos.h: Update.
13553         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13554         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13555         (prologue, epilogue, return_internal): Tidy output code.
13556         (mn10300_store_multiple_operation, return): Likewise.
13557         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13558         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13559         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13560         (load_pic, am33_load_pic): New.
13561         (mn10300_load_pic0, mn10300_load_pic1): New.
13562
13563         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13564         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13565         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13566         (cc_flags_for_mode, cc_flags_for_code): New.
13567         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13568         overflow flag is not valid.  Validate that the flags we need
13569         for the comparison are valid.
13570         (mn10300_output_cmp): Remove.
13571         (mn10300_output_add): New.
13572         (mn10300_select_cc_mode): Use cc_flags_for_code.
13573         (mn10300_split_cbranch): New.
13574         (mn10300_match_ccmode): New.
13575         (mn10300_split_and_operand_count): New.
13576         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13577         to the function.
13578         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13579         (addsi3): ... here.  Use mn10300_output_add.
13580         (*addsi3_flags): New.
13581         (*am33_subsi3, *mn10300_subsi3): Merge...
13582         (subsi3): ... here.  Use attribute isa.
13583         (*subsi3_flags): New.
13584         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13585         when possible.
13586         (*am33_andsi3, *mn10300_andsi3): Merge...
13587         (andsi3): ... here.
13588         (*andsi3_flags): New.
13589         (andsi3 splitters): New.
13590         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13591         (iorsi3): ... here.
13592         (*iorsi3_flags): New.
13593         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13594         (xorsi3): ... here.
13595         (*xorsi3_flags): New.
13596         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13597         (one_cmplsi2): ... here.
13598         (*one_cmplsi2_flags): New.
13599         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13600         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13601         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13602         use matching constraints to eliminate a self-comparison.
13603         (*integer_conditional_branch): Rename from integer_conditional_branch.
13604         Use int_mode_flags to match CC_REG.
13605         (*cbranchsi4_btst, *btstsi): New.
13606         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13607         mn10300_split_cbranch.
13608         (*am33_cmpsf): Rename from am33_cmpsf.
13609         (*float_conditional_branch): Rename from float_conditional_branch.
13610         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13611         (zero_extendqisi2): ... here.
13612         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13613         (zero_extendhisi2): ... here.
13614         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13615         (extendqisi2): ... here.
13616         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13617         (extendhisi2): ... here.
13618         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13619         (ashlsi3): ... here.
13620         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13621         (lshrsi3): ... here.
13622         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13623         (ashrsi3): ... here.
13624         (consecutive add peephole): Remove.
13625         * config/mn10300/predicates.md (label_ref_operand): New.
13626         (int_mode_flags): New.
13627         (CCZN_comparison_operator): New.
13628
13629         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13630         (throughput_42_latency_43): New reservation.
13631         (mulsidi3, umulsidi3): New expanders.
13632         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13633         the MDR register to allocation; separately allocate the low and
13634         high parts of the DImode result.
13635         (umulsidi3_internal): Similarly.
13636         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13637         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13638         (udivsi3, umodsi3): Remove.
13639         (udivmodsi4, divmodsi4): New expanders.
13640         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13641         (*divmodsi4): Simiarly.
13642         (ext_internal): New.
13643
13644         * config/mn10300/constraints.md ("z"): New constraint.
13645         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13646         (FIXED_REGISTERS): Don't fix MDR.
13647         (CALL_USED_REGSITERS): Reformat nicely.
13648         (REG_ALLOC_ORDER): Add MDR.
13649         (enum regclass): Add MDR_REGS.
13650         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13651         (IRA_COVER_CLASSES): Add MDR_REGS.
13652         (REGNO_REG_CLASS): Handle MDR_REG.
13653         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13654         (mn10300_register_move_cost): Likewise.
13655         * config/mn10300/mn10300.md (MDR_REG): New.
13656         (*movsi_internal): Handle moves to/from MDR_REGS.
13657
13658         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13659         POST_MODIFY.
13660         (mn10300_secondary_reload): Tidy combination reload classes.
13661         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13662         addresses for AM33.  Allow symbolic offsets for reg+imm.
13663         (mn10300_regno_in_class_p): New.
13664         (mn10300_legitimize_reload_address): New.
13665         * config/mn10300/mn10300.h (enum reg_class): Remove
13666         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13667         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13668         SP_OR_GENERAL_REGS.
13669         (REG_CLASS_NAMES): Update to match.
13670         (REG_CLASS_CONTENTS): Likewise.
13671         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13672         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13673         (REGNO_IN_RANGE_P): Remove.
13674         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13675         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13676         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13677         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13678         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13679         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13680         (REGNO_GENERAL_P): New.
13681         (HAVE_POST_MODIFY_DISP): New.
13682         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13683         (LEGITIMIZE_RELOAD_ADDRESS): New.
13684         * config/mn10300/mn10300-protos.h: Update.
13685
13686         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13687         DATA_REGS for AM33 stack-pointer destination.
13688         (mn10300_preferred_output_reload_class): Likewise.
13689         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13690         into a form appropriate for ...
13691         (TARGET_SECONDARY_RELOAD): New.
13692         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13693         * config/mn10300/mn10300-protos.h: Update.
13694         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13695         reload_insi; use the "A" constraint for the scratch; handle AM33
13696         moves of sp to non-address registers.
13697
13698         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13699         (*movqi_internal): ... here.
13700         (*am33_movhi, *mn10300_movhi): Merge into...
13701         (*movhi_internal): ... here.
13702         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13703         as the source/destination of moves from/to SP.
13704         (movsf): Only allow for AM33-2.
13705         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13706         any integer constant constraint.  Only allow for AM33-2.  Tidy
13707         all of the alternative outputs.
13708         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13709         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13710         for MN103.
13711         (udivsi3, umodsi3): New patterns for MN103 only.
13712
13713 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13714
13715         * doc/tm.texi.in: Spell out that a lack of register class unions
13716         can lead to ICEs.
13717         * doc/tm.texi: Regenerate.
13718
13719 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13720
13721         PR rtl-optimization/47337
13722         * dce.c (check_argument_store): New function.
13723         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13724
13725         PR tree-optimization/47290
13726         * tree-eh.c (infinite_empty_loop_p): New function.
13727         (cleanup_empty_eh): Use it.
13728
13729 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13730
13731         PR target/46997
13732         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13733         (a64_expand_widen_sum): Ditto.
13734         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13735         (vec_extract_evenodd_help): Ditto.
13736         (vec_extract_evenv4hi): Ditto.
13737         (vec_extract_oddv4hi): Ditto.
13738         (vec_extract_evenv2si): Ditto.
13739         (vec_extract_oddv2si): Ditto.
13740         (vec_extract_evenv2sf): Ditto.
13741         (vec_extract_oddv2sf): Ditto.
13742         (vec_pack_trunc_v4hi: Ditto.
13743         (vec_pack_trunc_v2si): Ditto.
13744         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13745         (vec_interleave_highv8qi): Ditto.
13746         (mix1_r): Ditto.
13747         (vec_extract_oddv8qi): Ditto.
13748         (vec_interleave_lowv4hi): Ditto.
13749         (vec_interleave_highv4hi): Ditto.
13750         (vec_interleave_lowv2si): Ditto.
13751         (vec_interleave_highv2si): Ditto.
13752
13753 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13754
13755         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13756         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13757         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13758         (pa_c_mode_for_suffix): New.
13759         (TARGET_EXPAND_BUILTIN): Define.
13760         (TARGET_C_MODE_FOR_SUFFIX): Define.
13761         (pa_builtins): Define.
13762         (pa_init_builtins): Register __float128 type and init new support
13763         builtins.
13764         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13765         * config/pa/quadlib.c (_U_Qfcopysign): New.
13766
13767 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13768
13769         PR middle-end/46894
13770         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13771         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13772         are defined.
13773
13774 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13775
13776         PR tree-optimization/47179
13777         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13778         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13779
13780 2011-01-18  Richard Guenther  <rguenther@suse.de>
13781
13782         PR rtl-optimization/47216
13783         * emit-rtl.c: Include tree-flow.h.
13784         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13785         of replicating it with different semantics.
13786         * Makefile.in (emit-rtl.o): Adjust.
13787
13788 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13789
13790         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13791         (cortex_a9_dp): Handle neon types correctly.
13792
13793 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13794
13795         PR rtl-optimization/47299
13796         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13797         subtarget.  Use normal multiplication if both operands are constants.
13798         * expmed.c (expand_widening_mult): Don't try to optimize constant
13799         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13800         before using it.
13801
13802 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13803
13804         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13805         spacing after 'e.g.', typos, comma, hyphenation.
13806
13807 2011-01-17  Richard Henderson  <rth@redhat.com>
13808
13809         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13810         (rx_restricted_mem_operand): New.
13811         (rx_shift_operand): Use register_operand.
13812         (rx_source_operand, rx_compare_operand): Likewise.
13813         * config/rx/rx.md (addsi3_flags): New expander.
13814         (adddi3): Rewrite as expander.
13815         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13816         (subsi3_flags): New expander.
13817         (subdi3): Rewrite as expander.
13818         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13819
13820         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13821         (rx_init_builtins): Remove sat builtin.
13822         (rx_expand_builtin): Likewise.
13823         * config/rx/rx.md (ssaddsi3): New.
13824         (*sat): Rename from sat.  Represent the CC_REG input.
13825
13826         * config/rx/predicates.md (rshift_operator): New.
13827         * config/rx/rx.c (rx_expand_insv): Remove.
13828         * config/rx/rx-protos.h: Update.
13829         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13830         operand to the canonical position.
13831         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13832         (*bitclr, *bitclr_in_memory): Similarly.
13833         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13834         (insv): Retain the zero_extract in the expansion.
13835
13836         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13837         (bswaphi2, bitinvert, revw): Likewise.
13838
13839         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13840         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13841         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13842         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13843         (bitset, bitset_in_memory): Likewise.
13844         (bitinvert, bitinvert_in_memory): Likewise.
13845         (bitclr, bitclr_in_memory): Likewise.
13846         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13847         (rx_strend, rx_cmpstrn): Likewise.
13848         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13849         (bitop peep2 patterns): Remove.
13850
13851         * config/rx/rx.c (rx_match_ccmode): New.
13852         * config/rx/rx-protos.h: Update.
13853         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13854         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13855         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13856         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13857         (fix_truncsfsi2, floatsisf2): Likewise.
13858         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13859         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13860         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13861         (*subsi3_flags, *xorsi3_flags): New.
13862
13863         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13864
13865         * config/rx/rx.c (rx_print_operand): Remove workaround for
13866         unsplit comparison operations.
13867
13868         * config/rx/rx.md (movsicc): Split after reload.
13869         (*movsicc): Merge *movsieq and *movsine via match_operator.
13870         (*stcc): New pattern.
13871
13872         * config/rx/rx.c (rx_float_compare_mode): Remove.
13873         * config/rx/rx.h (rx_float_compare_mode): Remove.
13874         * config/rx/rx.md (cstoresi4): Split after reload.
13875         (*sccc): New pattern.
13876
13877         * config/rx/predicates.md (label_ref_operand): New.
13878         (rx_z_comparison_operator): New.
13879         (rx_zs_comparison_operator): New.
13880         (rx_fp_comparison_operator): New.
13881         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13882         Validate that the flags are set properly for the comparison.
13883         (rx_gen_cond_branch_template): Remove.
13884         (rx_cc_modes_compatible): Remove.
13885         (mode_from_flags): New.
13886         (flags_from_code): Rename from flags_needed_for_conditional.
13887         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13888         (rx_select_cc_mode): Likewise.
13889         (rx_split_fp_compare): New.
13890         (rx_split_cbranch): New.
13891         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13892         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13893         (*cbranchsf4): Similarly.
13894         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13895         match_operator and rx_split_cbranch.
13896         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13897         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13898         (*cmpsi): Rename from cmpsi.
13899         (*tstsi): Rename from tstsi.
13900         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13901         (*conditional_branch): Rename from conditional_branch.
13902         (*reveresed_conditional_branch): Remove.
13903         (b<code>): Remove expander.
13904         * config/rx/rx-protos.h: Update.
13905
13906         * config/rx/rx.c (rx_compare_redundant): Remove.
13907         * config/rx/rx.md (cmpsi): Don't use it.
13908         * config/rx/rx-protos.h: Update.
13909
13910         * config/rx/rx-modes.def (CC_F): New mode.
13911         * config/rx/rx.c (rx_select_cc_mode): New.
13912         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13913         * config/rx/rx-protos.h: Update.
13914
13915 2011-01-17  Richard Henderson  <rth@redhat.com>
13916
13917         * except.c (dump_eh_tree): Fix stray ; after for statement.
13918
13919 2011-01-17  Richard Guenther  <rguenther@suse.de>
13920
13921         PR tree-optimization/47313
13922         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13923         handling before copying the body.  Properly deal with
13924         by-reference result in SSA form.
13925
13926 2011-01-17  Ian Lance Taylor  <iant@google.com>
13927
13928         PR target/47219
13929         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13930         (struct_value_alias_set): Don't define.
13931         (sparc_option_override): Don't set sparc_sr_alias_set and
13932         struct_value_alias_set.
13933         (save_or_restore_regs): Use gen_frame_mem rather than calling
13934         set_mem_alias_set.
13935         (sparc_struct_value_rtx): Likewise.
13936
13937 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13938
13939         PR target/47318
13940         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13941         (_mm_maskstore_pd): Likewise.
13942         (_mm_maskload_ps): Likewise.
13943         (_mm_maskstore_ps): Likewise.
13944         (_mm256_maskload_pd): Change mask to __m256i.
13945         (_mm256_maskstore_pd): Likewise.
13946         (_mm256_maskload_ps): Likewise.
13947         (_mm256_maskstore_ps): Likewise.
13948
13949         * config/i386/i386-builtin-types.def: Updated.
13950         (ix86_expand_special_args_builtin): Likewise.
13951
13952         * config/i386/i386.c (bdesc_special_args): Update
13953         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13954         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13955         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13956         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13957
13958         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13959         Use <avxpermvecmode> on mask register.
13960         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13961
13962 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13963             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13964             Eric Botcazou  <ebotcazou@adacore.com>
13965
13966         PR target/46655
13967         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13968         if <= USHRT_MAX in 32-bit mode.
13969
13970 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13971
13972         * doc/install.texi (Configuration, Specific): Wrap long
13973         lines in examples.  Allow line wrapping in long options
13974         and URLs where beneficial for PDF output.
13975
13976 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13977
13978         * config/mips/mips.c (mips_classify_symbol): Don't return
13979         SYMBOL_PC_RELATIVE for nonlocal labels.
13980
13981 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13982
13983         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13984
13985 2011-01-15  Jan Hubicka  <jh@suse.cz>
13986
13987         PR tree-optimization/47276
13988         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13989         declarations as needed.
13990
13991 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13992
13993         * common.opt (fdevirtualize): New flag.
13994         * doc/invoke.texi (Option Summary): Document it.
13995         * opts.c (default_options_table): Add devirtualize flag.
13996         * ipa-prop.c (detect_type_change): Return immediately if
13997         devirtualize flag is not set.
13998         (detect_type_change_ssa): Likewise.
13999         (compute_known_type_jump_func): Likewise.
14000         (ipa_analyze_virtual_call_uses): Likewise.
14001
14002 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14003
14004         PR tree-optimization/45934
14005         PR tree-optimization/46302
14006         * ipa-prop.c (type_change_info): New type.
14007         (stmt_may_be_vtbl_ptr_store): New function.
14008         (check_stmt_for_type_change): Likewise.
14009         (detect_type_change): Likewise.
14010         (detect_type_change_ssa): Likewise.
14011         (compute_complex_assign_jump_func): Check for dynamic type change.
14012         (compute_complex_ancestor_jump_func): Likewise.
14013         (compute_known_type_jump_func): Likewise.
14014         (compute_scalar_jump_functions): Likewise.
14015         (ipa_analyze_virtual_call_uses): Likewise.
14016         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14017
14018 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14019
14020         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14021         * config/i386/i386.opt (msse5): New Alias.
14022
14023 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14024
14025         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14026         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14027         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14028         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14029
14030 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14031
14032         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14033         -mcpu options.
14034         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14035         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14036         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14037         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14038         Likewise.
14039         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14040
14041 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14042
14043         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14044
14045 2011-01-14  Mike Stump  <mikestump@comcast.net>
14046
14047         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14048         * config/fr30/fr30.md: Likweise
14049         (movsi_push): Likewise.
14050         (movsi_pop): Likewise.
14051         (enter_func): Likewise.
14052         * config/moxie/moxie.md (movsi_push): Likewise.
14053         (movsi_pop): Likewise.
14054
14055 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14056
14057         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14058         %{no_archive} %{exact_version}.
14059         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14060         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14061         %{no_archive} %{exact_version}.
14062         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14063         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14064         * config/mips/vxworks.h: Likewise.
14065
14066 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14067
14068         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14069
14070 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14071
14072         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14073         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14074
14075 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14076
14077         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14078         -nodefaultlib.
14079
14080 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14081
14082         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14083         for mcpu not cpu.
14084         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14085         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14086         not cpu.
14087         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14088         Don't handle -shlib.
14089
14090 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14091
14092         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14093         (CC1_SPEC): Don't handle -profile.
14094
14095 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14096
14097         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14098         * config/mips/mips.h (CC1_SPEC): Likewise.
14099
14100 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14103         * config/mips/mips.h (CC1_SPEC): Likewise.
14104
14105 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14106
14107         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14108         * config/m32r/linux.h (LINK_SPEC): Likewise.
14109         * config/mips/linux.h (LINK_SPEC): Likewise.
14110         * config/mips/linux64.h (LINK_SPEC): Likewise.
14111         * config/sparc/linux.h (LINK_SPEC): Likewise.
14112         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14113         LINK_SPEC): Likewise.
14114         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14115
14116 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14117
14118         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14119         %{version:-v}.
14120         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14121
14122 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14123
14124         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14125         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14126
14127 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14128
14129         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14130
14131 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14132
14133         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14134         supports -Bstatic/-Bdynamic.
14135         * configure: Regenerate.
14136
14137 2011-01-14  Jan Hubicka  <jh@suse.cz>
14138             Jack Howarth  <howarth@bromo.med.uc.edu>
14139
14140         PR target/46037
14141         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14142         when checking debug_info_level. Test write_symbols instead of
14143         debug_hooks->var_location when setting flag_var_tracking_uninit.
14144
14145 2011-01-14  Richard Guenther  <rguenther@suse.de>
14146
14147         PR tree-optimization/47179
14148         * target.def (ref_may_alias_errno): New target hook.
14149         * targhooks.h (default_ref_may_alias_errno): Declare.
14150         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14151         (default_ref_may_alias_errno): New function.
14152         * target.h (struct ao_ref_s): Declare.
14153         * tree-ssa-alias.c: Include target.h.
14154         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14155         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14156         (targhooks.o): Likewise.
14157         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14158         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14159
14160 2011-01-14  Richard Guenther  <rguenther@suse.de>
14161
14162         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14163
14164 2011-01-14  Richard Guenther  <rguenther@suse.de>
14165
14166         PR tree-optimization/47280
14167         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14168         return CFG changes.
14169         (tree_ssa_forward_propagate_single_use_vars): Deal with
14170         CFG changes from associate_plusminus.
14171
14172 2011-01-14  Richard Guenther  <rguenther@suse.de>
14173
14174         PR middle-end/47281
14175         Revert
14176         2011-01-11  Richard Guenther  <rguenther@suse.de>
14177
14178         PR tree-optimization/46076
14179         * tree-ssa.c (useless_type_conversion_p): Conversions from
14180         unprototyped to empty argument list function types are useless.
14181
14182 2011-01-14  Richard Guenther  <rguenther@suse.de>
14183
14184         PR tree-optimization/47286
14185         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14186
14187 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14188
14189         PR middle-end/46823
14190         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14191
14192 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14193
14194         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14195         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14196         * config/xtensa/xtensa.c (xtensa_libcall_value,
14197         xtensa_function_value_regno_p): New functions.
14198         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14199
14200 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14201
14202         PR c++/47213
14203         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14204         PE specific hook.
14205         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14206         New function prototype.
14207         * config/i386/winnt.c (i386_pe_assemble_visibility):
14208         Warn only if attribute was specified by user.
14209
14210 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14211
14212         PR target/47251
14213         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14214         floating point.
14215         (floatunsdidf2_fcfidu): Ditto.
14216
14217 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14218
14219         * config/s390/s390.c (print_operand_address): Replace 'error' with
14220         'output_operand_lossage'.
14221         (print_operand): Likewise.
14222
14223 2011-01-13  Jeff Law  <law@redhat.com>
14224
14225         PR rtl-optimization/39077
14226         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14227         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14228         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14229         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14230         * gcse.c (prune_insertions_deletions): New function.
14231         (compute_pre_data): Use it.
14232
14233 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14234
14235         PR debug/PR46973
14236         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14237         static function.
14238         (prune_unused_types_mark): Use it.
14239
14240 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14241
14242         PR rtl-optimization/45352
14243         * sel-sched.c: Update copyright years.
14244         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14245         in the advancing loop when we have issued issue_rate insns.
14246
14247 2011-01-12  Richard Henderson  <rth@redhat.com>
14248
14249         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14250         (TARGET_MD_ASM_CLOBBERS): New.
14251
14252         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14253         (TARGET_DELEGITIMIZE_ADDRESS): New.
14254
14255         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14256         (clzsi2, *bsch): New patterns.
14257
14258         * config/mn10300/mn10300.md (INT): New mode iterator.
14259         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14260
14261         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14262         flag_split_wide_types.
14263
14264         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14265         (mn10300_trampoline_init): Rewrite without a template, an immediate
14266         load and a direct branch.
14267         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14268
14269 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14270
14271         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14272         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14273         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14274         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14275
14276 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14277
14278         PR debug/47209
14279         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14280         of type.
14281
14282 2011-01-12  Jan Hubicka  <jh@suse.cz>
14283
14284         PR driver/47244
14285         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14286         (PLUGIN_COND_CLOSE): New macro.
14287         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14288
14289 2011-01-12  Richard Guenther  <rguenther@suse.de>
14290
14291         PR lto/47259
14292         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14293         register variables in a MEM_REF.
14294
14295 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14296
14297         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14298         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14299         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14300         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14301         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14302         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14303         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14304         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14305         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14306         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14307         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14308         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14309         * config/gnu-user.h: New.  Copied from linux.h.
14310         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14311         GNU_USER_TARGET_STARTFILE_SPEC.
14312         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14313         GNU_USER_TARGET_ENDFILE_SPEC.
14314         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14315         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14316         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14317         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14318         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14319         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14320         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14321         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14322         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14323         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14324         * config/arm/linux-eabi.h (CC1_SPEC): Use
14325         GNU_USER_TARGET_CC1_SPEC.
14326         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14327         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14328         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14329         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14330         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14331         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14332         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14333         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14334
14335 2011-01-12  Richard Guenther  <rguenther@suse.de>
14336
14337         PR other/46946
14338         * doc/invoke.texi (ffast-math): Document it is turned on
14339         with -Ofast.
14340
14341 2011-01-12  Jan Hubicka  <jh@suse.cz>
14342
14343         PR tree-optimization/47233
14344         * opts.c (common_handle_option): Disable ipa-reference with profile
14345         feedback.
14346
14347 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14348
14349         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14350         error message.
14351
14352 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14353
14354         * c-parser.c (c_lex_one_token): Updated and reindented some
14355         comments.  No changes in code.
14356
14357 2011-01-11  Ian Lance Taylor  <iant@google.com>
14358
14359         * godump.c (go_output_var): Don't output the variable if there is
14360         already a type with the same name.
14361
14362 2011-01-11  Ian Lance Taylor  <iant@google.com>
14363
14364         * godump.c (go_format_type): Don't generate float80.
14365
14366 2011-01-11  Richard Henderson  <rth@redhat.com>
14367
14368         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14369         declaration.  Rewrite for both speed and size.
14370         (mn10300_address_cost_1): Remove.
14371         (mn10300_register_move_cost): New.
14372         (mn10300_memory_move_cost): New.
14373         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14374         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14375         extensions, shifts, BSWAP, CLZ.
14376         (mn10300_wide_const_load_uses_clr): Remove.
14377         (TARGET_REGISTER_MOVE_COST): New.
14378         (TARGET_MEMORY_MOVE_COST): New.
14379         * config/mn10300/mn10300-protos.h: Update.
14380         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14381
14382         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14383         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14384         * config/mn10300/mn10300-protos.h: Update.
14385         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14386         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14387         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14388         (*test_int_bitfield, *test_byte_bitfield): Remove.
14389         (*bit_test, *subreg_bit_test): Remove.
14390         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14391
14392         * config/mn10300/constraints.md ("c"): Rename from "A".
14393         ("A", "D"): New constraint letters.
14394         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14395         (fmssf4, fnmasf4, fnmssf4): Likewise.
14396
14397         * config/mn10300/mn10300.md (isa): New attribute.
14398         (enabled): New attribute.
14399
14400         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14401         (abssf2, negsf2): Define only for hardware fp.
14402         (sqrtsf2): Reformat.
14403         (addsf3, subsf3, mulsf3): Merge expander and insn.
14404
14405         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14406         (DEBUGGER_AUTO_OFFSET): Remove.
14407         (DEBUGGER_ARG_OFFSET): Remove.
14408
14409         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14410         Emit register stores with the same offsets as the hardware.
14411         (mn10300_store_multiple_operation): Don't check that the register
14412         save offsets are monotonic.
14413         * config/mn10300/mn10300-protos.h: Update.
14414
14415         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14416
14417         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14418         in terms of the value on the stack, not the MDR register.
14419
14420 2011-01-11  Jan Hubicka  <jh@suse.cz>
14421
14422         PR lto/45721
14423         PR lto/45375
14424         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14425         (symbol_alias_set_destroy, symbol_alias_set_contains,
14426         propagate_aliases_backward): Declare.
14427         * lto-streamer-out.c (struct sets): New sturcture.
14428         (trivally_defined_alias): New function.
14429         (output_alias_pair_p): Rewrite.
14430         (output_unreferenced_globals): Fix output of alias pairs.
14431         (produce_symtab): Likewise.
14432         * ipa.c (function_and_variable_visibility): Set weak alias destination
14433         as needed in lto.
14434         * varasm.c (symbol_alias_set_t): Remove.
14435         (symbol_alias_set_destroy): Export.
14436         (propagate_aliases_forward, propagate_aliases_backward): New functions
14437         based on ...
14438         (compute_visible_aliases): ... this one; remove.
14439         (trivially_visible_alias): New
14440         (trivially_defined_alias): New.
14441         (remove_unreachable_alias_pairs): Rewrite.
14442         (finish_aliases_1): Reorganize code checking if alias is defined.
14443         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14444         in LTO mode.
14445
14446 2011-01-11  Richard Guenther  <rguenther@suse.de>
14447
14448         PR tree-optimization/46076
14449         * tree-ssa.c (useless_type_conversion_p): Conversions from
14450         unprototyped to empty argument list function types are useless.
14451
14452 2011-01-11  Richard Guenther  <rguenther@suse.de>
14453
14454         PR middle-end/45235
14455         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14456         volatile MEMs as MEM_READONLY_P.
14457
14458 2011-01-11  Richard Guenther  <rguenther@suse.de>
14459
14460         PR tree-optimization/47239
14461         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14462
14463 2011-01-11  Jeff Law  <law@redhat.com>
14464
14465         PR tree-optimization/47086
14466         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14467         IVs from statements that might throw.
14468
14469 2011-01-10  Jan Hubicka  <jh@suse.cz>
14470
14471         PR lto/45375
14472         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14473
14474 2011-01-10  Jan Hubicka  <jh@suse.cz>
14475
14476         PR lto/45375
14477         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14478         when correcting profile.
14479
14480 2011-01-10  Jan Hubicka  <jh@suse.cz>
14481
14482         PR lto/46083
14483         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14484         DECL_FINI_PRIORITY.
14485         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14486         Restore DECL_FINI_PRIORITY.
14487
14488 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14489
14490         * doc/gimple.texi: Fix quoting of multi-word return values in
14491         @deftypefn statements.  Ensure presence of return value.  Wrap
14492         overlong @deftypefn lines.
14493         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14494         descriptions of removed functions.
14495         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14496         of multi-word return value in @deftypefn statement.
14497
14498 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14499
14500         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14501         (Conditional Expressions, Logical Operators)
14502         (Statement and operand traversals): Do not indent smallexample
14503         code.  Fix duplicate function argument in example.
14504
14505 2011-01-10  Jeff Law  <law@redhat.com>
14506
14507         PR tree-optimization/47141
14508         * ipa-split.c (split_function): Handle case where we are
14509         returning a value and the return block has a virtual operand phi.
14510
14511 2011-01-10  Jan Hubicka  <jh@suse.cz>
14512
14513         PR tree-optimization/47234
14514         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14515         (pass_feedback_split_functions): Declare.
14516         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14517         tree-profile.
14518         * ipa-split.c (gate_split_functions): Update comments; disable
14519         split-functions for profile_arc_flag and branch_probabilities.
14520         (gate_feedback_split_functions): New function.
14521         (execute_feedback_split_functions): New function.
14522         (pass_feedback_split_functions): New global var.
14523
14524 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14525
14526         PR lto/46760
14527         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14528         calling gimple_call_set_cannot_inline.
14529
14530 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14531
14532         * config/darwin-sections.def: Remove unused section.
14533
14534 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14535
14536         PR c++/47218
14537         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14538
14539 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14540
14541         PR objc/47232
14542         * c-parser.c (c_parser_declaration_or_fndef): Improved
14543         error message.
14544
14545 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14546
14547         * config/i386/winnt.c (i386_pe_start_function): Make sure
14548         to switch back to function's section.
14549
14550 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14551
14552         PR gcc/46902
14553         PR testsuite/46912
14554         * plugin.c: Move include of dlfcn.h from here...
14555         * system.h: ... to here.
14556
14557 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14558
14559         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14560         file name.
14561         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14562         two extra empty pages in PDF output.
14563
14564 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14565
14566         PR objc/47078
14567         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14568         for error recovery purposes behave as if it was not specified so
14569         that the default type is usd.
14570
14571 2011-01-07  Jan Hubicka  <jh@suse.cz>
14572
14573         PR tree-optmization/46469
14574         * ipa.c (function_and_variable_visibility): Clear needed flags on
14575         nodes with external decls; handle weakrefs merging correctly.
14576
14577 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14578
14579         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14580         not false.
14581
14582 2011-01-07  Jan Hubicka  <jh@suse.cz>
14583
14584         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14585         and no longer claim that gold is required for linker plugin.
14586         * configure: Regenerate.
14587         * gcc.c (PLUGIN_COND): New macro.
14588         (LINK_COMMAND_SPEC): Use it.
14589         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14590         * config.in (HAVE_LTO_PLUGIN): New.
14591         * configure.ac (--with-lto-plugin): New parameter; autodetect
14592         HAVE_LTO_PLUGIN.
14593
14594 2011-01-07  Jan Hubicka  <jh@suse.cz>
14595
14596         PR tree-optimization/46367
14597         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14598         when we can update original.
14599         (cgraph_mark_inline_edge): Sanity check.
14600         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14601
14602 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14603
14604         * config/spu/spu.h (ASM_COMMENT_START): Define.
14605
14606 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14607
14608         PR driver/42445
14609         * gcc.c (%>S): New.
14610         (SWITCH_KEEP_FOR_GCC): Likewise.
14611         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14612         (do_spec_1): Handle "%>".
14613
14614         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14615
14616 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14617
14618         PR target/47201
14619         * config/i386/i386.c (ix86_delegitimize_address): If
14620         simplify_gen_subreg fails, return orig_x.
14621
14622         PR bootstrap/47187
14623         * value-prof.c (gimple_stringop_fixed_value): Handle
14624         lhs of the call properly.
14625
14626 2011-01-07  Jan Hubicka  <jh@suse.cz>
14627
14628         PR lto/45375
14629         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14630
14631 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14632
14633         * target.def (function_switched_text_sections): New hook.
14634         * doc/tm.texi: Regenerated.
14635         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14636         * final.c (default_function_switched_text_sections): New.
14637         (final_scan_insn): Call function_switched_text_sections when a
14638         mid-function section change occurs.
14639         * output.h (default_function_switched_text_sections): Declare.
14640         * config/darwin-protos.h (darwin_function_switched_text_sections):
14641         Likewise.
14642         * config/darwin.c (darwin_function_switched_text_sections): New.
14643         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14644
14645 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14646
14647         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14648         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14649         the secondary code fragment when outputting for DWARF == 2.
14650
14651 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14652
14653         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14654         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14655         Remove.
14656         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14657         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14658
14659 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14660
14661         PR debug/46704
14662         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14663         when it is not empty.
14664
14665 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14666
14667         Bobcat Enablement
14668         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14669         (case ${target}): Add btver1.
14670         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14671         -march=native recognize btver1 processors.
14672         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14673         btver1 def_and_undef
14674         * config/i386/i386.c (struct processor_costs btver1_cost): New
14675         btver1 cost table.
14676         (m_BTVER1): New definition.
14677         (m_AMD_MULTIPLE): Includes m_BTVER1.
14678         (initial_ix86_tune_features): Add btver1 tune.
14679         (processor_target_table): Add btver1 entry.
14680         (static const char *const cpu_names): Add btver1 entry.
14681         (software_prefetching_beneficial_p): Add btver1.
14682         (ix86_option_override_internal): Add btver1 instruction sets.
14683         (ix86_issue_rate): Add btver1.
14684         (ix86_adjust_cost): Add btver1.
14685         * config/i386/i386.h (TARGET_BTVER1): New definition.
14686         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14687         (enum processor_type): Add PROCESSOR_BTVER1.
14688         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14689
14690 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14691
14692         PR target/43309
14693         * config/i386/i386.c (legitimize_tls_address)
14694         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14695         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14696         (tls_initial_exec_64_sun): New pattern.
14697
14698 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14699
14700         * doc/invoke.texi (Overall Options): Improve wording and markup
14701         of the description of -wrapper.
14702
14703 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14704
14705         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14706         rdynamic, threads): New Driver options.
14707
14708 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14709
14710         PR target/38118
14711         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14712         if coming from .tdata.
14713         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14714
14715 2011-01-06  Jan Hubicka  <jh@suse.cz>
14716
14717         PR lto/47188
14718         * collect2.c (main): Do not enable LTOmode when plugin is active.
14719
14720 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14721
14722         PR other/45915
14723         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14724         --version output if supported.
14725         * configure: Regenerate.
14726
14727 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14728
14729         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14730         Driver options.
14731
14732 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14733
14734         PR c/47150
14735         * c-convert.c (convert): When converting a complex expression
14736         other than COMPLEX_EXPR to a different complex type, ensure
14737         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14738         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14739         when converting COMPLEX_TYPE.
14740
14741 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14742
14743         PR tree-optimization/47139
14744         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14745         only the last reduction value is used outside the loop.  Update
14746         documentation.
14747
14748 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14749
14750         * config/rtems.opt: New.
14751         * config.gcc (*-*-rtems*): Use rtems.opt.
14752
14753 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14754
14755         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14756         processors do not support 3DNow instructions.
14757
14758 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14759
14760         * config/spu/spu.c (spu_option_override): Set parameter
14761         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14762
14763 2011-01-05  Jan Hubicka  <jh@suse.cz>
14764
14765         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14766         at the command line.
14767
14768 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14769
14770         PR lto/47162
14771         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14772         deltas on streamed outgoing edges.
14773         (output_node_opt_summary): Output info for outgoing edges only when
14774         the node is in new parameter set.
14775         (output_cgraph_opt_summary): New parameter set, passed to the two
14776         aforementioned functions.  Update its forward declaration and its
14777         callee too.
14778
14779 2011-01-05  Tom Tromey  <tromey@redhat.com>
14780
14781         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14782         operator to c_finish_omp_atomic.
14783         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14784         (build_unary_op): Update.
14785         (build_modify_expr): Update.
14786         (build_asm_expr): Update.
14787
14788 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14789
14790         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14791         newly inserted insns.
14792         (pad_bb): Likewise.
14793         (spu_emit_branch_hint): Likewise.
14794         (insert_hbrp_for_ilb_runout): Likewise.
14795         (spu_machine_dependent_reorg): Call df_finish_pass after
14796         schedule_insns returns.
14797
14798 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14799
14800         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14801
14802 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14803
14804         PR tree-optimization/47005
14805         * tree-sra.c (struct access): Add 'non_addressable' bit.
14806         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14807         (decide_one_param_reduction): Return 0 if the parameter is passed by
14808         reference and one of the accesses in the group is non_addressable.
14809
14810 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14811
14812         PR tree-optimization/47056
14813         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14814         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14815         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14816
14817 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14818
14819         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14820         initializer.  Skip view conversions from aggregate types.
14821
14822 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14823
14824         PR bootstrap/47055
14825         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14826
14827 2011-01-04  Philipp Thomas  <pth@suse.de>
14828
14829         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14830         obvious typo.
14831
14832 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14833
14834         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14835         on empty epilogue sequences.
14836
14837 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14838
14839         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14840         non-static): New Driver options.
14841
14842 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14843
14844         PR driver/47137
14845         * gcc.c (default_compilers[]): Set combinable field to 0
14846         for all assembly languages.
14847
14848 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14849
14850         * config/mips/loongson3a.md: New file.
14851         * config/mips/mips.md: Include loongson3a.md.
14852         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14853         TUNE_LOONGSON_3A.
14854
14855 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14856
14857         PR middle-end/47017
14858         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14859         instead of convert_memory_address_addr_space on the base expression.
14860
14861 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14862
14863         * config/spu/spu.c (spu_option_override): Update error text
14864         for bad -march= / -mtune= values.
14865
14866 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14867
14868         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14869         if branch-hint optimization will be performed.
14870
14871 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14872
14873         PR tree-optimization/47148
14874         * ipa-split.c (split_function): Convert arguments to
14875         DECL_ARG_TYPE if possible.
14876
14877         PR tree-optimization/47155
14878         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14879         when computing uns.
14880
14881         PR rtl-optimization/47157
14882         * combine.c (try_combine): If undobuf.other_insn becomes
14883         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14884         and set *new_direct_jump_p too.
14885
14886 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14887
14888         PR tree-optimization/47021
14889         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14890
14891 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14892
14893         * gcc.c (process_command): Update copyright notice dates.
14894         * gcov.c (print_version): Likewise.
14895         * gcov-dump.c (print_version): Likewise.
14896         * mips-tfile.c (main): Likewise.
14897         * mips-tdump.c (main): Likewise.
14898
14899 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14900
14901         PR tree-optimization/46801
14902         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14903         aggregate fields start at byte boundary instead of the bit-field flag.
14904
14905 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14906
14907         PR driver/47137
14908         * gcc.c (main): Revert revision 168407.
14909
14910 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14911
14912         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14913
14914 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14915
14916         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14917         vector optab to expand vector/scalar shift, update gimple to vector.
14918
14919 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14920
14921         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14922         a thunk.
14923
14924 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14925
14926         PR tree-optimization/46984
14927         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14928         HOST_WIDE_INT.
14929         (cgraph_create_indirect_edge): Fixed line length.
14930         (cgraph_indirect_call_info): Declare.
14931         (cgraph_make_edge_direct) Update declaration.
14932         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14933         (cgraph_create_indirect_edge): Use it.
14934         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14935         callees.
14936         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14937         the new thunk_delta representation.
14938         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14939         HOST_WIDE_INT.
14940         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14941         (ipa_read_indirect_edge_info): Likewise.
14942         * lto-cgraph.c (output_edge_opt_summary): New function.
14943         (output_node_opt_summary): Call it on all outgoing edges.
14944         (input_edge_opt_summary): New function.
14945         (input_node_opt_summary): Call it on all outgoing edges.
14946
14947 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14948
14949         PR driver/47137
14950         * gcc.c (main): Don't check have_o when settting combine_inputs.
14951
14952 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14953
14954         * regrename.c: Add general comment describing the pass.
14955         (struct du_head): Remove 'length' field.
14956         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14957         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14958         Force renaming to the preferred class (if any) in the first pass and do
14959         not consider registers that belong to it in the second pass.
14960         (create_new_chain): Do not set 'length' field.
14961         (scan_rtx_reg): Likewise.
14962
14963 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14964
14965         PR tree-optimization/47140
14966         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14967         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14968         to bit_value_binop.
14969
14970         PR rtl-optimization/47028
14971         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14972         parm_birth_insn instead of at the beginning of first bb.
14973
14974 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14975
14976         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14977         Remove the word "see" before "@pxref".
14978         * doc/rtl.texi: Remove the word "see" before "@pxref".
14979
14980 2011-01-01  Jan Hubicka  <jh@suse.cz>
14981
14982         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14983         memory.
14984
14985 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14986
14987         PR target/38662
14988         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14989
14990 \f
14991 Copyright (C) 2011 Free Software Foundation, Inc.
14992
14993 Copying and distribution of this file, with or without modification,
14994 are permitted in any medium without royalty provided the copyright
14995 notice and this notice are preserved.