gimple.c (gimple_register_type_1): Do not fiddle with main-variant or pointer-to...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-20  Richard Guenther  <rguenther@suse.de>
2
3         * gimple.c (gimple_register_type_1): Do not fiddle with
4         main-variant or pointer-to chains.  Delay all fixup to
5         uniquify_nodes.
6
7 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
8
9         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
10         (fma4_fmaddsub): Likewise
11
12 2011-05-19  Jan Hubicka  <jh@suse.cz>
13
14         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15         (GIMPLE_TYPE_PAIR_SIZE): New macro.
16         (type_pair_cache): New static var.
17         (lookup_type_pair): Use fixed sized custom hash; make inline.
18         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
19         calls of lookup_type_pair.
20         (print_gimple_types_stats): Remove cache stats.
21         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
22         and gtc_ob.
23
24 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
25
26         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
27         when TARGET_RDRND is active.
28         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
29         Generate dummy SImode target register when target is NULL.
30
31 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
32
33         * config/arm/arm-fpus.def: New.
34         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
35         arm-fpus.def.
36         * config/arm/arm-tables.opt: Regenerate.
37         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
38         (arm_option_override): Don't decode FPU name to string here.
39         * config/arm/arm.opt (mfpu=): Use Enum.
40         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
41         Update dependencies.
42
43 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
44
45         * collect2.c: Include diagnostic.h.
46         (fatal_perror, fatal, error, fancy_abort): Remove.
47         (main): Set progname.  Call xmalloc_set_program_name and
48         diagnostic_initialize.
49         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
50         scan_libraries, resolve_lib_name): Call fatal_error instead of
51         fatal and fatal_perror.
52         * collect2.h (error, fatal, fatal_perror): Don't declare.
53         * tlink.c: Include diagnostic-core.h.
54         (recompile_files): Call fatal_error instead of fatal_perror.
55         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
56         pretty-print.o and input.o.
57         (collect2.o, tlink.o): Update dependencies.
58
59 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
60
61         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
62
63 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
64
65         PR target/40483
66         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
67         COMDAT group syntax, both SPARC and x86 variants.
68         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
69         * configure: Regenerate.
70         * config/sol2.h (TARGET_SOLARIS): Define.
71         (PUSHSECTION_FORMAT): Remove.
72         (SECTION_NAME_FORMAT): Define.
73         * config/sol2.c: Include hashtab.h.
74         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
75         expansion, using SECTION_NAME_FORMAT.
76         (solaris_comdat_htab): New variable.
77         (struct comdat_entry): Define.
78         (comdat_hash): New function.
79         (comdat_eq): New function.
80         (solaris_elf_asm_comdat_section): New function.
81         (solaris_define_comdat_signature): New function.
82         (solaris_code_end): New function.
83         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
84         (solaris_code_end): Declare.
85         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
86         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
87         solaris_code_end.
88         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
89         Remove ATTRIBUTE_UNUSED.
90         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
91         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
92         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
93         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
94         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
95         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
96         (PUSHSECTION_FORMAT): Remove.
97         (SECTION_NAME_FORMAT): Redefine.
98
99 2011-05-19  Kai Tietz  <ktietz@redhat.com>
100
101         * tree-cfg.c (verify_gimple_assign_binary): Barf on
102         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
103         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
104
105 2011-05-19  Anatoly Sokolov <aesok@post.ru>
106             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
107
108         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
109
110 2011-05-19  Richard Guenther  <rguenther@suse.de>
111
112         PR middle-end/48985
113         * tree-object-size.c (addr_object_size): If the pointed-to
114         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
115
116 2011-05-19  Richard Guenther  <rguenther@suse.de>
117
118         * gimple.c (gimple_types_compatible_p_1): Compare names of
119         the types themselves.
120         (iterative_hash_gimple_type): And hash them that way.
121         (gimple_register_type_1): If we register a main variant properly
122         initialize the leader to ourselves.
123
124 2011-05-19  Tom de Vries  <tom@codesourcery.com>
125
126         PR target/45098
127         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
128         get_loop_invariant_expr_id.
129         (get_loop_invariant_expr_id): Use get_expr_id.
130         (parm_decl_cost): New function.
131         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
132         Improve bound cost estimation.  Use different inv_expr_id for elim and
133         express cases.
134
135 2011-05-19  Tom de Vries  <tom@codesourcery.com>
136
137         PR target/45098
138         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
139         cost_base.cost == 0.
140
141 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
142
143         PR target/49002
144         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
145         Properly handle load cast.
146
147 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
148
149         PR tree-optimization/49039
150         * tree-vrp.c (extract_range_from_binary_expr): For
151         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
152         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
153
154 2011-05-18  Tom de Vries  <tom@codesourcery.com>
155
156         PR target/45098
157         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
158
159 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
160
161         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
162         (*tls_global_dynamic_64): Ditto.
163         (*tls_local_dynamic_base_32_gnu): Ditto.
164         (*tls_local_dynamic_base_64): Ditto.
165         (tls_initial_exec_64_sun): Ditto.
166
167 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
168
169         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
170         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
171         bf592-none.
172         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
173         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
174         * config/bfin/bfin.c (bfin_cpus): Add bf592.
175         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
176         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
177         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
178         * config/bfin/elf.h (LIB_SPEC): Add bf592.
179
180 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
181
182         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
183         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
184         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
185         target_thread_pointer, arm_structure_size_boundary, struct
186         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
187         struct abi_name, arm_all_abis): Remove.
188         (arm_option_override) Don't process most enumerated option values here.
189         Don't process target_fpe_name here.  Work with integer not string for
190         structure size boundary; use separate diagnostics for each case.
191         * config/arm/arm.h (enum float_abi_type, enum
192         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
193         to arm-opts.h.
194         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
195         arm_structure_size_boundary): Remove.
196         * config/arm/arm.opt (mabi=): Use Enum and Init.
197         (arm_abi_type): New Enum and EnumValue entries.
198         (mfloat-abi=): Use Enum and Init.
199         (float_abi_type): New Enum and EnumValue entries.
200         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
201         (mfp16-format=): Use Enum and Init.
202         (arm_fp16_format_type): New Enum and EnumValue entries.
203         (mstructure-size-boundary=): Use UInteger and Init.
204         (mtp=): Use Enum and Init.
205         (arm_tp_type): New Enum and EnumValue entries.
206
207 2011-05-18  Richard Guenther  <rguenther@suse.de>
208
209         PR tree-optimization/49018
210         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
211         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
212         gimple_has_side_effects.
213
214 2011-05-18  Richard Guenther  <rguenther@suse.de>
215
216         * gimple.c (gimple_register_type_1): New function, split out from ...
217         (gimple_register_type): ... here.  Avoid infinite recursion.
218
219 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
220
221         PR tree-optimization/41881
222         * tree-vectorizer.h (struct _loop_vec_info): Add new field
223         reduction_chains along with a macro for its access.
224         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
225         (destroy_loop_vec_info): Free reduction chains.
226         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
227         (vect_is_slp_reduction): New function.
228         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
229         (vect_create_epilog_for_reduction): Support SLP reduction chains.
230         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
231         definition types for reduction chains.
232         (vect_supported_load_permutation_p): Don't allow permutations for
233         reduction chains.
234         (vect_analyze_slp_instance): Support reduction chains.
235         (vect_analyze_slp): Try to build SLP instance from reduction chains.
236         (vect_get_constant_vectors):  Handle reduction chains.
237         (vect_schedule_slp_instance): Mark the first statement of the
238         reduction chain as reduction.
239
240 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
241
242         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
243         names for group elements access.
244         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
245         reduction chains as well.  Remove data reference and interleaving
246         related words from the fields names.
247         * tree-vect-loop.c (vect_transform_loop): Use new names for group
248         elements access.
249         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
250         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
251         vect_update_interleaving_chain, vect_same_range_drs,
252         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
253         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
254         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
255         vect_analyze_group_access, vect_analyze_data_ref_access,
256         vect_create_data_ref_ptr, vect_transform_strided_load,
257         vect_record_strided_load_vectors): Likewise.
258         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
259         vect_model_load_cost, vectorizable_store, vectorizable_load,
260         vect_remove_stores, new_stmt_vec_info): Likewise.
261         * tree-vect-slp.c (vect_build_slp_tree,
262         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
263
264 2011-05-18  Richard Guenther  <rguenther@suse.de>
265
266         PR middle-end/48989
267         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
268         operand verification.
269         (verify_gimple_assign_binary): Likewise.
270         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
271         to non-1-precision BOOLEAN_TYPEs.
272
273 2011-05-18  Tom de Vries  <tom@codesourcery.com>
274
275         PR target/45098
276         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
277
278 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
279
280         PR tree-optimization/49000
281         * tree-ssa.c (execute_update_addresses_taken): Call
282         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
283         be rewritten and decl has been marked for renaming, reset
284         the debug stmt.
285
286 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
287
288         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
289         enum_opts_set when testing if attributes have set -mfpmath=.
290
291 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
292
293         * config/mips/mips.c (mips_handle_option): Remove unused variable.
294
295 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
296
297         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
298         info->entry with 0
299         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
300         id.transform_lang_insert_block with NULL.
301
302 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
303
304         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
305         (output_fp_compare): Change args 3 and 4 to bool.
306         (ix86_expand_call): Change arg 6 to bool.
307         (ix86_attr_length_immediate_default): Change arg 2 to bool.
308         (ix86_attr_length_vex_default): Change arg 3 to bool.
309         * config/i386/i386.md: Update all uses.
310         * config/i386/i386.c: Ditto.
311         (ix86_flags_dependent): Change return type to bool.
312
313 2011-05-17  Richard Guenther  <rguenther@suse.de>
314
315         * gimple.c (type_hash_pair_compare): Fix comparison.
316
317 2011-05-17  Richard Guenther  <rguenther@suse.de>
318
319         * gimple.c (iterative_hash_gimple_type): Simplify singleton
320         case some more, fix final hash value of the non-singleton case.
321
322 2011-05-17  Richard Guenther  <rguenther@suse.de>
323
324         PR bootstrap/49013
325         Revert
326         2011-05-16  Richard Guenther  <rguenther@suse.de>
327
328         * gimple.c (gimple_types_compatible_p_1): Use names of the
329         type itself, not its main variant.
330         (iterative_hash_gimple_type): Likewise.
331
332 2011-05-17  Richard Guenther  <rguenther@suse.de>
333
334         * gimple.c (gimple_register_canonical_type): Use the main-variant
335         leader for computing the canonical type.
336
337 2011-05-17  Nick Clifton  <nickc@redhat.com>
338
339         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
340         moves.
341
342         * config/rx/rx.md: Add peephole to remove redundant extensions
343         after loads.
344         (bitset_in_memory): Use rx_restricted_mem_operand.
345         (bitinvert_in_memory): Likewise.
346         (bitclr_in_memory): Likewise.
347
348 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
349             Nick Clifton  <nickc@redhat.com>
350
351         * config/rx/rx.md: Add peepholes to match a register move followed
352         by a comparison of the moved register.  Replace these with an
353         addition of zero that does both actions in one instruction.
354
355 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
356
357         PR target/48986
358         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
359         predicate to allow CONST_INT.
360         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
361
362 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
363
364         * opts-common.c (opt_enum_arg_to_value): New.
365         * opts.h (opt_enum_arg_to_value): Declare.
366         * config/i386/i386.opt (fpmath): Remove.
367         (mfpmath=): Use Enum, Init and Save.
368         (fpmath_unit): New Enum and EnumValue entries.
369         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
370         name for function fpmath state.
371         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
372         * config/i386/i386.c: Include diagnostic.h.
373         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
374         (ix86_target_string): Take enum fpmath_unit value instead of string.
375         (ix86_debug_options): Update call to ix86_target_string.
376         (ix86_option_override_internal): Don't process fpmath strings here.
377         (x86_function_specific_save, ix86_function_specific_restore):
378         Don't handle fpmath state specially.
379         (ix86_function_specific_print): Pass fpmath state to
380         ix86_target_string instead of printing in this function.
381         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
382         Handle enum attributes.
383         (IX86_ATTR_ENUM, ix86_opt_enum): New.
384         (ix86_valid_target_attribute_tree): Update option_strings
385         handling.  Handle fpmath as enum option.
386         (ix86_can_inline_p): Update field names for function fpmath state.
387         (ix86_expand_builtin): Update call to ix86_target_string.
388         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
389         (ix86_fpmath): Remove.
390         * config/i386/t-i386 (i386.o): Update dependencies.
391
392 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
393
394         PR preprocessor/48677
395         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
396         from decoded_options[0], not from itself.
397
398 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
399
400         * config/i386/constraints.md (z): New constraint.
401         * config/i386/i386.c (c): New mode attribute.
402         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
403         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
404         constraint for operand 0.
405         (*call_vzeroupper): Ditto.
406         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
407         (*call_rex64_ms_sysv_vzeroupper): Ditto.
408         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
409         Use "lzm" constraint for operand 0.
410         (*call_pop_vzeroupper): Ditto.
411         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
412         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
413         constraint for operand 0.
414         (*sibcall_vzeroupper): Ditto.
415         (*sibcall_rex64_ms_sysv): Ditto.
416         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
417         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
418         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
419         (*sibcall_pop_vzeroupper): Ditto.
420         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
421         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
422         mode iterator.  Use "<c>zm" constraint for operand 1.
423         (*call_value_vzeroupper): Ditto.
424         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
425         for operand 1.
426         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
427         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
428         *call_value_pop_1.  Use "lzm" constraint for operand 1.
429         (*call_value_pop_vzeroupper): Ditto.
430         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
431         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
432         mode iterator.  Use "Uz" constraint for operand 1.
433         (*sibcall_value_vzeroupper): Ditto.
434         (*sibcall_value_rex64_ms_sysv): Ditto.
435         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
436         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
437         constraint for operand 1.
438         (*sibcall_value_pop_vzeroupper): Ditto.
439         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
440         and "z" constraint for operand 2.
441         (*tls_global_dynamic_32_gnu): Ditto.
442         (*tls_local_dynamic_base_32_gnu): Ditto.
443         (*tls_local_dynamic_base_64): Ditto.
444         (*tls_local_dynamic_32_once): Ditto.
445         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
446         Update all callers.
447         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
448
449 2011-05-16  Richard Guenther  <rguenther@suse.de>
450
451         * gimple.c (gimple_types_compatible_p_1): Use names of the
452         type itself, not its main variant.
453         (iterative_hash_gimple_type): Likewise.
454
455 2011-05-16  Richard Guenther  <rguenther@suse.de>
456
457         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
458         always visit pointer target and function result and argument types.
459
460 2011-05-16  Jason Merrill  <jason@redhat.com>
461
462         PR c++/48999
463         * tree-inline.c (copy_statement_list): Put back recursion.
464
465 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
466
467         PR target/27663
468         PR target/41076
469         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
470         * config/avr/avr.md ("*ior<mode>qi.byte0",
471         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
472
473 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
474
475         PR target/45099
476         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
477         register is needed for a function argument.
478
479 2011-05-16  Richard Guenther  <rguenther@suse.de>
480
481         * gimple.c (struct type_hash_pair): New type.
482         (type_hash_pair_compare): New function.
483         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
484
485 2011-05-16  Revital Eres  <revital.eres@linaro.org>
486
487         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
488
489 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
490
491         * config/i386/i386.md (floating point move splitters): Fix
492         usage of standard_80387_constant_p.
493         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
494
495 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
496
497         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
498
499 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
500
501         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
502         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
503         (tree_ssa_lim_finalize): Likewise.
504
505 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
506
507         * config/i386/constraint.md (Yd, Yx): New register constraints.
508         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
509         Yd conditional register constraint.
510         (*movtf_internal): Use standard_sse_constant_opcode.
511         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
512         Yx conditional register constraint.
513         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
514         Yd conditional register constraint.  Use standard_sse_constant_p to
515         check for valid SSE constants and call standard_sse_constant_opcode to
516         output SSE insn.
517         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
518         constants and call standard_sse_constant_opcode to output SSE insn.
519         * config/i386/i386.c (ix86_option_ovverride_internal): Set
520         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
521         optimize_size is set.
522         (standard_sse_constant_opcode): Output conditional AVX insn templates.
523
524 2011-05-14  Tobias Burnus  <burnus@net-b.de>
525
526         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
527
528 2011-05-13  Martin Jambor  <mjambor@suse.cz>
529
530         * ipa-prop.c (ipa_cst_from_jfunc): New function.
531         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
532         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
533         (evaluate_conditions_for_ipcp_clone): Removed.
534         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
535         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
536         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
537
538 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
539
540         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
541         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
542         lieu of MAY_HAVE_DEBUG_STMTS.
543         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
544         debug statements if !MAY_HAVE_DEBUG_STMTS.
545
546 2011-05-13  Martin Thuresson  <martint@google.com>
547
548         PR gcov-profile/47793
549         * libgcov.c (gcov_exit): Support relative profile paths.
550         * doc/invoke.texi (-fprofile-dir): Update for above change.
551
552 2011-05-13  Richard Guenther  <rguenther@suse.de>
553
554         * gimple.c (gimple_canonical_types_compatible_p): Do not use
555         type-pair caching, do not compare hashes.
556
557 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
558
559         PR middle-end/48965
560         * tree-cfg.c (edge_to_cases_cleanup): Return true.
561         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
562
563 2011-05-13  Kai Tietz  <ktietz@redhat.com>
564
565         * gimplify.c (gimplify_expr): Make sure operand is boolified.
566         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
567         compatible type for TRUTH_NOT_EXPR.
568
569 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
570
571         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
572         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
573         can_create_pseudo_p ().
574
575 2011-05-13  Richard Guenther  <rguenther@suse.de>
576
577         PR lto/48978
578         * gimple.c (iterative_hash_gimple_type): Revert change in
579         pointer target and function result and argument hashing.
580
581 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
582
583         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
584         (*movxf_internal_nointeger): Ditto.
585         (*movdf_internal_rex64): Ditto.
586         (*movdf_internal): Ditto.
587         (*movdf_internal_nointeger): Ditto.
588         (*movsf_internal): Ditto.
589         (sincos splitters): Use can_create_pseudo ().
590
591 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
592
593         * config/i386/i386-opts.h: New.
594         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
595         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
596         ix86_section_threshold): Remove.
597         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
598         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
599         OPT_mbranch_cost_.
600         (ix86_option_override_internal): Don't decode strings for options
601         other than -march=, -mtune= and -mfpmath=.  Don't allow for
602         __attribute__ uses in remaining diagnostics for options with
603         string arguments.  Don't check for integer arguments being negative.
604         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
605         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
606         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
607         ix86_branch_cost, ix86_section_threshold): Remove.
608         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
609         HeaderInclude.
610         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
611         but not Var.
612         (masm=): Use Enum and Init.
613         (asm_dialect): New Enum and EnumValue entries.
614         (mbranch-cost=): Use UInteger.
615         (mlarge-data-threshold=): Use UInteger and Init.
616         (mcmodel=): Use Enum and Init.
617         (cmodel): New Enum and EnumValue entries.
618         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
619         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
620         mregparm=): Use UInteger.
621         (mstringop-strategy=): Use Enum and Init.
622         (stringop_alg): New Enum and EnumValue entries.
623         (mtls-dialect=): Use Enum and Init.
624         (tls_dialect): New Enum and EnumValue entries.
625         (mabi=): Use Enum and Init.
626         (calling_abi): New Enum and EnumValue entries.
627         (mveclibabi=): Use Enum and Init.
628         (ix86_veclibabi): New Enum and EnumValue entries.
629
630 2011-05-13  Nick Clifton  <nickc@redhat.com>
631
632         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
633         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
634
635 2011-05-13  Kai Tietz  <ktietz@redhat.com>
636
637         PR middle-end/48984
638         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
639         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
640         (gimple_boolify): Check for cast for boolean_type_node instead for
641         BOOLEAN_TYPE.
642
643 2011-05-13  Richard Guenther  <rguenther@suse.de>
644
645         PR tree-optimization/48172
646         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
647         multiplying by number of iterations for equal step.
648         (vect_create_cond_for_alias_checks): Likewise.
649
650 2011-05-13  Andreas Schwab  <schwab@redhat.com>
651
652         * configure.ac: Use AS_HELP_STRING throughout.
653         * configure: Regenerate.
654
655 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
656
657         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
658         (ix86_emit_restore_regs_using_mov): Likewise.
659         (ix86_emit_restore_sse_regs_using_mov): Likewise.
660
661 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
662
663         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
664         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
665         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
666         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
667         RTX_OK_FOR_OLO10_P): ...here.
668         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
669         SYMBOLIC_CONST.
670
671 2011-05-12  Kai Tietz  <ktietz@redhat.com>
672
673         * gimplify.c (gimple_boolify): Re-boolify expression
674         arguments even if expression type is of kind BOOLEAN_TYPE.
675         (gimplify_boolean_expr): Removed.
676         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
677         and XOR. Additional take care that we keep expression's type.
678         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
679         of TRUTH_AND|OR|XOR_EXPR.
680
681 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
682
683         PR tree-optimization/48975
684         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
685         on all bbs here and free and clear ifc_bbs at the end.
686
687 2011-05-12  Richard Guenther  <rguenther@suse.de>
688
689         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
690         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
691         until after simple checks.
692         (gimple_types_compatible_p): Likewise.
693         (iterative_hash_gimple_type): Always hash pointer targets
694         and function return and argument types.
695         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
696         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
697         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
698         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
699         completely in the simple compare section.
700         (gimple_register_canonical_type): Query the cache again after
701         registering.
702
703 2011-05-12  Richard Guenther  <rguenther@suse.de>
704
705         PR tree-optimization/48172
706         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
707         the number of iterations from the segment size calculation.
708         (vect_create_cond_for_alias_checks): Adjust.
709
710 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
711
712         PR debug/48967
713         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
714         if validate_subreg fails.
715
716 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
717
718         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
719         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
720         early.
721
722 2011-05-12  DJ Delorie  <dj@redhat.com>
723
724         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
725         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
726         created builtin into rx_builtins array.
727         (rx_builtin_decl): New function.
728         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
729
730 2011-05-12  DJ Delorie  <dj@redhat.com>
731             Nick Clifton  <nickc@redhat.com>
732
733         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
734         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
735         (rx_is_legitimate_address): Add pre-decrement and post-increment
736         addressing in HImode and QImode.  Fix test for out of range
737         REG+INT addressing.
738         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
739         (rx_align_for_label): Test label before extracting its usage count.
740         (rx_adjust_insn_lengths): Fix selection of insn codes.
741         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
742
743 2011-05-11  Jason Merrill  <jason@redhat.com>
744
745         * tree.c (type_hash_canon): Use struct tree_type_non_common.
746
747 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
748
749         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
750         reindent the subsequent block.
751
752 2011-05-11  Satoru Takabayashi  <satorux@google.com>
753             Paul Pluzhnikov  <ppluzhnikov@google.com>
754
755         * doc/install.texi (Configuration): Document --with-linker-hash-style.
756         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
757         * config.in: Add LINKER_HASH_STYLE.
758         * configure.ac: Add --with-linker-hash-style.
759         * configure: Regenerate.
760
761 2011-05-11  Richard Guenther  <rguenther@suse.de>
762
763         PR middle-end/48964
764         * gimple.c (iterative_hash_canonical_type): Fix typo.
765
766 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
767
768         * config/i386/i386.c (legitimize_tls_address)
769         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
770         expanders directly for TARGET_GNU2_TLS.  Determine pic and
771         __tls_get_addr symbol reference here.  Update call to
772         gen_tls_global_dynamic_{32,64} for added arguments.
773         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
774         expanders directly for TARGET_GNU2_TLS.  Determine
775         __tls_get_addr symbol reference here.  Update call to
776         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
777         unique UNSPEC REG_EQUIV to libcall block.
778         (ix86_tls_get_addr): Declare static.
779         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
780         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
781         Do not determine pic and __tls_get_addr symbol reference here. Do not
782         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
783         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
784         (tls_global_dynamic_64): Add operand 2.  Do not determine
785         __tls_get_addr symbol reference here.  Do not call
786         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
787         (tls_local_dynamic_base64): Ditto for operand 1.
788
789 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
790
791         * function.c (expand_function_start): Initialize stack_check_probe_note
792         only if the generic stack checking mechanism is used.
793
794 2011-05-11  Richard Guenther  <rguenther@suse.de>
795
796         PR tree-optimization/15256
797         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
798         (A & B) | C, combine (A op CST1) op CST2.
799         (tree_ssa_forward_propagate_single_use_vars): Only bother to
800         visit assigns that have uses.
801
802 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
803
804         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
805         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
806         (unpack_ts_type_common_value_fields): ...this.  Update comment.
807         (unpack_value_fields): Adjust for renaming.
808         (lto_input_ts_type_tree_pointers): Split into...
809         (lto_input_ts_type_common_tree_pointer): ...this and...
810         (lto_input_ts_type_non_common_tree_pointers): ...this.
811         (lto_input_tree_pointers): Adjust for above split.
812         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
813         (pack_ts_type_common_value_fields): ...this.  Update comment.
814         (lto_output_ts_type_tree_pointers): Split into...
815         (lto_output_ts_type_common_tree_pointers): ...this and...
816         (lto_output_ts_type_non_common_tree_pointers): ...this.
817         (lto_output_tree_pointers): Adjust for above split.
818         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
819         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
820         * stor-layout.c (vector_type_mode): Adjust location of mode field.
821         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
822         Define.
823         (struct tree_type): Split into...
824         (struct tree_type_common: ...this and...
825         (struct tree_type_with_lang_specific): ...this and...
826         (struct tree_type_non_common): ...this.  Adjust accessor macros
827         accordingly.
828         (TYPE_VALUES_RAW): Define.
829         (union tree_node): Update for above changes.
830         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
831         TS_TYPE_NON_COMMON.
832         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
833         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
834         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
835         * treestructu.def (TS_TYPE): Remove.
836         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
837         Define.
838
839 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
840
841         PR debug/48159
842         * tree-ssa.c (reset_debug_uses): New function.
843         * tree-flow.h (reset_debug_uses): New prototype.
844         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
845         * tree-loop-distribution.c (generate_loops_for_partition): Call
846         reset_debug_uses on the stmts that will be removed.  Keep around
847         all debug stmts, don't count them as bits in partition bitmap.
848         (generate_builtin): Don't count debug stmts or labels as bits in
849         partition bitmap.
850
851 2011-05-11  Richard Guenther  <rguenther@suse.de>
852
853         * gimple.c (gimple_type_hash_1): Merge with ...
854         (gimple_type_hash): ... this.
855         (gtc_visit): Remove mode parameter and simplify accordingly.
856         (gimple_types_compatible_p_1): Likewise.
857         (gimple_types_compatible_p): Likewise.
858         (iterative_hash_gimple_type): Likewise.
859         (visit): Likewise.
860         (gimple_type_eq): Adjust.
861
862 2011-05-11  Revital Eres  <revital.eres@linaro.org>
863
864         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
865         enters the branch create an anti edge in the opposite direction
866         to prevent the creation of reg-moves.
867         * modulo-sched.c: Adjust comment to reflect the fact we are
868         scheduling closing branch.
869         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
870         (stage_count): New field in struct partial_schedule.
871         (calculate_stage_count): New function.
872         (normalize_sched_times): Rename to reset_sched_times and handle
873         incrementing the sched time of the nodes by a constant value
874         passed as parameter.
875         (duplicate_insns_of_cycles): Skip closing branch.
876         (sms_schedule_by_order): Schedule closing branch.
877         (ps_insn_find_column): Handle closing branch.
878         (sms_schedule): Call reset_sched_times and adjust the code to
879         support scheduling of the closing branch.
880         (ps_insert_empty_row): Update calls to normalize_sched_times
881         and rotate_partial_schedule functions.
882
883 2011-05-11  Richard Guenther  <rguenther@suse.de>
884
885         PR middle-end/48953
886         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
887
888 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
889
890         * opts.c (finish_options): Move warning settings from process_options.
891         * toplev.c (process_options): Move warning settings to finish_options.
892
893 2011-05-11  Richard Guenther  <rguenther@suse.de>
894
895         PR tree-optimization/18041
896         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
897         (simplify_bitwise_binary): ... this.  Handle operand conversions
898         by applying them to the result instead.
899         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
900
901 2011-05-11  Richard Guenther  <rguenther@suse.de>
902
903         * gimple.c (gimple_canonical_types_compatible_p): Split out
904         from gimple_types_compatible_p and friends.  Do not recurse
905         to pointed-to types.
906         (gimple_canonical_type_eq): Use it.
907         (iterative_hash_canonical_type): Split out from
908         iterative_hash_gimple_type and friends.  Do not recurse
909         to pointed-to types.
910         (gimple_canonical_type_hash): Use it, allocate the hash here.
911
912 2011-05-11  Revital Eres  <revital.eres@linaro.org>
913
914         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
915         recognizing doloop.
916
917 2011-05-11  Revital Eres  <revital.eres@linaro.org>
918
919         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
920         instead of PREV_INSN.
921
922 2011-05-11  Revital Eres  <revital.eres@linaro.org>
923
924         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
925         * loop-doloop.c (doloop_condition_get): Likewise.
926         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
927         (doloop_end): New.
928         * config/arm/arm.md (*addsi3_compare0): Remove "*".
929
930 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
931
932         * tree.def (CASE_LABEL_EXPR): Add an operand.
933         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
934
935 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
936
937         * c-decl.c (c_override_global_bindings_to_false): Remove.
938         (global_bindings_p): Don't check
939         c_override_global_bindings_to_false.
940         * c-tree.h (c_override_global_bindings_to_false): Remove.
941         * c-typeck.c (composite_type): Don't set
942         c_override_global_bindings_to_false.
943
944 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
945
946         PR target/48857, 48495
947         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
948         (VSX_MODE): Ditto.
949         (VSX_MOVE_MODE): Ditto.
950         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
951         VSX vector types.  Add V2DImode.
952         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
953         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
954         (MODES_TIEABLE_P): Ditto.
955
956         * config/rs6000/rs6000.c (rs6000_emit_move): Use
957         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
958         VSX_VECTOR_MODE.
959         (init_cumulative_args): Ditto.
960         (rs6000_function_arg_boundary): Ditto.
961         (rs6000_function_arg_advance_1): Ditto.
962         (rs6000_function_arg): Ditto.
963         (rs6000_function_ok_for_sibcall): Ditto.
964         (emit_frame_save): Ditto.
965         (rs6000_function_value): Ditto.
966         (rs6000_libcall_value): Ditto.
967
968 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
969
970         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
971         i386/darwin-lib.h to $libgcc_tm_file.
972         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
973
974 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
975
976         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
977
978 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
979
980         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
981         * config/rs6000/rs6000-tables.opt: New file (generated).
982         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
983         rs6000/rs6000-tables.opt to extra_options.
984         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
985         * config/rs6000/rs6000.c (rs6000_select): Remove.
986         (processor_target_table): Move contents to rs6000-cpus.def.
987         (darwin_rs6000_override_options): Check
988         global_options_set.x_rs6000_cpu_index instead of
989         rs6000_select[1].string.
990         (rs6000_option_override_internal): Likewise.
991         (rs6000_handle_option): Don't assert that global structures are in
992         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
993         (rs6000_default_cpu): New variable.
994         (rs6000_file_start): Set it instead of local default_cpu.  Check
995         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
996         global_options_set.x_rs6000_tune_index instead of rs6000_select.
997         (rs6000_darwin_file_start): Check rs6000_default_cpu and
998         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
999         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1000         rs6000_select): Remove.
1001         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1002         Remove.
1003         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1004         * config/rs6000/t-rs6000
1005         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1006         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1007         global_options_set.x_rs6000_cpu_index instead of
1008         rs6000_select[1].string.
1009         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1010         global_options_set.x_rs6000_cpu_index instead of
1011         rs6000_select[1].string.
1012
1013 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1014
1015         * config.gcc (libgcc_tm_file): Define instead of including files
1016         from ../../libgcc/config/ in tm_file.
1017         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1018         * configure: Regenerate.
1019         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1020         libgcc_tm.h, cs-libgcc_tm.h): New.
1021         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1022         (clean): Remove libgcc_tm.h.
1023         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1024         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1025         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1026
1027 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1028
1029         PR target/48896
1030         * config/avr/avr.c (avr_ret_register): Return unsigned int
1031         instead of int.
1032         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1033         it to avr_libcall_value.
1034         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1035         expand_expr.
1036         (avr_expand_binop_builtin): Ditto.
1037         (avr_expand_unop_builtin): Ditto.
1038
1039 2011-05-10  DJ Delorie  <dj@redhat.com>
1040
1041         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1042         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1043         * config/rx/rx.c (rx_align_for_label): Add label and
1044         uses_threshold parameters.  Do not align when the label is not
1045         used enough.
1046         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1047
1048 2011-05-10  Richard Guenther  <rguenther@suse.de>
1049
1050         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1051         a series of conversions and apply foldings similar to what
1052         fold-const does.
1053         (tree_ssa_forward_propagate_single_use_vars): Call it.
1054
1055 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1056
1057         PR tree-optimization/48611
1058         PR tree-optimization/48794
1059         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1060         referenced from RESX or EH_DISPATCH arguments.
1061
1062         PR debug/48928
1063         * dfp.c (decimal_to_decnumber): Handle conversion from
1064         dconst{1,2,m1,half}.
1065
1066 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1067
1068         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1069         for !flag_prefer_avx128.
1070         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1071
1072 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1073
1074         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1075         (fold_ternary_loc): Use expr_location_or.
1076
1077 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1078
1079         PR debug/48853
1080         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1081         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1082         Pmode and mem_mode is not VOIDmode.
1083
1084 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1085
1086         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1087         TYPE_QUAL_RESTRICT): Convert to enum.
1088
1089 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1090
1091         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1092         (const_pow2_1_to_8_operand): Ditto.
1093         (const_pow2_1_to_128_operand): Ditto.
1094         (const_pow2_1_to_32768_operand): Ditto.
1095         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1096         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1097         in insn constraint to check integer value of operand 3.
1098         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1099
1100         (PINSR_MODE): New mode iterator.
1101         (sse2p4_1): New mode attribute.
1102         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1103         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1104         iterator.  Use const_int_operand instead of
1105         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1106         exact_log2 in insn constraint to check integer value of operand 3.
1107
1108 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1109
1110         * config/i386/sse.md (blendbits): Remove mode attribute.
1111         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1112         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1113         Check integer value of operand 3 in insn constraint.
1114
1115 2011-05-09  Richard Guenther  <rguenther@suse.de>
1116
1117         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1118         for diagnostics.
1119         (lto_symtab_merge): Likewise.  Do not register types here.
1120         (lto_symtab_merge_decls_2): Likewise.
1121         (lto_symtab_merge_decls_1): Likewise.
1122         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1123         * gimple.c (enum gtc_mode): Declare.
1124         (gimple_types_compatible_p): Make static.
1125
1126 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1127
1128         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1129         temporary register to match Pmode.
1130
1131 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1132
1133         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1134         and *vec_concatv4si_1_avx.
1135
1136 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1137
1138         PR rtl-optimization/48927
1139         * ira-conflicts.c (commutative_constraint_p): Use
1140         recog_data.alternative_enabled_p to disable alternatives where
1141         "enabled" attribute is false.
1142         (get_dup_num): Ditto.
1143         * ira-lives.c (single_reg_class): Ditto.
1144         (ira_implicitly_set_insn_hard_regs): Ditto.
1145
1146 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1147
1148         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1149         (dataflow_set_preserve_mem_locs): Likewise.
1150
1151 2011-05-09  Philipp Thomas  <pth@suse.de>
1152
1153         * config/mep/mep.c (mep_validate_vliw): Syntax description
1154         should not be translated.
1155
1156 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1157
1158         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1159         * config/mips/mips-tables.opt: New file (generated).
1160         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1161         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1162         MIPS_ARCH_OPTION_NATIVE): Define.
1163         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1164         mips-cpus.def.
1165         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1166         mips_parse_cpu): Remove.
1167         (mips_cpu_info_from_opt, mips_default_arch): New.
1168         (mips_handle_option): Don't assert that global structures are in
1169         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1170         (mips_option_override): Use new variables and functions to set
1171         state of these options.  Use strcmp to check for individual CPU names.
1172         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1173         definition.
1174         * config/mips/mips.opt (march=): Use ToLower and Enum.
1175         (mips): Use ToLower, Enum and Var.
1176         (mtune=): Use ToLower and Enum.
1177         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1178
1179 2011-05-08  Jan Hubicka  <jh@suse.cz>
1180
1181         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1182         Arrange type pairs to be UID ordered.
1183         (gimple_lookup_type_leader): Make inline.
1184
1185 2011-05-09  Nick Clifton  <nickc@redhat.com>
1186
1187         PR target/48899
1188         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1189         PROCESSOR_DEFAULT.
1190
1191         PR target/48897
1192         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1193         variable 's'.
1194
1195 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1196
1197         * combine.c (simplify_comparison): Abstract out parts into...
1198         (simplify_compare_const): ... new function.
1199         (try_combine): Generalize parallel arithmetic/compare combining
1200         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1201
1202 2011-05-08  Jan Hubicka  <jh@suse.cz>
1203
1204         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1205         (cgraph_create_virtual_clone): Call hooks once virtual clone
1206         is finished.
1207         * cgraph.h (cgraph_clone_node): Update prototype.
1208         * ipa-cp.c (ipcp_estimate_growth): Use
1209         estimate_ipcp_clone_size_and_time.
1210         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1211         * lto-cgraph.c (input_node): Update.
1212         * ipa-inline.c (recursive_inlining): Update.
1213         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1214         (evaluate_conditions_for_known_args): Break out from ...
1215         (evaluate_conditions_for_edge): ... here.
1216         (evaluate_conditions_for_ipcp_clone): New function.
1217         (inline_node_duplication_hook): Update clone summary based
1218         on parameter map.
1219         (estimate_callee_size_and_time): Rename to ...
1220         (estimate_node_size_and_time): take NODE instead of EDGE;
1221         take POSSIBLE_TRUTHS as argument.
1222         (estimate_callee_size_and_time): Update.
1223         (estimate_ipcp_clone_size_and_time): New function.
1224         (do_estimate_edge_time): Update.
1225
1226 2011-05-08  Richard Guenther  <rguenther@suse.de>
1227
1228         PR middle-end/48908
1229         PR middle-end/48905
1230         * expmed.c (expand_shift_1): Compute adjusted constant shift
1231         amount manually.
1232
1233 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1234
1235         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1236
1237 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1238
1239         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1240
1241 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1242
1243         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1244
1245 2011-05-07  Jan Hubicka  <jh@suse.cz>
1246
1247         * ipa-inline-transform.c (inline_call): Account when program size
1248         decreases.
1249         * ipa-inline.c (relative_time_benefit): New function.
1250         (edge_badness): Reorganize to be power 2 based; fix thinko when
1251         computing badness for negative growth; update comments to match
1252         reality; better dumps.
1253
1254 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1255
1256         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1257         type to bool and adjust comment.
1258         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1259         (fold_mathfn_compare): Remove calls to global_bindings_p.
1260         (fold_inf_compare): Likewise.
1261         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1262         * c-tree.h (global_bindings_p): Adjust prototype.
1263         * c-decl.c (global_bindings_p): Return bool and simplify.
1264
1265 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1266
1267         PR tree-optimization/48837
1268         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1269         when accumulator transformation is performed.
1270
1271 2011-05-06  Jan Hubicka  <jh@suse.cz>
1272
1273         * i386.h (ix86_tune_indices): Add
1274         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1275         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1276         * i386.c (initial_ix86_tune_features): Add
1277         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1278         (software_prefetching_beneficial_p): Remove predicate.
1279         (ix86_option_override_internal): Use new macro.
1280
1281 2011-05-06  Jan Hubicka  <jh@suse.cz>
1282
1283         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1284
1285 2011-05-06  Jan Hubicka  <jh@suse.cz>
1286
1287         * cgraph.c (cgraph_add_thunk): Create real function node instead
1288         of alias node; finalize it and mark needed/reachale; arrange visibility
1289         to be right and add it into the corresponding same comdat group list.
1290         (dump_cgraph_node): Dump thunks.
1291         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1292         cgraph_function_with_gimple_body_p,
1293         cgraph_first_function_with_gimple_body,
1294         cgraph_next_function_with_gimple_body): New functions.
1295         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1296         New macros.
1297         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1298         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1299         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1300         devirtualization when optimizing.
1301         (verify_cgraph_node): Verify thunks.
1302         (cgraph_analyze_function): Analyze thunks.
1303         (cgraph_mark_functions_to_output): Output thunks only in combination
1304         with function they are assigned to.
1305         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1306         alias into normal node.
1307         (assemble_thunks): New functoin.
1308         (cgraph_expand_function): Use it.
1309         * lto-cgraph.c (lto_output_node): Stream thunks.
1310         (input_overwrite_node): Stream in thunks.
1311         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1312         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1313         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1314         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1315         (inline_analyze_function): Do not care about thunk jump functions.
1316         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1317         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1318         cgraph_function_with_gimple_body_p.
1319         * passes.c (do_per_function_toporder): Use
1320         cgraph_function_with_gimple_body_p.
1321         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1322         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1323         (function_called_by_processed_nodes_p): Likewise.
1324
1325 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1326
1327         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1328         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1329         entries.
1330         (mabi=): Replace with separate entries for mabi=altivec,
1331         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1332         mabi=ieeelongdouble and mabi=ibmlongdouble.
1333         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1334         check for -mabi=spe without SPE ABI support here.
1335         (rs6000_handle_option): Replace OPT_mabi_ handling with
1336         OPT_mabi_altivec and OPT_mabi_spe handling.
1337
1338 2011-05-06  Cary Coutant  <ccoutant@google.com>
1339
1340         * dwarf2out.c (contains_subprogram_definition): New function.
1341         (should_move_die_to_comdat): Call it.
1342
1343 2011-05-06  Jeff Law  <law@redhat.com>
1344
1345         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1346         remove_ctrl_stmt_and_useless_edges.
1347         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1348         (fixup_template_block, thread_single_edge): Likewise.
1349         (mark_threaded_blocks): Use THREAD_TARGET.
1350
1351 2011-05-06  Alan Modra  <amodra@gmail.com>
1352
1353         PR target/48900
1354         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1355         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1356
1357 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1358
1359         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1360         constraint modifier to "r".
1361
1362 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1363
1364         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1365         fall through for OPT_mcmodel_.
1366
1367 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1368
1369         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1370         instruction sizes.
1371         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1372
1373 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1374
1375         PR target/47930
1376         * config/arm/arm.opt (marm): Document it.
1377         (mthumb): Reject negative variant.
1378
1379 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1380
1381         PR target/48898
1382         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1383         Fix typo in "ccvt" variable name.
1384
1385 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1386
1387         PR target/48895
1388         * config/vms/vms-ar.c (main): Remove cwd variable.
1389
1390 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1391
1392         PR debug/48902
1393         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1394
1395 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1396
1397         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1398         * gimplify.c (gimplify_switch_expr): Likewise.
1399         * omp-low.c (expand_omp_sections): Likewise.
1400         * tree-eh.c (lower_try_finally_switch): Likewise.
1401         (lower_eh_dispatch): Likewise.
1402         * tree.h (build_case_label): Declare.
1403         * tree.c (build_case_label): Define.
1404
1405 2011-05-05  Jason Merrill  <jason@redhat.com>
1406
1407         PR c++/40975
1408         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1409         (copy_statement_list): Don't recurse.
1410         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1411         STATEMENT_LIST.
1412
1413 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1414
1415         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1416         through from -mfpu= handling.
1417         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1418
1419 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1420
1421         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1422         POST_MODIFY.
1423
1424 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1425
1426         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1427         for 11.31.
1428         (hppa[12]*-*-hpux11*): Ditto.
1429         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1430         * config/ia64/hpux-unix2003.h: New.
1431         * config/pa/pa-hpux1131.opt: New.
1432         * config/pa/pa-hpux1131.h: New.
1433         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1434         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1435         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1436
1437 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1438
1439         PR debug/48853
1440         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1441         instead of mode as 3rd argument to recursive call.
1442         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1443         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1444         VOIDmode.
1445         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1446         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1447         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1448         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1449
1450 2011-05-05  Julian Brown  <julian@codesourcery.com>
1451
1452         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1453         parenthesis in D-register case.
1454
1455 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1456
1457         * opt-functions.awk (var_type_struct): Handle Enum options.
1458         * optc-gen.awk: Don't check range of variables of character type.
1459         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1460         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1461         rs6000_sdata_name, rs6000_explicit_options): Remove.
1462         (rs6000_option_override_internal): Check for -malign-power here.
1463         Use global_options_set instead of rs6000_explicit_options.
1464         (rs6000_parse_fpu_option): Remove.
1465         (rs6000_handle_option): Access variables via opts and opts_set
1466         pointers.  Use error_at and warning_at.  Add fall-through
1467         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1468         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1469         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1470         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1471         here.  Don't use rs6000_parse_fpu_option.
1472         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1473         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1474         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1475         (mrecip=): Use Var.
1476         (mspe): Use Var and Save.
1477         (mtraceback=): Use Enum and Var.
1478         (rs6000_traceback_type): New Enum and EnumValue entries.
1479         (mfloat-gprs=): Use Enum, Var and Save.
1480         (rs6000_float_gprs): New Enum and EnumValue entries.
1481         (mlong-double-): use Var and Save.
1482         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1483         (malign-): Use Enum and Var.
1484         (rs6000_alignment_flags): New Enum and EnumValue entries.
1485         (mfpu=): Use Enum.
1486         (fpu_type_t): New Enum and EnumValue entries.
1487         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1488         global_options_set instead of rs6000_explicit_options.
1489         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1490         global_options_set instead of rs6000_explicit_options.
1491         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1492         global_options_set instead of rs6000_explicit_options.
1493         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1494         global_options_set instead of rs6000_explicit_options.
1495         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1496         global_options_set instead of rs6000_explicit_options.
1497         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1498         global_options_set instead of rs6000_explicit_options.
1499         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1500         definition.
1501         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1502         global_options_set instead of rs6000_explicit_options.
1503         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1504         (rs6000_cmodel): New Enum and EnumValue entries.
1505         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1506         global_options_set instead of rs6000_explicit_options.
1507         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1508         (mtls-size=): Use Enum and Var.
1509         (rs6000_tls_size): New Enum and EnumValue entries.
1510
1511 2011-05-05  Michael Matz  <matz@suse.de>
1512
1513         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1514         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1515         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1516         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1517         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1518         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1519         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1520         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1521         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1522         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1523         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1524         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1525         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1526         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1527         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1528         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1529
1530 2011-05-05  Richard Guenther  <rguenther@suse.de>
1531
1532         * expmed.c (expand_variable_shift): Rename to ...
1533         (expand_shift_1): ... this.  Take an expanded shift amount.
1534         For rotates recurse directly not building trees for the shift amount.
1535         (expand_variable_shift): Wrap around expand_shift_1.
1536         (expand_shift): Adjust.
1537
1538 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1539
1540         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1541
1542 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1543
1544         * tree.h (get_pending_sizes): Remove prototype.
1545         (put_pending_size): Likewise.
1546         (put_pending_sizes): Likewise.
1547         * stor-layout.c (pending_sizes): Delete.
1548         (get_pending_sizes): Likewise.
1549         (put_pending_size): Likewise.
1550         (put_pending_sizes): Likewise.
1551         (variable_size): Do not call put_pending_size and tidy up.
1552         * function.h (struct function): Remove dont_save_pending_sizes_p.
1553         * lto-streamer-in.c (input_function): Do not stream it.
1554         * lto-streamer-out.c (output_function): Likewise.
1555         * tree-inline.c (initialize_cfun): Do not copy it.
1556         * c-decl.c (store_parm_decls): Do not set it.
1557         * omp-low.c (create_task_copyfn): Likewise.
1558         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1559
1560 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1561
1562         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1563         conditions.
1564         (*movdf_internal): Ditto.
1565         (*movdf_internal_nointeger): Ditto.
1566         (*movsf_internal): Ditto.
1567
1568 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1569
1570         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1571         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1572         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1573         (c_variable_size): Remove.
1574         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1575         call put_pending_sizes.
1576         (get_parm_info): Add parameter expr.  Use it to set
1577         arg_info->pending_sizes.
1578         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1579         get_pending_sizes.
1580         * c-parser.c (c_parser_parms_declarator): Update call to
1581         c_parser_parms_list_declarator.
1582         (c_parser_parms_list_declarator): Take parameter expr.  Update
1583         call to push_parm_decl.  Update recursive call.  Don't call
1584         get_pending_sizes.  Update calls to get_parm_info.
1585         (c_parser_objc_method_definition): Update calls to
1586         c_parser_objc_method_decl and objc_start_method_definition.
1587         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1588         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1589         grokparm.
1590         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1591         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1592         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1593
1594 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1595
1596         PR pch/45979
1597         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1598         __ARM_EABI__ hosts.
1599
1600 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1601
1602         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1603         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1604         (spu_output_mi_thunk): New function.
1605
1606 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1607
1608         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1609         targetm.asm_out.print_operand.
1610         * config/sol2.c: Include target.h.
1611
1612 2011-05-04  Jan Hubicka  <jh@suse.cz>
1613
1614         * ipa-inline.c (reset_edge_caches): New function.
1615         (update_caller_keys): Add check_inlinablity_for; do not
1616         reset edge caches; remove now unnecesary loop.
1617         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1618         (update_all_callee_keys): Likewise.
1619         (inline_small_functions): Sanity check cache; update code
1620         recomputing it.
1621
1622 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1623
1624         PR rtl-optimization/47612
1625         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1626         as the last insn of the sequence to be moved.
1627
1628 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1629
1630         PR fortran/48864
1631         * doc/invoke.texi (Ofast): Document that it
1632         enables Fortran's -fno-protect-parens.
1633
1634 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1635
1636         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1637
1638 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1639
1640         * stor-layout.c (variable_size): Do not issue errors.
1641
1642 2011-05-04  Richard Guenther  <rguenther@suse.de>
1643
1644         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1645         for array-ref indices.
1646         (tree_coverage_counter_addr): Likewise.
1647         (build_fn_info_type): Use size_int for index types.
1648         (build_gcov_info): Likewise.
1649
1650 2011-05-04  Richard Guenther  <rguenther@suse.de>
1651
1652         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1653         to build_int_cst.
1654         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1655         for constructor indices.
1656         (push_init_level): Likewise.
1657
1658 2011-05-04  Richard Guenther  <rguenther@suse.de>
1659
1660         * explow.c (promote_mode): Move variable declarations before code.
1661
1662 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1663
1664         * tree.h (build_function_type_array): Declare.
1665         (build_varargs_function_type_array): Declare.
1666         (build_function_type_vec, build_varargs_function_type_vec): Define.
1667         * tree.c (build_function_type_array_1): New function.
1668         (build_function_type_array): New function.
1669         (build_varargs_function_type_array): New function.
1670
1671 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1672
1673         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1674         before setting STMT_VINFO_TYPE.
1675
1676 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1677
1678         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1679         instead of spu_pass_by_reference.
1680
1681 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1682
1683         * calls.c (emit_library_call_value_1): Invoke
1684         promote_function_mode hook on libcall arguments.
1685         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1686         argument being NULL.
1687         * targhooks.c (default_promote_function_mode): Lisewise.
1688         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1689         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1690
1691         * doc/tm.texi: Document that TYPE argument might be NULL.
1692
1693 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1694
1695         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1696
1697 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1698
1699         From Bernd Schmidt
1700         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1701
1702 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1703
1704         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1705         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1706         Move ...
1707         * mips-tfile.c: ... here.
1708         Don't include coretypes.h, tm.h, filenames.h.
1709         (saber_stop): Remove definition and all calls.
1710         [__SABER__]: Remove.
1711         (__LINE__): Remove default.
1712         (Size_t, Ptrdiff_t): Remove definitions.
1713         Replace by size_t, ptrdiff_t.
1714         [!MIPS_DEBUGGING_INFO]: Remove.
1715         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1716         (progname): Add const.
1717         (STATIC): Remove.
1718         Replace all uses by static.
1719         (ALIGN_SYMTABLE_OFFSET): Remove default.
1720         * mips-tdump.c: Don't include coretypes.h, tm.h.
1721         Remove !MIPS_IS_STAB guard.
1722         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1723         $(TM_H), filenames.h dependencies.
1724         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1725
1726 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1727
1728         From Jie Zhang
1729         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1730         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1731
1732 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1733
1734         From Bernd Schmidt
1735         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1736         account and save/restore RETS.
1737         (PROFILE_BEFORE_PROLOGUE): Define.
1738         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1739         the push insn to use predecrement.
1740
1741 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1742
1743         From Jie Zhang
1744         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1745
1746 2011-05-04  Nick Clifton  <nickc@redhat.com>
1747
1748         * config/mn10300/mn10300.c: Include cfgloop.h.
1749         (DUMP): New macro.
1750         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1751         Lcc or a FLcc insn into the instruction stream.
1752         (mn10300_block_contains_call): New function.  Returns true if the
1753         given basic block contains a CALL insn.
1754         (mn10300_loop_contains_call_insn): New function.  Returns true if
1755         the given loop contains a CALL insn.
1756         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1757         to use the SETLB and Lcc or FLcc insns.
1758         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1759         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1760         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1761         disable the SETLB optimization.
1762         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1763         __SETLB__ or __NO_SETLB__.
1764         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1765         (movsf_internal): Handle MDR register.
1766         (cmpsi): Make visible.
1767         (setlb): New pattern.
1768         (Lcc): New pattern.
1769         (FLcc): New pattern.
1770
1771 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1772
1773         PR target/48860
1774         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1775         for reg<->xmm moves.
1776         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1777         (vec_concatv2di_rex64_sse): Ditto.
1778         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1779         (*vec_extractv2di_1_rex64): Ditto.
1780
1781         Revert:
1782         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1783
1784         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1785         reg<->xmm moves.
1786         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1787
1788 2011-05-04  Richard Guenther  <rguenther@suse.de>
1789
1790         * tree.h (int_const_binop): Remove notrunc argument.
1791         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1792         create integer constants that are properly truncated.
1793         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1794         (const_binop): Remove zero notrunc argument to int_const_binop.
1795         (size_binop_loc): Likewise.
1796         (fold_div_compare): Likewise.
1797         (maybe_canonicalize_comparison_1): Likewise.
1798         (fold_comparison): Likewise.
1799         (fold_binary_loc): Likewise.
1800         (multiple_of_p): Likewise.
1801         * expr.c (store_constructor): Likewise.
1802         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1803         (maybe_fold_stmt_addition): Likewise.
1804         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1805         * stor-layout.c (layout_type): Likewise.
1806         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1807         * tree-sra.c (build_ref_for_offset): Likewise.
1808         (build_user_friendly_ref_for_offset): Likewise.
1809         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1810         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1811         * tree-ssa-loop-niter.c (inverse): Likewise.
1812         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1813         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1814         * tree-switch-conversion.c (check_range): Likewise.
1815         (build_constructors): Likewise.
1816         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1817         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1818         (extract_range_from_assert): Likewise.
1819         (vrp_int_const_binop): Likewise.
1820         (extract_range_from_binary_expr): Likewise.
1821         (extract_range_from_unary_expr): Likewise.
1822         (check_array_ref): Likewise.
1823         (find_case_label_range): Likewise.
1824         (simplify_div_or_mod_using_ranges): Likewise.
1825         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1826         comparing case labels for merging.
1827
1828 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1829
1830         * dwarf2out.c (debug_str_hash_forced): Removed.
1831         (gen_label_for_indirect_string): Removed.
1832         (get_debug_string_label): Removed.
1833         (AT_string_form): Generate label directly.
1834         (output_indirect_string): Test indirect_string_node for
1835         DW_FORM_strp instead of checking label and refcount.
1836         (prune_indirect_string): Removed.
1837         (prune_unused_types): Don't check debug_str_hash_forced or
1838         call prune_indirect_string.
1839
1840 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1841
1842         PR other/48093
1843         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1844
1845 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1846
1847         PR debug/47994
1848         PR debug/47919
1849         * combine.c (try_combine): Skip debug insns at m_split tests.
1850
1851 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1852
1853         PR42288
1854         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1855         when info_section_emitted.
1856
1857 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1858
1859         * config/mips/mips-opts.h: New.
1860         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1861         to mips-opts.h.
1862         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1863         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1864         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1865         via opts pointer.
1866         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1867         mips-opts.h.
1868         (mips_abi, mips_code_readable): Don't declare.
1869         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1870         (mabi=): Use Enum and Var.
1871         (mips_abi): New Enum and EnumValue entries.
1872         (mcode-readable=): Use Enum and Var.
1873         (mips_code_readable_setting): New Enum and EnumValue entries.
1874         (mr10k-cache-barrier=): Use Enum and Var.
1875         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1876
1877 2011-05-03  Jan Hubicka  <jh@suse.cz>
1878
1879         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1880         replace hash by pointer map.
1881         (cgraph_node_set_element_def, cgraph_node_set_element,
1882         const_cgraph_node_set_element, varpool_node_set_element_def,
1883         varpool_node_set_element, const_varpool_node_set_element): Remove.
1884         (free_cgraph_node_set, free_varpool_node_set): New function.
1885         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1886         * tree-emutls.c: Free varpool node set.
1887         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1888         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1889         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1890         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1891         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1892         Move here from ipa.c; implement using pointer_map
1893         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1894         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1895         debug_cgraph_node_set, varpool_node_set_new,
1896         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1897         dump_varpool_node_set, debug_varpool_node_set):
1898         Move to ipa-uitls.c.
1899         * passes.c (ipa_write_summaries): Update.
1900
1901 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1902
1903         From Mike Frysinger:
1904         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1905         bf542/bf544/bf547/bf548/bf549.
1906
1907 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1908
1909         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1910
1911 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1912
1913         From Bernd Schmidt:
1914         * config/bfin/bfin.md (MOVCC): New mode_macro.
1915         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1916         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1917         comments from generated assembly.
1918
1919 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1920
1921         From Bernd Schmidt
1922         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1923         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1924         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1925         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1926         * config/bfin/lib1funcs.asm (___muldi3): New function.
1927
1928 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1929
1930         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1931         build_function_type_list instead of build_function_type.
1932         Rearrange initialization of `args' to do so.
1933
1934 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1935
1936         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1937         instead of build_function_type.
1938
1939 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1940
1941         * config/rs6000/rs6000.c (spe_init_builtins): Call
1942         build_function_type_list instead of build_function_type.
1943         (paired_init_builtins, altivec_init_builtins): Likewise.
1944         (builtin_function_type): Likewise.
1945
1946 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1947
1948         * config/sh/sh.c (sh_media_init_builtins): Call
1949         build_function_type_list instead of build_function_type.
1950
1951 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1952
1953         * config/sparc/sparc.c (sparc_file_end): Call
1954         build_function_type_list instead of build_function_type.
1955
1956 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1957
1958         * config/alpha/alpha.c (alpha_init_builtins): Call
1959         build_function_type_list instead of build_function_type.
1960
1961 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1962
1963         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1964         build_function_type_list instead of build_function_type.
1965
1966 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1967
1968         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1969         build_function_type_list instead of build_function_type.
1970         Delete `endlink' variable.
1971
1972 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1973
1974         * config/avr/avr.c (avr_init_builtins): Call
1975         build_function_type_list instead of build_function_type.
1976
1977 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1978
1979         * config/picochip/picochip.c (picochip_init_builtins): Call
1980         build_function_type_list instead of build_function_type.
1981         Delete `endlink' variable.
1982
1983 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1984
1985         * config/bfin/bfin.c (bfin_init_builtins): Call
1986         build_function_type_list instead of build_function_type.
1987
1988 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1989
1990         From Bernd Schmidt
1991         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1992         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1993
1994 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1995
1996         From Jie Zhang:
1997         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1998         libbffastfp overrides libgcc when -mfast-fp.
1999
2000 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2001
2002         Originally from Bernd Schmidt
2003         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2004         * config/bfin/bfin.c (override_options): Test it and error if
2005         TARGET_FDPIC.
2006
2007 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2008
2009         Originally From Bernd Schmidt
2010         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2011         FD-PIC.
2012
2013 2011-05-03  Jeff Law  <law@redhat.com>
2014
2015         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2016         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2017         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2018         than accessing AUX field directly.  Free the AUX field before
2019         clearing it.
2020         (thread_block, thread_through_loop_header): Likewise.
2021         (thread_single_edge, mark_threaded_blocks): Likewise.
2022         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2023         (register_jump_thread): Do not attempt to thread to a NULL edge.
2024
2025 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2026
2027         * function.c (init_function_start): Call decide_function_section.
2028         * varasm.c (decide_function_section): New function.
2029         (assemble_start_function): When not using
2030         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2031         or first_function_block_is_cold.
2032         * rtl.h (decide_function_section): Declare.
2033
2034 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2035             Jakub Jelinek  <jakub@redhat.com>
2036
2037         PR target/48774
2038         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2039         only succeed if req_mode is the same as set_mode.
2040
2041 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2042
2043         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2044         * genemit.c (gen_exp): Handle RETURN.
2045         * emit-rtl.c (verify_rtx_sharing): Likewise.
2046         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2047         * rtl.c (copy_rtx): RETURN is shared.
2048         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2049         (ret_rtx): New.
2050         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2051         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2052         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2053         * config/cris/cris.c (cris_expand_return): Likewise.
2054         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2055         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2056         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2057         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2058         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2059         Likewise.
2060         * config/v850/v850.c (expand_epilogue): Likewise.
2061         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2062         * config/arm/arm.md (epilogue): Likewise.
2063         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2064         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2065         variable to ret_reg.
2066
2067 2011-05-03  Richard Guenther  <rguenther@suse.de>
2068
2069         PR lto/48846
2070         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2071         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2072         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2073
2074 2011-05-03  Richard Guenther  <rguenther@suse.de>
2075
2076         * c-decl.c (grokdeclarator): Instead of looking at
2077         TREE_OVERFLOW check if the constant fits in the index type.
2078
2079 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2080
2081         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2082         (vec_store_lanes<mode><mode>): Likewise.
2083
2084 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2085
2086         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2087         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2088         convert_optab_index values.
2089         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2090         * genopinit.c (optabs): Initialize the new optabs.
2091         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2092         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2093         (expand_STORE_LANES): New functions.
2094         * tree.h (build_array_type_nelts): Declare.
2095         * tree.c (build_array_type_nelts): New function.
2096         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2097         (vect_model_load_cost): Likewise.
2098         (vect_store_lanes_supported, vect_load_lanes_supported)
2099         (vect_record_strided_load_vectors): Declare.
2100         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2101         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2102         (vect_transform_strided_load): Split out statement recording into...
2103         (vect_record_strided_load_vectors): ...this new function.
2104         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2105         (write_vector_array, create_array_ref): New functions.
2106         (vect_model_store_cost): Add store_lanes_p argument.
2107         (vect_model_load_cost): Add load_lanes_p argument.
2108         (vectorizable_store): Try to use store-lanes functions for
2109         interleaved stores.
2110         (vectorizable_load): Likewise load-lanes and loads.
2111         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2112         to vect_model_store_cost.
2113         (vect_build_slp_tree): Likewise vect_model_load_cost.
2114
2115 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2116
2117         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2118         * hooks.c (hook_bool_mode_uhwi_false): New function.
2119         * target.def (array_mode_supported_p): New hook.
2120         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2121         * doc/tm.texi: Regenerate.
2122         * stor-layout.c (mode_for_array): New function.
2123         (layout_type): Use it.
2124         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2125         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2126
2127 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2128
2129         PR target/48723
2130         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2131         for -fstack-check if the size to allocate is negative.
2132
2133 2011-05-02  Lawrence Crowl  <crowl@google.com>
2134
2135         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2136         (timevar_cond_start): New for starting a timer only when it is not
2137         already running.
2138         (timevar_cond_stop): New for stopping a timer when it was not already
2139         running.
2140
2141         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2142         (timevar_cond_start): New as above.
2143         (timevar_cond_stop): New as above.
2144
2145         * timevar.def: Add start/stop timers for compiler phases,
2146         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2147         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2148         and TV_PHASE_FINALIZE.
2149         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2150         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2151         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2152         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2153         Make unused TV_OVERLOAD into a start/stop timer.
2154
2155         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2156         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2157         to indicate that they are start/stop timers.
2158
2159         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2160         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2161         Move initialization to do_compile.
2162         (do_compile): Add initialization from above.
2163         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2164
2165         * c-decl.c (c_write_global_declarations): Add start/stop of
2166         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2167
2168         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2169         or TV_PARSE_INLINE, as appropriate.
2170         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2171         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2172
2173 2011-05-02  Jason Merrill  <jason@redhat.com>
2174
2175         PR c++/40975
2176         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2177
2178 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2179
2180         PR c/35445
2181         * c-decl.c (finish_decl): Only create a composite if the types are
2182         compatible.
2183
2184 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2185
2186         * config/fr30/fr30-protos.h (Mmode): Don't define.
2187         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2188         definition where used.
2189         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2190         define.  Expand definitions where used.
2191         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2192         Expand definitions where used.
2193         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2194         rx_function_arg, rx_function_arg_advance,
2195         rx_function_arg_boundary): Expand definitions of those macros.
2196         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2197         definition where used.
2198
2199 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2200
2201         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2202         reg<->xmm moves.
2203         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2204         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2205         with *movv2sf_internal_rex64_avx.
2206         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2207         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2208         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2209         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2210         "vex" in "prefix" attribute calculation.
2211         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2212
2213 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2214
2215         PR target/47951
2216         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2217         inputs match the output.
2218
2219 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2220
2221         PR target/47955
2222         * config/m68k/m68k.c (m68k_expand_prologue): Set
2223         current_function_static_stack_size.
2224
2225 2011-05-02   Jan Hubicka  <jh@suse.cz>
2226
2227         * lto-streamer.c (lto_streamer_cache_insert_1,
2228         lto_streamer_cache_lookup, lto_streamer_cache_create,
2229         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2230         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2231
2232 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2233
2234         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2235         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2236         config/m68k/t-opts: New files.
2237         * config/m68k/m68k-tables.opt: New file (generated).
2238         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2239         extra_options and m68k/t-opts to tmake_file.
2240         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2241         (all_isas): Initialize using m68k-isas.def.
2242         (all_microarchs): Initialize using m68k-microarchs.def.
2243         (m68k_find_selection): Remove.
2244         (m68k_handle_option): Don't assert that global structures are in
2245         use.  Use error_at.  Access variables via opts pointer.  Don't
2246         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2247         directly for -m68020-40 and -m68020-60.
2248         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2249         m68k_tune_entry here.
2250         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2251         to m68k-opts.h.
2252         (m68k_library_id_string): Remove declaration.
2253         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2254         (m68k_library_id_string): New Variable.
2255         (march=, mcpu=, mtune=): Use Enum and Var.
2256
2257 2011-05-02  Richard Guenther  <rguenther@suse.de>
2258
2259         * varasm.c (output_constructor_regular_field): Compute zero-based
2260         index with double-ints.  Make sure to ICE instead of producing
2261         wrong code.
2262         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2263         in asserts.  Properly use a signed type.
2264
2265 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2266
2267         * config/i386/sse.md (V): New mode iterator.
2268         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2269         TARGET_SSE2.
2270         (V_256): Rename from AVX256MODE.
2271         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2272         condition to all users.
2273         (VF1): Ditto.
2274         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2275         condition to all users.
2276         (VF_128): Make V4SF mode unconditional.
2277         (VF_256): Rename from AVX256MODEF2P.
2278         (VI4F_128): Rename from SSEMODE4S.
2279         (VI8F_128): Rename from SSEMODE2D.
2280         (VI4F_256): Rename from AVX256MODE8P.
2281         (VI8F_256): Rename from AVX256MODE4P.
2282         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2283         (ssescalarmodesuffix): Remove SF and DF modes.
2284         (SSEMODE124): Remove.
2285         (SSEMODE1248): Ditto.
2286         (SSEMODEF2P): Ditto.
2287         (AVXMODEF2P): Ditto.
2288         (AVXMODEFDP): Ditto.
2289         (AVXMODEFSP): Ditto.
2290         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2291         unconditional.
2292         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2293         unconditional.
2294         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2295         xop_pcmov_<mode>256.  Use V mode iterator.
2296
2297         Adjust RTX patterns globally for renamed mode attributes.
2298
2299 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2300
2301         * haifa-sched.c (sched_emit_insn): Emit insn before first
2302         non-scheduled insn.  Inform back-end about new insn.  Add
2303         new insn to scheduled_insns list.
2304
2305 2011-05-02  Richard Guenther  <rguenther@suse.de>
2306
2307         PR tree-optimization/48822
2308         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2309         (process_scc): Indicate which iteration we start.
2310
2311 2011-05-02  Jan Hubicka  <jh@suse.cz>
2312
2313         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2314         (lto_section_overrun): New.
2315         * lto-section-out.c (append_block): Rename to ...
2316         (lto_append_block): ... this one; export.
2317         (lto_output_1_stream): Move lto lto-streamer.h
2318         (lto_output_data_stream): Update.
2319         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2320         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2321         functions.
2322
2323 2011-05-02  Richard Guenther  <rguenther@suse.de>
2324
2325         * tree.c (tree_code_counts): New global array.
2326         (record_node_allocation_statistics): Count individual tree codes.
2327         (dump_tree_statistics): Dump individual code stats.
2328
2329 2011-05-01  Jan Hubicka  <jh@suse.cz>
2330
2331         * ipa-inline.c (caller_growth_limits): Fix thinko when
2332         looking for largest stack frame.
2333         * ipa-inline.h (dump_inline_summary): Declare.
2334         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2335         on stack usage.
2336         (dump_inline_summary): Export.
2337         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2338
2339 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2340
2341         * reginfo.c (memory_move_cost): Change rclass argument type form
2342         'enum reg_class' to reg_class_t.
2343         * reload.h (memory_move_cost): Update prototype.
2344         * postreload.c reload_cse_simplify_set): Change type dclass var to
2345         reg_class_t.
2346         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2347         Update prototype.
2348         (ira_allocate_and_set_costs): Change aclass argument type form
2349         'enum reg_class' to reg_class_t.
2350         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2351         Change aclass argument type to reg_class_t.
2352         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2353         to reg_class_t.
2354         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2355         memory_move_cost call.
2356
2357         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2358         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2359         Change type tmp var to reg_class_t.
2360
2361 2011-04-30  Jan Hubicka  <jh@suse.cz>
2362
2363         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2364         inlining into function with flatten attribute.
2365         (want_inline_small_function_p): Be more realistic about inlining
2366         cold calls where callee size grows.
2367
2368 2011-04-30  Jan Hubicka  <jh@suse.cz>
2369
2370         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2371         flags.
2372
2373 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2374
2375         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2376         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2377         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2378         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2379         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2380         (print_operand): Rename to...
2381         (sparc_print_operand): ...this. Make static. Adjust
2382         sparc_print_operand function call.
2383         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2384         functions.
2385
2386 2011-04-30  Jan Hubicka  <jh@suse.cz>
2387
2388         PR middle-end/48752
2389         * ipa-inline.c (early_inliner): Disable when doing late
2390         addition of function.
2391
2392 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2393
2394         * dwarf2out.c (get_address_mode): New inline.
2395         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2396         if not dwarf_strict emit
2397         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2398         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2399         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2400         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2401         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2402         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2403         mem_loc_descriptor callers.
2404         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2405         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2406         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2407         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2408         (base_types): New variable.
2409         (get_base_type_offset, calc_base_type_die_sizes,
2410         base_type_for_mode, mark_base_types, base_type_cmp,
2411         move_marked_base_types): New functions.
2412         (calc_die_sizes): Assert that die_offset is 0 or equal to
2413         next_die_offset.
2414         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2415         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2416         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2417         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2418         (gen_subprogram_die): Don't give up on call site parameters
2419         with non-integral or large integral modes.  Adjust
2420         mem_loc_descriptor callers.
2421         (prune_unused_types): Call prune_unused_types_mark on base_types
2422         vector entries.
2423         (resolve_addr): Call mark_base_types.
2424         (dwarf2out_finish): Call move_marked_base_types.
2425
2426         PR tree-optimization/48809
2427         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2428         type.
2429         (gen_inbound_check): Don't compute index_expr - range_min in utype
2430         again, instead reuse SSA_NAME initialized in build_arrays.
2431         Remove two useless gsi_for_stmt calls.
2432
2433 2011-04-29  Jeff Law  <law@redhat.com>
2434
2435         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2436
2437 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2438
2439         * cgraph.h (cgraph_postorder): Remove declaration.
2440         * ipa-utils.h (ipa_free_postorder_info): Declare.
2441         (ipa_reverse_postorder): Likewise.
2442         * cgraphunit.c: Include ipa-utils.h.
2443         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2444         * ipa-inline.c: Include ipa-utils.h.
2445         (ipa_inline): Update call to ipa_reverse_postorder.
2446         * ipa-pure-const.c (propagate_pure_const): Update call to
2447         ipa_reduced_postorder and ipa_print_order.  Call
2448         ipa_free_postorder_info to clean up.
2449         (propagate_nothrow): Likewise.
2450         * ipa-reference.c (propagate): Removed a useless call to
2451         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2452         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2453         * ipa.c: Include ipa-utils.h.
2454         (ipa_profile): Update call to ipa_reverse_postorder.
2455         (cgraph_postorder): Moved to...
2456         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2457         (ipa_utils_print_order): Renamed to ipa_print_order.
2458         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2459         comments.
2460         (ipa_free_postorder_info): New function.
2461         * passes.c: Include ipa-utils.h.
2462         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2463         (ipa_write_summaries): Likewise.
2464         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2465         (cgraphunit.o): Likewise.
2466         (ipa.o): Likewise.
2467         (ipa-inline.o): Likewise.
2468
2469 2011-04-29  Jan Hubicka  <jh@suse.cz>
2470
2471         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2472         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2473         * ipa-inline.h (clause_t): Turn into unsigned int.
2474         * ipa-inline-analysis.c (add_clause): Do more simplification.
2475         (and_predicates): Shortcut more cases.
2476         (predicates_equal_p): Move forward; check that clauses are properly
2477         ordered.
2478         (or_predicates): Shortcut more cases.
2479         (edge_execution_predicate): Rewrite as...
2480         (set_cond_stmt_execution_predicate): ... this function; handle
2481         __builtin_constant_p.
2482         (set_switch_stmt_execution_predicate): New .
2483         (compute_bb_predicates): New.
2484         (will_be_nonconstant_predicate): Update TODO.
2485         (estimate_function_body_sizes): Use compute_bb_predicates
2486         and free them later, always try to estimate if stmt is constant.
2487         (estimate_time_after_inlining, estimate_size_after_inlining):
2488         Gracefully handle optimized out edges.
2489         (read_predicate): Fix off by one error.
2490
2491 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2492
2493         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2494
2495 2011-04-27  Xinliang David Li  <davidxl@google.com>
2496
2497         * tree-profile.c (init_ic_make_global_vars): Set
2498         tls attribute on ic vars.
2499         * coverage.c (coverage_end_function): Initialize
2500         function_list with zero.
2501
2502 2011-04-29  Richard Guenther  <rguenther@suse.de>
2503
2504         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2505         for the type of the result.
2506         (fold_builtin_isascii): Likewise.
2507         (fold_builtin_toascii): Use integer_type_node where appropriate.
2508         (fold_builtin_logb): Likewise.
2509         (fold_builtin_frexp): Likewise.
2510         (fold_builtin_strstr): Likewise.
2511         (fold_builtin_strpbrk): Likewise.
2512         (fold_builtin_fputs): Likewise.
2513         (fold_builtin_sprintf): Likewise.
2514         (fold_builtin_snprintf): Likewise.
2515         (fold_builtin_printf): Likewise.
2516         (do_mpfr_remquo): Use a proper type for the assigned constant.
2517         (do_mpfr_lgamma_r): Likewise.
2518         * dwarf2out.c (resolve_one_addr): Use size_int.
2519         * except.c (init_eh): Likewise.
2520         (assign_filter_values): Use integer_type_node for filter values.
2521         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2522         indices.
2523         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2524         for EH region numbers.
2525         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2526         for the shift amount.
2527
2528 2011-04-29  Richard Guenther  <rguenther@suse.de>
2529
2530         * expr.h (expand_shift): Rename to ...
2531         (expand_variable_shift): ... this.
2532         (expand_shift): Take a constant shift amount.
2533         * expmed.c (expand_shift): Rename to ...
2534         (expand_variable_shift): ... this.
2535         (expand_shift): New wrapper around expand_variable_shift.
2536         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2537         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2538         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2539         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2540         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2541         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2542         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2543         emit_store_flag_1, emit_store_flag): Likewise.
2544         * builtins.c (expand_builtin_signbit): Likewise.
2545         * calls.c (load_register_parameters): Likewise.
2546         * function.c (assign_parm_setup_block): Likewise.
2547         * lower-subreg.c (resolve_shift_zext): Likewise.
2548         * optabs.c (widen_bswap, expand_abs_nojump,
2549         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2550         * spu/spu.c (spu_expand_extv): Likewise.
2551         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2552
2553 2011-04-29  Richard Guenther  <rguenther@suse.de>
2554
2555         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2556         for the remapped region number.
2557         * predict.c (build_predict_expr): Use integer_type_node for the
2558         predict kind.
2559         * fold-const.c (fold_binary_loc): Use integer_type_node for
2560         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2561
2562 2011-04-29  Michael Matz  <matz@suse.de>
2563
2564         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2565         other trees that just builtins.
2566         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2567
2568 2011-04-29  Richard Guenther  <rguenther@suse.de>
2569
2570         * tree-nested.c (get_trampoline_type): Use size_int.
2571         (get_nl_goto_field): Likewise.
2572         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2573         for all indexes.
2574         (lower_eh_constructs_2): Likewise.
2575         (lower_resx): Likewise.
2576         (lower_eh_dispatch): Likewise.
2577         * tree-mudflap.c (mf_build_string): Use size_int.
2578         (mudflap_register_call): Use integer_type_node for the flag.
2579         (mudflap_enqueue_constant): Use size_int.
2580         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2581         instead of rebuilding it.
2582
2583 2011-04-29  Richard Guenther  <rguenther@suse.de>
2584
2585         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2586         Handle OBJ_TYPE_REF.
2587         (find_func_aliases_for_call): Use it more consistently.
2588
2589 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2590
2591         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2592         (rank_for_schedule): Use it.
2593         (schedule_block): Set it.
2594
2595 2011-04-28  David Li  <davidxl@google.com>
2596
2597         * tree.c (crc32_string): Use crc32_byte.
2598         (crc32_byte): New function.
2599         * tree.h (crc32_byte): New function.
2600         * gcov.c (read_graph_file): Handle new cfg_cksum.
2601         (read_count_file): Ditto.
2602         * profile.c (instrument_values): Ditto.
2603         (get_exec_counts): Ditto.
2604         (read_profile_edge_counts): Ditto.
2605         (compute_branch_probabilities): Ditto.
2606         (compute_value_histograms): Ditto.
2607         (branch_prob): Ditto.
2608         (end_branch_prob): Ditto.
2609         * coverage.c (read_counts_file): Ditto.
2610         (get_coverage_counts): Ditto.
2611         (tree_coverage_counter_addr): Ditto.
2612         (coverage_checksum_string): Ditto.
2613         (coverage_begin_output): Ditto.
2614         (coverage_end_function): Ditto.
2615         (build_fn_info_type): Ditto.
2616         (build_fn_info_value): Ditto.
2617         * libgcov.c (gcov_exit): Ditto.
2618         * gcov-dump.c (tag_function): Ditto.
2619         (compute_checksum): Remove.
2620
2621 2011-04-29  Alan Modra  <amodra@gmail.com>
2622
2623         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2624         unspec plus offset.  Tidy macho code.
2625
2626 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2627
2628         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2629         node instead of a decl.  Update all callers.
2630         * cgraph.h: Update declaration.
2631
2632 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2633
2634         PR tree-optimization/48765
2635         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2636         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2637         to indicate if loop aware SLP is being used.  Scan the statements
2638         and update the vectorization factor according to the type of
2639         vectorization before statement analysis.
2640         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2641         pass it to vect_analyze_loop_operations.
2642         (vectorizable_reduction): Set number of copies to 1 in case of pure
2643         SLP statement.
2644         * tree-vect-stmts.c (vectorizable_conversion,
2645         vectorizable_assignment, vectorizable_shift,
2646         vectorizable_operation, vectorizable_type_demotion,
2647         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2648         Likewise.
2649         (vectorizable_condition): Move the check that it is not SLP
2650         vectorization before the number of copies check.
2651         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2652         to vectorize the loop using SLP.
2653
2654 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2655
2656         PR middle-end/48597
2657         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2658         inline asm.
2659
2660 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2661
2662         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2663         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2664         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2665         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2666         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2667         linux*.h headers.
2668         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2669         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2670         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2671         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2672         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2673         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2674         REG_NAME.
2675         * config/i386/linux.h (REG_NAME): Don't define.
2676         * config/i386/linux64.h (REG_NAME): Don't define.
2677         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2678         Undefine before defining.
2679
2680 2011-04-28  Jan Hubicka  <jh@suse.cz>
2681
2682         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2683         nonconstant_names array.
2684         (estimate_function_body_sizes): Build nonconstant_names array; handle
2685         BUILT_IN_CONSTANT_P.
2686
2687 2011-04-28  Richard Guenther  <rguenther@suse.de>
2688
2689         PR bootstrap/48804
2690         Revert
2691         2011-04-28  Richard Guenther  <rguenther@suse.de>
2692
2693         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2694         as late as possible.
2695
2696 2011-04-28  Richard Guenther  <rguenther@suse.de>
2697
2698         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2699         (debug_constraint): Do it here.
2700         (dump_constraints): And here.
2701         (rewrite_constraints): And here.
2702         (dump_constraint_edge): Remove.
2703         (dump_constraint_graph): Rewrite to produce DOT output.
2704         (solve_constraints): Build succ graph as late as possible.
2705         Dump constraint graphs before and after solving.
2706
2707 2011-04-28  Richard Guenther  <rguenther@suse.de>
2708
2709         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2710         New function split out from ...
2711         (find_func_aliases): ... here.  Call it.
2712         (find_func_aliases_for_call): Likewise.
2713
2714 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2715
2716         * internal-fn.h (internal_fn_name_array): Declare.
2717         (internal_fn_flags_array): Likewise.
2718
2719 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2720
2721         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2722         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2723         Move from sse.md.
2724         (ssemodefsuffix): Remove.
2725         (ssevecmodesuffix): New mode attribute.
2726         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2727         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2728         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2729         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2730         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2731         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2732         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2733         ssemodesuffix mode attribute.
2734         (float splitters): Use ssevecmodesuffix mode attribute.
2735         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2736         (sseinsmode): Rename from avxvecmode.
2737         (avxsizesuffix): Rename from avxmodesuffix.
2738         (sseintvecmode): Rename from avxpermvecmode.
2739         (ssedoublevecmode): Rename from ssedoublesizemode.
2740         (ssehalfvecmode): Rename from avxhalfvecmode.
2741         (ssescalarmode): Rename from avxscalarmode.
2742         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2743         templates for ssemodesuffix mode attribute.
2744         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2745         mode attribute.
2746
2747         Adjust RTX patterns globally for renamed mode attributes.
2748
2749 2011-04-27  Jan Hubcika  <jh@suse.cz>
2750
2751         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2752         * ipa-inline-analysis.c: Include alloc-pool.h.
2753         (edge_predicate_pool): New.
2754         (trye_predicate_p): New function
2755         (false_predicate_p): New function.
2756         (add_clause): Sanity check that false clauses are "optimized";
2757         never add clauses to predicate that is already known to be false.
2758         (and_predicate): Use flase_predicate_p.
2759         (evaulate_predicate): Rename to ...
2760         (evaluate_predicate): ... this one; update all callers; assert
2761         that false is not listed among possible truths.
2762         (dump_predicate): Use true_predicate_p.
2763         (account_size_time): Use false_predicate_p.
2764         (evaulate_conditions_for_edge): Rename to ...
2765         (evaluate_conditions_for_edge) ... this one.
2766         (edge_set_predicate): New function.
2767         (inline_edge_duplication_hook): Duplicate edge predicates.
2768         (inline_edge_removal_hook): Free edge predicates.
2769         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2770         (dump_inline_summary): Update.
2771         (estimate_function_body_sizes): Set edge predicates.
2772         (estimate_calls_size_and_time): Handle predicates.
2773         (estimate_callee_size_and_time): Update.
2774         (remap_predicate): Add toplev_predicate; update comment.
2775         (remap_edge_predicates): New function.
2776         (inline_merge_summary): Compute toplev predicate; update.
2777         (read_predicate): New function.
2778         (read_inline_edge_summary): Use it.
2779         (inline_read_section): Likewise.
2780         (write_predicate): New function.
2781         (write_inline_edge_summary): Use it.
2782         (inline_write_summary): Likewise.
2783         (inline_free_summary): Free alloc pool and edge summary vec.
2784
2785 2011-04-27  Richard Guenther  <rguenther@suse.de>
2786
2787         * tree-ssa-structalias.c (changed_count): Remove.
2788         (changed): Use a bitmap.
2789         (unify_nodes): Adjust.
2790         (do_sd_constraint): Likewise.
2791         (do_ds_constraint): Likewise.
2792         (do_complex_constraint): Likewise.
2793         (solve_graph): Likewise.
2794
2795 2011-04-27  Jan Hubicka  <jh@suse.cz>
2796
2797         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2798
2799 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2800
2801         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2802         (avx_vperm2f128_*_operand): Ditto.
2803         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2804         Use avx_vpermilp_parallel in insn condition.
2805         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2806         Use avx_vperm2f128_parallel in insn condition.
2807
2808 2011-04-27  Richard Guenther  <rguenther@suse.de>
2809
2810         * Makefile.in (tree-ssa-structalias.o): Remove
2811         gt-tree-ssa-structalias.h dependency.
2812         (GTFILES): Remove tree-ssa-structalias.c.
2813         * tree.c (allocate_decl_uid): New function.
2814         (make_node_stat): Use it.
2815         (copy_node_stat): Likewise.
2816         * tree.h (allocate_decl_uid): Declare.
2817         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2818         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2819         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2820         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2821         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2822         (struct heapvar_map): Likewise.
2823         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2824         heapvar_insert): Likewise.
2825         (make_heapvar_for): Rename to ...
2826         (make_heapvar): ... this.  Simplify.
2827         (fake_var_decl_obstack): New global var.
2828         (build_fake_var_decl): New function.
2829         (make_constraint_from_heapvar): Adjust.
2830         (handle_lhs_call): Likewise.
2831         (create_function_info_for): Likewise.
2832         (intra_create_variable_infos): Likewise.
2833         (init_alias_vars): Allocate fake_var_decl_obstack.
2834         (init_alias_heapvars, delete_alias_heapvars): Remove.
2835         (compute_points_to_sets): Do not call init_alias_heapvars.
2836         (ipa_pta_execute): Likewise.
2837         (delete_points_to_sets): Free fake_var_decl_obstack.
2838
2839 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2840
2841         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2842         (si_from_UTItype, si_to_UTItype): New functions.
2843         (__udivmodti4): Use them to implement type-punning.
2844         * config/spu/multi3.c (union qword_TItype): New data type.
2845         (si_from_TItype, si_to_TItype): New functions.
2846         (__multi3): Use them to implement type-punning.
2847
2848 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2849
2850         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2851
2852 2011-04-27  Jan Hubicka  <jh@suse.cz>
2853
2854         * ipa-prop.c (function_insertion_hook_holder): New holder.
2855         (ipa_add_new_function): New function.
2856         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2857         Register/deregister holder.
2858
2859 2011-04-27  Richard Guenther  <rguenther@suse.de>
2860
2861         PR tree-optimization/48772
2862         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2863
2864 2011-04-27  Richard Guenther  <rguenther@suse.de>
2865
2866         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2867         TARGET_MEM_REF handling.
2868
2869 2011-04-27  Nick Clifton  <nickc@redhat.com>
2870
2871         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2872         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2873         (REG_CLASS_NAMES): Likewise.
2874         (REG_CLASS_CONTENTS): Likewise.
2875         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2876         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2877         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2878         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2879         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2880         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2881         duplicate register classes.
2882         (frv_class_likely_spilled_p): Likewise.
2883         (frv_register_move_cost): Likewise.
2884
2885         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2886         end of the regno_reg_class array.
2887
2888 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2889
2890         PR c/48742
2891         * c-typeck.c (build_binary_op): Don't wrap arguments if
2892         int_operands is true.
2893
2894 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2895
2896         PR target/48767
2897         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2898         targetm.calls.must_pass_in_stack for void type.
2899
2900 2011-04-26  Jan Hubicka  <jh@suse.cz>
2901
2902         * cgraphbuild.c (build_cgraph_edges): Update call
2903         of cgraph_create_edge and cgraph_create_indirect_edge.
2904         * cgraph.c (cgraph_create_edge_including_clones,
2905         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2906         cgraph_update_edges_for_call_stmt_node): Do not take nest
2907         argument; do not initialize call_stmt_size/time.
2908         (dump_cgraph_node): Do not dump nest.
2909         (cgraph_clone_edge): Do not take loop_nest argument;
2910         do not propagate it; do not clone call_stmt_size/time.
2911         (cgraph_clone_node): Likewise.
2912         (cgraph_create_virtual_clone): Update.
2913         * cgraph.h (struct cgraph_edge): Remove
2914         call_stmt_size/call_stmt_time/loop_nest.
2915         (cgraph_create_edge, cgraph_create_indirect_edge,
2916         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2917         prototype.
2918         * tree-emutls.c (gen_emutls_addr): Update.
2919         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2920         loop_nest; handle indirect calls, too.
2921         (clone_inlined_nodes): Do not care about updating inline summaries.
2922         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2923         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2924         stream call_stmt_size/call_stmt_time/loop_nest.
2925         * ipa-inline.c (edge_badness): Update.
2926         (ipa_inline): dump summaries after inlining.
2927         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2928         New.
2929         (inline_edge_summary): New function.
2930         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2931         (inline_edge_removal_hook): Handle edge summaries.
2932         (inline_edge_duplication_hook): New hook.
2933         (inline_summary_alloc): Alloc hooks.
2934         (initialize_growth_caches): Do not register removal hooks.
2935         (free_growth_caches); Do not free removal hook.
2936         (dump_inline_edge_summary): New function.
2937         (dump_inline_summary): Use it.
2938         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2939         (inline_update_callee_summaries): New function.
2940         (inline_merge_summary): Use it.
2941         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2942         (read_inline_edge_summary): New function.
2943         (inline_read_section): Use it.
2944         (write_inline_edge_summary): New function.
2945         (inline_write_summary): Use it.
2946         (inline_free_summary): Free edge new holders.
2947         * tree-inline.c (copy_bb): Update.
2948
2949 2011-04-26  Jason Merrill  <jason@redhat.com>
2950
2951         * tree-eh.c (lower_try_finally_switch): Create the label along with
2952         the CASE_LABEL_EXPR.
2953
2954 2011-04-26  David S. Miller  <davem@davemloft.net>
2955             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2956
2957         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2958         * configure: Regenerate.
2959
2960 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2961
2962         PR target/48258
2963         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2964         reduction.
2965         (VEC_reduc): New code iterator and splitters for vector reduction.
2966         (VEC_reduc_name): Ditto.
2967         (VEC_reduc_rtx): Ditto.
2968         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2969         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2970
2971         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2972         support for extracting SF on VSX.
2973
2974         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2975         generating xscvspdp.
2976         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2977         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2978         double add, minimum, maximum vector reduction.
2979         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2980         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2981         optimize double vector reduction.
2982         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2983
2984 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2985
2986         * config/fr30/fr30.h (inhibit_libc): Don't define.
2987         * config/m32r/m32r-protos.h: Correct comment.
2988         * config/v850/v850.h (GHS_default_section_names,
2989         GHS_current_section_names): Use tree, not union tree_node *.
2990
2991 2011-04-26  Xinliang David Li  <davidxl@google.com>
2992
2993         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2994         * c-family/c-opts.c (c_common_handle_option): Set
2995         warn_maybe_uninitialized.
2996         * opts.c (common_handle_option): Ditto.
2997         * common.opt:  New option.
2998         * tree-ssa.c (warn_uninit): Add one more parameter.
2999         (warn_uninitialized_var): Pass warning code.
3000         * tree-flow.h: Interface change.
3001
3002
3003 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3004
3005         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3006         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3007         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3008
3009 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3010
3011         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3012         * config/mips/mips.opt (mmips-tfile): Remove.
3013
3014         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3015         mips-tdump reference to ...
3016         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3017         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3018         reference by Tru64 UNIX.
3019
3020 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3021
3022         PR debug/48768
3023         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3024         is error_mark_node, set value to NULL.
3025
3026         PR tree-optimization/48734
3027         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3028         if return value from maybe_fold_*_comparsions isn't something
3029         the code is prepared to handle.
3030
3031 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3032
3033         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3034         mode check.
3035         (ext_QIreg_nomode_operands): Remove.
3036         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3037         (*andsi_1): Ditto.
3038         (*andhi_1): Ditto.
3039
3040 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3041
3042         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3043
3044 2011-04-26  Richard Guenther  <rguenther@suse.de>
3045
3046         * c-typeck.c (build_unary_op): Do not expand array-refs via
3047         pointer arithmetic.  Only adjust qualifiers for function types.
3048
3049 2011-04-26  Richard Guenther  <rguenther@suse.de>
3050
3051         PR middle-end/48694
3052         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3053         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3054         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3055         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3056
3057 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3058
3059         * doc/extend.texi: Document __underlying_type.
3060
3061 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3062
3063         * config/rs6000/titan.md (automata_option "progress"): Remove.
3064
3065 2011-04-25  Jeff Law  <law@redhat.com>
3066
3067         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3068
3069 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3070
3071         * system.h (ENUM_BITFIELD): Remove.
3072
3073 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3074             Eric Botcazou  <ebotcazou@adacore.com>
3075
3076         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3077         for STORE_FLAG_VALUE==-1 case.
3078
3079 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3080
3081         PR target/43804
3082         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3083         LEGITIMATE_PIC_OPERAND_P.
3084
3085 2011-04-24  Jan Hubicka  <jh@suse.cz>
3086
3087         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3088         WPA hack.
3089         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3090         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3091         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3092         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3093         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3094         Sanity check predicate length.
3095         (remap_predicate): Likewise; sanity check jump functions.
3096         (inline_read_section, inline_write_summary): Sanity check
3097         predicate length.
3098
3099 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3100
3101         PR other/48748
3102         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3103         __is_literal_type, and __is_trivial; update throughout about
3104         possibly cv-qualified void types.
3105
3106 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3107
3108         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3109         testsuite and make it version agnostic.
3110
3111 2011-04-22  Jan Hubicka  <jh@suse.cz>
3112
3113         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3114
3115 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3116
3117         PR c/48685
3118         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3119         to VOID_TYPE even around MODIFY_EXPR.
3120
3121 2011-04-22  Mike Stump  <mikestump@comcast.net>
3122
3123         * gensupport.c (read_md_rtx): Fix typo in comment.
3124         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3125         comment.
3126
3127 2011-04-22  Jan Hubicka  <jh@suse.cz>
3128
3129         * gengtype.c (open_base_files): Add ipa-inline.h include.
3130         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3131         ipa-prop.c; update all uses.
3132         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3133         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3134         merge summary of inlined function into former caller.
3135         * ipa-inline.c (max_benefit): Remove.
3136         (edge_badness): Compensate for removal of benefits.
3137         (update_caller_keys): Use
3138         reset_node_growth_cache/reset_edge_growth_cache.
3139         (update_callee_keys): Likewise.
3140         (update_all_callee_keys): Likewise.
3141         (inline_small_functions): Do not collect max_benefit; do not reset
3142         estimated_growth; call free_growth_caches and initialize_growth_caches.
3143         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3144         struct size_time_entry): New structures.
3145         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3146         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3147         and estimated_growth.
3148         (edge_growth_cache_entry): New structure.
3149         (node_growth_cache, edge_growth_cache): New global vars.
3150         (estimate_growth): Turn into inline.
3151         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3152         initialize_growth_caches, free_growth_caches): Declare.
3153         (estimate_edge_growth): Rewrite.
3154         (estimate_edge_time): Implement as inline cache lookup.
3155         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3156         functions.
3157         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3158         (NUM_CONDITIONS): New constant.
3159         (predicate_conditions): New enum.
3160         (IS_NOT_CONSTANT): New constant.
3161         (edge_removal_hook_holder): New var.
3162         (node_growth_cache, edge_growth_cache): New global vars.
3163         (true_predicate, single_cond_predicate, false_predicate,
3164         not_inlined_predicate, add_condition, add_clause, and_predicates,
3165         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3166         dump_clause, dump_predicate, account_size_time,
3167         evaulate_conditions_for_edge): New functions.
3168         (inline_summary_alloc): Move to heap.
3169         (inline_node_removal_hook): Clear condition and entry vectors.
3170         (inline_edge_removal_hook): New function.
3171         (initialize_growth_caches, free_growth_caches): New function.
3172         (dump_inline_summary): Update.
3173         (edge_execution_predicate): New function.
3174         (will_be_nonconstant_predicate): New function.
3175         (estimate_function_body_sizes): Compute BB and constantness predicates.
3176         (compute_inline_parameters): Do not clear estimated_growth.
3177         (estimate_edge_size_and_time): New function.
3178         (estimate_calls_size_and_time): New function.
3179         (estimate_callee_size_and_time): New function.
3180         (remap_predicate): New function.
3181         (inline_merge_summary): New function.
3182         (do_estimate_edge_time): New function based on...
3183         (estimate_edge_time): ... this one.
3184         (do_estimate_edge_growth): New function.
3185         (do_estimate_growth): New function based on....
3186         (estimate_growth): ... this one.
3187         (inline_analyze_function): Analyze after deciding on jump functions.
3188         (inline_read_section): New function.
3189         (inline_read_summary): Use it.
3190         (inline_write_summary): Write all the new data.
3191         * ipa-prop.c (ipa_get_param_decl_index): Export.
3192         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3193         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3194         Declare.
3195         (ipa_get_lattice): Move here from ipa-cp.c
3196         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3197         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3198         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3199         cgraph_edge_inlinable_p): Remove.
3200         * cgraphunit.c: Include ipainline.h
3201         (cgraph_process_new_functions): Update call of
3202         compute_inline_parameters.
3203
3204 2011-04-22  Richard Guenther  <rguenther@suse.de>
3205
3206         * tree.c (build_int_cst): Properly create canonicalized integer
3207         constants.
3208         (build_int_cst_type): Remove scary comments.
3209
3210 2011-04-22  Xinliang David Li  <davidxl@google.com>
3211
3212         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3213         by default when -Wno-error is not specified.
3214         * opts-global.c (decode_options): Remove call to
3215         control_warning_options.
3216
3217 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3218
3219         PR tree-optimization/48717
3220         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3221         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3222
3223 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3224
3225         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3226         definition where used.
3227
3228 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3229
3230         PR c/48716
3231         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3232         TREE_STATIC variables declared inside of some OpenMP construct.
3233
3234 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3235
3236         PR middle-end/48585
3237         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3238
3239 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3240
3241         PR c/36750
3242         * c-typeck.c (pop_init_level): Do not warn about initializing
3243         with ` = {0}'.
3244
3245 2011-04-22  Alan Modra  <amodra@gmail.com>
3246
3247         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3248         when returning call_cookie.
3249         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3250         pointers, to functions with no more vector args than the current
3251         function, and some non-local calls for ABI_V4.
3252         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3253         sibcall_nonlocal_aix64): Combine to ..
3254         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3255         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3256         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3257         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3258         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3259         operand.
3260         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3261         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3262         sibcall_value_symbolic_64): Delete.
3263
3264 2011-04-21  Xinliang David Li  <davidxl@google.com>
3265
3266         * cgraph.h: Remove pid.
3267         * cgraph.c: Remove pid.
3268         * value-prof.c (init_node_map): New function.
3269         (del_node_map): New function.
3270         (find_func_by_funcdef_no): New function.
3271         (gimple_ic_transform): Call new function.
3272         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3273         * function.c (get_last_funcdef_no): New function.
3274         * function.h (get_last_funcdef_no): New function.
3275         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3276         to libgcov function.
3277         (tree-profiling): Call node map init and delete function.
3278
3279 2011-04-21  Ian Lance Taylor  <iant@google.com>
3280
3281         * godump.c (go_format_type): Use exported Go name for anonymous
3282         field name.
3283
3284 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3285
3286         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3287         Call builtin_function_type_list instead of builtin_function_type.
3288         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3289
3290 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3291
3292         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3293         build_function_type_list instead of build_function_type.
3294         Delete variable `endlink'.
3295
3296 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3297
3298         * config/s390/s390.c (s390_init_builtins): Call
3299         build_function_type_list instead of build_function_type.
3300
3301 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3302
3303         * config/ia64/ia64.c (ia64_init_builtins): Call
3304         build_function_type_list instead of builtin_function_type.
3305
3306 2011-04-21  Easwaran Raman  <eraman@google.com>
3307
3308         * cfgexpand.c (stack_var): Remove OFFSET...
3309         (add_stack_var): ...and its reference here...
3310         (expand_stack_vars): ...and here.
3311         (stack_var_cmp): Sort by descending order of size.
3312         (partition_stack_vars): Change heuristic.
3313         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3314         (dump_stack_var_partition): Add newline after each partition.
3315
3316 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3317             Jeff Law  <law@redhat.com>
3318
3319         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3320         * gengtype.c (matching_file_name_substitute): Likewise.
3321
3322 2011-04-21  Richard Guenther  <rguenther@suse.de>
3323
3324         PR lto/48703
3325         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3326
3327 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3328
3329         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3330
3331 2011-04-21  Richard Guenther  <rguenther@suse.de>
3332
3333         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3334         file name.
3335
3336 2011-04-21  Richard Guenther  <rguenther@suse.de>
3337
3338         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3339         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3340         Use DECL_P, not SSA_VAR_P.
3341         (ptr_derefs_may_alias_p): Likewise.
3342         (ptr_deref_may_alias_ref_p_1): Likewise.
3343         (decl_refs_may_alias_p): Likewise.
3344         (refs_may_alias_p_1): Likewise.
3345         (ref_maybe_used_by_call_p_1): Likewise.
3346         (call_may_clobber_ref_p_1): Likewise.
3347         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3348         are either MEM_REF or TARGET_MEM_REF.
3349         (indirect_refs_may_alias_p): Likewise.
3350         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3351         for MEM_EXPR of indirect calls.
3352
3353 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3354
3355         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3356         (dst_file_info_struct): Remove flen field.
3357         (lookup_filename): Remove code that set flen field.
3358
3359 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3360
3361         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3362
3363 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3364
3365         PR target/48708
3366         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3367         vec_extract and vec_concat for non-SSE4_1 targets.
3368
3369 2011-04-21  Richard Guenther  <rguenther@suse.de>
3370
3371         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3372         return statements.
3373
3374 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3375
3376         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3377         undefine.
3378         (FILE): Don't undefine.
3379
3380 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3381
3382         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3383         struct rtx_def *.
3384         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3385         struct rtx_def *.
3386         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3387         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3388         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3389         rtx_def *.
3390         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3391         definitions where used.
3392         * config/microblaze/microblaze.h (struct microblaze_args): Use
3393         rtx, not struct rtx_def *.
3394         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3395         rtx_def *.
3396         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3397         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3398         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3399         not struct rtx_def *.
3400         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3401         struct rtx_def *.
3402         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3403         rtx_def *.
3404         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3405
3406 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3407
3408         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3409         operand_equal_p to compare DR_BASE_ADDRESSes.
3410         (vect_check_interleaving): Likewise.
3411
3412 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3413
3414         PR target/46329
3415         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3416         for all Neon struct constants.
3417
3418 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3419
3420         * target.def (legitimate_constant_p): New hook.
3421         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3422         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3423         * doc/tm.texi: Regenerate.
3424         * hooks.h (hook_bool_mode_rtx_true): Declare.
3425         * hooks.c (hook_bool_mode_rtx_true): Define.
3426         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3427         * calls.c (precompute_register_parameters): Replace uses of
3428         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3429         (emit_library_call_value_1): Likewise.
3430         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3431         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3432         * ira-costs.c (scan_one_insn): Likewise.
3433         * recog.c (general_operand, immediate_operand): Likewise.
3434         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3435         * reload1.c (init_eliminable_invariants): Likewise.
3436
3437         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3438         mode argument.
3439         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3440         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3441         argument.
3442         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3443         * config/alpha/predicates.md (input_operand): Update call to
3444         alpha_legitimate_constant_p.
3445
3446         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3447         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3448         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3449         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3450         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3451         (arm_legitimate_constant_p): New functions.
3452         (arm_cannot_force_const_mem): Make static.
3453
3454         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3455
3456         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3457         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3458         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3459         instead of bfin_legitimate_constant_p.
3460         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3461         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3462
3463         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3464
3465         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3466
3467         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3468         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3469         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3470         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3471
3472         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3473         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3474         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3475
3476         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3477         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3478         * config/i386/i386.c (legitimate_constant_p): Rename to...
3479         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3480         argument.
3481         (ix86_cannot_force_const_mem): Update accordingly.
3482         (ix86_legitimate_address_p): Likewise.
3483         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3484         * config/i386/i386.md: Update commentary.
3485
3486         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3487         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3488         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3489         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3490
3491         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3492
3493         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3494         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3495         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3496         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3497
3498         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3499         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3500         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3501
3502         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3503         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3504         (m32r_legitimate_constant_p): New function.
3505
3506         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3507         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3508         LEGITIMATE_CONSTANT_P.
3509         (LEGITIMATE_CONSTANT_P): Delete.
3510         * config/m68k/m68k.c (m68k_expand_prologue): Call
3511         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3512         (m68k_legitimate_constant_p): New function.
3513         * config/m68k/m68k.md: Update comments.
3514
3515         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3516         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3517         (mcore_legitimate_constant_p): New function.
3518
3519         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3520         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3521         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3522         Add a mode argument.
3523         (mep_legitimate_address): Update accordingly.
3524         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3525
3526         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3527         Delete.
3528         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3529         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3530         static.  Check OP's mode for VOIDmode.
3531         (microblaze_legitimate_constant_p): New function.
3532         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3533
3534         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3535         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3536         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3537         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3538         * config/mips/predicates.md: Update comments.
3539
3540         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3541         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3542         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3543         (mmix_legitimate_constant_p): Make static, return a bool, and take
3544         a mode argument.
3545         (mmix_print_operand_address): Update accordingly.
3546
3547         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3548         Delete.
3549         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3550         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3551         static.  Add a mode argument.
3552         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3553
3554         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3555
3556         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3557         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3558         (pa_legitimate_constant_p): New function.
3559
3560         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3561
3562         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3563         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3564         (pdp11_legitimate_constant_p): New function.
3565
3566         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3567         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3568         (rs6000_legitimate_constant_p): New function.
3569
3570         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3571         (rx_legitimate_constant_p): ...this.
3572         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3573         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3574         (rx_legitimate_constant_p): ...this.
3575         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3576         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3577
3578         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3579         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3580         * config/s390/s390.c (legitimate_constant_p): Rename to...
3581         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3582         and add a mode argument.
3583         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3584
3585         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3586
3587         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3588         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3589         (sh_legitimate_constant_p): New function.
3590
3591         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3592         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3593         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3594         (legitimate_constant_p): Rename to...
3595         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3596         argument.
3597         (constant_address_p): Update accordingly.
3598
3599         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3600         argument and return a bool.
3601         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3602         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3603         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3604         (spu_rtx_costs): Update accordingly.
3605         * config/spu/predicates.md (vec_imm_operand): Likewise.
3606
3607         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3608
3609         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3610         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3611         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3612
3613         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3614         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3615         * config/vax/vax.c (legitimate_constant_p): Likewise.
3616
3617         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3618         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3619         (xtensa_legitimate_constant_p): New function.
3620
3621 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3622
3623         * target.def (cannot_force_const_mem): Add a mode argument.
3624         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3625         * doc/tm.texi: Regenerate.
3626         * hooks.h (hook_bool_mode_rtx_false): Declare.
3627         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3628         (hook_bool_mode_const_rtx_true): Likewise.
3629         (hook_bool_mode_rtx_false): New function.
3630         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3631         to be non-VOID.  Update call to cannot_force_const_mem.
3632         (find_reloads): Update accordingly.
3633         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3634         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3635         argument.
3636         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3637         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3638         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3639         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3640         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3641         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3642         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3643         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3644         (m68k_cannot_force_const_mem): ...this new function.
3645         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3646         argument.
3647         (mips_const_insns, mips_legitimize_const_move): Update calls.
3648         (mips_secondary_reload_class): Likewise.
3649         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3650         (pa_cannot_force_const_mem): ...this new function.
3651         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3652         (rs6000_cannot_force_const_mem): ...this new function.
3653         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3654         argument.
3655         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3656         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3657         to...
3658         (xtensa_cannot_force_const_mem): ...this new function.
3659
3660 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3661
3662         * config/mips/mips.c (mips16_build_function_stub): Call
3663         build_function_type_list instead of build_function_type.
3664         (mips16_build_call_stub): Likewise.
3665
3666 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3667
3668         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3669         instead of build_function_type.
3670
3671 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3672
3673         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3674         instead of build_function_type.
3675
3676 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3677
3678         PR target/48678
3679         * config/i386/i386.md (insv): Change operand 0 constraint to
3680         "register_operand".  Change operand 1 and 2 constraint to
3681         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3682         * config/i386/sse.md (sse4_1_pinsrb): Export.
3683         (sse2_pinsrw): Ditto.
3684         (sse4_1_pinsrd): Ditto.
3685         (sse4_1_pinsrq): Ditto.
3686         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3687         * config/i386/i386.c (ix86_expand_pinsr): New.
3688
3689 2011-04-20  Easwaran Raman  <eraman@google.com>
3690
3691         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3692         containing union type only with -fstrict-aliasing.
3693
3694 2011-04-20  Jim Meyering  <meyering@redhat.com>
3695
3696         Remove useless if-before-free tests.
3697         * calls.c (expand_call, save_area): Likewise.
3698         * cfgcleanup.c (try_forward_edges): Likewise.
3699         * collect2.c (collect_execute): Likewise.
3700         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3701         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3702         * coverage.c (coverage_checksum_string): Likewise.
3703         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3704         * cselib.c (cselib_init): Likewise.
3705         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3706         (df_set_clean_cfg): Likewise.
3707         * function.c (free_after_compilation): Likewise.
3708         * gcc.c (do_spec_1, main): Likewise.
3709         * gcov.c (create_file_names): Likewise.
3710         * gensupport.c (identify_predicable_attribute): Likewise.
3711         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3712         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3713         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3714         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3715         * ipa-pure-const.c (local_pure_const): Likewise.
3716         * ipa-reference.c (propagate): Likewise.
3717         * ira-costs.c (free_ira_costs): Likewise.
3718         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3719         * matrix-reorg.c (mat_free): Likewise.
3720         * prefix.c (get_key_value): Likewise.
3721         * profile.c (compute_value_histograms): Likewise.
3722         * reload1.c (free_reg_equiv): Likewise.
3723         * sched-deps.c (free_deps): Likewise.
3724         * sel-sched-ir.c (fence_clear): Likewise.
3725         * sese.c (set_rename, if_region_set_false_region): Likewise.
3726         * tree-data-ref.c (free_rdg): Likewise.
3727         * tree-eh.c (lower_try_finally): Likewise.
3728         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3729         * tree-ssa-live.c (delete_var_map): Likewise.
3730         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3731         * tree-ssa-pre.c (phi_trans_add): Likewise.
3732
3733 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3734
3735         PR tree-optimization/48611
3736         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3737         beyond ERT_MUST_NOT_THROW region.
3738
3739 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3740
3741         * config/mips/mips.opt (mfix-24k): New.
3742         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3743         * config/mips/mips.md (length): Increase by 4 for stores if
3744         fixing 24K errata.
3745         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3746         all noreorder if fixing 24K errata.
3747         * doc/invoke.texi: Document mfix-24k.
3748
3749 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3750
3751         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3752         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3753
3754 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3755
3756         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3757         (const_ok_for_op): ... to here.
3758
3759 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3760
3761         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3762         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3763
3764 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3765
3766         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3767
3768 2011-04-20  Richard Guenther  <rguenther@suse.de>
3769
3770         PR tree-optimization/47892
3771         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3772         are if-convertible.
3773
3774 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3775
3776         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3777
3778 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3779
3780         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3781
3782 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3783
3784         PR target/18145
3785
3786         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3787         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3788         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3789         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3790         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3791
3792         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3793         New prototype.
3794
3795         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3796         (avr_asm_named_section, avr_asm_output_aligned_common,
3797         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3798         New functions to update...
3799         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3800         (avr_asm_init_sections): Overwrite section callbacks for
3801         data_section, bss_section.
3802         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3803         from here to...
3804         (avr_file_end): ...here.
3805
3806 2011-04-20  Richard Guenther  <rguenther@suse.de>
3807
3808         PR middle-end/48695
3809         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3810         objects and types here.  Adjust for their offset before comparing.
3811
3812 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3813
3814         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3815         statement per copy.
3816
3817 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3818
3819         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3820         (GIMPLE_H): Include $(INTERNAL_FN_H).
3821         (OBJS-common): Add internal-fn.o.
3822         (internal-fn.o): New rule.
3823         * internal-fn.def: New file.
3824         * internal-fn.h: Likewise.
3825         * internal-fn.c: Likewise.
3826         * gimple.h: Include internal-fn.h.
3827         (GF_CALL_INTERNAL): New gf_mask.
3828         (gimple_statement_call): Put fntype into a union with a new
3829         internal_fn field.
3830         (gimple_build_call_internal): Declare.
3831         (gimple_build_call_internal_vec): Likewise.
3832         (gimple_call_same_target_p): Likewise.
3833         (gimple_call_internal_p): New function.
3834         (gimple_call_internal_fn): Likewise.
3835         (gimple_call_fntype): Return null for internal calls.
3836         (gimple_call_set_fntype): Assert that the function is not internal.
3837         (gimple_call_set_fn): Likewise.
3838         (gimple_call_set_fndecl): Likewise.
3839         (gimple_call_set_internal_fn): New function.
3840         (gimple_call_addr_fndecl): Handle null functions.
3841         (gimple_call_return_type): Likewise null types.
3842         * gimple.c (gimple_build_call_internal_1): New function.
3843         (gimple_build_call_internal): Likewise.
3844         (gimple_build_call_internal_vec): Likewise.
3845         (gimple_call_same_target_p): Likewise.
3846         (gimple_call_flags): Handle calls to internal functions.
3847         (gimple_call_fnspec): New function.
3848         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3849         (gimple_has_side_effects): Handle null functions.
3850         (gimple_rhs_has_side_effects): Likewise.
3851         (gimple_call_copy_skip_args): Handle calls to internal functions.
3852         * cfgexpand.c (expand_call_stmt): Likewise.
3853         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3854         * gimple-fold.c (gimple_fold_call): Handle null functions.
3855         (gimple_fold_stmt_to_constant_1): Don't fold
3856         calls to internal functions.
3857         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3858         functions.
3859         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3860         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3861         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3862         (do_warn_unused_result): Likewise.
3863         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3864         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3865         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3866         the target of a call.
3867         (initialize_hash_element): Update accordingly.
3868         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3869         (iterative_hash_hashable_expr): Handle calls to internal functions.
3870         (print_expr_hash_elt): Likewise.
3871         * tree-ssa-pre.c (can_value_number_call): Likewise.
3872         (eliminate): Handle null functions.
3873         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3874         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3875         (find_func_aliases): Likewise.
3876         * value-prof.c (gimple_ic_transform): Likewise.
3877         (gimple_indirect_call_to_profile): Likewise.
3878         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3879         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3880
3881 2011-04-19  Jan Hubicka  <jh@suse.cz>
3882
3883         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3884         * ipa-inline.c (inline_small_functions): Compute summaries first,
3885         populate heap later.
3886
3887 2011-04-19  Jan Hubicka  <jh@suse.cz>
3888
3889         * cgraph.h (save_inline_function_body): Remove.
3890         * ipa-inline-transform.c: New file, broke out of...
3891         * ipa-inline.c: ... this one; Update toplevel comment.
3892         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3893         make global.
3894         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3895         (cgraph_mark_inline_edge): Rename to inline_call; move to
3896         ipa-inline-transform.c.
3897         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3898         move to ipa-inline-transform.c
3899         (recursive_inlining, inline_small_functions, flatten_function,
3900         ipa_inline, inline_always_inline_functions,
3901         early_inline_small_functions): Update.
3902         (inline_transform): Move to ipa-inline-transform.c.
3903         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3904         Declare.
3905         * Makefile.in (ipa-inline-transform.o): New file.
3906         * cgraphunit.c (save_inline_function_body): Move to
3907         ipa-inline-transform.c
3908
3909 2011-04-19  DJ Delorie  <dj@redhat.com>
3910
3911         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3912         registers if we already know there aren't any.
3913         (m32c_emit_epilogue): Don't emit a barrier here.
3914         (m32c_emit_eh_epilogue): Likewise.
3915         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3916         operands at expand time.
3917         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3918         int" wchar type.
3919         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3920         duplicates.  Provide aliases instead.
3921         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3922         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3923         the compiler.
3924
3925 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3926
3927         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3928         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3929         (general_or_i64_p, sparc_register_move_cost): New function.
3930
3931 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3932
3933         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3934         Add lynx, mipssde.  Sort table.
3935
3936 2011-04-19  Xinliang David Li  <davidxl@google.com>
3937
3938         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3939         not negative.
3940
3941 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3942
3943         PR target/48678
3944         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3945         is a SUBREG with non-MODE_INT mode inside of it.
3946
3947 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3948
3949         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3950         also according to actual contants.
3951         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3952         (gimple_fold_call): Use it.
3953         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3954
3955 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3956
3957         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3958         non-pointer assignments.
3959
3960 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3961
3962         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3963         account anc_offset and otr_type from the indirect edge info.
3964         * ipa-prop.c (get_ancestor_addr_info): New function.
3965         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3966         get_ancestor_addr_info, call it.
3967         (ipa_note_param_call): Do not initialize information about polymorphic
3968         calls, return the indirect call graph edge.  Remove the last
3969         parameter, adjust all callers.
3970         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3971         parameters.  Initialize polymorphic information in the indirect edge.
3972
3973 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3974
3975         PR lto/48148
3976         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3977         the types if they have different enumeration identifiers.
3978
3979 2011-04-19  Jan Hubicka  <jh@suse.cz>
3980
3981         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3982         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3983         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3984         (optimize_function_for_size_p) ... here.
3985
3986 2011-04-19  Richard Guenther  <rguenther@suse.de>
3987
3988         PR lto/48207
3989         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3990         langhook.
3991
3992 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3993
3994         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3995         if DECL_NO_INLINE_WARNING_P is set on the function.
3996
3997 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3998
3999         PR fortran/47976
4000         * reload1.c (inc_for_reload): Return void. All callers changed.
4001         (emit_input_reload_insns): Don't try to delete previous output
4002         reloads to a register, or record spill_reg_store for autoincs.
4003
4004 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4005
4006         * gengtype.h: Updated copyright year.
4007         (struct input_file_st): Add inpisplugin field.
4008         (type_fileloc): New function.
4009         * gengtype.c
4010         (write_typed_struct_alloc_def): Add gcc_assert.
4011         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4012         (write_typed_alloc_defns): Don't output for plugin files.
4013         (input_file_by_name): Clear inpisplugin field.
4014         (main): Set inpisplugin field for plugin files.
4015
4016 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4017
4018         * gengtype-state.c (string_eq): New.
4019         (read_state): Use string_eq instead of strcmp when creating the
4020         state_ident_tab.
4021
4022 2011-04-19  Wei Guozhi  <carrot@google.com>
4023
4024         PR target/47855
4025         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4026         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4027         linkage.
4028         * config/arm/constraints.md (Uu): New constraint.
4029         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4030
4031 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4032
4033         * config.gcc (-*-*-*vms): Added.
4034         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4035         definitions moved.
4036         * config/vms/vms-ld.c: New file.
4037         * config/vms/vms-ar.c: New file.
4038         * config/vms/t-vmsnative: New file.
4039
4040 2011-04-18  Xinliang David Li  <davidxl@google.com>
4041
4042         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4043
4044 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4045
4046         PR middle-end/48661
4047         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4048         if TREE_TYPE (v) is non-NULL.
4049
4050         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4051         gimple_get_virt_mehtod_for_binfo.
4052         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4053         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4054         callers.
4055         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4056
4057 2011-04-18  Michael Matz  <matz@suse.de>
4058             Steve Ellcey  <sje@cup.hp.com>
4059
4060         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4061         use its mode as source mode if it isn't VOIDmode.
4062
4063 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4064
4065         * doc/passes.texi: Fill crossref nodes.
4066
4067 2011-04-18  Jim Meyering  <meyering@redhat.com>
4068
4069         Fix doubled-word typos in comments and strings
4070         * config/alpha/vms-unwind.h: s/for for/for/
4071         * config/arm/unwind-arm.h: Likewise.
4072         * config/microblaze/microblaze.c: Likewise.
4073         * config/sh/constraints.md: s/in in/in/
4074         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4075
4076 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4077
4078         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4079         (AVX_FLOAT_MODE_P): Ditto.
4080         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4081         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4082         (AVX_VEC_FLOAT_MODE_P): Ditto.
4083         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4084         (UNSPEC_MASKSTORE): Ditto.
4085         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4086         Merge from <sse>_movmsk<ssemodesuffix> and
4087         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4088         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4089         iterator.
4090         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4091         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4092         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4093
4094 2011-04-18  Jan Hubicka  <jh@suse.cz>
4095
4096         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4097
4098         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4099         (want_inline_function_called_once_p): Break out the logic from
4100         ipa_inline.
4101         (edge_badness): Ensure that profile is not misupdated.
4102         (lookup_recursive_calls): Prioritize by call frequencies.
4103         (inline_small_functions): Move program size estimates here;
4104         actually process whole queue even when unit growth has been
4105         met. (to properly compute inline_failed reasons and for the
4106         case unit size decrease.) Revisit comments on recursive inlining.
4107         (ipa_inline): Remove unit summary code; first inline hot calls
4108         of functions called once, cold calls next.
4109         (order, nnodes): Remove unused variables.
4110         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4111         (GTFILES): Remove ipa-inline.c
4112         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4113
4114 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4115
4116         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4117
4118 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4119             Richard Earnshaw  <rearnsha@arm.com>
4120
4121         * arm.c (neon_builtin_type_bits): Remove.
4122         (typedef enum neon_builtin_mode): New.
4123         (T_MAX): Don't define.
4124         (typedef enum neon_builtin_datum): Remove bits, codes[],
4125         num_vars and base_fcode.  Add mode, code and fcode.
4126         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4127         VAR10): Change accordingly.
4128         (neon_builtin_data[]): Change accordingly
4129         (arm_init_neon_builtins): Change accordingly.
4130         (neon_builtin_compare): Remove.
4131         (locate_neon_builtin_icode): Remove.
4132         (arm_expand_neon_builtin): Change accordingly.
4133
4134         * arm.h (enum arm_builtins): Move to ...
4135         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4136
4137         * arm.c (arm_builtin_decl): Declare.
4138         (TARGET_BUILTIN_DECL): Define.
4139         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4140         (arm_builtin_decls[]): New.
4141         (arm_init_neon_builtins): Store builtin declarations in
4142         arm_builtin_decls[].
4143         (arm_init_tls_builtins): Likewise.
4144         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4145         (arm_builtin_decl): New.
4146
4147 2011-04-18  Richard Guenther  <rguenther@suse.de>
4148
4149         * tree.c (upper_bound_in_type): Build properly canonicalized
4150         INTEGER_CSTs.
4151         (lower_bound_in_type): Likewise.
4152
4153 2011-04-18  Richard Guenther  <rguenther@suse.de>
4154
4155         * gimple.h (gimple_call_addr_fndecl): New function.
4156         (gimple_call_fndecl): Use it.
4157         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4158         for direct calls.
4159         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4160         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4161
4162 2011-04-18  Richard Guenther  <rguenther@suse.de>
4163
4164         PR middle-end/48650
4165         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4166
4167 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4168
4169         PR lto/48492
4170         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4171         DECL_IN_CONSTANT_POOL without RTL.
4172
4173 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4174             Ira Rosen  <ira.rosen@linaro.org>
4175
4176         PR target/48252
4177         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4178         to match neon_vzip/vuzp/vtrn_internal.
4179         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4180         outputs explicitly dependent on both inputs.
4181         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4182
4183 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4184
4185         PR tree-optimization/48616
4186         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4187         whether the shift is by scalar or vector based on whether all SLP
4188         scalar stmts have the same rhs.
4189
4190 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4191
4192         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4193         memory operands.
4194
4195 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4196
4197         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4198         registers.
4199
4200 2011-04-17  Jan Hubicka  <jh@suse.cz>
4201
4202         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4203         * cgrpahunit.c (cgraph_finalize_function): Do not set
4204         finalized_by_frontend.
4205         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4206         finalized_by_frontend.
4207
4208 2011-04-17  Jan Hubicka  <jh@suse.cz>
4209
4210         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4211         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4212         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4213         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4214         method.
4215         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4216         gimple-fold.c
4217         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4218
4219 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4220
4221         PR lto/48538
4222         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4223         is non-null before accessing it.
4224         (input_cgraph): Remove trailing spaces.
4225
4226 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4227
4228         * params.def (sms-min-sc): New param flag.
4229         * modulo-sched.c (sms_schedule): Use it.
4230         * doc/invoke.texi (sms-min-sc): Document it.
4231
4232 2011-04-17  Jan Hubicka  <jh@suse.cz>
4233
4234         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4235         present, also set gimple_call_set_cannot_inline.
4236         * ipa-inline.c: Update toplevel comment.
4237         (MAX_TIME): Remove.
4238         (cgraph_clone_inlined_nodes): Fix linebreaks.
4239         (cgraph_check_inline_limits): Restructure to ...
4240         (caller_growth_limits): ... this one; be more tolerant
4241         on growth in nested inline chains; add explanatory comment;
4242         fix stack accounting thinko introduced by previous patch.
4243         (cgraph_default_inline_p): Remove.
4244         (report_inline_failed_reason): New function.
4245         (can_inline_edge_p): New function.
4246         (can_early_inline_edge_p): New function.
4247         (leaf_node_p): Move upwards in file.
4248         (want_early_inline_function_p): New function.
4249         (want_inline_small_function_p): New function.
4250         (want_inline_self_recursive_call_p): New function.
4251         (cgraph_edge_badness): Rename to ...
4252         (edge_badness) ... this one; fix linebreaks.
4253         (update_edge_key): Update call of edge_baddness; add
4254         detailed dump about queue updates.
4255         (update_caller_keys): Use can_inline_edge_p and
4256         want_inline_small_function_p.
4257         (cgraph_decide_recursive_inlining): Rename to...
4258         (recursive_inlining): Use can_inline_edge_p and
4259         want_inline_self_recursive_call_p; simplify and remove no longer
4260         valid FIXME.
4261         (cgraph_set_inline_failed): Remove.
4262         (add_new_edges_to_heap): Use can_inline_edge_p and
4263         want_inline_small_function_p.
4264         (cgraph_decide_inlining_of_small_functions): Rename to ...
4265         (inline_small_functions): ... this one; cleanup; use
4266         can/want predicates; cleanup debug ouput; work edges till fibheap
4267         is exhausted and do not stop once unit growth is reached; remove
4268         later loop processing remaining edges.
4269         (cgraph_flatten): Rename to ...
4270         (flatten_function): ... this one; use can_inline_edge_p
4271         and can_early_inline_edge_p predicates.
4272         (cgraph_decide_inlining): Rename to ...
4273         (ipa_inline): ... this one; remove unreachable nodes before
4274         inlining functions called once; simplify the pass.
4275         (cgraph_perform_always_inlining): Rename to ...
4276         (inline_always_inline_functions): ... this one; use
4277         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4278         (cgraph_decide_inlining_incrementally): Rename to ...
4279         (early_inline_small_functions): ... this one; simplify
4280         using new predicates; cleanup; make dumps prettier.
4281         (cgraph_early_inlining): Rename to ...
4282         (early_inliner): newer inline regular functions into always-inlines;
4283         fix updating of call stmt summaries.
4284         (pass_early_inline): Update for new names.
4285         (inline_transform): Fix formating.
4286         (gate_cgraph_decide_inlining): Rename to ...
4287         (pass_ipa_inline): ... this one.
4288         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4289         * ipa-inline-analysis.c (dump_inline_summary): Update.
4290         (compute_inline_parameters): Do not compute disregard_inline_limits;
4291         look for mismatching arguments.
4292         (estimate_growth): Fix handlig of non-trivial self recursion.
4293         (inline_read_summary): Do not read info->disregard_inline_limits.
4294         (inline_write_summary): Do not write info->disregard_inline_limits.
4295         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4296         and move all checks into can_inline_edge_p predicate; re-enable code
4297         comparing optimization levels.
4298         (expand_call_inline): Do not test inline_forbidden_into_p.
4299         * Makefile.in (ipa-inline.o): Update arguments.
4300
4301 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4302
4303         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4304
4305 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4306
4307         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4308
4309 2011-04-17  Michael Matz  <matz@suse.de>
4310
4311         PR tree-optimization/48622
4312         PR lto/48645
4313         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4314         in same order as they're written.
4315
4316 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4317
4318         * config/pa/predicates.md: Reorganize and simplify predicates.
4319         Eliminate duplicate code checks.
4320         (arith_operand): Rename to arith14_operand
4321         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4322         * config/pa/pa.md: Use renamed operands.
4323         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4324         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4325         arith11_operand, adddi3_operand, indexed_memory_operand,
4326         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4327         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4328         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4329         move_dest_operand, move_src_operand, prefetch_cc_operand,
4330         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4331         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4332         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4333         div_operand, int5_operand, movb_comparison_operator,
4334         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4335         arith_double_operand, ireg_operand, lhs_lshift_operand,
4336         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4337         integer_store_memory_operand): Likewise.
4338         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4339         (integer_store_memory_operand, read_only_operand,
4340         function_label_operand, borx_reg_operand,
4341         non_hard_reg_operand): Likewise.
4342         (eq_neq_comparison_operator): Delete unused operator.
4343         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4344         function_label_operand.
4345         (emit_move_sequence): Likewise.
4346
4347 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4348
4349         * config/i386/sse.md (sseunpackmode): New mode attribute.
4350         (ssepackmode): Ditto.
4351         (vec_pack_trunc_<mode>): Macroize expander from
4352         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4353         (vec_unpacks_lo_<mode>): Macroize expander from
4354         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4355         (vec_unpacks_hi_<mode>): Macroize expander from
4356         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4357         (vec_unpacku_lo_<mode>): Macroize expander from
4358         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4359         (vec_unpacku_hi_<mode>): Macroize expander from
4360         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4361         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4362         ix86_expand_sse4_unpack.
4363         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4364
4365 2011-04-16  Jan Hubicka  <jh@suse.cz>
4366
4367         * cgraphbuild.c: Include ipa-inline.h.
4368         (reset_inline_failed): Use initialize_inline_failed.
4369         * cgraph.c: Include ipa-inline.h.
4370         (cgraph_create_node_1): Do not initialize estimated_growth.
4371         (initialize_inline_failed): More to ipa-inline-analysis.c
4372         (dump_cgraph_node): Do not dump inline flags.
4373         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4374         and disregard_inline_limits flags.
4375         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4376         time, size, estimated_growth.
4377         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4378         Update.
4379         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4380         DECL_DISREGARD_INLINE_LIMITS.
4381         (cgraph_analyze_function): Do not initialize
4382         node->local.disregard_inline_limits.
4383         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4384         inlinable, versionable and disregard_inline_limits.
4385         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4386         cgraph_check_inline_limits, cgraph_default_inline_p,
4387         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4388         add_new_edges_to_heap): Update.
4389         (cgraph_decide_inlining_of_small_function): Update; set
4390         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4391         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4392         cgraph_decide_inlining_incrementally): Update.
4393         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4394         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4395         time, size and estimated_growth parameters.
4396         (estimate_edge_growth): Update.
4397         (initialize_inline_failed): Declare.
4398         * ipa-split.c: Include ipa-inline.h
4399         (execute_split_functions): Update.
4400         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4401         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4402         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4403         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4404         estimated_growth to INT_MIN.
4405         (inline_node_duplication_hook): Likewise.
4406         (dump_inline_summary): Dump new fields.
4407         (compute_inline_parameters): Update.
4408         (estimate_edge_time, estimate_time_after_inlining,
4409         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4410         inline_write_summary):
4411         (initialize_inline_failed): Move here from cgraph.c.
4412         * tree-sra.c: Include ipa-inline.h.
4413         (ipa_sra_preliminary_function_checks): Update.
4414         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4415         ipa-inline.h.
4416
4417 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4418
4419         * config/i386/sse.md (V16): New mode iterator.
4420         (VI1, VI8): Ditto.
4421         (AVXMODEQI, AVXMODEDI): Remove.
4422         (sse2, sse3): New mode attribute.
4423         (mov<mode>): Use V16 mode iterator.
4424         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4425         (push<mode>1): Use V16 mode iterator.
4426         (movmisalign<mode>): Ditto.
4427         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4428         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4429         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4430         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4431         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4432         avx_movdqu<avxmodesuffix>.
4433         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4434         *avx_movdqu<avxmodesuffix>.
4435         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4436         avx_lddqu<avxmodesuffix>.
4437         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4438         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4439         avx_movnt<AVXMODEDI:mode>.
4440         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4441         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4442
4443 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4444
4445         PR target/48629
4446         * haifa-sched.c (prune_ready_list, schedule_block): Use
4447         sched_pressure_p rather than flag_sched_pressure.
4448
4449 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4450
4451         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4452         cgraph_get_node instead of cgraph_get_create_node.
4453
4454 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4455
4456         * cfgexpand.c (expand_debug_expr): Use
4457         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4458
4459 2011-04-15  Michael Matz  <matz@suse.de>
4460
4461         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4462         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4463         * function.c (gimplify_parameters): Ditto.
4464         * gimplify.c (gimplify_vla_decl): Ditto.
4465
4466         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4467         (gimple_call_set_alloca_for_var): New inline function.
4468         (gimple_call_alloca_for_var_p): Ditto.
4469         * gimple.c (gimple_build_call_from_tree): Remember
4470         CALL_ALLOCA_FOR_VAR_P state.
4471         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4472
4473         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4474         calls if they were for VLA objects.
4475
4476 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4477
4478         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4479         of ADR_EXPRs.
4480
4481 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4482
4483         PR middle-end/48601
4484         * tree-emutls.c (lower_emutls_function_body): Call
4485         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4486         result is non-NULL.
4487
4488 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4489
4490         * c-decl.c (detect_field_duplicates): Call
4491         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4492
4493 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4494
4495         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4496         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4497         * ipa-pure-const.c (check_stmt): Call it.
4498         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4499
4500 2011-04-15  Richard Guenther  <rguenther@suse.de>
4501
4502         PR tree-optimization/48290
4503         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4504         Properly decide inhibiting propagation based on the valueized
4505         operand.  Do loop-closed SSA form preserving here ...
4506         (init_copy_prop): ... not here.
4507
4508 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4509
4510         PR target/48612
4511         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4512         (*ieee_smax<mode>3): Likewise.
4513
4514 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4515
4516         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4517         Replace match_operand with match_dup for the third operand in
4518         these expanders.
4519
4520 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4521
4522         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4523         to track processing of conditionals.  Update all callers.
4524         (try_combine, simplify_if_then_else): Update.
4525
4526 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4527
4528         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4529         -fsched-pressure.
4530
4531 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4532
4533         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4534         instead of match_operand for operand 3.
4535
4536 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4537
4538         * recog.h (insn_operand_data): Add an "allows_mem" field.
4539         * genoutput.c (output_operand_data): Initialize it.
4540         * optabs.c (maybe_legitimize_operand_same_code): New function.
4541         (maybe_legitimize_operand): Use it when matching the original
4542         op->value.
4543
4544 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4545
4546         * gimplify.c: Fix issues in comments throughout.
4547         (voidify_wrapper_expr): Fix long line.
4548         (build_stack_save_restore): Likewise.
4549         (gimplify_loop_expr): Likewise.
4550         (gimplify_compound_lval): Likewise.
4551         (gimplify_init_ctor_eval): Likewise.
4552         (gimplify_modify_expr_rhs): Likewise.
4553         (omp_notice_threadprivate_variable): Likewise.
4554
4555 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4556
4557         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4558         original one if this is not a builtin function.
4559
4560 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4561
4562         PR target/48605
4563         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4564         offset it as needed based on top 2 bits in operands[3], change
4565         MEM mode to SFmode and mask those 2 bits away from operands[3].
4566
4567 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4568
4569         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4570         change from objc_declare_protocols() to objc_declare_protocol().
4571
4572 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4573
4574         * config/i386/sse.md (sse4_1): New mode attribute.
4575         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4576         avx_blend<ssemodesuffix><avxmodesuffix> and
4577         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4578         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4579         avx_blendv<ssemodesuffix><avxmodesuffix> and
4580         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4581         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4582         avx_dp<ssemodesuffix><avxmodesuffix> and
4583         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4584         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4585         (sse4_1_packusdw): Merge with *avx_packusdw.
4586         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4587         (sse4_1_pblendw): Merge with *avx_pblendw.
4588         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4589         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4590         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4591         VF mode iterator.
4592         (sse4_1_round<ssescalarmodesuffix>): Merge with
4593         *avx_round<ssescalarmodesuffix>.
4594         (aesenc): Merge with *avx_aesenc.
4595         (aesenclast): Merge with *avx_aesenclast.
4596         (aesdec): Merge with *avx_aesdec.
4597         (aesdeclast): Merge with *avx_aesdeclast.
4598         (pclmulqdq): Merge with *pclmulqdq.
4599         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4600         New predicate.
4601         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4602
4603 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4604
4605         PR middle-end/48608
4606         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4607         (align_local_variable): This.  Update DECL_ALIGN.
4608         (add_stack_var): Updated.
4609         (expand_one_stack_var): Likewise.
4610
4611 2011-04-14  Richard Guenther  <rguenther@suse.de>
4612
4613         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4614         Remove.
4615         (dse_initialize_block_local_data, dse_leave_block,
4616         record_voperand_set, get_stmt_uid): Likewise.
4617         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4618         (dse_optimize_stmt): Remove voperand set handling code.
4619         Simplify and improve to handle any kind of killing stmt.
4620         (dse_record_phi): Remove.
4621         (dse_enter_block): Simplify.
4622         (tree_ssa_dse): Likewise.
4623         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4624
4625 2011-04-14  Jan Hubicka  <jh@suse.cz>
4626
4627         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4628         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4629         (cgraph_local_info): Remove inline_summary.
4630         * ipa-cp.c: Include ipa-inline.h.
4631         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4632         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4633         accesor.
4634         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4635         (input_overwrite_node): Do not set inline summary.
4636         (input_node): Do not stream inline summary.
4637         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4638         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4639         growth; we do not have inline parameters computed for that anyway.
4640         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4641         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4642         (inline_summary_t): New type and VECtor.
4643         (debug_inline_summary, dump_inline_summaries): Declare.
4644         (inline_summary): Use VOCtor.
4645         (estimate_edge_growth): Kill hack computing call stmt size directly.
4646         * lto-section-in.c (lto_section_name): Add inline section.
4647         * ipa-inline-analysis.c: Include lto-streamer.h
4648         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4649         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4650         (inline_summary_vec): Define.
4651         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4652         dump_inline_summaries): New functions.
4653         (estimate_function_body_sizes): Properly compute size/time of outgoing
4654         calls.
4655         (compute_inline_parameters): Alloc inline_summary; do not compute
4656         size/time of incomming calls.
4657         (estimate_edge_time): Avoid missing time summary hack.
4658         (inline_read_summary): Read inline summary info.
4659         (inline_write_summary): Write inline summary info.
4660         (inline_free_summary): Free all hooks and inline summary vector.
4661         * lto-streamer.h: Add LTO_section_inline_summary section.
4662         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4663         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4664
4665 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4666
4667         * tree-vectorizer.h (vect_strided_store_supported): Add a
4668         HOST_WIDE_INT argument.
4669         (vect_strided_load_supported): Likewise.
4670         (vect_permute_store_chain): Return void.
4671         (vect_transform_strided_load): Likewise.
4672         (vect_permute_load_chain): Delete.
4673         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4674         count argument.  Check that the count is a power of two.
4675         (vect_strided_load_supported): Likewise.
4676         (vect_permute_store_chain): Return void.  Update after above changes.
4677         Assert that the access is supported.
4678         (vect_permute_load_chain): Likewise.
4679         (vect_transform_strided_load): Return void.
4680         * tree-vect-stmts.c (vectorizable_store): Update calls after
4681         above interface changes.
4682         (vectorizable_load): Likewise.
4683         (vect_analyze_stmt): Don't check for strided powers of two here.
4684
4685 2011-04-14  Richard Guenther  <rguenther@suse.de>
4686
4687         PR tree-optimization/48590
4688         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4689         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4690         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4691         BUILT_IN_STACK_SAVE.
4692         * tree-ssa-dce.c (propagate_necessity): Handle
4693         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4694
4695 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4696
4697         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4698         objc_declare_class.
4699
4700 2011-04-14  Richard Guenther  <rguenther@suse.de>
4701
4702         * tree.h (get_object_alignment_1): Declare.
4703         * builtins.c (get_object_alignment_1): Split out worker from ...
4704         (get_object_alignment): ... here.
4705         * fold-const.c (get_pointer_modulus_and_residue): Use
4706         get_object_alignment_1.
4707
4708 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4709
4710         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4711         type parameter.
4712         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4713         parameter.  Generalise code to handle arrays as well as vectors.
4714         (vect_setup_realignment): Update accordingly.
4715         * tree-vect-stmts.c (vectorizable_store): Likewise.
4716         (vectorizable_load): Likewise.
4717
4718 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4719
4720         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4721         within the per-copy loop.
4722
4723 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4724
4725         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4726         in the dump file.
4727
4728 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4729
4730         * doc/options.texi (Negative): Explicitly mention that the
4731         Negative chain must be circular.
4732
4733 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4734
4735         * function.h (block_chainon): Declare.
4736         * function.c (block_chainon): Define.
4737
4738 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4739             Eric Weddington  <eric.weddington@atmel.com>
4740             Georg-Johann Lay  <avr@gjlay.de>
4741
4742         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4743         New Includes
4744         (avr_init_builtins, avr_expand_builtin,
4745         avr_expand_delay_cycles, avr_expand_unop_builtin,
4746         avr_expand_binop_builtin ): New functions.
4747         (avr_builtin_id): New enum
4748         (struct avr_builtin_description): New struct
4749         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4750         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4751
4752         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4753         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4754         UNSPECV_DELAY_CYCLES): new enumeration values
4755         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4756         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4757         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4758         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4759         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4760         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4761         "fmulsu"): New insns
4762
4763         * config/avr/avr-c.c: fix line endings
4764         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4765         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4766         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4767         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4768         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4769
4770         * doc/extend.texi (AVR Built-in Functions): New node
4771         (Target Builtins): Add documentation of AVR
4772         built-in functions.
4773
4774 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4775
4776         PR target/44643
4777         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4778         alone. Error if non-const data has attribute progmem.
4779
4780 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4781
4782         * tree.h (struct tree_constructor): Include tree_typed instead of
4783         tree_common.
4784         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4785         TS_TYPED instead of TS_COMMON.
4786
4787 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4788
4789         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4790         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4791         (sse2_psadbw): Merge with *avx_psadbw.
4792         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4793         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4794         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4795         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4796         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4797         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4798         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4799         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4800         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4801         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4802         (ssse3_palignrti): Merge with *avx_palignrti.
4803
4804 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4805
4806         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4807         * tree-ssanames.c (fini_ssanames): VEC_free it.
4808         (make_ssa_name_fn): Update for VECness of free_ssanames.
4809         (release_ssa_name, release_dead_ssa_names): Likewise.
4810         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4811         tree_common.
4812         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4813         TS_TYPED instead of TS_COMMON.
4814
4815 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4816
4817         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4818         statistics_counter_event.
4819         * tree-ssa-copyrename.c (stats): Define.
4820         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4821         statistics_counter_event.
4822         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4823         (bswap_stats, widen_mul_stats): Define.
4824         (insert_reciprocals): Increment rdivs_inserted.
4825         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4826         rfuncs_inserted.  Add calls to statistics_counter_event.
4827         (execute_cse_sincos_1): Increment inserted.
4828         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4829         statistics_counter_event.
4830         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4831         of bswap_stats.  Add calls to statistics_counter_event.
4832         (convert_mult_to_widen): Increment widen_mults_inserted.
4833         (convert_plusminus_to_widen): Increment maccs_inserted.
4834         (convert_mult_to_fma): Increment fmas_inserted.
4835         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4836         calls to statistics_counter_event.
4837
4838 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4839
4840         PR rtl-optimization/48455
4841         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4842         `temp_costs->mem_cost'.
4843
4844 2011-04-13  Jan Hubicka  <jh@suse.cz>
4845
4846         * ipa-inline.h: New file.
4847         * ipa-inline-analysis.c: New file. Broken out of ...
4848         * ipa-inline.c: ... this file; update toplevel comment;
4849         include ipa-inline.h
4850         (inline_summary): Move to ipa-inline.h
4851         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4852         ipa-inline-analysis.c.
4853         (cgraph_estimate_time_after_inlining): Rename to
4854         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4855         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4856         to estimate_edge_growth.
4857         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4858         rename to estimate_size_after_inlining.
4859         (cgraph_mark_inline_edge): Update for new naming convention.
4860         (cgraph_check_inline_limits): Likewise.
4861         (cgraph_edge_badness): Likewise.
4862         (cgraph_decide_recursive_inlining): Likewise.
4863         (cgraph_decide_inlining_of_small_functions): Likewise.
4864         (cgraph_decide_inlining_incrementally): Likewise.
4865         (cgraph_estimate_growth): Rename to estimate_growth; move to
4866         ipa-inline-analysis.c.
4867         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4868         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4869         (compute_inline_parameters): Likewise.
4870         (compute_inline_parameters_for_current): Likewise.
4871         (pass_inline_parameters): Likewise.
4872         (inline_indirect_intraprocedural_analysis): Likewise.
4873         (analyze_function): Rename to inline_analyze_function; likewise.
4874         (add_new_function): Move to ipa-inline-analysis.c.
4875         (inline_generate_summary): Likewise.
4876         (inline_read_summary): Likewise.
4877         (inline_write_summary): Likewise.
4878         * Makefile.in (ipa-inline-analysis.c): New file.
4879
4880 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4881
4882         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4883         * configure: Regenerate.
4884
4885 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4886
4887         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4888         instead of tree_common.
4889         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4890         Likewise.
4891         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4892         TS_TYPED rather than TS_COMMON.
4893         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4894
4895 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4896
4897         PR target/45263
4898         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4899         r20 around calls of __tablejump_elpm__
4900
4901 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4902
4903         PR middle-end/48591
4904         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4905         NULL.
4906         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4907
4908 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4909
4910         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4911         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4912         (cfi_vec): New typedef.
4913         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4914         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4915         (cie_cfi_vec): New static variable.
4916         (cie_cfi_head): Delete.
4917         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4918         declaration changed. Use vector rather than list operations.
4919         (new_cfi): Don't initialize the dw_cfi_next field.
4920         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4921         rather than list operations.
4922         (lookup_cfa): Use vector rather than list operations.
4923         (output_cfis): New argument upto. Accept a cfi_vec rather than
4924         a dw_cfi_ref list head as argument. All callers changed.
4925         Iterate over the vector using upto as a maximum index.
4926         (output_all_cfis): New static function.
4927         (output_fde): Use vector rather than list operations. Use the
4928         new upto argument for output_cfis rather than manipulating a
4929         list.
4930         (dwarf2out_begin_prologue): Change initializations to match
4931         new struct members.
4932         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4933         from the vector length rather than searching for the end of a list.
4934         Use output_all_cfis.
4935         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4936
4937 2011-04-13  Nick Clifton  <nickc@redhat.com>
4938
4939         * config/rx/rx.md (movmemsi): Do not use this pattern when
4940         volatile pointers are involved.
4941
4942 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4943
4944         * config/i386/sse.md (pinsrbits): Remove.
4945         (sse2_packsswb): Merge with *avx_packsswb.
4946         (sse2_packssdw): Merge with *avx_packssdw.
4947         (sse2_packuswb): Merge with *avx_packuswb.
4948         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4949         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4950         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4951         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4952         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4953         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4954         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4955         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4956         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4957         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4958         (sse2_loadld): Merge with *avx_loadld.
4959         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4960         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4961         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4962         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4963         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4964
4965 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4966
4967         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4968         calling TREE_CHAIN.
4969         * print-tree.c (print_node): Likewise.
4970         * tree-inline.c (copy_tree_r): Likewise.
4971         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4972         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4973         instead of TS_COMMON.
4974         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4975         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4976         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4977         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4978         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4979         ...and these...
4980         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4981         * tree.h: ...here.
4982         (TREE_CHAIN): Check for a TS_COMMON structure.
4983         (TREE_TYPE): Check for a TS_TYPED structure.
4984
4985 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4986
4987         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4988         cgraph_get_create_node instead of cgraph_node.
4989
4990 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4991
4992         * c-parser.c (c_parser_initelt): Updated call to
4993         objc_build_message_expr.
4994         (c_parser_postfix_expression): Likewise.
4995
4996 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4997
4998         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4999         MASK_MS_BITFIELD_LAYOUT bit.
5000
5001 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5002
5003         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5004         assert it is always true.
5005         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5006         moves.
5007
5008 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5009
5010         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5011         compiling Objective-C to be more efficient.
5012
5013 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5014
5015         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5016         argv_copied.
5017
5018 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5019
5020         * recog.h, genoutput.c, optabs.c: Revert last patch.
5021
5022 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5023
5024         PR target/48090
5025         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5026
5027 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5028
5029         * recog.h (insn_operand_data): Add an "allows_mem" field.
5030         * genoutput.c (output_operand_data): Initialize it.
5031         * optabs.c (maybe_legitimize_operand_same_code): New function.
5032         (maybe_legitimize_operand): Use it when matching the original
5033         op->value.
5034
5035 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5036
5037         * genpreds.c (process_define_predicate): Move most processing
5038         to gensupport.c.  Continue to validate the expression.
5039         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5040         (process_define_predicate): Move processing to gensupport.c.
5041         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5042         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5043         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5044         argument.
5045         (valid_predicate_name_p): New function, split out from old
5046         genpreds.c:process_define_predicate.
5047         (process_define_predicate): New function, combining code from
5048         old genpreds.c and genrecog.c functions.
5049         (process_rtx): Call it for DEFINE_PREDICATE and
5050         DEFINE_SPECIAL_PREDICATE.
5051
5052 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5053
5054         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5055         size of a '%A' memory reference.
5056         (T_DREG, T_QREG): New neon_builtin_type_bits.
5057         (arm_init_neon_builtins): Assert that the load and store operands
5058         are neon_struct_operands.
5059         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5060         (NEON_ARG_MEMORY): New builtin_arg.
5061         (neon_dereference_pointer): New function.
5062         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5063         Handle NEON_ARG_MEMORY.
5064         (arm_expand_neon_builtin): Update after above interface changes.
5065         Use NEON_ARG_MEMORY for loads and stores.
5066         * config/arm/predicates.md (neon_struct_operand): New predicate.
5067         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5068         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5069         (V_four_elem): Tweak formatting.
5070         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5071         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5072         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5073         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5074         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5075         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5076         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5077         Use %A in the output template.
5078         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5079         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5080         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5081         the width of the memory access.  Remove post-increment.
5082         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5083
5084 2011-04-12  Nick Clifton  <nickc@redhat.com>
5085
5086         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5087         instruction for interrupt handlers if the target is the basic V850
5088         architecture.
5089         (expand_epilogue): Likewise.
5090
5091 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5092
5093         PR rtl-optimization/48549
5094         * combine.c (propagate_for_debug): Also stop after BB_END of
5095         this_basic_block.  Process LAST and just stop processing after it.
5096         (combine_instructions): If last_combined_insn has been deleted,
5097         set last_combined_insn to its PREV_INSN.
5098
5099 2011-04-12  Richard Guenther  <rguenther@suse.de>
5100
5101         PR tree-optimization/46076
5102         * gimple.h (struct gimple_statement_call): Add fntype field.
5103         (gimple_call_fntype): Adjust.
5104         (gimple_call_set_fntype): New function.
5105         * gimple.c (gimple_build_call_1): Set the call function type.
5106         * gimplify.c (gimplify_call_expr): Preserve the function
5107         type the frontend used for the call.
5108         (gimplify_modify_expr): Likewise.
5109         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5110         function type.
5111         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5112         function type.
5113         * tree-ssa.c (useless_type_conversion_p): Function pointer
5114         conversions are useless.
5115
5116 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5117
5118         * cgraph.h (cgraph_node): Remove function declaration.
5119         (cgraph_create_node): Declare.
5120         (cgraph_get_create_node): Likewise.
5121         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5122         Updated all callers.
5123         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5124         the decl does not already exist.  Call cgraph_get_create_node instead
5125         of cgraph_node.
5126         (cgraph_get_create_node): New function.
5127         (cgraph_same_body_alias): Update comment.
5128         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5129         assert it does not return NULL.
5130         (cgraph_update_edges_for_call_stmt): Likewise.
5131         (cgraph_clone_edge): Likewise.
5132         (cgraph_create_virtual_clone): Likewise.
5133         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5134         instead of cgraph_node.
5135         (cgraph_add_new_function): Call cgraph_create_node or
5136         cgraph_get_create_node instead of cgraph_node.
5137         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5138         instead of cgraph_node.
5139         (record_eh_tables): Likewise.
5140         (mark_address): Likewise.
5141         (mark_load): Likewise.
5142         (build_cgraph_edges): Call cgraph_get_create_node instead
5143         of cgraph_node.
5144         (rebuild_cgraph_edges): Likewise.
5145         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5146         instead of cgraph_node.
5147         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5148         cgraph_node.
5149         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5150         cgraph_create_node instead of cgraph_node.
5151         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5152         of cgraph_node.
5153         * lto-cgraph.c (input_node): Likewise.
5154         * lto-streamer-in.c (input_function): Likewise.
5155         * varasm.c (mark_decl_referenced): Likewise.
5156         (assemble_alias): Likewise.
5157
5158 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5159
5160         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5161         instead of cgraph_node and assert it does not return NULL.
5162         * lto-streamer-in.c (lto_read_body): Likewise.
5163         * omp-low.c (new_omp_context): Likewise.
5164         (create_task_copyfn): Likewise.
5165         * tree-emutls.c (lower_emutls_function_body): Likewise.
5166         * matrix-reorg.c (transform_allocation_sites): Likewise.
5167
5168 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5169
5170         PR c/48552
5171         * c-typeck.c (build_asm_expr): Error out on attempts to use
5172         void type outputs or inputs for constraints that allow reg or
5173         don't allow memory.
5174
5175 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5176             Richard Earnshaw  <rearnsha@arm.com>
5177
5178         PR target/48250
5179         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5180         to use sign-magnitude offsets. Reject unsupported unaligned
5181         cases. Add detailed description in comments.
5182         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5183         condition from TARGET_32BIT to TARGET_ARM.
5184
5185 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5186
5187         * tree.h (struct typed_tree): New.
5188         (struct tree_common): Include it instead of tree_base.
5189         (TREE_TYPE): Update for new location of type field.
5190         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5191         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5192         (union tree_node): Add typed field.
5193         * treestruct.def (TS_TYPED): New.
5194         * lto-streamer.c (check_handled_ts_structures): Handle it.
5195         * tree.c (MARK_TS_TYPED): New macro.
5196         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5197
5198 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5199
5200         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5201         (force_nonfallthru): Do not alter the loop nest if no basic block
5202         was created.
5203
5204 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5205
5206         * config/i386/sse.md (VI): New mode iterator.
5207         (SSEMODEI): Remove.
5208         (AVX256MODEI): Ditto.
5209         (AVXMODEF4P): Ditto.
5210         (avxvecpsmode): Ditto.
5211         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5212         (sse2_andnot<mode>3): New expander.
5213         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5214         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5215         (<any_logic:code><mode>3): Use VI mode iterator.
5216         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5217         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5218         (*andnottf3): Handle AVX three-operand constraints.
5219         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5220
5221 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5222             Robert Millan  <rmh@gnu.org>
5223
5224         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5225         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5226         GNU_USER_DYNAMIC_LINKER64): Define.
5227         (REG_NAME): Don't undefine.
5228         (MD_UNWIND_SUPPORT): Undefine.
5229         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5230         (REG_NAME): Don't undefine.
5231         (MD_UNWIND_SUPPORT): Undefine.
5232         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5233
5234 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5235
5236         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5237         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5238
5239 2011-04-11  Xinliang David Li  <davidxl@google.com>
5240
5241         * value-profile.c (check_ic_target): New function.
5242         (gimple_ic_transform): Sanity check indirect call target.
5243         * gimple-low.c (gimple_check_call_args): Interface change.
5244         (gimple_check_call_matching_types): New function.
5245         * tree-inline.c (tree_can_inline_p): Call new function.
5246
5247 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5248
5249         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5250         tree-pretty-print.h & realmpfr.h.
5251
5252 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5253
5254         PR middle-end/48464
5255         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5256         (setup_allocno_and_important_classes): Ditto.
5257
5258 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5259
5260         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5261         GNU_USER_DYNAMIC_LINKER.
5262         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5263         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5264         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5265         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5266         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5267         GNU_USER_TARGET_OS_CPP_BUILTINS.
5268         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5269         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5270         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5271         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5272         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5273         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5274         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5275         GNU_USER_TARGET_OS_CPP_BUILTINS.
5276         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5277         GNU_USER_DYNAMIC_LINKER.
5278         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5279         GNU_USER_TARGET_OS_CPP_BUILTINS.
5280         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5281         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5282         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5283         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5284         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5285         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5286         GNU_USER_DYNAMIC_LINKER64): Remove.
5287         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5288         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5289         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5290         GNU_USER_DYNAMIC_LINKER.
5291         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5292         GNU_USER_TARGET_OS_CPP_BUILTINS.
5293         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5294         GNU_USER_TARGET_OS_CPP_BUILTINS.
5295         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5296         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5297         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5298         GNU_USER_TARGET_OS_CPP_BUILTINS.
5299         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5300         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5301         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5302         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5303         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5304         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5305         GNU_USER_DYNAMIC_LINKER.
5306         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5307         GNU_USER_TARGET_OS_CPP_BUILTINS.
5308         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5309         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5310         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5311         GNU_USER_DYNAMIC_LINKER.
5312         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5313         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5314         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5315         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5316         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5317         GNU_USER_DYNAMIC_LINKER.
5318         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5319         GNU_USER_DYNAMIC_LINKERN32.
5320         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5321         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5322         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5323         GNU_USER_DYNAMIC_LINKER32.
5324         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5325         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5326         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5327         GNU_USER_DYNAMIC_LINKER.
5328         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5329         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5330         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5331         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5332         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5333         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5334         GNU_USER_DYNAMIC_LINKER32.
5335         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5336         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5337         GNU_USER_DYNAMIC_LINKER.
5338         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5339         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5340         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5341         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5342         GNU_USER_DYNAMIC_LINKER64.
5343         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5344         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5345         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5346         GNU_USER_DYNAMIC_LINKER.
5347         * config/sparc/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/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5352         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5353         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5354         GNU_USER_DYNAMIC_LINKER32.
5355         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5356         GNU_USER_DYNAMIC_LINKER64.
5357         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5358         GNU_USER_DYNAMIC_LINKER64.
5359         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5360         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5361         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5362         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5363         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5364
5365 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5366
5367         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5368         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5369         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5370         GNU_USER_DYNAMIC_LINKER.
5371         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5372         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5373         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5374         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5375         GNU_USER_DYNAMIC_LINKER64.
5376         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5377         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5378         GNU_USER_LINK_EMULATION.
5379         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5380         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5381         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5382         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5383         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5384         CPP_SPEC, CC1_SPEC): Remove.
5385         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5386         (GNU_USER_DYNAMIC_LINKER): Define.
5387         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5388         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5389         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5390         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5391         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5392         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5393         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5394         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5395         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5396         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5397         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5398         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5399         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5400         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5401         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5402         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5403         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5404         GNU_USER_DYNAMIC_LINKER.
5405         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5406         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5407         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5408         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5409         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5410         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5411         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5412         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5413         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5414         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5415
5416 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5417
5418         PR target/9601
5419         PR target/11772
5420         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5421         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5422         comment.
5423         (ix86_is_msabi_thiscall): Removed.
5424         (ix86_is_type_thiscall): Likewise.
5425         (ix86_get_callcvt): New function.
5426         (ix86_comp_type_attributes): Simplify check.
5427         (ix86_function_regparm): Use ix86_get_callcvt for calling
5428         convention attribute checks.
5429         (ix86_return_pops_args): Likewise.
5430         (ix86_static_chain): Likewise.
5431         (x86_this_parameter): Likewise.
5432         (x86_output_mi_thunk): Likewise.
5433         (ix86_function_type_abi): Optimize check for types without attributes.
5434         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5435         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5436         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5437         by flag-values.
5438         (IX86_BASE_CALLCVT): Helper macro.
5439         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5440         Use ix86_get_callcvt for calling convention attribute checks and avoid
5441         symbol-decoration for stdcall in TARGET_RTD case.
5442         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5443         Likewise.
5444         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5445         for declaration.
5446
5447 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5448
5449         * config/i386/sse.md (VI_128): New mode iterator.
5450         (VI12_128): Rename from SSEMODE12.
5451         (VI14_128): Rename from SSEMODE14.
5452         (VI124_128): New mode iterator.
5453         (VI24_128): Rename from SSEMODE248.
5454         (VI248_128): Rename from SSEMODE248.
5455         (SSEMODE124C8): Remove.
5456         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5457         (*sse2_<plusminus_insn><mode>3): Merge with
5458         *avx_<plusminus_insn><mode>3.
5459         (*mulv8hi3): Merge with *avx_mulv8hi3.
5460         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5461         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5462         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5463         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5464         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5465         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5466         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5467         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5468         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5469         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5470         (*<smaxmin:code>v8hi3): Ditto.
5471         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5472         (*<smaxmin:code>v16qi3): Ditto.
5473         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5474         (*sse2_eq<mode>3): Ditto.
5475         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5476         (*sse2_gt<mode>3): Ditto.
5477         (vcondv2di): Split out of vcond<mode>.
5478         (vconduv2di): Split out of vcondu<mode>.
5479
5480 2011-04-11  Richard Guenther  <rguenther@suse.de>
5481
5482         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5483         before calling tree_low_cst.
5484
5485 2011-04-11  Richard Guenther  <rguenther@suse.de>
5486
5487         * stor-layout.c (layout_type): Compute all array index size operations
5488         in the original type.
5489         (initialize_sizetypes): Add comment.
5490         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5491
5492 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5493
5494         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5495
5496 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5497
5498         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5499         of cgraph_node, handle NULL return value.
5500         (cgraph_global_info): Likewise.
5501         (cgraph_rtl_info): Likewise.
5502         * tree-inline.c (estimate_num_insns): Likewise.
5503         * gimplify.c (unshare_body): Likewise.
5504         (unvisit_body): Likewise.
5505         (gimplify_body): Likewise.
5506         * predict.c (optimize_function_for_size_p): Likewise.
5507         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5508         (call_may_clobber_ref_p_1): Likewise.
5509         * varasm.c (function_section_1): Likewise.
5510         (assemble_start_function): Likewise.
5511
5512 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5513
5514         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5515         of cgraph_node.
5516         * final.c (rest_of_clean_state): Likewise.
5517         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5518         * passes.c (pass_init_dump_file): Likewise.
5519         (execute_all_ipa_transforms): Likewise.
5520         (function_called_by_processed_nodes_p): Likewise.
5521         * predict.c (maybe_hot_frequency_p): Likewise.
5522         (probably_never_executed_bb_p): Likewise.
5523         (compute_function_frequency): Likewise.
5524         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5525         (unnest_nesting_tree_1): Likewise.
5526         (lower_nested_functions): Likewise.
5527         * tree-optimize.c (execute_fixup_cfg): Likewise.
5528         (tree_rest_of_compilation): Likewise.
5529         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5530         * tree-sra.c (ipa_early_sra): Likewise.
5531         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5532         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5533         * ipa.c (record_cdtor_fn): Likewise.
5534         * ipa-inline.c (cgraph_early_inlining): Likewise.
5535         (compute_inline_parameters_for_current): Likewise.
5536         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5537         * ipa-pure-const.c (local_pure_const): Likewise.
5538         * ipa-split.c (split_function): Likewise.
5539         (execute_split_functions): Likewise.
5540         * cgraphbuild.c (build_cgraph_edges): Likewise.
5541         (rebuild_cgraph_edges): Likewise.
5542         (cgraph_rebuild_references): Likewise.
5543         (remove_cgraph_callee_edges): Likewise.
5544         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5545         (verify_cgraph_node): Likewise.
5546         (cgraph_analyze_functions): Likewise.
5547         (cgraph_preserve_function_body_p): Likewise.
5548         (save_inline_function_body): Likewise.
5549         (save_inline_function_body): Likewise.
5550         * tree-inline.c (copy_bb): Likewise.
5551         (optimize_inline_calls): Likewise.
5552
5553 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5554
5555         PR tree-optimization/48195
5556         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5557         ipa_check_create_edge_args.
5558         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5559         ipa_check_create_edge_args.
5560         * ipa-inline.c (inline_generate_summary): Do not call
5561         ipa_check_create_node_params and ipa_check_create_edge_args.
5562         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5563         ipa_check_create_edge_args.
5564
5565 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5566
5567         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5568         instead of loop.
5569         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5570         * function.c (record_hard_reg_sets): Likewise.
5571         * ira.c (compute_regs_asm_clobbered): Likewise.
5572         * sched-deps.c (sched_analyze_1): Likewise.
5573         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5574
5575 2011-04-09  Xinliang David Li  <davidxl@google.com>
5576
5577         PR tree-optimization/PR48484
5578         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5579         has_valid_pred lazily
5580
5581 2011-04-09  Duncan Sands  <baldrick@free.fr>
5582
5583         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5584
5585 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5586
5587         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5588         cost of I0 to zero at the end, if any.
5589
5590 2011-04-08  Xinliang David Li  <davidxl@google.com>
5591
5592         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5593         to insane profile data.
5594
5595 2011-04-08  Xinliang David Li  <davidxl@google.com>
5596
5597         * ipa-cp.c (ipcp_update_profiling): Correct
5598          negative scale factor due to insane profile data.
5599
5600 2011-04-08  Xinliang David Li  <davidxl@google.com>
5601
5602         * final.c (dump_basic_block_info): New function.
5603         (final): Dump basic block.
5604         (final_scan_insn): Remove old dump.
5605
5606 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5607
5608         PR target/47829
5609         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5610         crtbegin/crtend.
5611
5612 2011-04-08  Michael Matz  <matz@suse.de>
5613
5614         PR middle-end/48389
5615         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5616         functions.
5617         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5618         * rtl.h (rebuild_jump_labels_chain): Declare.
5619         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5620         insns inserted on edges.
5621
5622 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5623
5624         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5625         * config/arm/arm-arches.def: New.
5626         * config/arm/arm-opts.h: New.
5627         * config/arm/genopt.sh: New.
5628         * config/arm/arm-tables.opt: New (generated).
5629         * config/arm/arm.c (arm_handle_option, arm_target_help,
5630         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5631         (all_architectures): Get most table contents from arm-arches.def.
5632         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5633         arm_selected_tune here.
5634         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5635         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5636         (march=, mcpu=, mtune=): Use Enum and Var.
5637         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5638         (arm.o): Update dependencies.
5639
5640 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5641
5642         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5643         of header_file.
5644         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5645         (write_typed_alloc_defns): Likewise.
5646         (main): Calls write_typed_alloc_defns with output_header.
5647
5648 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5649
5650         PR inline-asm/48435
5651         * ira-color.c (setup_profitable_hard_regs): Add comments.
5652         Don't take prohibited hard regs into account.
5653         (setup_conflict_profitable_regs): Rename to
5654         get_conflict_profitable_regs.
5655         (check_hard_reg_p): Check prohibited hard regs.
5656
5657 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5658
5659         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5660         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5661         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5662
5663 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5664
5665         PR target/48366
5666         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5667         move from floating point to shift amount register.
5668         (emit_move_sequence): Remove secondary reload support for floating
5669         point to shift amount amount register copies.
5670         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5671         amount register copies.
5672         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5673         register, return false if mode isn't a scalar integer mode.
5674         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5675
5676 2011-04-08  Richard Guenther  <rguenther@suse.de>
5677
5678         * gimple.c (gimple_call_flags): Remove kludge.
5679
5680 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5681
5682         * sel-sched.c (sel_region_init): Move call to
5683         sel_setup_region_sched_flags after setup_current_loop_nest.
5684
5685 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5686
5687         PR rtl-optimization/48272
5688         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5689         init_insn_reg_pressure_info.  Adjust a caller.
5690         * sched-int.h (init_insn_reg_pressure_info): Declare.
5691         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5692         when sched-pressure is enabled.
5693
5694 2011-04-08  Richard Guenther  <rguenther@suse.de>
5695
5696         * gimple.c (gimple_set_modified): Do not queue calls to
5697         MODIFIED_NORETURN_CALLS here ...
5698         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5699
5700 2011-04-08  Richard Guenther  <rguenther@suse.de>
5701
5702         PR lto/48467
5703         * toplev.c (lang_dependent_init): Do not open asm_out_file
5704         in WPA mode, nor perform debug machinery initialization.
5705         (finalize): Do not unlink asm_out_file in WPA mode.
5706
5707 2011-04-08  Richard Guenther  <rguenther@suse.de>
5708
5709         * gimple.h (gimple_call_fntype): New function.
5710         (gimple_call_return_type): Use it.
5711         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5712         * gimple-low.c (gimple_check_call_args): Likewise.
5713         * gimple.c (gimple_call_flags): Likewise.
5714         (gimple_call_arg_flags): Likewise.
5715         (gimple_call_return_flags): Likewise.
5716         * tree-cfg.c (verify_gimple_call): Likewise.
5717         (do_warn_unused_result): Likewise.
5718         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5719         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5720
5721 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5722
5723         PR rtl-optimization/48235
5724         * sel-sched.c (code_motion_process_successors): Recompute the last
5725         insn in basic block if control flow changed.
5726         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5727         Update condition for ilist_remove.
5728
5729 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5730
5731         PR rtl-optimization/48302
5732         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5733         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5734         it to record added preheader blocks.
5735         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5736         on to sel_add_loop_preheaders.
5737         (sel_region_init): Move call to setup_current_loop_nest after
5738         sel_init_bbs.
5739
5740 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5741
5742         PR target/48273
5743         * cfgloop.h (loop_has_exit_edges): New helper.
5744         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5745         non-clonable.
5746         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5747         that have no exit edges.
5748
5749 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5750
5751         PR rtl-optimization/48442
5752         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5753         all callers.  Adjust assert.
5754
5755 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5756
5757         PR tree-optimization/48377
5758         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5759         is_packed to true even for types with smaller TYPE_ALIGN than
5760         TYPE_SIZE.
5761
5762 2011-04-08  Richard Guenther  <rguenther@suse.de>
5763
5764         PR bootstrap/48513
5765         * doc/tm.texi: Re-generate.
5766
5767 2011-04-08  Wei Guozhi  <carrot@google.com>
5768
5769         PR target/47855
5770         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5771         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5772         * config/arm/arm.md (*push_multi): Change the length computation to
5773         call a C function.
5774
5775 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5776
5777         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5778         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5779         * doc/tm.texi: Regenerate.
5780         * system.h (ASM_OUTPUT_BSS): Poison.
5781         * varasm.c (asm_output_bss): Remove function.
5782         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5783
5784         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5785         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5786         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5787         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5788         Likewise.
5789         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5790         Likewise.
5791         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5792         Likewise.
5793         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5794
5795 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5796
5797         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5798         EnumValue lines.
5799
5800 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5801
5802         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5803         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5804         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5805         OPT_mcpu32.
5806         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5807         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5808         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5809         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5810         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5811         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5812         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5813         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5814         options.  Don't map other m68k options manually.  Don't handle
5815         old-style options as canonical.
5816         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5817         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5818
5819 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5820
5821         * basic-block.h (force_nonfallthru): Move to...
5822         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5823         (force_nonfallthru): ...here.
5824         * cfghooks.c (force_nonfallthru): New function.
5825         * cfgrtl.c (force_nonfallthru): Rename into...
5826         (rtl_force_nonfallthru): ...this.
5827         (commit_one_edge_insertion): Do not set AUX field.
5828         (commit_edge_insertions): Do not discover new basic blocks.
5829         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5830         (cfg_layout_rtl_cfg_hooks): Likewise.
5831         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5832         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5833         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5834
5835 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5836
5837         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5838         Remove macros.
5839
5840 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5841
5842         * config/i386/sse.md: Update copyright year.
5843         (avxcvtvecmode): Remove.
5844         (sse_movhlps): Merge with *avx_movhlps.
5845         (sse_movlhps): Merge with *avx_movlhps.
5846         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5847         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5848         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5849         (sse_loadhps): Merge with *avx_loadhps.
5850         (sse_storelps): Merge with *avx_storelps.
5851         (sse_loadlps): Merge with *avx_loadlps.
5852         (sse_movss): Merge with *avx_movss.
5853         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5854         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5855         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5856         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5857         (vec_set<mode>_0): Ditto.
5858         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5859         (sse4_1_insertps): Merge with *avx_insertps.
5860         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5861         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5862         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5863         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5864         (sse2_storehpd): Merge with *avx_storehpd.
5865         (sse2_loadhpd): Merge with *avx_loadhpd.
5866         (sse2_loadlpd): Merge with *avx_loadlpd.
5867         (sse2_movsd): Merge with *avx_movsd.
5868         (*vec_concatv2df): Merge with *vec_concatv2df.
5869
5870 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5871
5872         PR debug/48343
5873         * combine.c (combine_instructions): Add last_combined_insn,
5874         update it if insn is after it, pass it to all try_combine calls.
5875         (try_combine): Add last_combined_insn parameter, pass it instead of
5876         i3 to propagate_for_debug.
5877
5878 2011-04-07  Nick Clifton  <nickc@redhat.com>
5879
5880         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5881         to handle MDR <-> data register transfers.
5882         (movhi_internal): Likewise.
5883
5884 2011-04-07  Alan Modra  <amodra@gmail.com>
5885
5886         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5887         previous stack info.
5888
5889 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5890
5891         PR target/43920
5892         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5893         flow_find_cross_jump.  Swap variables to implement backward replacement.
5894         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5895
5896 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5897
5898         PR target/43920
5899         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5900         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5901         and bb2.
5902         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5903         src1 or src2.  Redirect edges to the last basic block.  Update
5904         frequency and count on multiple basic blocks in case of fallthru.
5905
5906 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5907
5908         PR target/43920
5909         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5910         function.
5911         (old_insns_match_p): Change return type.  Replace return false/true
5912         with return dir_none/dir_both.  Use can_replace_by.
5913         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5914         direction from dir_p.  Register replacement direction in dir, last_dir
5915         and afterlast_dir.  Handle new return type of old_insns_match_p using
5916         merge_dir.  Return replacement direction in dir_p.
5917         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5918         return type of old_insns_match_p.
5919         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5920         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5921         flow_find_cross_jump.
5922         * basic-block.h (enum replace_direction): New type.
5923         (flow_find_cross_jump): Add parameter to declaration.
5924
5925 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5926
5927         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5928         (AVXMODEDCVTPS2DQ): Ditto.
5929         (VEC_FLOAT_MODE): Ditto.
5930         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5931         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5932         (<any_logic:code><mode>3): Use VF mode iterator.
5933         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5934         Use VF mode iterator.
5935         (copysign<mode>3): Use VF mode iterator.
5936         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5937         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5938         (*<any_logic:code><MODEF:mode>3): Merge with
5939         *avx_<any_logic:code><MODEF:mode>3.
5940         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5941         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5942         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5943         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5944         (sse2_cvtdq2ps): Use %v modifier.
5945         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5946         (avx_cvtps2dq<avxmodesuffix>): Remove.
5947         (sse2_cvtps2dq): Use %v modifier.
5948         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5949         (avx_cvttps2dq<avxmodesuffix>): Remove.
5950         (sse2_cvttps2dq): Use %v modifier.
5951         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5952         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5953         (sse2_cvtsd2siq): Fix insn template.
5954         (sse2_cvtsd2siq_2): Ditto.
5955         (sse2_cvttsd2siq): Ditto.
5956         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5957         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5958
5959 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5960
5961         * gcov-io.c: Use GCC Runtime Library Exception.
5962
5963 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5964
5965         PR debug/48466
5966         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5967         as base_reg whatever register reg has been eliminated to, instead
5968         of hardcoding STACK_POINTER_REGNUM.
5969
5970 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5971
5972         * doc/tm.texi.in: Document C target hooks as separate from general
5973         target hooks.
5974         * doc/tm.texi: Regenerate.
5975         * genhooks.c (struct hook_desc): Add docname field.
5976         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5977         docname field.
5978         (hook_array): Include c-target.def.
5979         (emit_documentation): Use docname field in output.
5980         (emit_init_macros): Take docname argument.  Only emit definitions
5981         for hooks matching docname.
5982         (main): Expect additional arguments in all cases.  Pass argument
5983         to emit_init_macros.
5984         * target.def: Move initial macro definitions and comments to
5985         target-hooks-macros.h.
5986         (gcc_targetcm): Move to c-family/c-target.def.
5987         * target.h (targetcm): Move declaration to c-family/c-target.h.
5988         * targhooks.c (default_handle_c_option): Move to
5989         c-family/c-opts.c.
5990         * targhooks.h (default_handle_c_option): Move declaration to
5991         c-family/c-common.h.
5992         * target-hooks-macros.h: New file.
5993         * config.gcc (target_has_targetcm): Define and use to add to
5994         c_target_objs and cxx_target_objs.
5995         * config/default-c.c: New file.
5996         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5997         of target.h and target-def.h.
5998         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5999         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6000         darwin_check_cfstring_format_arg): Make static.
6001         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6002         TARGET_STRING_OBJECT_REF_TYPE_P,
6003         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6004         * config/darwin-protos.h (darwin_objc_construct_string,
6005         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6006         declare.
6007         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6008         TARGET_STRING_OBJECT_REF_TYPE_P,
6009         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6010         * config/t-darwin (darwin-c.o): Update dependencies.
6011         * system.h (TARGET_HAS_TARGETCM): Poison.
6012         * Makefile.in (TARGET_H): Update.
6013         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6014         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6015         (default-c.o): New target.
6016         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6017         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6018         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6019         c-target.def.
6020         (build/genhooks.o): Update dependencies.
6021
6022 2011-04-06  Richard Guenther  <rguenther@suse.de>
6023
6024         * ipa-inline.c (enum inlining_mode): Remove.
6025         (cgraph_flatten): Use some other token.
6026         (cgraph_edge_early_inlinable_p): New function, split out from ...
6027         (cgraph_perform_always_inlining): New function, split out from ...
6028         (cgraph_decide_inlining_incrementally): ... here.
6029         (cgraph_mark_inline_edge): Adjust.
6030         (cgraph_early_inlining): Re-structure.
6031         (pass_early_inline): Require SSA form.
6032
6033 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6034             Julian Brown  <julian@codesourcery.com>
6035             Mark Shinwell  <shinwell@codesourcery.com>
6036
6037         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6038         LO_REGS only for Thumb-1.
6039         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6040         be used in short instructions when optimising for size on Thumb-2.
6041
6042 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6043
6044         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6045         associated with user returns to be preserved.
6046
6047 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6048
6049         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6050         symbol_queue_size, DBXOUT_DECR_NESTING,
6051         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6052         if XCOFF_DEBUGGING_INFO.
6053
6054 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6055
6056         * config/i386/i386.md (attribute isa): New.
6057         (attribute enabled): New.
6058         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6059         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6060         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6061         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6062         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6063         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6064         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6065         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6066
6067         * config/i386/sse.md (VF): New mode iterator.
6068         (VF1): Ditto.
6069         (VF2): Ditto.
6070         (VF_128): Ditto.
6071         (SSEMODEF4): Remove.
6072         (attribute sse): Handle V8SF and V4DF modes.
6073         (<absneg:code><mode>2): Use VF mode iterator.
6074         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6075         mode iterator.
6076         (<plusminus_insn><mode>3): Use VF mode iterator.
6077         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6078         Use VF mode iterator.
6079         (<sse>_vm<plusminus_insn><mode>3): Merge with
6080         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6081         (mul<mode>3): Use VF mode iterator.
6082         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6083         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6084         mode iterator.
6085         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6086         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6087         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6088         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6089         mode iterator.
6090         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6091         Use VF1 mode iterator.
6092         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6093         (sqrt<VF2:mode>2): New expander.
6094         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6095         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6096         and sqrtv2df2.  Use VF mode iterator.
6097         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6098         mode iterator.
6099         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6100         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6101         Use VF1 mode iterator.
6102         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6103         (<smaxmin:code><mode>3): Use VF mode iterator.
6104         (*<smaxmin:code><mode>3_finite): Merge with
6105         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6106         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6107         (<sse>_vm<smaxmin:code><mode>2): Merge with
6108         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6109         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6110         mode iterator.
6111         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6112         mode iterator.
6113         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6114         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6115         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6116         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6117         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6118         VF mode iterator.
6119         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6120         Use VF_128 mode iterator.
6121         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6122         mode iterator.
6123         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6124         VF_128 mode iterator.
6125         (vcond<mode>): Use VF mode iterator.
6126         * config/i386/predicates.md (sse_comparison_operator): Merge with
6127         avx_comparison_float_operator.  Do not declare as special_predicate.
6128         * config/i386/i386.c (struct builtin_description): Update for renamed
6129         compare patterns.
6130         (ix86_expand_args_builtin): Ditto.
6131         (ix86_expand_sse_compare_mask): Ditto.
6132
6133 2011-04-06  Richard Guenther  <rguenther@suse.de>
6134
6135         * tree-inline.c (estimate_num_insns): For calls simply account
6136         for all passed arguments and a used return value.
6137
6138 2011-04-06  Richard Guenther  <rguenther@suse.de>
6139
6140         PR tree-optimization/47663
6141         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6142         call_stmt_time fields.
6143         (cgraph_edge_inlinable_p): Declare.
6144         (cgraph_edge_recursive_p): New inline function.
6145         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6146         (cgraph_clone_edge): Copy it.
6147         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6148         Account for call stmt time.
6149         (cgraph_estimate_time_after_inlining): Take edge argument.
6150         (cgraph_estimate_edge_growth): Account call stmt size.
6151         (cgraph_estimate_size_after_inlining): Take edge argument.
6152         (cgraph_mark_inline_edge): Adjust.
6153         (cgraph_check_inline_limits): Likewise.
6154         (cgraph_recursive_inlining_p): Remove.
6155         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6156         (cgraph_decide_recursive_inlining): Take edge argument and
6157         adjust.
6158         (cgraph_decide_inlining_of_small_functions): Do not avoid
6159         diags for recursive inlining here.
6160         (cgraph_flatten): Adjust.
6161         (cgraph_decide_inlining_incrementally): Likewise.
6162         (estimate_function_body_sizes): Remove call cost handling.
6163         (compute_inline_parameters): Initialize caller edge call costs.
6164         (cgraph_estimate_edge_growth): New function.
6165         (cgraph_estimate_growth): Use it.
6166         (cgraph_edge_badness): Likewise.
6167         (cgraph_check_inline_limits): Take an edge argument.
6168         (cgraph_decide_inlining_of_small_functions): Adjust.
6169         (cgraph_decide_inlining): Likewise.
6170         * tree-inline.c (estimate_num_insns): Only account for call
6171         return value if it is used.
6172         (expand_call_inline): Avoid diagnostics on recursive inline
6173         functions here.
6174         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6175         (input_edge): Input edge call costs.
6176
6177 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6178
6179         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6180
6181 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6182
6183         * doc/invoke.texi (Spec Files): Fix typo.
6184
6185 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6186
6187         * profile.c (branch_prob): Move declaration of local variable.  Remove
6188         obsolete ??? comment.  Expand the location explicitly instead of using
6189         the LOCATION_FILE and LOCATION_LINE macros.
6190
6191 2011-04-06  Wei Guozhi  <carrot@google.com>
6192
6193         PR target/47855
6194         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6195         (arm_cond_branch): Likewise.
6196         (arm_cond_branch_reversed): Likewise.
6197         (arm_jump): Likewise.
6198         (push_multi): Likewise.
6199         * config/arm/constraints.md (Py): New constraint.
6200
6201 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6202
6203         PR bootstrap/48471
6204         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6205         Move these...
6206         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6207         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6208         #ifdef DBX_DEBUGGING_INFO.
6209
6210 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6211
6212         PR bootstrap/48403
6213         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6214         if old and new states differ.
6215
6216 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6217
6218         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6219         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6220         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6221         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6222         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6223         mcfv4e): Use Alias.
6224         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6225         ColdFire options to -mcpu= options.
6226
6227 2011-04-05  Jeff Law  <law@redhat.com>
6228
6229         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6230         check if BB is a successor of LOOP->header and return
6231         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6232
6233 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6234
6235         * cprop.c (struct reg_use): Remove.
6236         (reg_use_table): Make an array of RTX.
6237         (find_used_regs, constprop_register, local_cprop_pass,
6238         bypass_block): Simplify users of reg_use_table.
6239         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6240         on one of the uses found by find_used_regs.
6241
6242 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6243
6244         PR bootstrap/48469
6245         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6246         declaration.
6247
6248 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6249
6250         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6251         as an rtx.
6252         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6253
6254 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6255
6256         PR middle-end/48441
6257         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6258
6259 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6260
6261         * combine.c: Include obstack.h.
6262         (struct insn_link): Define.
6263         (uid_log_links): Adjust type.
6264         (FOR_EACH_LOG_LINK): New macro.
6265         (insn_link_obstack): Declare.
6266         (alloc_insn_link): Define.
6267         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6268         type of link variables.
6269         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6270         (try_combine, record_promoted_values, distribute_notes): Likewise.
6271         (distribute_links): Likewise.  Tweak prototype.
6272         (clear_log_links): Delete.
6273         (adjust_for_new_dest): Call alloc_insn_link.
6274         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6275
6276 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6277
6278         * gcse.c (modify_mem_list): Convert to an array of VECs.
6279         (canon_modify_mem_list, compute_transp): Tweak formatting.
6280         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6281         (load_killed_in_block_p): Likewise.
6282         (record_last_mem_set_info): Likewise.
6283         (clear_modify_mem_tables): Likewise.
6284
6285 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6286
6287         PR middle-end/48461
6288         * function.c (emit_use_return_register_into_block): Only define if
6289         HAVE_return.
6290
6291 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6292
6293         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6294
6295 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6296
6297         * config/rx/rx-opts.h: New.
6298         * config/rx/rx.c (rx_cpu_type): Remove.
6299         (rx_handle_option): Don't assert that global structures are in
6300         use.  Access variables via opts pointer.  Defer most handling of
6301         OPT_mint_register_.  Use error_at.
6302         (rx_option_override): Handle deferred OPT_mint_register_ here.
6303         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6304         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6305         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6306         (rx_cpu_types): New Enum and EnumValue entries.
6307         (mint-register=): Use Defer and use Var accordingly.
6308
6309 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6310
6311         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6312         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6313         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6314         Move these...
6315         (debug_free_queue, debug_nesting, symbol_queue_index):
6316         ...and these...
6317         * dbxout.c: ...to here.  Make static.
6318
6319 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6320
6321         * gcse.c (modify_pair): Define.  Define a VEC of it.
6322         (canon_modify_mem_list): Convert to an array of VECs.
6323         (free_insn_expr_list_list): Delete.
6324         (clear_modify_mem_tables): Call VEC_free instead.
6325         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6326         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6327         (canon_list_insert, compute_transp): Likewise.
6328
6329 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6330
6331         PR target/43920
6332         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6333         for size.
6334
6335 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6336
6337         PR target/43920
6338         * function.c (emit_use_return_register_into_block): New function.
6339         (thread_prologue_and_epilogue_insns): Use
6340         emit_use_return_register_into_block.
6341
6342 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6343
6344         PR target/43920
6345         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6346         insn.
6347
6348 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6349
6350         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6351
6352 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6353
6354         * config/arm/arm.md (define_constants for unspec): Replace with
6355         define_c_enum.
6356         (define_constants for unspecv): Replace with define_c_enum.
6357         * config/arm/neon.md (define_constants for unspec): Replace with
6358         define_c_enum.
6359
6360 2011-04-04  Richard Henderson  <rth@redhat.com>
6361
6362         PR bootstrap/48400
6363         * dwarf2out.c (output_line_info): Always emit line info from
6364         at least one section.
6365         (dwarf2out_init): Create text_section_line_info here ...
6366         (set_cur_line_info_table): ... not here.
6367
6368 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6369
6370         PR target/48380
6371         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6372         not called.
6373
6374         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6375
6376 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6377
6378         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6379         (expr_equiv_p): Remove.
6380         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6381         (hash_scan_set): Update call to insert_set_in_table.
6382         (dump_hash_table): Dump <dest, src> pair.
6383         (lookup_set): Simplify.  Lookup <dest, src> pair.
6384         (compute_transp): Remove, fold heavily simplified code into...
6385         (compute_local_properties): ...here.  Expect COMP and TRANSP
6386         unconditionally.
6387         (find_avail_set): Take set directly from struct expr.
6388         (find_bypass-set): Likewise.
6389         (bypass_block): Likewise.
6390         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6391
6392         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6393         checks on form of COND from find_implicit_sets to here.
6394         (find_implicit_sets): Cleanup control flow. Split critical edges
6395         if it exposes implicit sets.  Allocate/resize implicit_sets as
6396         necessary.
6397         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6398         changed something.  Run df_analyze after find_implicit_sets if any
6399         edges were split.  Do not allocate implicit_sets here.
6400
6401         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6402         (gcse_obstack): Renamed to cprop_obstack.
6403         (GNEW, GNEWVEC, GNEWVAR): Remove.
6404         (gmalloc): Remove.
6405         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6406         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6407         (gcse_alloc): Likewise, and rename to cprop_alloc.
6408         (alloc_gcse_men, free_gcse_mem): Remove.
6409         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6410         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6411         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6412
6413         * cprop.c (oprs_not_set_p): Remove.
6414         (mark_set, mark_clobber): Remove.
6415         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6416         (reg_not_set_p): New function.
6417         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6418         (cprop_insn): Likewise.
6419         (cprop_jump): Use FOR_EACH_EDGE.
6420
6421 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6422
6423         PR bootstrap/48403
6424         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6425         (rank_for_schedule): Use scheduled_insns vector instead of
6426         last_scheduled_insn.
6427         (ok_for_early_queue_removal): Likewise.
6428         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6429         we have a dbg_cnt.
6430         (choose_ready): Likewise.
6431         (commit_schedule): Use VEC_iterate.
6432         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6433         a dbg_cnt, use it and ensure the first insn is in the ready list.
6434         (haifa_sched_init): Allocate scheduled_insns.
6435         (sched_extend_ready_list): Don't allocate it; reserve space.
6436         (haifa_sched_finish): Free it.
6437
6438 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6439
6440         * optc-gen.awk: Always remove type from Variable entry before
6441         recording in var_seen.
6442
6443 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6444
6445         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6446         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6447         call to tidy_fallthru_edges.
6448
6449 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6450
6451         * doc/options.texi (ToLower): Document.
6452         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6453         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6454         * opts.h (cl_option): Add cl_tolower field.
6455         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6456         arguments with lowercase strings.
6457         * config/rx/rx.opt (mcpu=): Add ToLower.
6458         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6459         argument.
6460
6461 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6462
6463         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6464
6465 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6466
6467         * config/vax/vax.c: Include reload.h.
6468
6469 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6470
6471         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6472         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6473         (sparc_preferred_reload_class): New function.
6474
6475 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6476
6477         PR debug/48401
6478         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6479         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6480
6481 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6482
6483         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6484         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6485
6486 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6487
6488         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6489         (ASM_OUTPUT_ALIGNED_BSS): Define.
6490
6491 2011-04-03  Michael Matz  <matz@suse.de>
6492
6493         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6494         and next_slot members.
6495         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6496         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6497         (lto_streamer_cache_append): Declare.
6498         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6499         unsigned index, remove offset parameter, ensure that we append
6500         or update existing entries.
6501         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6502         parameter, update next_slot for append.
6503         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6504         parameter.
6505         (lto_streamer_cache_insert_at): Likewise.
6506         (lto_streamer_cache_append): New function.
6507         (lto_streamer_cache_lookup): Use unsigned index.
6508         (lto_streamer_cache_get): Likewise.
6509         (lto_record_common_node): Don't test tree_node_can_be_shared.
6510         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6511         (lto_streamer_cache_delete): Don't free offsets member.
6512         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6513         (lto_output_string_with_length): Use lto_output_data_stream.
6514         (lto_output_tree_header): Remove ix parameter, don't write it.
6515         (lto_output_builtin_tree): Likewise.
6516         (lto_write_tree): Adjust callers to above, don't track and write
6517         offset, write unsigned index.
6518         (output_unreferenced_globals): Don't emit all global vars.
6519         (write_global_references): Use unsigned indices.
6520         (lto_output_decl_state_refs): Likewise.
6521         (write_symbol): Likewise.
6522         * lto-streamer-in.c (lto_input_chain): Move earlier.
6523         (input_function): Use unsigned index.
6524         (input_alias_pairs): Don't read and then ignore all global vars.
6525         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6526         don't pass it back, use lto_streamer_cache_append.
6527         (lto_register_var_decl_in_symtab): Use unsigned index.
6528         (lto_register_function_decl_in_symtab): Likewise.
6529         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6530         index.
6531         (lto_get_builtin_tree): Don't read index, use
6532         lto_streamer_cache_append.
6533         (lto_read_tree): Adjust call to lto_materialize_tree.
6534
6535         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6536         don't use function calls in arguments to MIN.
6537
6538         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6539         twice.
6540
6541         * gimple.c (gimple_type_leader_entry): Mark deletable.
6542
6543 2011-04-03  Alan Modra  <amodra@gmail.com>
6544
6545         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6546
6547 2011-04-03  Michael Matz  <matz@suse.de>
6548
6549         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6550         an integer.
6551         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6552
6553 2011-04-03  Michael Matz  <matz@suse.de>
6554
6555         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6556         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6557         without function context.
6558         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6559         current_function_decl and cfun.
6560
6561 2011-04-03  Michael Matz  <matz@suse.de>
6562
6563         * tree.c (decl_init_priority_insert): Don't create entry for
6564         default priority.
6565         (decl_fini_priority_insert): Ditto.
6566         (fields_compatible_p, find_compatible_field): Remove.
6567         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6568         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6569
6570 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6571
6572         * combine.c (try_combine): Remove useless local variable.
6573
6574 2011-04-03  Richard Guenther  <rguenther@suse.de>
6575             Ira Rosen  <ira.rosen@linaro.org>
6576
6577         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6578         non-variable offsets and compare the remaining bases of the two
6579         accesses instead of looking for exact same data-ref.
6580
6581 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6582
6583         PR target/48416
6584         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6585
6586         * i386.c (ix86_is_msabi_thiscall): New helper function.
6587         (ix86_is_type_thiscall): New helper function.
6588         (ix86_comp_type_attributes): Handle thiscall for method-functions
6589         special.
6590         (init_cumulative_args): Likewise.
6591         (find_drap_reg): Likewise.
6592         (ix86_static_chain): Likewise.
6593         (x86_this_parameter): Likewise.
6594         (x86_output_mi_thunk): Likewise.
6595
6596 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6597             Nicolas Setton  <setton@adacore.com>
6598             Eric Botcazou  <ebotcazou@adacore.com>
6599
6600         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6601         (add_gnat_descriptive_type_attribute): New function.
6602         (gen_array_type_die): Call it.
6603         (gen_enumeration_type_die): Likewise.
6604         (gen_struct_or_union_type_die): Likewise.
6605         (modified_type_die): Likewise.
6606         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6607         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6608         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6609
6610 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6611
6612         PR bootstrap/48148
6613         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6614         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6615
6616         Revert:
6617         2011-03-17  Richard Guenther  <rguenther@suse.de>
6618
6619         PR bootstrap/48148
6620         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6621         origin for decls in other ltrans units.
6622         (input_varpool_node): Likewise.
6623
6624 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6625
6626         PR middle-end/48335
6627         * expr.c (expand_assignment): Handle all possibilities
6628         if TO_RTX is CONCAT.
6629         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6630         (store_split_bit_field): If SUBREG_REG (op0) or
6631         op0 itself has smaller mode than word, return it
6632         for offset 0 and const0_rtx for out-of-bounds stores.
6633         If word is const0_rtx, skip it.
6634
6635 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6636
6637         * config/h8300/h8300.c (print_operand_address): Rename to...
6638         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6639         Call h8300_print_operand and h8300_print_operand_address instead of
6640         print_operand and print_operand_address. Declare.
6641         (print_operand): Renake to...
6642         (h8300_print_operand): ...this. Make static. Adjust comments.
6643         Call h8300_print_operand instead of print_operand. Declare.
6644         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6645         (h8300_register_move_cost): Likewise.
6646         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6647         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6648         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6649         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6650         * config/h8300/h8300-protos.h (print_operand): Delete.
6651         (print_operand_address): Delete.
6652
6653 2011-04-01  Richard Henderson  <rth@redhat.com>
6654
6655         PR 48400
6656         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6657         in strict mode before dwarf4.  Re-order tests to early out
6658         before switching sections.
6659
6660 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6661
6662         * config/h8300/constraints.md: New file.
6663         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6664         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6665         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6666         * config/h8300/predicates.md (bit_operand): Likewise.
6667         (incdec_operand): Use satisfies_constraint_M and
6668         satisfies_constraint_O.  Don't use C code block.
6669         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6670         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6671         (compute_mov_length): Use satisfies_constraint_G.
6672         (fix_bit_operand): Use satisfies_constraint_U.
6673         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6674         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6675         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6676         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6677         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6678         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6679         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6680         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6681         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6682         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6683         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6684         (EXTRA_MEMORY_CONSTRAINT): Delete.
6685
6686 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6687             Michael Meissner  <meissner@linux.vnet.ibm.com>
6688
6689         PR target/48262
6690         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6691         operands, as per the specifications.
6692
6693         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6694         (vec_extract_evenv4sf): Ditto.
6695         (vec_extract_evenv8hi): Ditto.
6696         (vec_extract_evenv16qi): Ditto.
6697         (vec_extract_oddv4si): Ditto.
6698
6699 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6700
6701         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6702         high_pc attribute if the CU has no associated code. Only output
6703         DW_AT_entry_pc for CU if not generating strict dwarf and
6704         dwarf_version < 4.
6705
6706 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6707
6708         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6709         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6710         out of ...
6711         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6712         * final.c (final_start_function): Call the new function rather
6713         than using a NULL argument for dwarf2out_frame_debug.
6714
6715         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6716         that contains the prologue.
6717
6718         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6719         changed.  Print it in debugging output.
6720
6721         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6722
6723         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6724         Split most of the code into...
6725         (begin_move_insn): ... here.  New function.
6726         (ebb_sched_info): Add a pointer to it.
6727         * haifa-sched.c (scheduled_insns): New static variable.
6728         (sched_extend_ready_list): Allocate it.
6729         (schedule_block): Use it to record the order of scheduled insns.
6730         Perform RTL changes to move insns only after all scheduling
6731         decisions have been made.
6732         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6733         begin_move_insn field.
6734         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6735         * sched-int.h (struct haifa_sched_info): Remove second argument
6736         from begin_schedule_ready hook.  Add new member begin_move_insn.
6737         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6738         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6739
6740         * haifa-sched.c (prune_ready_list): New function, broken out of
6741         schedule_block.
6742         (schedule_block): Use it.
6743
6744 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6745
6746         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6747
6748 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6749
6750         * config.gcc (*-*-mingw*): Allow as option the
6751         posix threading model.
6752         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6753         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6754         definition.
6755         (CPP_SPEC): Add pthread/no-pthread handling.
6756         (LIB_SPEC): Likewise.
6757         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6758         (LIB_SPEC): Likewise.
6759         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6760         flag to pass -pthread option for shared libgcc build.
6761         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6762         for shared libgcc build.
6763         * config/i386/t-mingw-pthread: New file.
6764         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6765         New define to enable use of library pthread by default.
6766         * config/i386/mingw.opt (pthread): New driver option.
6767         (no-pthread): New driver option.
6768         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6769         * config/i386/mingw-w64.opt: Likewise.
6770
6771 2011-04-01  Gary Funck  <gary@intrepid.com>
6772
6773         * c-decl.c (grokdeclarator): Fix formatting.
6774
6775 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6776
6777         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6778         instead of n_operands.
6779         (set_storage_via_setmem): Likewise.
6780         * optabs.c (maybe_gen_insn): Likewise.
6781         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6782         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6783         (mips_expand_builtin_direct): Likewise.
6784         * config/spu/spu.c (expand_builtin_args): Likewise.
6785
6786 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6787
6788         * recog.h (insn_data_d): Add n_generator_args.
6789         * genoutput.c (data): Likewise.
6790         (output_insn_data): Print it.
6791         (max_opno, num_dups): Delete.
6792         (scan_operands): Just fill in "d->operand[...]".
6793         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6794
6795 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6796
6797         * gensupport.h (pattern_stats): New structure.
6798         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6799         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6800         (max_operand_1, max_operand_vec): Delete.
6801         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6802
6803 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6804
6805         * emit-rtl.c (emit_pattern_after_setloc): New function.
6806         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6807         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6808         (emit_pattern_after): New function.
6809         (emit_insn_after, emit_jump_insn_after): Call it.
6810         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6811         (emit_pattern_before_setloc): New function.
6812         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6813         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6814         Likewise.
6815         (emit_pattern_before): New function.
6816         (emit_insn_before, emit_jump_insn_before): Call it.
6817         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6818
6819 2011-03-31  Richard Henderson  <rth@redhat.com>
6820
6821         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6822         (dw_separate_line_info_entry): Remove.
6823         (enum dw_line_info_opcode): New.
6824         (dw_line_info_entry): Use it.
6825         (dw_line_info_table, dw_line_info_table_p): New.
6826         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6827         (line_info_table, line_info_label_num): Remove.
6828         (line_info_table_in_use): Remove.
6829         (separate_line_info_table): Remove.
6830         (separate_line_info_table_allocated): Remove.
6831         (separate_line_info_table_in_use): Remove.
6832         (LINE_INFO_TABLE_INCREMENT): Remove.
6833         (line_info_label_num): New.
6834         (cur_line_info_table): New.
6835         (text_section_line_info, cold_text_section_line_info): New.
6836         (separate_line_info): New.
6837         (SEPARATE_LINE_CODE_LABEL): Remove.
6838         (print_dwarf_line_table): Remove.
6839         (debug_dwarf): Don't dump it.
6840         (output_one_line_info_table): New.
6841         (output_line_info): Use it.
6842         (new_line_info_table): New.
6843         (set_cur_line_info_table): New.
6844         (dwarf2out_switch_text_section): Use it.
6845         (dwarf2out_begin_function): Likewise.
6846         (push_dw_line_info_entry): New.
6847         (dwarf2out_source_line): Rewrite for new line info tables.
6848         (dwarf2out_init): Remove dead initailizations.
6849
6850 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6851
6852         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6853         various flags.
6854         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6855         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6856         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6857         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6858         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6859         * opt-functions.awk (flag_init, switch_bit_fields): New.
6860         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6861         generate CL_MISSING_OK or CL_SAVE.
6862         * optc-gen.awk: Update to generate bit-field output as well as
6863         flags field.
6864         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6865         bit-field instead of CL_REJECT_DRIVER flag.
6866         * opts-common.c (generate_canonical_option,
6867         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6868         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6869         instead of CL_REJECT_NEGATIVE flag.
6870         * toplev.c (print_switch_values): Use cl_report bit-field instead
6871         of CL_REPORT flag.
6872
6873 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6874
6875         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6876         a zero minimum index only if it is redundant.
6877
6878 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6879
6880         PR rtl-optimization/48381
6881         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6882         instead of ira_class_hard_reg_index for calculating conflicting
6883         hard registers.
6884
6885 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6886
6887         * cprop.c: Clean up hash table building.
6888         (reg_avail_info): Remove.
6889         (oprs_available_p): Remove.
6890         (record_last_reg_set_info): Remove.
6891         (record_last_set_info): Remove.
6892         (reg_available_p): New function.
6893         (gcse_constant_p): Do not treat unfolded conditions as constants.
6894         (make_set_regs_unavailable): New function.
6895         (hash_scan_set): Simplify with new reg_available_p.
6896         (compute_hash_table_work): Traverse insns stream only once.
6897         Do not compute reg_avail_info. Traverse insns in reverse order.
6898         Record implicit sets after recording explicit sets from the block.
6899
6900 2011-03-31  Michael Matz  <matz@suse.de>
6901
6902         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6903
6904 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6905
6906         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6907         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6908         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6909         (h8300_mode_dependent_address_p): New function.
6910         (h8300_get_index): Make static.
6911
6912 2011-03-31  Jeff Law  <law@redhat.com>
6913
6914         * reload1.c (elimination_effects): Fix typo in recent change.
6915
6916         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6917         typo potentially leading to null pointer dereference.
6918
6919         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6920         (setup_save_areas): Corresponding changes to avoid useless
6921         assignments.
6922
6923         * jump.c (reversed_comparison_code_parts): Avoid successive return
6924         statements when REVERSE_CONDITION is defined.
6925
6926         * expr.c (expand_assignment): Avoid useless assignments.
6927         (expand_expr_real_1): Likewise.
6928         (expand_expr_real_2): Avoid useless statements.
6929
6930         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6931
6932         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6933
6934         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6935         statements.
6936
6937         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6938
6939 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6940
6941         PR target/47109
6942         * doc/tm.texi.in (TARGET_VERSION): Remove.
6943         * doc/tm.texi: Regenerate.
6944         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6945         * collect2.c (main): Don't use TARGET_VERSION.
6946         * mips-tdump.c (main): Don't use TARGET_VERSION.
6947         * mips-tfile.c (main): Don't use TARGET_VERSION.
6948         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6949         * config/rs6000/vxworksae.h: Remove.
6950         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6951         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6952         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6953         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6954         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6955         * config/arm/arm.h (TARGET_VERSION): Remove.
6956         * config/arm/coff.h (TARGET_VERSION): Remove.
6957         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6958         * config/arm/elf.h (TARGET_VERSION): Remove.
6959         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6960         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6961         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6962         * config/arm/pe.h (TARGET_VERSION): Remove.
6963         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6964         * config/arm/semi.h (TARGET_VERSION): Remove.
6965         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6966         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6967         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6968         * config/avr/avr.h (TARGET_VERSION): Remove.
6969         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6970         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6971         * config/frv/frv.h (TARGET_VERSION): Remove.
6972         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6973         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6974         * config/i386/darwin.h (TARGET_VERSION): Remove.
6975         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6976         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6977         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6978         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6979         * config/i386/gnu.h (TARGET_VERSION): Remove.
6980         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6981         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6982         * config/i386/linux.h (TARGET_VERSION): Remove.
6983         * config/i386/linux64.h (TARGET_VERSION): Remove.
6984         * config/i386/lynx.h (TARGET_VERSION): Remove.
6985         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6986         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6987         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6988         * config/i386/netware.h (TARGET_VERSION): Remove.
6989         * config/i386/nto.h (TARGET_VERSION): Remove.
6990         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6991         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6992         * config/ia64/elf.h (TARGET_VERSION): Remove.
6993         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6994         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6995         * config/ia64/linux.h (TARGET_VERSION): Remove.
6996         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6997         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6998         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6999         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7000         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7001         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7002         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7003         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7004         * config/m68k/linux.h (TARGET_VERSION): Remove.
7005         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7006         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7007         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7008         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7009         * config/mep/mep.h (TARGET_VERSION): Remove.
7010         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7011         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7012         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7013         * config/mips/linux.h (TARGET_VERSION): Remove.
7014         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7015         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7016         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7017         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7018         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7019         * config/pa/pa.h (TARGET_VERSION): Remove.
7020         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7021         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7022         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7023         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7024         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7025         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7026         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7027         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7028         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7029         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7030         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7031         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7032         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7033         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7034         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7035         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7036         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7037         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7038         * config/s390/linux.h (TARGET_VERSION): Remove.
7039         * config/s390/s390.h (TARGET_VERSION): Remove.
7040         * config/s390/tpf.h (TARGET_VERSION): Remove.
7041         * config/score/score.h (TARGET_VERSION): Remove.
7042         * config/sh/linux.h (TARGET_VERSION): Remove.
7043         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7044         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7045         * config/sh/sh.h (TARGET_VERSION): Remove.
7046         * config/sh/sh64.h (TARGET_VERSION): Remove.
7047         * config/sh/superh.h (TARGET_VERSION): Remove.
7048         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7049         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7050         * config/sparc/linux.h (TARGET_VERSION): Remove.
7051         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7052         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7053         TARGET_NAME32, TARGET_NAME): Remove.
7054         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7055         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7056         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7057         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7058         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7059         * config/spu/spu.h (TARGET_VERSION): Remove.
7060         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7061         * config/v850/v850.h (TARGET_VERSION): Remove.
7062         * config/vax/linux.h (TARGET_VERSION): Remove.
7063         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7064         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7065         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7066
7067 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7068
7069         PR target/48142
7070         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7071         frame-related from frame-unrelated adjustments to the stack pointer.
7072
7073 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7074
7075         * common.opt (fdebug-types-section): Move earlier.
7076         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7077
7078 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7079
7080         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7081         var.
7082
7083 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7084
7085         * tree.h (CASE_CHAIN): Define.
7086         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7087         (gimple_redirect_edge_and_branch): Likewise.
7088
7089 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7090
7091         PR middle-end/48367
7092         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7093         calculation.
7094
7095 2011-03-30  Jeff Law  <law@redhat.com>
7096
7097         * PR bootstrap/48371
7098         * reload1.c (reload): Fix botch in last change.
7099
7100         * reload.h (struct reload): Fix typo introduced in last change.
7101
7102 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7103
7104         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7105         Undocumented.  Remove help text.
7106         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7107         -mhard-float.
7108
7109 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7110
7111         * doc/options.texi (NegativeAlias): Document.
7112         (Alias): Mention NegativeAlias.
7113         * opt-functions.awk: Handle NegativeAlias.
7114         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7115         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7116         * opts.h (CL_NEGATIVE_ALIAS): Define.
7117         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7118         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7119         OPT_mspe_.
7120         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7121         Alias entries.
7122         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7123         mno-spe and mno-isel instead of mspe=no and -misel=no.
7124
7125 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7126
7127         * common.opt (fdebug-types-section): New flag.
7128         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7129         * dwarf2out.c (use_debug_types): New define.
7130         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7131         (print_die): Guard output of type unit signatures using
7132         use_debug_types.
7133         (build_abbrev_table): Replace assert of dwarf_version >= 4
7134         with assert on use_debug_types.
7135         (size_of_die): Likewise.
7136         (unmark_dies): Likewise.
7137         (value_format): Decide AT_ref_external form on use_debug_types.
7138         (output_die): Replace dwarf_version version check guard with
7139         use_debug_types where appropriate.
7140         (modified_type_die): Likewise.
7141         (gen_reference_type_die): Likewise.
7142         (dwarf2out_start_source_file): Likewise.
7143         (dwarf2out_end_source_file): Likewise.
7144         (prune_unused_types_walk_attribs): Likewise.
7145         (dwarf2out_finish): Likewise.
7146
7147 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7148
7149         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7150
7151 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7152
7153         PR rtl-optimization/48332
7154         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7155         mode of input operand N and modeN to its actual mode.
7156
7157 2011-03-30  Jeff Law  <law@redhat.com>
7158
7159         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7160         define accessor macro.
7161         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7162         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7163         (reg_equiv_init): Likewise.
7164         (reg_equivs_size): New variable.
7165         (reg_equiv_init_size): Remove.
7166         (allocate_initial_values): Move prototype to here from....
7167         * integrate.h (allocate_initial_values): Remove prototype.
7168         * integrate.c: Include reload.h.
7169         (allocate_initial_values): Corresponding changes.
7170         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7171         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7172         (update_equiv_regs): Corresponding changes.
7173         (ira): Corresponding changes.
7174         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7175         (push_secondary_reload): Corresponding changes.
7176         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7177         (make_memloc, find_reloads_address): Corresponding changes.
7178         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7179         (find_reloads_address_1): Corresponding changes.
7180         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7181         (refers_to_regno_for_reload_p): Corresponding changes.
7182         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7183         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7184         * reload1.c: Include ggc.h.
7185         (grow_reg_equivs): New function.
7186         (replace_pseudos_in, reload): Corresponding changes.
7187         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7188         (eliminate_regs_1, elimination_effects): Corresponding changes.
7189         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7190         (delete_output_reload): Likewise.
7191         * caller-save.c (mark_referenced_regs): Corresponding changes.
7192         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7193         * frv/predicates.md (frv_load_operand): Corresponding changes.
7194         * microblaze/microblaze.c (double_memory_operand): Corresponding
7195         changes.
7196         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7197         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7198         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7199         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7200         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7201         changes.
7202         * pa/pa.c (emit_move_sequence): Corresponding changes.
7203         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7204
7205 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7206
7207         PR target/47551
7208         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7209         structure modes.  Don't check neon_vector_mem_operand for
7210         vector or structure modes.
7211
7212 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7213             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7214
7215         PR target/43590
7216         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7217         operand 1 and reshuffle the operands to match.
7218         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7219
7220 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7221
7222         PR driver/48208
7223         * config/c.opt (F): Added 'Driver' to -F option.
7224
7225         PR driver/48260
7226         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7227           handler function.
7228         * config/darwin.opt: Added '-arch' option.
7229
7230 2011-03-30  Nick Clifton  <nickc@redhat.com>
7231
7232         * config/rx/rx.md: Add peepholes and patterns to combine
7233         extending loads and simple arithmetic instructions.
7234         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7235         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7236         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7237         modes to use pre-decrement and post-increment addressing.
7238         (rx_is_restricted_memory_address): Add range checking of REG+INT
7239         addresses.
7240         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7241         (rx_memory_move_cost): Adjust cost of stores.
7242         (rx_adjust_insn_length): New function.
7243
7244 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7245
7246         PR c/48305
7247         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7248         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7249         matching arg00/arg01 types.
7250
7251 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7252
7253         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7254         last_location to UNKNOWN_LOCATION.
7255
7256 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7257
7258         PR target/48349
7259         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7260         FLOAT_SSE_REGS.
7261
7262 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7263             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7264
7265         PR bootstrap/48337
7266         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7267         Init(PROCESSOR_V7).
7268         (sparc_cpu): Likewise.
7269         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7270         PROCESSOR_V7.
7271
7272 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7273
7274         PR target/48336
7275         PR middle-end/48342
7276         PR rtl-optimization/48345
7277         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7278         hard regs for given mode from profitable regs when doing secondary
7279         allocation.
7280
7281 2011-03-29  Jeff Law  <law@redhat.com>
7282
7283         PR bootstrap/48327
7284         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7285         do_not_duplicate field.
7286         (lookup_redirection_data): Corresponding changes.
7287         (create_duplicates): Always create a template block.
7288         (redirect_edges): Remove code which reused the original block
7289         when it was going to become unreachable code.
7290         (thread_block): Don't set do_not_duplicate field.
7291
7292 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7293
7294         * lto-opts.c (register_user_option_p, lto_register_user_option):
7295         Make type argument unsigned.
7296         * lto-streamer.h (lto_register_user_option): Make type argument
7297         unsigned.
7298         * opth-gen.awk: Make CL_* macros unsigned.
7299         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7300         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7301         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7302         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7303         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7304         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7305         (find_opt): Make lang_mask argument unsigned.
7306
7307 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7308
7309         PR rtl-optimization/48331
7310         PR rtl-optimization/48334
7311         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7312         for any used algorithm.
7313
7314 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7315
7316         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7317         to parent_max.
7318
7319 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7320
7321         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7322         (alpha_option_override): Don't set alpha_sr_alias_set.
7323         (emit_frame_store_1): Use gen_frame_mem rather than calling
7324         set_mem_alias_set.
7325         (alpha_expand_epilogue): Ditto.
7326
7327 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7328
7329         PR tree-optimization/48290
7330         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7331         vectorization, check that relevant phis in the basic block after
7332         the inner loop are really inner loop's exit phis.
7333
7334 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7335
7336         PR debug/48190
7337         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7338         (cached_dw_loc_list_def): New structure.
7339         (cached_dw_loc_list): New typedef.
7340         (cached_dw_loc_list_table): New variable.
7341         (cached_dw_loc_list_table_hash): New function.
7342         (cached_dw_loc_list_table_eq): Likewise.
7343         (add_location_or_const_value_attribute): Take a bool cache_p.
7344         Cache the list when the parameter is true.
7345         (gen_formal_parameter_die): Update caller.
7346         (gen_variable_die): Likewise.
7347         (dwarf2out_finish): Likewise.
7348         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7349         while generating debug info for the decl.
7350         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7351         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7352         (resolve_addr): Cache the result of resolving a chain of
7353         location lists.
7354
7355 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7356
7357         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7358         conflict object hard regset nodes have intersecting hard reg sets.
7359
7360         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7361         after regstat_init_n_sets_and_refs.
7362
7363         * ira.c: Add more comments at the top.
7364         (setup_stack_reg_pressure_class, setup_pressure_classes):
7365         Add comments how we compute the register pressure classes.
7366         (setup_allocno_and_important_classes): Add more comments.
7367         (setup_class_translate_array, reorder_important_classes)
7368         (setup_reg_class_relations): Add comments.
7369
7370         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7371         start of the file.
7372
7373         * ira-color.c: Add 2011 to the Copyright line.
7374         (assign_hard_reg):  Add more comments.
7375         (improve_allocation): Ditto.
7376
7377         * ira-costs.c: Add 2011 to the Copyright line.
7378         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7379         comments.
7380         (setup_regno_cost_classes_by_mode): Ditto.
7381
7382         Initial patches from ira-improv branch:
7383
7384         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7385
7386         * ira-build.c (ira_create_object): Remove initialization of
7387         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7388         (ira_create_allocno): Remove initialization of
7389         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7390         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7391         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7392         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7393         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7394         Initialize ALLOCNO_ADD_DATA.
7395         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7396         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7397         ALLOCNO_REG.
7398         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7399         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7400
7401         * ira.c (ira_reallocate): Remove.
7402         (setup_pressure_classes): Call
7403         ira_init_register_move_cost_if_necessary.  Use
7404         ira_register_move_cost instead of ira_get_register_move_cost.
7405         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7406         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7407
7408         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7409         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7410         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7411         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7412         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7413         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7414         Fix formatting.
7415         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7416         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7417         (struct allocno_color_data): New.
7418         (allocno_color_data_t): New typedef.
7419         (allocno_color_data): New definition.
7420         (ALLOCNO_COLOR_DATA): New macro.
7421         (struct object_color_data): New.
7422         (object_color_data_t): New typedef.
7423         (object_color_data): New definition.
7424         (OBJECT_COLOR_DATA): New macro.
7425         (update_copy_costs, calculate_allocno_spill_cost): Call
7426         ira_init_register_move_cost_if_necessary.  Use
7427         ira_register_move_cost instead of ira_get_register_move_cost.
7428         (move_spill_restore, update_curr_costs): Ditto.
7429         (allocno_spill_priority): Make it inline.
7430         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7431         (struct coalesce_data, coalesce_data_t): New.
7432         (allocno_coalesce_data): New definition.
7433         (ALLOCNO_COALESCE_DATA): New macro.
7434         (merge_allocnos, coalesced_allocno_conflict_p): Use
7435         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7436         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7437         (coalesce_allocnos): Ditto.
7438         (setup_coalesced_allocno_costs_and_nums): Ditto.
7439         (collect_spilled_coalesced_allocnos): Ditto.
7440         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7441         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7442         (coalesce_spill_slots): Ditto.
7443         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7444         free allocno_coalesce_data.
7445
7446         * ira-conflicts.c: Fix formatting.
7447         (process_regs_for_copy): Call
7448         ira_init_register_move_cost_if_necessary.  Use
7449         ira_register_move_cost instead of ira_get_register_move_cost.
7450         (build_object_conflicts): Optimize.
7451
7452         * ira-costs.c (record_reg_classes): Optimize.  Call
7453         ira_init_register_move_cost_if_necessary.  Use
7454         ira_register_move_cost, ira_may_move_in_cost, and
7455         ira_may_move_out_cost instead of ira_get_register_move_cost and
7456         ira_get_may_move_cost.
7457         (record_address_regs): Ditto.
7458         (scan_one_insn): Optimize.
7459         (find_costs_and_classes): Optimize.
7460         (process_bb_node_for_hard_reg_moves): Call
7461         ira_init_register_move_cost_if_necessary.  Use
7462         ira_register_move_cost instead of ira_get_register_move_cost.
7463
7464         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7465         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7466         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7467         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7468         definitions.
7469         (ira_initiate_emit_data, ira_finish_emit_data)
7470         (create_new_allocno): New functions.
7471         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7472         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7473         Use ira_register_move_cost instead of ira_get_register_move_cost.
7474
7475         * ira-int.h: Fix some comments.
7476         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7477         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7478         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7479         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7480         add_data.
7481         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7482         bitfield after mode.  Make hard_regno a short int.  Make
7483         hard_regno short.  Remove first_coalesced_allocno and
7484         next_coalesced_allocno.  Move mem_optimized_dest_p,
7485         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7486         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7487         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7488         temp, colorable_p.  Add new member add_data.
7489         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7490         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7491         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7492         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7493         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7494         (ALLOCNO_ADD_DATA): New macro.
7495         (ira_emit_data_t): New typedef.
7496         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7497         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7498         from struct ira_allocno.
7499         (ALLOCNO_EMIT_DATA): New macro.
7500         (ira_allocno_emit_data, allocno_emit_reg): New.
7501         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7502         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7503         (OBJECT_ADD_DATA): New macro.
7504         (ira_reallocate): Remove.
7505         (ira_initiate_emit_data, ira_finish_emit_data): New.
7506         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7507         (ira_init_register_move_cost_if_necessary): New.
7508         (ira_object_conflict_iter_next): Merge into
7509         ira_object_conflict_iter_cond.
7510         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7511
7512         * ira-live.c (process_single_reg_class_operands): Call
7513         ira_init_register_move_cost_if_necessary.  Use
7514         ira_register_move_cost instead of ira_get_register_move_cost.
7515
7516         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7517
7518         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7519
7520         * ira-costs.c: Fix formatting.
7521         (cost_classes, cost_classes_num): Remove.
7522         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7523         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7524         (cost_classes_del, cost_classes_htab): New.
7525         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7526         (initiate_regno_cost_classes, setup_cost_classes): New.
7527         (setup_regno_cost_classes_by_aclass): New.
7528         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7529         (record_reg_classes): Use regno_cost_classes instead of
7530         cost_classes.  Move checking opposite operand up.
7531         (record_address_regs): Use regno_cost_classes
7532         instead of cost_classes.
7533         (scan_one_insn): Ditto.  Use always general register.
7534         (print_allocno_costs): Use regno_cost_classes instead of
7535         cost_classes.
7536         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7537         (find_costs_and_classes): Set up cost classes for each registers.
7538         Use also their mode for this.  Use regno_cost_classes instead of
7539         cost_classes.
7540         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7541         cost_classes.
7542         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7543         (ira_costs, ira_set_pseudo_classes): Call
7544         initiate_regno_cost_classes and finish_regno_cost_classes.
7545
7546         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7547
7548         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7549
7550         * target.def (ira_cover_classes): Remove.
7551
7552         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7553
7554         * doc/tm.texi.in: Ditto.
7555
7556         * ira-conflicts.c: Remove mentioning cover classes from the file.
7557         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7558         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7559
7560         * targhooks.c (default_ira_cover_classes): Remove.
7561
7562         * targhooks.h (default_ira_cover_classes): Ditto.
7563
7564         * haifa-sched.c: Remove mentioning cover classes from the file.
7565         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7566         ira_pressure_classes and ira_pressure_classes_num instead of
7567         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7568         sched_regno_pressure_class instead of sched_regno_cover_class.
7569         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7570         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7571
7572         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7573         classes from the file.
7574         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7575         (struct object_hard_regs, struct object_hard_regs_node): New.
7576         (struct ira_object): New members profitable_hard_regs,
7577         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7578         (struct ira_allocno): Rename cover_class to aclass.  Rename
7579         cover_class_cost and updated_cover_class_cost to class_cost and
7580         updated_class_cost.  Remove splay_removed_p and
7581         left_conflict_size.  Add new members colorable_p.
7582         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7583         (ALLOCNO_COLORABLE_P): New macro.
7584         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7585         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7586         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7587         (OBJECT_...): Rename parameter C to O.
7588         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7589         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7590         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7591         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7592         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7593         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7594         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7595         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7596         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7597         x_ira_reg_class_subunion.
7598         (ira_max_memory_move_cost, ira_max_register_move_cost)
7599         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7600         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7601         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7602         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7603         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7604         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7605         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7606         (ira_tune_allocno_costs_and_cover_classes): Rename to
7607         ira_tune_allocno_costs.
7608         (ira_debug_hard_regs_forest): New.
7609         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7610         (ira_object_conflict_iter_next): Fix comments.
7611         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7612         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7613         cover_class to aclass.
7614         (ira_allocate_and_accumulate_costs): Ditto.
7615         (ira_allocate_and_set_or_copy_costs): Ditto.
7616
7617         * opts.c (decode_options): Remove ira_cover_class check.
7618
7619         * ira-color.c: Remove mentioning cover classes from the file.  Use
7620         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7621         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7622         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7623         (splay-tree.h): Remove include.
7624         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7625         before copy_freq_compare_func.
7626         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7627         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7628         New definitions.
7629         (hard_regs_roots, hard_regs_node_vec): Ditto.
7630         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7631         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7632         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7633         (create_new_object_hard_regs_node): Ditto.
7634         (add_new_object_hard_regs_node_to_forest): Ditto.
7635         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7636         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7637         Ditto.
7638         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7639         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7640         (remove_unused_object_hard_regs_nodes): Ditto.
7641         (enumerate_object_hard_regs_nodes): Ditto.
7642         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7643         (object_hard_regs_subnode_t): Ditto.
7644         (struct object_hard_regs_subnode): Ditto.
7645         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7646         (setup_object_hard_regs_subnode_index): Ditto.
7647         (get_object_hard_regs_subnodes_num): Ditto.
7648         (form_object_hard_regs_nodes_forest): Ditto.
7649         (finish_object_hard_regs_nodes_tree): Ditto.
7650         (finish_object_hard_regs_nodes_forest): Ditto.
7651         (allocnos_have_intersected_live_ranges_p): Rename to
7652         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7653         (pseudos_have_intersected_live_ranges_p): Rename to
7654         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7655         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7656         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7657         (update_copy_costs): Remove assert.  Skip cost update if the hard
7658         reg does not belong the class.
7659         (assign_hard_reg): Process only profitable hard regs.
7660         (uncolorable_allocnos_num): Make it scalar.
7661         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7662         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7663         and ira_reg_class_max_nregs.
7664         (bucket_allocno_compare_func): Check frequency first.
7665         (sort_bucket): Add compare function as a parameter.
7666         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7667         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7668         (push_allocno_to_stack): Rewrite for checking new allocno
7669         colorability.
7670         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7671         (push_only_colorable): Pass new parameter to sort_bucket.
7672         (push_allocno_to_spill): Remove.
7673         (allocno_spill_priority_compare): Make it inline and rewrite.
7674         (splay_tree_allocate, splay_tree_free): Remove.
7675         (allocno_spill_sort_compare): New function.
7676         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7677         build and use splay tree.  Choose first allocno in uncolorable
7678         allocno bucket to spill.  Remove setting spill cost.
7679         (all_conflicting_hard_regs): Remove.
7680         (setup_allocno_available_regs_num): Check only profitable hard
7681         regs.  Print info about hard regs nodes.
7682         (setup_allocno_left_conflicts_size): Remove.
7683         (put_allocno_into_bucket): Don't call
7684         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7685         (improve_allocation): New.
7686         (color_allocnos): Call setup_profitable_hard_regs,
7687         form_object_hard_regs_nodes_forest, improve_allocation,
7688         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7689         (print_loop_title): Use pressure classes.
7690         (color_allocnso): Ditto.
7691         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7692         and allocnos_for_spilling.
7693         (ira_sort_regnos_for_alter_reg): Don't setup members
7694         {first,next}_coalesced_allocno.
7695         (color): Remove allocating and freeing removed_splay_allocno_vec.
7696         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7697         prohibited_class_mode_regs.
7698
7699         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7700         formatting.
7701         (update_allocno_pressure_excess_length): Use pressure classes.
7702         (inc_register_pressure, dec_register_pressure): Check for pressure
7703         class.
7704         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7705         pressure class.  Use ira_reg_class_nregs instead of
7706         ira_reg_class_max_nregs.
7707         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7708         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7709         (single_reg_class): Use ira_reg_class_nregs instead of
7710         ira_reg_class_max_nregs.
7711         (process_bb_node_lives): Use pressure classes.
7712
7713         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7714         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7715         (change_loop): Use pressure classes.
7716         (modify_move_list): Call ira_set_allocno_class instead of
7717         ira_set_allocno_cover_class.
7718
7719         * ira-build.c: Remove mentioning cover classes from the file.  Use
7720         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7721         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7722         ALLOCNO_UPDATED_CLASS_COST instead of
7723         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7724         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7725         (ira_create_allocno): Remove initialization of
7726         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7727         ALLOCNO_COLORABLE_P.
7728         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7729         Update conflict regs for the objects.
7730         (create_cap_allocno): Remove assert.  Don't propagate
7731         ALLOCNO_AVAILABLE_REGS_NUM.
7732         (ira_free_allocno_costs): New function.
7733         (finish_allocno): Change a part of code into call of
7734         ira_free_allocno_costs.
7735         (low_pressure_loop_node_p): Use pressure classes.
7736         (object_range_compare_func): Don't compare classes.
7737         (setup_min_max_conflict_allocno_ids): Ditto.
7738
7739         * loop-invariant.c: Remove mentioning cover classes from the file.
7740         Use ira_pressure_classes and ira_pressure_classes_num instead of
7741         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7742         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7743         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7744         Use reg_allocno_class instead of reg_cover_class.
7745         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7746         STACK_REG_COVER_CLASS.
7747         (get_regno_cover_class): Rename to get_regno_pressure_class.
7748         (move_loop_invariants): Initialize and finalize regstat.
7749
7750         * ira.c: Remove mentioning cover classes from the file.  Add
7751         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7752         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7753         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7754         setup_class_subset_and_memory_move_costs.
7755         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7756         (setup_cover_and_important_classes): Rename to
7757         setup_allocno_and_important_classes.
7758         (setup_class_translate_array): New.
7759         (setup_class_translate): Call it for allocno and pressure classes.
7760         (cover_class_order): Rename to allocno_class_order.
7761         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7762         of ira_class_translate.
7763         (reorder_important_classes): Set up ira_important_class_nums.
7764         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7765         (print_class_cover): Rename to print_classes.  Add parameter.
7766         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7767         Print pressure classes too.
7768         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7769         setup_reg_subclasses.
7770         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7771         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7772         (setup_prohibited_class_mode_regs): Use
7773         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7774         (clarify_prohibited_class_mode_regs): New function.
7775         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7776         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7777         (ira_init_once): Initialize them.
7778         (free_register_move_costs): Process them.
7779         (ira_init): Move calls of find_reg_classes and
7780         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7781         Call clarify_prohibited_class_mode_regs.
7782         (ira_no_alloc_reg): Remove.
7783         (too_high_register_pressure_p): Use pressure classes.
7784
7785         * sched-deps.c: Remove mentioning cover classes from the file.
7786         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7787         ira_pressure_classes and ira_pressure_classes_num instead of
7788         ira_reg_class_cover_size and ira_reg_class_cover.
7789         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7790         sched_regno_pressure_class instead of sched_regno_cover_class.
7791         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7792         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7793
7794         * ira.h: Add 2010 to Copyright.
7795         (ira_no_alloc_reg): Remove external.
7796         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7797         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7798         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7799         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7800         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7801         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7802         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7803         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7804         x_ira_no_alloc_regs.
7805         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7806         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7807         ira_allocno_classes_num and ira_allocno_classes.
7808         (ira_class_translate): Rename to ira_allocno_class_translate.
7809         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7810         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7811         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7812         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7813         (ira_no_alloc_regs): New.
7814
7815         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7816         classes from the file.  Use ALLOCNO_CLASS instead of
7817         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7818         ALLOCNO_COVER_CLASS_COST.
7819         (regno_cover_class): Rename to regno_aclass.
7820         (record_reg_classes): Use ira_reg_class_subunion instead of
7821         ira_reg_class_union.
7822         (record_address_regs): Check overflow.
7823         (scan_one_insn): Ditto.
7824         (print_allocno_costs): Print total mem cost fore regional allocation.
7825         (print_pseudo_costs): Use REG_N_REFS.
7826         (find_costs_and_classes): Use classes intersected with them on the
7827         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7828         ira_reg_class_union.  Use ira_allocno_class_translate and
7829         regno_aclass instead of ira_class_translate and regno_cover_class.
7830         Modify code for finding regno_aclass.  Setup preferred classes for
7831         the next pass.
7832         (setup_allocno_cover_class_and_costs): Rename to
7833         setup_allocno_class_and_costs.  Use regno_aclass instead of
7834         regno_cover_class.  Use ira_set_allocno_class instead of
7835         ira_set_allocno_cover_class.
7836         (init_costs, finish_costs): Use regno_aclass instead of
7837         regno_cover_class.
7838         (ira_costs): Use setup_allocno_class_and_costs instead of
7839         setup_allocno_cover_class_and_costs.
7840         (ira_tune_allocno_costs_and_cover_classes): Rename to
7841         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7842         by processing objects.  Use ira_reg_class_max_nregs instead of
7843         ira_reg_class_nregs.
7844
7845         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7846
7847         * sched-int.h: Remove mentioning cover classes from the file.
7848         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7849
7850         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7851         classes from the file.
7852         (struct reg_pref): Rename coverclass into allocnoclass.
7853         (reg_cover_class): Rename to reg_allocno_class.
7854
7855         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7856
7857         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7858
7859         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7860
7861         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7862
7863         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7864
7865         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7866
7867         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7868
7869         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7870
7871         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7872
7873         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7874
7875         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7876         (i386_ira_cover_classes): Ditto.
7877
7878         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7879
7880         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7881
7882         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7883
7884         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7885
7886         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7887
7888         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7889
7890         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7891         (mips_ira_cover_classes): Ditto.
7892
7893         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7894
7895         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7896
7897         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7898
7899         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7900
7901         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7902
7903         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7904         (IRA_COVER_CLASSES_VSX): Ditto.
7905
7906         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7907         (rs6000_ira_cover_classes): Ditto.
7908
7909         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7910
7911         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7912
7913         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7914
7915         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7916
7917         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7918
7919         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7920
7921         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7922
7923         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7924
7925         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7926
7927         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7928
7929 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7930
7931         PR debug/48253
7932         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7933         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7934         dw_fde_unlikely_section_end_label, cold_in_std_section,
7935         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7936         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7937         fields.
7938         (output_fde): Use dw_fde_second_{begin,end} if second is
7939         true, otherwise dw_fde_{begin,end}.
7940         (output_call_frame_info): Test dw_fde_second_begin != NULL
7941         instead of dw_fde_switched_sections.
7942         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7943         fields, initialize new fields.  Initialize in_std_section
7944         unconditionally from the first partition.
7945         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7946         dw_fde_second_begin is non-NULL.
7947         (dwarf2out_switch_text_section): Stop initializing removed
7948         dw_fde_struct fields, initialize new fields, initialize
7949         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7950         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7951         (struct var_loc_list_def): Add last_before_switch field.
7952         (arange_table, arange_table_allocated, arange_table_in_use,
7953         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7954         (size_of_aranges): Count !in_std_section and !second_in_std_section
7955         hunks in fdes, instead of looking at arange_table_in_use.
7956         (output_aranges): Add aranges_length argument, don't call
7957         size_of_aranges here.  Instead of using aranges_table*
7958         emit ranges for fdes when !in_std_section resp.
7959         !second_in_std_section.
7960         (dw_loc_list): Break ranges crossing section switch.
7961         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7962         use dw_fde_second_end instead of dw_fde_end as end of last range.
7963         (gen_subprogram_die): Don't call add_arange.  Use
7964         dw_fde_{begin,end} for first partition and if switched
7965         section dw_fde_second_{begin,end} for the second.
7966         (var_location_switch_text_section_1,
7967         var_location_switch_text_section): New functions.
7968         (dwarf2out_begin_function): Initialize cold_text_section even
7969         when function_section () isn't text_section.
7970         (prune_unused_types): Don't walk arange_table.
7971         (dwarf2out_finish): Don't needlessly test
7972         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7973         If info_section_emitted, call size_of_aranges and if it indicates
7974         non-empty .debug_aranges, call output_aranges with the computed
7975         size.  Stop using removed dw_fde_struct fields, use
7976         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7977         for second.
7978
7979         PR debug/48203
7980         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7981         create ENTRY_VALUE if incoming or address of incoming's MEM
7982         is a hard REG.
7983         * dwarf2out.c (mem_loc_descriptor): Don't emit
7984         DW_OP_GNU_entry_value of DW_OP_fbreg.
7985         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7986         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7987         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7988         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7989         ENTRY_VALUE_EXPs.
7990         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7991         is a REG_P or MEM_P with REG_P address, compute hash directly
7992         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7993         (preserve_only_constants): Don't clear VALUES forwaring
7994         ENTRY_VALUE to some other VALUE.
7995
7996 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7997
7998         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7999         instead of GEN_INT.
8000
8001 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8002
8003         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8004         block before expanding the statement.
8005         (expand_gimple_stmt_1): Likewise.  Set them here...
8006         (expand_gimple_stmt): ...and not here.  Tidy.
8007         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8008         unknown.
8009
8010 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8011
8012         * Makefile.in: New rule for cprop.o.
8013         * gcse.c: Move constant/copy propagation to cprop.c.
8014         (compute_local_properties): Only handle expression tables.
8015         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8016         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8017         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8018         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8019         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8020         compute_cprop_data, find_used_regs, try_replace_reg,
8021         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8022         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8023         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8024         find_bypass_set, reg_killed_on_edge, bypass_block,
8025         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8026         execute_rtl_cprop, pass_rtl_cprop): Move to...
8027         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8028         moved from gcse.c to here with minor cleanups in duplicated code.
8029
8030 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8031
8032         * config/i386/i386.c (flag_opts): Fix a typo in
8033         -mavx256-split-unaligned-store.
8034
8035 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8036
8037         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8038         LIBCALL_VALUE): Remove macros.
8039         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8040         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8041         (h8300_function_value, h8300_libcall_value,
8042         h8300_function_value_regno_p): New functions.
8043
8044 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8045
8046         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8047
8048 2011-03-28  Jeff Law  <law@redhat.com>
8049
8050         * tree-ssa-threadupdate.c (redirect_edges): Call
8051         create_edge_and_update_destination_phis as needed.
8052         (create_edge_and_update_destination_phis): Accept new BB argument.
8053         All callers updated.
8054         (thread_block): Do not update the profile when threading around
8055         intermediate blocks.
8056         (thread_single_edge): Likewise.
8057         (determine_bb_domination_status): If BB is not a successor of the
8058         loop header, return NONDOMINATING.
8059         (register_jump_thread): Note when we register a jump thread around
8060         an intermediate block.
8061         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8062         (thread_across_edge): Use it.
8063
8064 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8065
8066         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8067         when for_return is 2.
8068
8069 2011-03-28  Jeff Law  <law@redhat.com>
8070
8071         * var-tracking.c (canonicalize_values_mark): Delete unused
8072         lhs assignment.
8073         (canonicalize_values_star, set_variable_part): Likewise.
8074         (clobber_variable_part, delete_variable_part): Likewise.
8075
8076 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8077
8078         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8079
8080 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8081
8082         * tree-inline.c (expand_call_inline): Do not check that destination
8083         node is analyzed.
8084         (optimize_inline_calls): Assert that destination node is analyzed.
8085         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8086         not call tree_lowering_passes.
8087         * cgraph.h (cgraph_analyze_function): Declare.
8088         * cgraphunit.c (cgraph_analyze_function): Make public.
8089
8090 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8091
8092         * config/sparc/sparc-opts.h: New.
8093         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8094         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8095         (sparc_option_override): Store processor_type enumeration rather
8096         than string in cpu_default.  Remove name and enumeration from
8097         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8098         without using sparc_select.  Use target_flags_explicit instead of
8099         fpu_option_set.
8100         * config/sparc/sparc.h (enum processor_type): Move to
8101         sparc-opts.h.
8102         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8103         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8104         HeaderInclude entry.
8105         (mcpu=, mtune=): Use Var and Enum.
8106         (sparc_processor_type): New Enum and EnumValue entries.
8107
8108 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8109             Iain Sandoe  <iains@gcc.gnu.org>
8110
8111         PR target/48245
8112         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8113
8114 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8115
8116         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8117         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8118         Insert new statements at it in lieu of STMT.
8119         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8120         * tree-vect-stmts.c (vectorizable_store): Likewise.
8121         (vectorizable_load): Likewise.
8122
8123 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8124
8125         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8126         (divtf3): Ditto.
8127         (multf3): Ditto.
8128         (subtf3): Ditto.
8129
8130 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8131
8132         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8133         unaligned 256bit load/store.
8134         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8135         (*avx_movdqu<avxmodesuffix>): Likewise.
8136
8137 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8138
8139         PR target/48288
8140         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8141         * config/pa/pa.md (iordi3): Use new predicate in expander.
8142         (iorsi3): Likewise.
8143
8144 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8145
8146         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8147         FUNCTION_VALUE_REGNO_P): Remove macros.
8148         * config/mips/mips-protos.h (mips_function_value): Remove.
8149         * config/mips/mips.c (mips_function_value): Rename to...
8150         (mips_function_value_1): ... this. Make static.  Handle receiving
8151         the function type in 'fn_decl_or_type' argument.
8152         (mips_function_value, mips_libcall_value,
8153         mips_function_value_regno_p): New function.
8154         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8155         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8156
8157 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8158
8159         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8160         and -mavx256-split-unaligned-store.
8161         (ix86_option_override_internal): Split 32-byte AVX unaligned
8162         load/store by default.
8163         (ix86_avx256_split_vector_move_misalign): New.
8164         (ix86_expand_vector_move_misalign): Use it.
8165
8166         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8167         -mavx256-split-unaligned-store.
8168
8169         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8170         256bit load/store.  Generate unaligned store on misaligned memory
8171         operand.
8172         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8173         256bit load/store.
8174         (*avx_movdqu<avxmodesuffix>): Likewise.
8175
8176         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8177         -mavx256-split-unaligned-store.
8178
8179 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8180
8181         PR target/38598
8182         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8183         Update commentary.
8184
8185 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8186
8187         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8188         opno arguments with an expand_operand.  Use create_input_operand.
8189         (mips_prepare_builtin_target): Delete.
8190         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8191         functions.
8192         (mips_expand_builtin_direct): Use create_output_operand and
8193         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8194         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8195         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8196
8197 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8198
8199         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8200         function.
8201         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8202
8203 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8204
8205         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8206         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8207         basic blocks and call commit_edge_insertions directly.
8208         (fixup_abnormal_edges): Move from here to...
8209         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8210         on the edges and return whether some have actually been inserted.
8211         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8212         compensation code.
8213
8214 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8215
8216         PR rtl-optimization/48144
8217         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8218         (merge_expr_data): ... here.
8219         (av_set_intersect): Rename to av_set_code_motion_filter.
8220         Update all callers.  Call merge_history_vect when an expression
8221         is found in both sets.
8222         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8223
8224 2011-03-26  Alan Modra  <amodra@gmail.com>
8225
8226         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8227         cmodel medium addresses.
8228         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8229         64-bit gpr loads and stores.
8230         (rs6000_secondary_reload_ppc64): New function.
8231         * config/rs6000/rs6000-protos.h: Declare it.
8232         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8233
8234 2011-03-26  Alan Modra  <amodra@gmail.com>
8235
8236         PR target/47487
8237         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8238         GNU Go in traceback table.
8239
8240 2011-03-25  Richard Henderson  <rth@redhat.com>
8241
8242         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8243         if there are exactly 6 operands.
8244         (set_storage_via_setmem): Similarly.
8245
8246 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8247
8248         * collect2.c (write_c_file_stat): Handle backslash
8249         as right-hand directory separator.
8250         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8251         checking just for slash.
8252         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8253         instead of checking for trailing slash.
8254         * gcc.c (record_temp_file): Use filename_cmp instead
8255         of strcmp.
8256         (do_spec_1): Likewise.
8257         (replace_outfile_spec_function): Likewise.
8258         (is_directory): Use filename_ncmp instead of strncmp.
8259         (print_multilib_info): Likewise.
8260         * gcov.c (find_source): Use filename_cmp instead
8261         instead of strcmp.
8262         (make_gcov_file_name): Fix order of slash/backslash
8263         checks.
8264         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8265         (add_standard_paths): Likewise.
8266         * mips-tfile.c (saber_stop): Handle backslash.
8267         * prefix.c (update_path): Use filename_ncmp instead of
8268         strncmp.
8269         * profile.c (output_location): Use filename_cmp instead
8270         of strcmp.
8271         * read-md.c (handle_toplevel_file): Handle backslash.
8272         * tlink.c (frob_extension):  Likewise.
8273         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8274         strcmp.
8275         * tree-dump.c (dequeue_and_dump): Handle backslash.
8276         * tree.c (get_file_function_name): Likewise.
8277         * gengtype.c (read_input_list): Likewise.
8278         (get_file_realbasename): Likewise.
8279         (get_output_file_with_visibility): Use filename_cmp
8280         instead of strcmp.
8281
8282 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8283
8284         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8285         case to VFPv1.
8286
8287 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8288
8289         * fold-const.c (expr_location_or): New function.
8290         (fold_truth_not_expr): Call it.
8291
8292 2011-03-25  Jeff Law  <law@redhat.com>
8293
8294         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8295         va_end.
8296         * c-family/c-common.c (def_fn_type): Likewise.
8297         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8298         * emit-rtl.c (gen_rtvec): Likewise.
8299         * lto/lto-lang.c (def_fn_type): Likewise.
8300
8301 2011-03-25  Richard Guenther  <rguenther@suse.de>
8302
8303         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8304         also generate copies.
8305         (fini_copy_prop): Handle constant values properly.
8306
8307 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8308
8309         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8310         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8311         (hash_loc_operands, compare_loc_operands): Handle
8312         DW_OP_GNU_entry_value.
8313
8314 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8315
8316         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8317         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8318         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8319         comment and use macro TARGET_64BIT_MS_ABI instead.
8320         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8321         and change default behavior for 32-bit MS_ABI.
8322         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8323         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8324         32-bit, too.
8325         (ix86_cfun_abi): Likewise.
8326         (ix86_maybe_switch_abi): Adjust comment.
8327         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8328         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8329         instead of checking for SYSV_ABI.
8330         (ix86_nsaved_sseregs): Likewise.
8331         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8332         to 16 bytes.
8333         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8334         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8335         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8336         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8337         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8338
8339 2011-03-25  Richard Guenther  <rguenther@suse.de>
8340
8341         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8342         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8343         (verify_gimple): Remove.
8344         * tree-cfg.c (verify_gimple_call): Merge verification
8345         from verify_stmts.
8346         (verify_gimple_phi): Merge verification from verify_stmts.
8347         (verify_gimple_label): New function.
8348         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8349         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8350         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8351         (verify_stmts): Rename to verify_gimple_in_cfg.
8352         (verify_gimple_in_cfg): New function.
8353         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8354         * tree-ssa.c (verify_ssa): Likewise.
8355         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8356
8357 2011-03-25  Richard Guenther  <rguenther@suse.de>
8358
8359         * passes.c (init_optimization_passes): Add FRE pass after
8360         early SRA.
8361
8362 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8363             Andrew Stubbs  <ams@codesourcery.com>
8364
8365         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8366         for Cortex-A8.
8367         (arm_movdi_vfp_cortexa8): New pattern.
8368         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8369         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8370         instructions when tuning for Cortex-A8.  Set attribute "arch".
8371         * config/arm/arm.md: Move include arm-tune.md up a bit.
8372         (define_attr "arch"): Add "onlya8" and "nota8" values.
8373         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8374
8375 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8376
8377         PR bootstrap/48282
8378         Revert:
8379         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8380
8381         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8382         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8383         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8384         * passes.c (init_optimization_passes): Move
8385         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8386
8387 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8388
8389         * c-typeck.c (comptypes_internal): Replace target
8390         hook call of comp_type_attributes by version in tree.c file.
8391         * gimple.c (gimple_types_compatible_p_1): Likewise.
8392         * tree-ssa.c (useless_type_conversion_p): Likewise.
8393         * tree.c (build_type_attribute_qual_variant): Likewise.
8394         (attribute_value_equal): New static helper function.
8395         (comp_type_attributes): New function.
8396         (merge_attributes): Use attribute_value_equal for comparison.
8397         (attribute_list_contained): Likewise.
8398         * tree.h (comp_type_attributes): New prototype.
8399
8400 2011-03-25  Richard Guenther  <rguenther@suse.de>
8401
8402         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8403         of complex types at -O0.
8404         (verify_gimple_assign_binary): Likewise.
8405         (verify_gimple_assign_ternary): Likewise.
8406
8407 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8408
8409         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8410         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8411
8412 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8413
8414         PR debug/48041
8415         * dwarf2out.c (output_abbrev_section): Only write table when
8416         abbrev_die_table_in_use > 1.
8417
8418 2011-02-24  Richard Henderson  <rth@redhat.com>
8419
8420         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8421         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8422         (alpha_expand_unaligned_load_words): Use extql.
8423         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8424         (emit_insxl): Handle all modes for consistency.
8425
8426 2011-02-24  Richard Henderson  <rth@redhat.com>
8427
8428         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8429         (alpha_expand_unaligned_load): Likewise.
8430         (alpha_expand_unaligned_store): Likewise.
8431         (alpha_expand_unaligned_load_words): Likewise.
8432         (alpha_expand_unaligned_store_words): Likewise.
8433         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8434         (alpha_split_lock_test_and_set_12): Likewise.
8435         (print_operand, alpha_fold_builtin_extxx): Likewise.
8436         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8437         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8438         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8439         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8440         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8441         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8442         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8443         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8444         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8445         (extwl, extll, extql): Similarly.
8446         (inswh, inslh, insqh): Similarly.
8447         (mskbl, mskwl, mskll, mskql): Similarly.
8448         (mskwh, msklh, mskqh): Similarly.
8449
8450 2011-02-24  Richard Henderson  <rth@redhat.com>
8451
8452         * config/alpha/alpha.md (attribute isa): Add er, ner.
8453         (attribute enabled): Handle them.
8454         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8455
8456 2011-02-24  Richard Henderson  <rth@redhat.com>
8457
8458         * config/alpha/alpha.md (attribute isa): Add vms.
8459         (attribute enabled): Handle it.
8460         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8461         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8462         (*movtf): Rename from *movtf_internal for consistency.
8463         (*movsi): Merge with *movsi_nt_vms.
8464         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8465         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8466         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8467         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8468
8469 2011-02-24  Richard Henderson  <rth@redhat.com>
8470
8471         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8472         (extendqisi2, extendhisi2): Likewise.
8473         (extendqidi2): Simplify BWX/non-BWX expansions.
8474         (extendhidi2): Similarly.
8475
8476 2011-02-24  Richard Henderson  <rth@redhat.com>
8477
8478         * config/alpha/alpha.md (attribute isa): New.
8479         (attribute enabled): New.
8480         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8481         (zero_extendqisi2, zero_extendqidi2): Similarly.
8482         (zero_extendhisi2, zero_extendhidi2): Similarly.
8483         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8484
8485 2011-02-24  Richard Henderson  <rth@redhat.com>
8486
8487         * config/alpha/predicates.md (input_operand): Revert last change;
8488         update comment to mention 32-bit VMS rather than Windows.
8489
8490 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8491
8492         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8493         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8494         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8495         * passes.c (init_optimization_passes): Move
8496         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8497
8498 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8499
8500         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8501
8502 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8503
8504         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8505         correctly.
8506
8507 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8508
8509         PR debug/48204
8510         * simplify-rtx.c (simplify_const_unary_operation): Call
8511         real_convert when changing mode class with FLOAT_EXTEND.
8512
8513 2011-03-24  Nick Clifton  <nickc@redhat.com>
8514
8515         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8516         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8517         * config/rx/rx.c (rx_option_override): Set align_jumps,
8518         align_loops and align_labels if not set by the user.
8519         (rx_align_for_label): New function.
8520         (rx_max_skip_for_label): New function.
8521         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8522         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8523         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8524         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8525         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8526
8527 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8528
8529         PR rtl-optimization/48263
8530         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8531         and original commutative_p handling.  Use maybe_gen_insn.
8532
8533 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8534
8535         * reload.c (find_reloads_subreg_address): Add address_reloaded
8536         parameter and return true there if the full address has been
8537         reloaded.
8538         (find_reloads_toplev): Pass address_reloaded flag.
8539         (find_reloads_address_1): Don't use address_reloaded parameter.
8540
8541 2011-03-24  Jeff Law  <law@redhat.com>
8542
8543         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8544         unused variable "ann".
8545         (remove_unused_locals): Likewise.
8546
8547         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8548         statement.
8549
8550         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8551         after it is freed.
8552
8553 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8554
8555         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8556         for invalid symbolic addresses.
8557         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8558         larl operands.
8559
8560 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8561
8562         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8563         the argument in calls to fold_truth_not_expr.
8564
8565 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8566
8567         * tree.c (record_node_allocation_statistics): New function.
8568         (make_node_stat, copy_node_stat, build_string): Call it.
8569         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8570         (build1_stat, build_omp_clause): Likewise.
8571
8572 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8573
8574         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8575         last commit.
8576
8577 2011-03-24  Richard Guenther  <rguenther@suse.de>
8578
8579         PR tree-optimization/48271
8580         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8581         blocks that still exist.
8582
8583 2011-03-24  Richard Guenther  <rguenther@suse.de>
8584
8585         PR tree-optimization/48270
8586         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8587         not free datarefs before ddrs.
8588
8589 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8590
8591         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8592         from the address built for a reference with variable offset.
8593
8594 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8595
8596         PR target/48237
8597         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8598         alternatives that can be handled with movq or movabsq insn.
8599         (*movdf_internal): Disable for !TARGET_64BIT.
8600         (*movdf_internal_nointeger): Ditto.
8601         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8602
8603 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8604
8605         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8606         (FUNCTION_ARG_ADVANCE): Likewise.
8607         * tm.texi.in: Change references to them to hook references.
8608         * tm.texi: Regenerate.
8609         * targhooks.c (default_function_arg): Eliminate check for target macro.
8610         (default_function_incoming_arg): Likewise.
8611         (default_function_arg_advance): Likewise.
8612         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8613         (function_arg_advance): Likewise.
8614         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8615
8616 2011-03-24  Richard Guenther  <rguenther@suse.de>
8617
8618         PR middle-end/48269
8619         * tree-object-size.c (addr_object_size): Do not double-account
8620         for MEM_REF offsets.
8621
8622 2011-03-24  Diego Novillo  <dnovillo@google.com>
8623
8624         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8625         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8626         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8627         Update all users.
8628         (lto_input_string): Rename from input_string.  Make extern.
8629         Update all users.
8630         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8631         output_string_with_length.
8632         Output 0 to indicate a non-NULL string.  Update all callers to
8633         not emit 0.
8634         (lto_output_string): Rename from output_string.  Make extern.
8635         Update all users.
8636         (lto_output_decl_state_streams): Make extern.
8637         (lto_output_decl_state_refs): Make extern.
8638         * lto-streamer.h (lto_input_string): Declare.
8639         (lto_input_data_block): Declare.
8640         (lto_output_string): Declare.
8641         (lto_output_string_with_length): Declare.
8642         (lto_output_decl_state_streams): Declare.
8643         (lto_output_decl_state_refs): Declare.
8644
8645 2011-03-24  Richard Guenther  <rguenther@suse.de>
8646
8647         PR tree-optimization/46562
8648         * tree.c (build_invariant_address): New function.
8649         * tree.h (build_invariant_address): Declare.
8650         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8651         a renamed function moved ...
8652         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8653         Take valueization callback parameter.
8654         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8655         * gimple-fold.h: New file.
8656         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8657         (ccp_fold, fold_const_aggregate_ref,
8658         fold_ctor_reference, fold_nonarray_ctor_reference,
8659         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8660         get_base_constructor): Move ...
8661         * gimple-fold.c: ... here.
8662         (gimple_fold_stmt_to_constant_1): New function
8663         split out from ccp_fold.  Take a valueization callback parameter.
8664         Valueize all operands.
8665         (gimple_fold_stmt_to_constant): New wrapper function.
8666         (fold_const_aggregate_ref_1): New function split out from
8667         fold_const_aggregate_ref.  Take a valueization callback parameter.
8668         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8669         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8670         invariant POINTER_PLUS_EXPRs to invariant form.
8671         (vn_valueize): New function.
8672         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8673         * tree-vrp.c (vrp_valueize): New function.
8674         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8675         to fold statements to constants.
8676         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8677         function declarations.
8678         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8679         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8680
8681 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8682
8683         * config/h8300/predicates.md (jump_address_operand): Fix register
8684         mode check.
8685
8686 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8687
8688         * doc/invoke.texi (max-stores-to-sink): Document.
8689         * params.h (MAX_STORES_TO_SINK): Define.
8690         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8691         if either vectorization or if-conversion is disabled.
8692         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8693         tree-vect-data-refs.c vect_equal_offsets.
8694         (dr_equal_offsets_p): New function.
8695         (find_data_references_in_bb): Remove static.
8696         * tree-data-ref.h (find_data_references_in_bb): Declare.
8697         (dr_equal_offsets_p): Likewise.
8698         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8699         (vect_drs_dependent_in_basic_block): Update calls to
8700         vect_equal_offsets.
8701         (vect_check_interleaving): Likewise.
8702         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8703         (cond_if_else_store_replacement): Rename to...
8704         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8705         documentation.
8706         (cond_if_else_store_replacement): New function.
8707         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8708         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8709
8710 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8711
8712         PR target/46934
8713         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8714         to subtract lower bound instead of GEN_INT().
8715
8716 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8717
8718         PR other/48179
8719         PR other/48221
8720         PR other/48234
8721         * doc/extend.texi (Alignment): Move section to match order in TOC.
8722         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8723         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8724
8725 2011-03-23  Jeff Law  <law@redhat.com>
8726
8727         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8728         before removing the edge.
8729
8730         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8731         it may have been freed by redirect_branch_edge or
8732         redirect_edge_succ_nodup.
8733
8734 2011-03-23  Richard Guenther  <rguenther@suse.de>
8735
8736         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8737         (check_va_list_escapes): Likewise.
8738         (check_all_va_list_escapes): Likewise.
8739
8740 2011-03-23  Richard Guenther  <rguenther@suse.de>
8741
8742         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8743         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8744         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8745         (alias.o): Likewise.
8746         (ipa-type-escape.o): Remove.
8747         (ipa-struct-reorg.o): Likewise.
8748         (GTFILES): Remove ipa-struct-reorg.c.
8749         * alias.c: Do not include ipa-type-escape.h.
8750         * tree-ssa-alias.c: Likewise.
8751         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8752         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8753         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8754         and ipa-type-escape passes.
8755         * tree-pass.h (pass_ipa_type_escape): Remove.
8756         (pass_ipa_struct_reorg): Likewise.
8757         * ipa-struct-reorg.h: Remove.
8758         * ipa-struct-reorg.c: Likewise.
8759         * ipa-type-escape.h: Likewise.
8760         * ipa-type-escape.c: Likewise.
8761         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8762         (--param struct-reorg-cold-struct-ratio): Likewise.
8763         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8764         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8765         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8766
8767 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8768
8769         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8770         cpu attribute value.
8771         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8772         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8773         * config/s390/s390.c (processor_flags_table): New constant array.
8774         (s390_handle_arch_option): Remove.
8775         (s390_handle_option): Remove s390_handle_arch_option invocations
8776         and OPT_mwarn_framesize_ handling.
8777         (s390_option_override): Remove s390_handle_arch_option invocation.
8778         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8779         warnings.
8780         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8781         * config/s390/s390.opt (s390_tune, s390_arch)
8782         (march=): Replace s390_arch_option enum and values with
8783         processor_type.  Set variable name to s390_arch.  Set
8784         initialization value.
8785         (mtune=): Replace s390_arch_option with processor_type.  Set
8786         variable name to s390_tune.  Set initialization value.
8787
8788 2011-03-23  Julian Brown  <julian@codesourcery.com>
8789
8790         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8791         accesses which are not naturally aligned.
8792
8793 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8794
8795         PR target/47553
8796         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8797
8798 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8799
8800         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8801         parameter from "int" to "enum insn_code".
8802         (expand_operand_type): New enum.
8803         (expand_operand): New structure.
8804         (create_expand_operand): New function.
8805         (create_fixed_operand, create_output_operand): Likewise
8806         (create_input_operand, create_convert_operand_to): Likewise.
8807         (create_convert_operand_from, create_address_operand): Likewise.
8808         (create_integer_operand): Likewise.
8809         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8810         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8811         (expand_insn, expand_jump_insn): Likewise.
8812         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8813         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8814         (expand_movstr, expand_builtin___clear_cache): Likewise.
8815         (expand_builtin_lock_release): Likewise.
8816         * explow.c (allocate_dynamic_stack_space): Likewise.
8817         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8818         and use the default handling in that case.
8819         * expmed.c (check_predicate_volatile_ok): Delete.
8820         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8821         (emit_cstore): Likewise.
8822         * expr.c (emit_block_move_via_movmem): Likewise.
8823         (set_storage_via_setmem, expand_assignment): Likewise.
8824         (emit_storent_insn, try_casesi): Likewise.
8825         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8826         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8827         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8828         (expand_twoval_unop, expand_twoval_binop): Likewise.
8829         (expand_unop_direct, emit_indirect_jump): Likewise.
8830         (emit_conditional_move, vector_compare_rtx): Likewise.
8831         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8832         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8833         (expand_sync_lock_test_and_set): Likewise.
8834         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8835         (emit_unop_insn): Likewise.
8836         (expand_copysign_absneg): Change icode to an insn_code.
8837         (create_convert_operand_from_type): New function.
8838         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8839         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8840         (expand_insn, expand_jump_insn): Likewise.
8841         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8842         than const_int_operand for operand 2.
8843
8844 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8845
8846         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8847         if possible.
8848
8849 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8850
8851         * emit-rtl.c (emit_pattern_before_noloc): New function.
8852         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8853         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8854         (emit_pattern_after_noloc): New function.
8855         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8856         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8857
8858 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8859
8860         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8861         (__ffsDI2): Likewise.
8862
8863 2011-03-22  Richard Henderson  <rth@redhat.com>
8864
8865         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8866         of !TARGET_ABI_OPEN_VMS.
8867         (alpha_trampoline_init, alpha_start_function): Likewise.
8868         (alpha_expand_epilogue, alpha_file_start): Likewise.
8869         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8870         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8871         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8872         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8873         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8874
8875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8876
8877         * config/s390/s390-opts.h: New.
8878         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8879         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8880         s390_stack_guard): Remove.
8881         (s390_handle_arch_option): Return void.  Take enum
8882         s390_arch_option value instead of string and searching array.
8883         (s390_handle_option): Don't assert that global structures are in
8884         use.  Access variables via opts pointer.  Use error_at.  Don't use
8885         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8886         s390_handle_arch_option.
8887         (s390_option_override): Update call to s390_handle_arch_option.
8888         (s390_emit_prologue): Use %d format for s390_stack_size in
8889         diagnostic.  Use %wd for HOST_WIDE_INT.
8890         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8891         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8892         * config/s390/s390.opt (config/s390/s390-opts.h): New
8893         HeaderInclude entry.
8894         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8895         s390_arch_flags, s390_warn_framesize): New Variable entries.
8896         (s390_arch_option): New Enum and EnumValue entries.
8897         (march=): Use Enum instead of Var.
8898         (mstack-guard=, mstack-size=): Use UInteger and Var.
8899         (mtune=): Use Enum.
8900
8901 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8902
8903         * config/score/score.c (score_handle_option): Don't assert that
8904         global structures are in use.  Access target_flags via opts
8905         pointer.  Use value of -march= option to determine target_flags
8906         settings.
8907         * config/score/score.opt (march=): Use Enum.
8908         (score_arch): New Enum and EnumValue entries.
8909
8910 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8911
8912         * config/mep/mep.c (option_mtiny_specified): Remove.
8913         (mep_option_override): Move register handling for -mivc2 from
8914         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8915         instead of option_mtiny_specified.
8916         (mep_handle_option): Access target_flags via opts pointer.  Don't
8917         assert that global structures are in use.  Defer part of -mivc2
8918         handling and move it to mep_option_override.
8919         * config/mep/mep.opt (IVC2): New Mask entry.
8920         (mivc2): Use Var and Defer instead of Mask.
8921
8922 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8923
8924         * config/v850/v850-opts.h: New.
8925         * config/v850/v850.c (small_memory): Replace with
8926         small_memory_physical_max array.  Make that array static const.
8927         (v850_handle_memory_option): Take integer value of argument.  Take
8928         gcc_options pointer, option text and location.  Return void.
8929         Update for changes to small memory structures.
8930         (v850_handle_option): Access target_flags via opts pointer.  Don't
8931         assert that global structures are in use.  Update calls to
8932         v850_handle_memory_option.
8933         (v850_encode_data_area): Update references to small memory settings.
8934         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8935         (enum small_memory_type): Move to v850-opts.h.
8936         * config/v850/v850.opt (config/v850/v850-opts.h): New
8937         HeaderInclude entry.
8938         (small_memory_max): New Variable entry.
8939         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8940         (mtda, mzda): Likewise.
8941
8942 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8943
8944         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8945         pointer.  Don't assert that global structures are in use.
8946
8947 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8948
8949         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8950         via opts pointer.  Don't assert that global structures are in use.
8951
8952 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8953
8954         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8955         (munix=93): Use Var.
8956         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8957         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8958         * config/pa/pa-opts.h: New.
8959         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8960         (pa_handle_option): Don't assert that global structures are in
8961         use.  Access target_flags via opts pointer.  Don't handle
8962         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8963         OPT_munix_98 here.
8964         (pa_option_override): Handle deferred OPT_mfixed_range_.
8965
8966 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8967
8968         * config/mn10300/mn10300-opts.h: New.
8969         * config/mn10300/mn10300.c (mn10300_processor,
8970         mn10300_tune_string): Remove.
8971         (mn10300_handle_option): Don't assert that global structures are
8972         in use.  Access mn10300_processor via opts pointer.  Don't handle
8973         OPT_mtune_ here.
8974         * config/mn10300/mn10300.h (enum processor_type): Move to
8975         mn10300-opts.h.
8976         (mn10300_processor): Remove.
8977         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8978         HeaderInclude entry.
8979         (mn10300_processor): New Variable entry.
8980         (mtune=): Use Var.
8981
8982 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8983
8984         * config/microblaze/microblaze.c: Don't include opts.h.
8985         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8986         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8987         (mno-clearbss): Use Var and Warn.
8988
8989 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8990
8991         * config/m32r/m32r-opts.h: New.
8992         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8993         (m32r_handle_option): Don't assert that global structures are in
8994         use.  Access target_flags and m32r_cache_flush_func via opts
8995         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8996         OPT_mno_flush_trap here.
8997         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8998         include of m32r-opts.h.
8999         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9000         HeaderInclude entry.
9001         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9002         (mmodel=): Use Enum and Var.
9003         (m32r_model): New Enum and EnumValue entries.
9004         (mno-flush-trap): Use Var.
9005         (msdata=): Use Enum and Var.
9006         (m32r_sdata): New Enum and EnumValue entries.
9007
9008 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9009
9010         * config/m32c/m32c.c: Don't include opts.h.
9011         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9012         m32c_handle_option): Remove.
9013         (m32c_option_override): Check global_options_set.x_target_memregs
9014         instead of target_memregs_set.
9015         * config/m32c/m32c.h (target_memregs): Remove.
9016         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9017         variable.
9018
9019 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9020
9021         * config/iq2000/iq2000-opts.h: New.
9022         * config/iq2000/iq2000.c: Don't include opts.h.
9023         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9024         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9025         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9026         HeaderInclude entry.
9027         (iq2000_tune): New Variable entry.
9028         (march=): Add comment.  Use Enum.
9029         (iq2000_arch): New Enum and EnumValue entries.
9030         (mcpu=): Use Enum and Var.
9031         (iq2000_tune): New Enum and EnumValue entries.
9032
9033 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9034
9035         * config/ia64/ia64-opts.h: New.
9036         * config/ia64/ia64.c (ia64_tune): Remove.
9037         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9038         here.  Use error_at.
9039         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9040         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9041         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9042         HeaderInclude entry.
9043         (ia64_tune): New Variable entry.
9044         (mfixed-range=): Use Defer and Var.
9045         (mtune=): Use Enum and Var.
9046         (ia64_tune): New Enum and EnumValue entries.
9047
9048 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9049
9050         * config/frv/frv-opts.h: New.
9051         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9052         frv-opts.h.
9053         (frv_cpu_type): Remove.
9054         * config/frv/frv.c: Don't include opts.h.
9055         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9056         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9057         (frv_cpu_type): New Variable entry.
9058         (frv_cpu): New Enum and EnumValue entries.
9059
9060 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9061
9062         * config/cris/cris.c (cris_handle_option): Access target_flags via
9063         opts pointer.  Don't assert that global structures are in use.
9064         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9065         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9066
9067 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9068
9069         * config/bfin/bfin-opts.h: New.
9070         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9071         bfin_si_revision, bfin_workarounds): Remove.
9072         (bfin_cpus): Make static const.
9073         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9074         not bfin_lib_id_given.
9075         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9076         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9077         pointer. Use error_at.  Don't assert that global structures are in use.
9078         * config/bfin/bfin.h: Include bfin-opts.h.
9079         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9080         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9081         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9082         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9083         entries.
9084
9085 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9086
9087         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9088         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9089         or -msoft-float here.
9090         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9091         -msoft-float and -mhard-float.
9092         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9093         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9094         msoft-float.
9095         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9096         -msoft-float.
9097         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9098         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9099         not mhard-float.
9100         (LIBGCC_SPEC): Don't handle -msoft-float.
9101         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9102         -mhard-float.
9103         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9104         msoft-float.
9105         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9106         -mfloat-abi=*, not -msoft-float and -mhard-float.
9107         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9108         -msoft-float.
9109         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9110         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9111         mhard-float and msoft-float.
9112         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9113         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9114         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9115         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9116         mhard-float.
9117         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9118         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9119         msoft-float.
9120         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9121         not mhard-float.
9122         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9123         not msoft-float.
9124
9125 2011-03-22  Richard Henderson  <rth@redhat.com>
9126
9127         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9128         TARGET_ABI_WINDOWS_NT.
9129         (alpha_output_function_end_prologue): Likewise.
9130         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9131         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9132         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9133         (trap, *movsi_nt_vms): Likewise.
9134         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9135         (*tablejump_osf_nt_internal): Remove.
9136         * config/alpha/predicates.md (input_operand): Only test Pmode.
9137
9138 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9139
9140         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9141         via opts pointer.  Use error_at.  Don't assert that global
9142         structures are in use.
9143
9144 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9145
9146         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9147         (ix86_handle_option): Access ix86_isa_flags and
9148         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9149         global structures are in use.
9150         (ix86_function_specific_save, ix86_function_specific_restore):
9151         Update ix86_isa_flags_explicit field name.
9152         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9153         (ix86_isa_flags_explicit): Rename TargetSave entry to
9154         x_ix86_isa_flags_explicit.
9155
9156 2011-03-22  Richard Henderson  <rth@redhat.com>
9157
9158         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9159         (alpha_option_override, direct_return): Likewise.
9160         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9161         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9162         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9163         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9164         (alpha_expand_epilogue, alpha_end_function): Likewise.
9165         (alpha_init_libfuncs): Likewise.
9166         (struct machine_function): Remove unicosmk members.
9167         (print_operand) ['t']: Remove.
9168         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9169         unicosmk_output_module_name, unicosmk_output_common,
9170         current_section_align, unicosmk_output_text_section_asm_op,
9171         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9172         unicosmk_section_type_flags, unicosmk_unique_section,
9173         unicosmk_asm_named_section, unicosmk_insert_attributes,
9174         unicosmk_output_align, unicosmk_defer_case_vector,
9175         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9176         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9177         unicosmk_output_ssib, unicosmk_add_call_info_word,
9178         unicosmk_extern_head, unicosmk_output_default_externs,
9179         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9180         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9181         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9182         * config/alpha/alpha-protos.h: Update.
9183         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9184         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9185         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9186         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9187         (*mulsi_se, mulvsi3): Likewise.
9188         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9189         (*divmodsi_internal, call, call_value, realign): Likewise.
9190         (moddi3, umoddi3): Likewise; remove duplicate expander.
9191         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9192         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9193         (*movdi_nofix): Remove r/U alternative.
9194         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9195         * config/alpha/constraints.md ("U"): Remove.
9196         * config/alpha/predicates.md (call_operand"): Don't test
9197         TARGET_ABI_UNICOSMK.
9198
9199 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9200
9201         * target.def (handle_option): Take gcc_options and
9202         cl_decoded_option pointers and location_t.
9203         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9204         * doc/tm.texi: Regenerate.
9205         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9206         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9207         * lto-opts.c (lto_reissue_options): Generate option structure for
9208         targetm.handle_option call.
9209         * opts.c (target_handle_option): Update call to
9210         targetm.handle_option.  Remove assertions about values now passed
9211         down to hook.
9212         * targhooks.c (default_target_handle_option): New.
9213         * targhooks.h (default_target_handle_option): Declare.
9214         * config/alpha/alpha.c: Include opts.h.
9215         (alpha_handle_option): Update to new hook interface.
9216         * config/arm/arm.c: Include opts.h.
9217         (arm_handle_option): Update to new hook interface.
9218         * config/arm/t-arm (arm.o): Update dependencies.
9219         * config/bfin/bfin.c: Include opts.h.
9220         (bfin_handle_option): Update to new hook interface.
9221         * config/cris/cris.c: Include opts.h.
9222         (cris_handle_option): Update to new hook interface.
9223         * config/frv/frv.c: Include opts.h.
9224         (frv_handle_option): Update to new hook interface.
9225         * config/i386/i386.c: Include opts.h.
9226         (ix86_handle_option): Update to new hook interface.
9227         (ix86_valid_target_attribute_inner_p): Generate option structure
9228         for call to ix86_handle_option.
9229         * config/i386/t-i386 (i386.o): Update dependencies.
9230         * config/ia64/ia64.c: Include opts.h.
9231         (ia64_handle_option): Update to new hook interface.
9232         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9233         * config/iq2000/iq2000.c: Include opts.h.
9234         (iq2000_handle_option): Update to new hook interface.
9235         * config/m32c/m32c.c: Include opts.h.
9236         (m32c_handle_option): Update to new hook interface.
9237         * config/m32r/m32r.c: Include opts.h.
9238         (m32r_handle_option): Update to new hook interface.
9239         * config/m68k/m68k.c: Include opts.h.
9240         (m68k_handle_option): Update to new hook interface.
9241         * config/mep/mep.c: Include opts.h.
9242         (mep_handle_option): Update to new hook interface.
9243         * config/microblaze/microblaze.c: Include opts.h.
9244         (microblaze_handle_option): Update to new hook interface.
9245         * config/mips/mips.c: Include opts.h.
9246         (mips_handle_option): Update to new hook interface.
9247         * config/mn10300/mn10300.c: Include opts.h.
9248         (mn10300_handle_option): Update to new hook interface.
9249         * config/pa/pa.c: Include opts.h.
9250         (pa_handle_option): Update to new hook interface.
9251         * config/pdp11/pdp11.c: Include opts.h.
9252         (pdp11_handle_option): Update to new hook interface.
9253         * config/rs6000/rs6000.c: Include opts.h.
9254         (rs6000_handle_option): Update to new hook interface.
9255         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9256         * config/rx/rx.c: Include opts.h.
9257         (rx_handle_option): Update to new hook interface.
9258         * config/s390/s390.c: Include opts.h.
9259         (s390_handle_option): Update to new hook interface.
9260         * config/score/score.c: Include opts.h.
9261         (score_handle_option): Update to new hook interface.
9262         * config/sh/sh.c: Include opts.h.
9263         (sh_handle_option): Update to new hook interface.
9264         * config/sparc/sparc.c: Include opts.h.
9265         (sparc_handle_option): Update to new hook interface.
9266         * config/v850/v850.c: Include opts.h.
9267         (v850_handle_option): Update to new hook interface.
9268
9269 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9270
9271         * gcc.c (driver_unknown_option_callback): Only permit and save
9272         unknown -Wno- options.
9273         (driver_wrong_lang_callback): Save options directly instead of via
9274         driver_unknown_option_callback.
9275
9276 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9277
9278         * combine.c (simplify_set): Try harder to find the best CC mode when
9279         simplifying a nested COMPARE on the RHS.
9280
9281 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9282
9283         * config/alpha/gnu.h: Remove.
9284         * config/arc: Remove directory.
9285         * config/arm/netbsd.h: Remove.
9286         * config/arm/t-pe: Remove.
9287         * config/crx: Remove directory.
9288         * config/i386/netbsd.h: Remove.
9289         * config/m68hc11: Remove directory.
9290         * config/m68k/uclinux-oldabi.h: Remove.
9291         * config/mcore/mcore-pe.h: Remove.
9292         * config/mcore/t-mcore-pe: Remove.
9293         * config/netbsd-aout.h: Remove.
9294         * config/rs6000/gnu.h: Remove.
9295         * config/sh/sh-symbian.h: Remove.
9296         * config/sh/symbian-base.c: Remove.
9297         * config/sh/symbian-c.c: Remove.
9298         * config/sh/symbian-cxx.c: Remove.
9299         * config/sh/symbian-post.h: Remove.
9300         * config/sh/symbian-pre.h: Remove.
9301         * config/sh/t-symbian: Remove.
9302         * config/svr3.h: Remove.
9303         * config/vax/netbsd.h: Remove.
9304         * config.build: Don't handle i[34567]86-*-pe.
9305         * config.gcc: Remove handling of deprecations for most deprecated
9306         targets.
9307         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9308         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9309         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9310         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9311         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9312         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9313         Remove cases.
9314         * config.host: Don't handle i[34567]86-*-pe.
9315         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9316         (ASM_SPEC32): Don't handle -mcall-gnu.
9317         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9318         -mcall-gnu.
9319         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9320         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9321         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9322         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9323         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9324         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9325         conditional on SYMBIAN.
9326         * configure.ac: Don't handle powerpc*-*-gnu*.
9327         * configure: Regenerate.
9328         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9329         * doc/install-old.texi (m6811, m6812): Don't mention.
9330         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9331         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9332         (m68k-uclinuxoldabi): Don't mention.
9333         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9334         Remove.
9335         (-mcall-gnu): Remove.
9336         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9337         families): Remove constraint documentation.
9338
9339 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9340
9341         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9342         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9343         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9344
9345 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9346
9347         PR target/48226
9348         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9349         vector when peeking at the next token for vector, don't expand the
9350         keywords.
9351
9352 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9353
9354         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9355         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9356         * config/avr/avr.c (init_cumulative_args)
9357         (avr_function_arg_advance): Use it.
9358         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9359         sibcall epilogues.
9360         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9361         (avr_function_ok_for_sibcall): ...this new function.
9362         (avr_lookup_function_attribute1): New static Function.
9363         (avr_naked_function_p, interrupt_function_p)
9364         (signal_function_p, avr_OS_task_function_p)
9365         (avr_OS_main_function_p): Use it.
9366         * config/avr/avr.md ("sibcall", "sibcall_value")
9367         ("sibcall_epilogue"): New expander.
9368         ("*call_insn", "*call_value_insn"): New insn.
9369         ("call_insn", "call_value_insn"): Remove
9370         ("call", "call_value", "epilogue"): Change expander to handle
9371         sibling calls.
9372
9373 2011-03-21  Nick Clifton  <nickc@redhat.com>
9374
9375         * doc/invoke.texi (Overall Options): Move closing brace to end of
9376         options list.
9377         (Optimization Options): Add missing @gol.
9378         (Directory Options): Likewise.
9379         (i386 and x86-64 Options): Likewise.
9380         (RS6000 and PowerPC Options): Likewise.
9381         (i386 and x86-64 Windows Options): Likewise.
9382         (V850 Options): Add text missing from descriptions.
9383
9384 2011-03-22  Richard Henderson  <rth@redhat.com>
9385
9386         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9387         (avr_incoming_return_addr_rtx): New.
9388         (emit_push_byte): New.
9389         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9390         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9391         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9392         (emit_pop_byte): New.
9393         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9394         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9395         (INCOMING_RETURN_ADDR_RTX): New.
9396         (INCOMING_FRAME_SP_OFFSET): New.
9397         (ARG_POINTER_CFA_OFFSET): New.
9398         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9399         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9400         (pophi): Remove.
9401
9402         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9403
9404 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9405
9406         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9407         (FUNCTION_ARG_ADVANCE): Likewise.
9408         * tm.texi.in: Change references to them to hook references.
9409         * tm.texi: Regenerate.
9410         * targhooks.c (default_function_arg): Eliminate check for target
9411         macro.
9412         (default_function_incoming_arg): Likewise.
9413         (default_function_arg_advance): Likewise.
9414         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9415         (function_arg_advance): Likewise.
9416         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9417
9418 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9419
9420         * tree.c (build_call_1): New function.
9421         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9422
9423 2011-03-22  Richard Guenther  <rguenther@suse.de>
9424
9425         PR tree-optimization/48228
9426         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9427         for single-arg PHIs.
9428
9429 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9430
9431         PR rtl-optimization/48143
9432         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9433         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9434         sse2_cvtps2pd): Likewise.
9435
9436 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9437
9438         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9439
9440 2011-03-22  Richard Guenther  <rguenther@suse.de>
9441
9442         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9443         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9444         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9445         and REALIGN_LOAD_EXPR.
9446         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9447         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9448         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9449         DOT_PROD_EXPR case ...
9450         (expand_expr_real_2): ... here.
9451         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9452         and REALIGN_LOAD_EXPR.
9453         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9454         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9455         (vect_create_epilog_for_reduction): Likewise.
9456         (vectorizable_reduction): Likewise.
9457         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9458         * tree-vect-stmts.c (vectorizable_load): Likewise.
9459
9460 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9461
9462         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9463
9464 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9465
9466         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9467         handling for PLTOFF/GOTOFF.
9468
9469 2011-03-22  Nick Clifton  <nickc@redhat.com>
9470
9471         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9472         trailing backslash from the end of the macro definition.
9473
9474 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9475
9476         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9477         and PLT unspecs.
9478
9479 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9480
9481         * expr.h (prepare_operand): Move to...
9482         * optabs.h (prepare_operand): ...here and change the insn code
9483         parameter from "int" to "enum insn_code".
9484         (insn_operand_matches): Declare.
9485         * expr.c (init_expr_target): Use insn_operand_matches.
9486         (compress_float_constant): Likewise.
9487         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9488         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9489         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9490         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9491         Likewise.
9492         (gen_cond_trap): Likewise.
9493         (prepare_operand): Likewise.  Change icode to an insn_code.
9494         (insn_operand_matches): New function.
9495         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9496         * reload1.c (gen_reload): Likewise.
9497         * targhooks.c (default_secondary_reload): Likewise.
9498
9499 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9500
9501         * config/alpha/alpha.md (unspec): New define_c_enum.
9502         (unspecv): Ditto.
9503
9504 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9505
9506         PR debug/48214
9507         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9508         between a call and its CALL_ARG_LOCATION note.
9509
9510 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9511
9512         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9513
9514 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9515
9516         PR c/42544
9517         PR c/48197
9518         * c-common.c (shorten_compare): If primopN is first sign-extended
9519         to opN and then zero-extended to result type, set primopN to opN.
9520
9521 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9522
9523         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9524         for barrier handlers.
9525
9526 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9527
9528         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9529         UNSPEC constants to be in the unspec enumeration, and redefine
9530         all UNSPECV constants to be in the unspecv enumeration, so that
9531         dumps print which unspec/unspec_volatile this is.
9532         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9533         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9534         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9535         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9536         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9537
9538         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9539         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9540         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9541         * config/rs6000/sync.md (isync, lwsync): Ditto.
9542
9543 2011-03-21  Richard Guenther  <rguenther@suse.de>
9544
9545         * params.def (lto-min-partition): Fix typo.
9546
9547 2011-03-21  Richard Guenther  <rguenther@suse.de>
9548
9549         PR c/47939
9550         * c-decl.c (grokdeclarator): Drop to the main variant only
9551         for array types.  Drop flag_gen_aux_info check.
9552
9553 2011-03-21  Richard Guenther  <rguenther@suse.de>
9554
9555         PR translation/47911
9556         * params.def (lto-partitions): Fix typo.
9557         (lto-min-partition): Fix wording.
9558
9559 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9560
9561         * config/rs6000/t-freebsd: Remove duplication from file.
9562
9563 2011-03-21  Richard Guenther  <rguenther@suse.de>
9564
9565         PR middle-end/47661
9566         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9567
9568 2011-03-21  Richard Guenther  <rguenther@suse.de>
9569
9570         PR lto/48210
9571         * params.def (lto-partitions): Require at least 1 partition.
9572
9573 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9574
9575         * gthr-solaris.h: Remove.
9576         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9577         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9578         (LIB_SPEC): Likewise.
9579         * config/sol2.opt (threads): Remove.
9580         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9581         (sparc*-*-solaris2*): Likewise.
9582         * configure.ac (enable_threads): Enable solaris support.
9583         * configure: Regenerate.
9584         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9585         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9586         solaris.
9587
9588 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9589
9590         * config.gcc: Obsolete *-*-solaris2.8*.
9591         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9592
9593 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9594
9595         PR bootstrap/48135
9596         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9597         reference.  Solaris 8 perl works.
9598
9599 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9600
9601         PR bootstrap/48135
9602         * doc/install.texi (Prerequisites): Move jar etc. up.
9603         Explain support library version requirements.
9604
9605 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9606
9607         PR bootstrap/48135
9608         * doc/install.texi (Prerequisites): Move Perl to build
9609         requirements.  Always necessary on Solaris 2 with Sun ld.
9610
9611 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9612
9613         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9614         binutils 2.21.
9615         (Specific, i?86-*-solaris2.[89]): Likewise.
9616         (Specific, i?86-*-solaris2.10): Likewise.
9617         (Specific, mips-sgi-irix6): Likewise.
9618         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9619         Update for binutils 2.21.
9620
9621 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9622
9623         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9624         Allow -fuse-linker-plugin for non-default plugin linker.
9625         * configure: Regenerate.
9626
9627 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9628
9629         PR bootstrap/48167
9630         * gengtype.c (files_rules): Added rule for cp/parser.h.
9631
9632 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9633
9634         PR target/48213
9635         * config/s390/s390.c (s390_delegitimize_address): Don't call
9636         lowpart_subreg if orig_x has BLKmode.
9637
9638 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9639
9640         PR target/12171
9641         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9642         * tree.h (attribute_spec): Add new member affects_type_identity.
9643         * attribs.c (empty_attribute_table): Adjust attribute_spec
9644         initializers.
9645         * config/alpha/alpha.c: Likewise.
9646         * config/arc/arc.c: Likewise.
9647         * config/arm/arm.c: Likewise.
9648         * config/avr/avr.c: Likewise.
9649         * config/bfin/bfin.c: Likewise.
9650         * config/crx/crx.c: Likewise.
9651         * config/darwin.h: Likewise.
9652         * config/h8300/h8300.c: Likewise.
9653         * config/i386/cygming.h: Likewise.
9654         * config/i386/i386.c: Likewise.
9655         * config/ia64/ia64.c: Likewise.
9656         * config/m32c/m32c.c: Likewise.
9657         * config/m32r/m32r.c: Likewise.
9658         * config/m68hc11/m68hc11.c: Likewise.
9659         * config/m68k/m68k.c: Likewise.
9660         * config/mcore/mcore.c: Likewise.
9661         * config/mep/mep.c: Likewise.
9662         * config/microblaze/microblaze.c: Likewise.
9663         * config/mips/mips.c: Likewise.
9664         * config/rs6000/rs6000.c: Likewise.
9665         * config/rx/rx.c: Likewise.
9666         * config/sh/sh.c: Likewise.
9667         * config/sol2.h: Likewise.
9668         * config/sparc/sparc.c: Likewise.
9669         * config/spu/spu.c: Likewise.
9670         * config/stormy16/stormy16.c: Likewise.
9671         * config/v850/v850.c: Likewise.
9672
9673 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9674
9675         * simplify-rtx.c (simplify_binary_operation_1): Handle
9676         (xor (and A B) C) case when B and C are both constants.
9677
9678 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9679
9680         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9681
9682 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9683
9684         PR bootstrap/48168
9685         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9686
9687 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9688
9689         PR rtl-optimization/48156
9690         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9691         assume df and df_lr are not NULL.
9692
9693 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9694
9695         PR debug/48023
9696         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9697         between a call and its CALL_ARG_LOCATION note.
9698
9699 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9700
9701         PR debug/48178
9702         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9703         between a call and its corresponding CALL_ARG_LOCATION note.
9704
9705 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9706
9707         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9708         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9709         * haifa-sched.c (setup_ref_regs): Ditto.
9710         * caller-save.c (add_used_regs_1): Ditto.
9711         * dse.c (look_for_hardregs): Ditto.
9712         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9713         * sched-rgn.c (check_live_1): Ditto.
9714
9715 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9716
9717         * c-decl.c (diagnose_mismatched_decls): Give an error for
9718         redefining a typedef with variably modified type.
9719
9720 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9721
9722         * c-decl.c (grokfield): Don't allow typedefs for structures or
9723         unions with no tag by default.
9724         * doc/extend.texi (Unnamed Fields): Update.
9725
9726 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9727
9728         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9729         Rewrite using indirect functions.
9730         (lwp_slwpcb): Ditto.
9731         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9732         (avx_vinsertf128<mode>): Ditto.
9733
9734 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9735
9736         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9737         unspecs.
9738
9739 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9740
9741         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9742         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9743
9744 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9745
9746         PR rtl-optimization/48170
9747         * gcse.c (hoist_code): Remove bogus asserts.
9748
9749 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9750
9751         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9752         computation for prologue/epilogue.
9753
9754 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9755
9756         * Makefile.in (check-consistency): Remove.
9757
9758 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9759
9760         PR debug/48176
9761         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9762         arange_table_in_use is 0, but either text_section_used or
9763         cold_text_section_used is true.  Don't call it if
9764         !info_section_emitted.
9765
9766 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9767
9768         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9769         FUNCTION_VALUE_REGNO_P): Remove.
9770         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9771         Remove.
9772         * config/avr/avr.c (avr_ret_register): Make static inline.
9773         (avr_function_value_regno_p): New function.
9774         (avr_libcall_value): Make static. Add 'func' argument.
9775         (avr_function_value): Make static. Rename 'func' argument to
9776         'fn_decl_or_type', forward it to avr_libcall_value. Call
9777         avr_ret_register function instead of RET_REGISTER macro.
9778         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9779
9780 2011-03-18  Jason Merrill  <jason@redhat.com>
9781
9782         PR c++/23372
9783         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9784
9785 2011-03-18  Richard Guenther  <rguenther@suse.de>
9786
9787         * doc/install.texi (--enable-gold): Remove.
9788         (--with-plugin-ld): Document.
9789         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9790
9791 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9792
9793         PR middle-end/47790
9794         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9795         again after expansion changes.
9796
9797 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9798
9799         * combine.c (try_combine): Do simplification only call of
9800         subst() on i2 even when i1 is present. Update comments.
9801
9802 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9803
9804         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9805         and UNSPEC_PCREL_SYMOFF.
9806
9807 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9808
9809         * config/s390/s390.md: Use define_c_enum for the unspec constant
9810         definitions.
9811
9812 2011-03-18  Richard Henderson  <rth@redhat.com>
9813             Jakub Jelinek  <jakub@redhat.com>
9814
9815         PR bootstrap/48161
9816         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9817         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9818
9819 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9820
9821         PR middle-end/47725
9822         * combine.c (cant_combine_insn_p): Don't check zero/sign
9823         extended hard registers.
9824
9825 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9826
9827         PR middle-end/47725
9828         * combine.c (cant_combine_insn_p): Check zero/sign extended
9829         hard registers.
9830
9831 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9832
9833         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9834         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9835         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9836         Change return type to bool.
9837         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9838
9839 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9840
9841         PR debug/48163
9842         * var-tracking.c (prepare_call_arguments): If CALL target
9843         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9844         pc instead of looking it up using cselib_lookup and use
9845         Pmode for it if x has VOIDmode.
9846         * dwarf2out.c (gen_subprogram_die): If also both first and
9847         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9848
9849         PR debug/48163
9850         * function.c (assign_parms): For data.passed_pointer parms
9851         use MEM of data.entry_parm instead of data.entry_parm itself
9852         as DECL_INCOMING_RTL.
9853         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9854         also when passed and declared mode is the same, DECL_RTL
9855         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9856         a MEM too.
9857
9858 2011-03-16  Jeff Law  <law@redhat.com>
9859
9860         PR rtl-optimization/37273
9861         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9862         handle them like argument loads from stack slots.  Do not double
9863         count memory for memory constants and argument loads from stack slots.
9864
9865 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9866
9867         PR debug/48160
9868         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9869
9870 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9871
9872         PR target/48171
9873         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9874
9875 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9876
9877         PR bootstrap/48153
9878         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9879         if dwarf_strict.
9880         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9881         Clear call_arg_locations and call_arg_loc_last always.
9882
9883         PR middle-end/48152
9884         * var-tracking.c (prepare_call_arguments): If argument needs to be
9885         passed by reference, adjust argtype and mode.
9886
9887 2011-03-17  Richard Guenther  <rguenther@suse.de>
9888
9889         PR middle-end/48134
9890         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9891         a value make sure to fold the statement.
9892
9893 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9894
9895         PR target/43872
9896         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9897         return condition with !cfun->calls_alloca.
9898
9899 2011-03-17  Richard Guenther  <rguenther@suse.de>
9900
9901         PR bootstrap/48148
9902         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9903         origin for decls in other ltrans units.
9904         (input_varpool_node): Likewise.
9905
9906 2011-03-17  Richard Guenther  <rguenther@suse.de>
9907
9908         PR middle-end/48165
9909         * tree-object-size.c (compute_object_offset): Properly return
9910         the offset operand of MEM_REFs as sizetype.
9911
9912 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9913
9914         PR rtl-optimization/48141
9915         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9916         * dse.c: Include params.h.
9917         (active_local_stores_len): New variable.
9918         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9919         to NULL.
9920         (record_store, check_mem_read_rtx): Decrease it when removing
9921         from the chain.
9922         (scan_insn): Likewise.  Increase it when adding to chain, if it
9923         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9924         set active_local_stores to NULL before the addition.
9925         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9926
9927         PR rtl-optimization/48141
9928         * dse.c (record_store): If no positions are needed in an insn
9929         that cannot be deleted, at least unchain it from active_local_stores.
9930
9931 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9932
9933         PR debug/47510
9934         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9935         (lookup_type_die_strip_naming_typedef): ... here.
9936         (get_context_die): Use it.
9937         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9938         the anonymous struct named by the naming typedef.
9939
9940 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9941
9942         PR target/48154
9943         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9944         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9945
9946 2011-03-16  Jeff Law  <law@redhat.com>
9947
9948         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9949         check for operands of conditional.  Allow type to be a pointer.
9950
9951 2011-03-16  Richard Guenther  <rguenther@suse.de>
9952
9953         PR tree-optimization/48149
9954         * fold-const.c (fold_binary_loc): Fold
9955         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9956
9957 2011-03-16  Richard Guenther  <rguenther@suse.de>
9958
9959         PR tree-optimization/26134
9960         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9961         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9962         (non_rewritable_mem_ref_base): Handle complex type component
9963         accesses, constrain offsets for vector and complex extracts
9964         more properly.
9965
9966 2011-03-16  Richard Guenther  <rguenther@suse.de>
9967
9968         PR tree-optimization/48146
9969         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9970         operands avoiding the need for renaming.
9971
9972 2011-03-16  Richard Guenther  <rguenther@suse.de>
9973
9974         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9975         constant folding.  Move MEM_REF canonicalization first.
9976         Rely on fold_const_aggregate_ref for initializer folding.
9977         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9978
9979 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9980
9981         PR middle-end/48136
9982         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9983         arg0/arg1 or their arguments are always fold converted to matching
9984         types.
9985
9986         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9987         to nargs.
9988
9989 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9990
9991         PR lto/46944
9992         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9993         Handle in-tree gold.
9994         (ld_vers): Extract binutils version for gold.
9995         (gcc_cv_ld_hidden): Handle gold here.
9996         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9997         * configure: Regenerate.
9998         * config.in: Regenerate.
9999         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10000         -fuse-linker-plugin otherwise.
10001         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10002         (LINK_COMMAND_SPEC): Use it.
10003         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10004
10005 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10006
10007         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10008         * calls.c: Remove debug.h include.
10009         (emit_call_1): Don't call virtual_call_token debug hook.
10010         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10011         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10012         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10013         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10014         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10015         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10016         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10017         dwarf2out_virtual_call): Remove.
10018         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10019         copy_call_info and virtual_call hooks.
10020         (dwarf2out_init): Don't initialize vcall_insn_table,
10021         debug_dcall_section and debug_vcall_section.
10022         (prune_unused_types): Don't mark nodes from dcall_table.
10023         (dwarf2out_finish): Don't output dcall or vcall tables.
10024         * final.c (final_scan_insn): Don't call direct_call or
10025         virtual_call debug hooks.
10026         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10027         virtual_call_token, copy_call_info and virtual_call hooks.
10028         (debug_nothing_uid): Remove prototype.
10029         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10030         copy_call_info and virtual_call hooks.
10031         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10032         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10033         * debug.c (do_nothing_debug_hooks): Likewise.
10034         (debug_nothing_uid): Remove.
10035         * doc/invoke.texi (-fenable-icf-debug): Remove.
10036         * common.opt (-fenable-icf-debug): Likewise.
10037
10038         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10039         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10040         call's MEM.  Handle functions returning aggregate through a hidden
10041         first pointer.  For virtual calls add clobbered pc to call arguments
10042         chain.
10043         * dwarf2out.c (gen_subprogram_die): Emit
10044         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10045         can't be emitted.
10046
10047         PR debug/45882
10048         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10049         * rtl.h (ENTRY_VALUE_EXP): Define.
10050         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10051         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10052         * print-rtl.c (print_rtx): Likewise.
10053         * gengtype.c (adjust_field_rtx_def): Likewise.
10054         * var-tracking.c (vt_add_function_parameter): Adjust
10055         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10056         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10057         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10058         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10059         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10060
10061         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10062         Call var_location debug hook even on CALL_INSNs.
10063         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10064         * rtl.def (ENTRY_VALUE): New.
10065         * dwarf2out.c: Include cfglayout.h.
10066         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10067         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10068         (struct call_arg_loc_node): New type.
10069         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10070         tail_call_site_count): New variables.
10071         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10072         DW_TAG_GNU_call_site_parameter.
10073         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10074         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10075         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10076         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10077         and DW_AT_GNU_all_source_call_sites.
10078         (mem_loc_descriptor): Handle ENTRY_VALUE.
10079         (add_src_coords_attributes): Don't add enything if
10080         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10081         (dwarf2out_abstract_function): Save and clear call_arg_location,
10082         call_site_count and tail_call_site_count around dwarf2out_decl call.
10083         (gen_call_site_die): New function.
10084         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10085         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10086         (dwarf2out_function_decl): Clear call_arg_locations,
10087         call_arg_loc_last, set call_site_count and tail_call_site_count
10088         to -1 and free block_map.
10089         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10090         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10091         followed by any real instructions.
10092         (dwarf2out_begin_function): Set call_site_count and
10093         tail_call_site_count to 0.
10094         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10095         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10096         attempt to force a DIE for it and worst case remove the attribute.
10097         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10098         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10099         the decl itself.
10100         * var-tracking.c: Include tm_p.h.
10101         (vt_stack_adjustments): For calls call note_register_arguments.
10102         (argument_reg_set): New variable.
10103         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10104         ensure the VALUE is resolved.
10105         (call_arguments): New variable.
10106         (prepare_call_arguments): New function.
10107         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10108         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10109         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10110         always use the best expression.
10111         (vt_expand_loc): Add ignore_cur_loc argument.
10112         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10113         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10114         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10115         note for all calls.
10116         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10117         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10118         argument.  Don't call cselib_preserve_only_values and
10119         cselib_reset_table.
10120         (note_register_arguments): New function.
10121         (vt_initialize): Compute argument_reg_set.  Call
10122         vt_add_function_parameters before processing basic blocks instead of
10123         afterwards.  For calls call prepare_call_arguments before calling
10124         cselib_process_insn.
10125         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10126         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10127         (var-tracking.o): Depend on $(TM_P_H).
10128         * cfglayout.h (insn_scope): New prototype.
10129         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10130         * cfglayout.c (insn_scope): No longer static.
10131         * insn-notes.def (CALL_ARG_LOCATION): New.
10132         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10133         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10134         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10135         nothing for DECL_EXTERNAL BLOCK_VARS.
10136
10137 2011-03-16  Alan Modra  <amodra@gmail.com>
10138
10139         PR target/45844
10140         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10141         create invalid offset address for vsx splat insn.
10142         * config/rs6000/predicates.md (splat_input_operand): New.
10143         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10144
10145 2011-03-15  Xinliang David Li  <davidxl@google.com>
10146
10147         PR c/47837
10148         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10149         (normalize_preds): New function.
10150         (is_use_properly_guarded): Normalize def predicates.
10151
10152 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10153
10154         PR target/46788
10155         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10156         in the output template.
10157
10158 2011-03-15  Richard Guenther  <rguenther@suse.de>
10159
10160         PR middle-end/47650
10161         * tree-pretty-print.c (dump_function_declaration): Properly
10162         dump unprototyped and varargs function types.
10163
10164 2011-03-15  Richard Guenther  <rguenther@suse.de>
10165
10166         PR tree-optimization/13954
10167         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10168         and friends.
10169
10170 2011-03-15  Richard Guenther  <rguenther@suse.de>
10171
10172         PR tree-optimization/48037
10173         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10174         selects into BIT_FIELD_REFs.
10175         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10176         vector select.
10177
10178 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10179
10180         PR tree-optimization/48129
10181         * builtins.c (fold_builtin_snprintf): Convert to type of
10182         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10183         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10184
10185 2011-03-15  Richard Guenther  <rguenther@suse.de>
10186
10187         PR tree-optimization/41490
10188         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10189         value but with VUSE.
10190         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10191         return statements.
10192         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10193         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10194         * tree-tailcall.c (find_tail_calls): Ignore returns.
10195
10196 2011-03-15  Richard Guenther  <rguenther@suse.de>
10197
10198         PR middle-end/48031
10199         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10200         or variable-indexed array accesses when in gimple form.
10201
10202 2011-03-15  Richard Guenther  <rguenther@suse.de>
10203
10204         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10205
10206 2011-03-15  Alan Modra  <amodra@gmail.com>
10207
10208         PR target/48032
10209         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10210         presume symbol_refs without a symbol_ref_decl are suitably
10211         aligned, nor other trees we may see here.  Handle anchor symbols.
10212         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10213         Check cmodel=medium addresses.  Adjust all calls.
10214         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10215         creating cmodel=medium optimized access to locals.
10216         * config/rs6000/constraints.md (R): Pass QImode to
10217         legitimate_constant_pool_address_p.
10218         * config/rs6000/predicates.md (input_operand): Pass mode to
10219         legitimate_constant_pool_address_p.
10220         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10221         Update prototype.
10222
10223 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10224
10225         PR target/48053
10226         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10227         64-bit constants being loaded into registers other than GPRs such
10228         as loading 0 into a VSX register.
10229
10230 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10231
10232         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10233
10234 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10235
10236         PR middle-end/47917
10237         * builtins.c (fold_builtin_snprintf): New function.
10238         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10239         (fold_builtin_4): Likewise.
10240
10241         PR middle-end/38878
10242         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10243         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10244         and C - X == X also strip nops from +/-/p+ operand.
10245         When optimizing -X == C, fold C to arg0's type.
10246
10247         PR debug/47946
10248         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10249         emit it as add_AT_int instead of add_AT_unsigned.
10250
10251 2011-03-14  Tom Tromey  <tromey@redhat.com>
10252
10253         * unwind-dw2.c: Include sys/sdt.h if it exists.
10254         (_Unwind_DebugHook): Use STAP_PROBE2.
10255         * config.in, configure: Rebuild.
10256         * configure.ac: Check for sys/sdt.h.
10257
10258 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10259
10260         * config/i386/i386.md (ROUND_FLOOR): New constant.
10261         (ROUND_CEIL): Ditto.
10262         (ROUND_TRUNC): Ditto.
10263         (ROUND_MXCSR): Ditto.
10264         (ROUND_NO_EXC): Ditto.
10265         (rint<mode>2): Use new defines instead of numerical constants.
10266         (floor<mode>2): Ditto.
10267         (ceil<mode>2): Ditto.
10268         (btrunc<mode>2): Ditto.
10269         * config/i386/i386-builtin-types.def: Define ROUND function type
10270         aliases.
10271         * config/i386/i386.c (enum ix86_builtins): Add
10272         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10273         (struct builtin_description): Add
10274         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10275         (ix86_expand_sse_round): New static function.
10276         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10277         function types.
10278         (ix86_builtin_vectorized_function): Handle
10279         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10280
10281 2011-03-14  Tom Tromey  <tromey@redhat.com>
10282
10283         * c-parser.c (c_parser_asm_string_literal): Clear
10284         warn_overlength_strings.
10285
10286 2011-03-14  Tom Tromey  <tromey@redhat.com>
10287
10288         * c-parser.c (disable_extension_diagnostics): Save
10289         warn_overlength_strings.
10290         (restore_extension_diagnostics): Restore warn_overlength_strings.
10291
10292 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10293
10294         * BASE-VER: Change to 4.7.0.
10295
10296 2011-03-14  Richard Guenther  <rguenther@suse.de>
10297
10298         PR middle-end/48098
10299         * tree.c (build_vector_from_val): Adjust assert to requirements
10300         and reality.
10301
10302 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10303
10304         PR bootstrap/48102
10305         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10306
10307 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10308
10309         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10310         terms of target_flags_explicit. Adjust copyright year.
10311
10312         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10313         * config/rs6000/t-freebsd: New file. Add override for
10314         LIB2FUNCS_EXTRA.
10315
10316 2011-03-13  Chris Demetriou  <cgd@google.com>
10317
10318         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10319         (-fno-diagnostics-show-option): this, to reflect current default.
10320         (-Werror=): Update text about -fno-diagnostics-show-option.
10321
10322 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10323
10324         PR target/48053
10325         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10326         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10327         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10328         mode is not V2DImode or V2DFmode.
10329         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10330         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10331         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10332         registers to 0.
10333         (movdi_internal64): Likewise.
10334
10335 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10336
10337         PR tree-optimization/47127
10338         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10339         parameter.
10340         (set_cloog_options): Same.
10341         (scop_to_clast): Same.
10342         (print_clast_stmt): Do not call cloog_state_malloc and
10343         cloog_state_free.
10344         (print_generated_program): Same.
10345         (gloog): Same.
10346         * graphite-clast-to-gimple.h (cloog_state): Declared.
10347         (scop_to_clast): Adjust declaration.
10348         * graphite.c (cloog_state): Defined here.
10349         (graphite_initialize): Call cloog_state_malloc.
10350         (graphite_finalize): Call cloog_state_free.
10351
10352 2011-03-11  Jason Merrill  <jason@redhat.com>
10353
10354         * attribs.c (lookup_attribute_spec): Take const_tree.
10355         * tree.h: Adjust.
10356
10357 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10358
10359         * config/sparc/sparc.c (sparc_option_override): Use
10360         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10361
10362 2011-03-11  Richard Guenther  <rguenther@suse.de>
10363
10364         PR tree-optimization/48067
10365         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10366         multiplication result will be only used once on the target
10367         stmt.
10368
10369 2011-03-11  Richard Guenther  <rguenther@suse.de>
10370
10371         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10372
10373 2011-03-11  Richard Guenther  <rguenther@suse.de>
10374
10375         PR lto/48073
10376         * tree.c (find_decls_types_r): Do not walk types only reachable
10377         from IDENTIFIER_NODEs.
10378
10379 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10380
10381         PR middle-end/48044
10382         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10383         all vnode->force_output nodes as needed.
10384
10385 2011-03-11  Jason Merrill  <jason@redhat.com>
10386
10387         PR c++/48069
10388         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10389         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10390
10391 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10392
10393         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10394         cgraph_node.
10395
10396 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10397
10398         PR tree-optimization/48063
10399         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10400         inline functions called once if !tree_can_inline_p (node->callers).
10401
10402 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10403
10404         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10405         extra_objs.
10406         * config/score/score3.c: Delete.
10407         * config/score/score3.h: Delete.
10408         * config/score/mul-div.S: Delete.
10409         * config/score/sfp-machine.h: Add new file.
10410         * config/score/constraints.md: Add new file.
10411         * config/score/t-score-softfp: Add new file.
10412         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10413         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10414         (score7_extra_constraint): Delete.
10415         (score7_option_override): Remove unused code.
10416         * config/score/score.c: Remove score3 and score5 define and code.
10417         * config/score/score.h: Remove score3 and score5 define and code.
10418         * config/score/score.md: Remove score3 template and unusual insn.
10419         * config/score/score.opt: Remove score3 and score5 options.
10420
10421 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10422
10423         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10424         when _HPUX_SOURCE is defined.
10425         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10426
10427 2011-03-10  Jason Merrill  <jason@redhat.com>
10428
10429         PR c++/48029
10430         * stor-layout.c (layout_type): Don't set structural equality
10431         on arrays of incomplete type.
10432         * tree.c (type_hash_eq): Handle comparing them properly.
10433
10434 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10435
10436         PR debug/48043
10437         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10438         result mode matches original rtl mode.
10439
10440 2011-03-10  Nick Clifton  <nickc@redhat.com>
10441
10442         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10443         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10444
10445 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10446
10447         PR rtl-optimization/47866
10448         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10449         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10450         if target wasn't scalar.
10451         * function.c (assign_stack_temp_for_type): Assert that neither
10452         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10453         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10454         macro.
10455         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10456
10457 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10458
10459         * config/s390/s390-protos.h (s390_label_align): New prototype.
10460         * config/s390/s390.c (s390_label_align): New function.
10461         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10462
10463 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10464
10465         PR target/47755
10466         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10467         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10468         (output_vec_const_move): Ditto.
10469
10470 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10471
10472         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10473         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10474         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10475         Change 'rclass' argument and result type to reg_class_t.
10476         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10477
10478 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10479
10480         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10481         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10482         (TARGET_MEMORY_MOVE_COST): Define.
10483         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10484
10485 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10486
10487         PR debug/47881
10488         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10489         removed anything.
10490
10491         PR tree-optimization/48022
10492         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10493         for EQ/NE_EXPR.
10494
10495 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10496
10497         PR debug/47991
10498         * var-tracking.c (find_use_val): Return NULL for
10499         cui->sets && cui->store_p BLKmode MEMs.
10500
10501 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10502
10503         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10504         Remove.
10505         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10506         xstormy16_print_operand_address): Remove.
10507         * config/stormy16/stormy16.c (xstormy16_print_operand,
10508         xstormy16_print_operand_address): Make static.
10509         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10510
10511 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10512
10513         PR target/47862
10514         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10515         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10516         before definition.
10517
10518 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10519
10520         PR bootstrap/48000
10521         * cfgloopmanip.c (fix_bb_placements): Return immediately
10522         if FROM is BASE_LOOP's header.
10523
10524 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10525
10526         * gimplify.c (gimplify_function_tree): Fix building calls
10527         to __builtin_return_address.
10528
10529 2011-03-07  Alan Modra  <amodra@gmail.com>
10530
10531         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10532         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10533         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10534         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10535         return_mode args.
10536         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10537         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10538         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10539         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10540         * config/rs6000/rs6000.c
10541         (rs6000_elf_end_indicate_exec_stack): Rename to..
10542         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10543         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10544         (rs6000_file_start): ..here.
10545         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10546         file scope variables.
10547         (call_ABI_of_interest): New function.
10548         (init_cumulative_args): Set above vars when function return value
10549         is a float, vector, or small struct.
10550         (rs6000_function_arg_advance_1): Likewise for function args.
10551         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10552         references float args.
10553
10554 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10555
10556         * doc/cfg.texi: Remove "See" before @ref.
10557         * doc/invoke.texi: Likewise.
10558
10559 2011-03-05  Jason Merrill  <jason@redhat.com>
10560
10561         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10562
10563 2011-03-05  Anthony Green  <green@moxielogic.com>
10564
10565         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10566
10567 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10568
10569         PR rtl-optimization/47899
10570         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10571         to flow_loop_nested_p when moving the loop upward.
10572
10573 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10574
10575         PR target/47719
10576         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10577
10578 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10579
10580         PR tree-optimization/47967
10581         * ipa-cp.c (build_const_val): Return NULL instead of creating
10582         VIEW_CONVERT_EXPR for mismatching sizes.
10583         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10584         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10585         give up on versioning.
10586
10587 2011-03-05  Alan Modra  <amodra@gmail.com>
10588
10589         PR target/47986
10590         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10591         full cmodel medium/large lo_sum + high addresses.
10592
10593 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10594
10595         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10596         pool references in UNSPEC_LTREL_OFFSET.
10597
10598 2011-03-04  Jan Hubicka  <jh@suse.cz>
10599
10600         PR lto/47497
10601         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10602         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10603         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10604         Add node pointers.
10605         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10606         cgraph_add_thunk): Add node pointers.
10607         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10608         associated to right node.
10609         (input_node): Update use of cgraph_same_body_alias
10610         and cgraph_add_thunk.
10611
10612 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10613
10614         * config/i386/i386.opt (mprefer-avx128): New flag.
10615         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10616         modes when the flag -mprefer-avx128 is on.
10617
10618 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10619
10620         * dwarf2out.c (compare_loc_operands): Fix address handling.
10621
10622 2011-03-04  Alan Modra  <amodra@gmail.com>
10623
10624         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10625
10626 2011-03-04  Richard Guenther  <rguenther@suse.de>
10627
10628         PR middle-end/47968
10629         * expmed.c (extract_bit_field_1): Prefer vector modes that
10630         vec_extract patterns can handle.
10631
10632 2011-03-04  Richard Guenther  <rguenther@suse.de>
10633
10634         PR middle-end/47975
10635         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10636
10637 2011-03-04  Richard Henderson  <rth@redhat.com>
10638
10639         * explow.c (emit_stack_save): Remove 'after' parameter.
10640         (emit_stack_restore): Likewise.
10641         * expr.h: Update to match.
10642         * builtins.c, calls.c, stmt.c: Likewise.
10643         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10644         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10645         * function.c (expand_function_end): Insert the emit_stack_save
10646         sequence before parm_birth_insn instead of after.
10647
10648 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10649
10650         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10651         (ssse3_pmaddubsw128): Ditto.
10652         (ssse3_pmaddubsw): Ditto.
10653
10654 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10655
10656         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10657
10658 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10659
10660         PR c/47963
10661         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10662         on TYPE_SIZE_UNIT if it is a DECL.
10663
10664         PR debug/47283
10665         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10666         first operand is not is_gimple_mem_ref_addr, try to fold it.
10667         If the operand still isn't is_gimple_mem_ref_addr, clear
10668         MEM_EXPR on op0.
10669
10670 2011-03-03  Richard Guenther  <rguenther@suse.de>
10671
10672         PR middle-end/47283
10673         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10674         match comment.
10675         (refs_may_alias_p_1): For release branches return true if
10676         we are confused by our input.
10677
10678 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10679
10680         * config/s390/s390.c (s390_function_value): Rename to ...
10681         (s390_function_and_libcall_value): ... this.
10682         (s390_function_value): New function.
10683         (s390_libcall_value): New function.
10684         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10685         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10686         target macro definitions.
10687         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10688
10689 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10690
10691         * config/i386/freebsd64.h (CC1_SPEC): Define.
10692         * config/i386/linux64.h (CC1_SPEC): Define.
10693         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10694
10695 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10696
10697         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10698         Remove.
10699         * config/stormy16/stormy16.c: Include reload.h.
10700         (xstormy16_memory_move_cost): New function.
10701         (TARGET_MEMORY_MOVE_COST): Define.
10702
10703 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10704
10705         PR rtl-optimization/47925
10706         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10707         with side effects.  Remove the more-specific check for volatile asms.
10708
10709 2011-03-02  Alan Modra  <amodra@gmail.com>
10710
10711         PR target/47935
10712         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10713         toc relative addresses for valid offsets.
10714
10715 2011-03-01  Richard Guenther  <rguenther@suse.de>
10716
10717         PR tree-optimization/47890
10718         * tree-vect-loop.c (get_initial_def_for_induction): Set
10719         related stmt properly.
10720
10721 2011-03-01  Richard Guenther  <rguenther@suse.de>
10722
10723         PR lto/47924
10724         * lto-streamer.c (lto_record_common_node): Also register
10725         the canonical type.
10726
10727 2011-03-01  Richard Guenther  <rguenther@suse.de>
10728
10729         PR lto/46911
10730         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10731         Do not stream DECL_ABSTRACT_ORIGIN.
10732         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10733         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10734         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10735         Do not stream DECL_ABSTRACT_ORIGIN.
10736         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10737         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10738
10739 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10740
10741         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10742         FUNCTION_VALUE_REGNO_P): Remove.
10743         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10744         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10745         Add 'outgoing' argument.
10746         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10747         function.
10748         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10749         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10750
10751 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10752
10753         PR debug/28047
10754         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10755         (lookup_filename): Likewise.
10756         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10757
10758 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10759             Jakub Jelinek  <jakub@redhat.com>
10760
10761         PR middle-end/47893
10762         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10763         (assign_stack_local_1): Change last argument type to int.
10764         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10765         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10766         don't record padding space into frame_space_list nor use those areas.
10767         (assign_stack_local): Adjust caller.
10768         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10769         of assign_stack_local, pass 0 as last argument.
10770         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10771         callers.
10772
10773 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10774
10775         PR debug/47283
10776         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10777         Use target address_mode and pointer_mode hooks instead of hardcoded
10778         Pmode and ptr_mode.  Handle some simple cases of extending if
10779         POINTERS_EXTEND_UNSIGNED < 0.
10780         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10781         Call convert_debug_memory_address.
10782         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10783         convert_debug_memory_address.
10784
10785         PR middle-end/46790
10786         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10787         * configure: Regenerated.
10788         * config.in: Regenerated.
10789         * varasm.c (default_function_section): Return NULL
10790         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10791
10792 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10793
10794         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10795         the description to match the printed values.
10796
10797 2011-02-28  Richard Guenther  <rguenther@suse.de>
10798
10799         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10800         of the copied scope tree.
10801
10802 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10803
10804         * doc/extend.texi (Function Attributes): Avoid deeply (and
10805         wrongly) nested tables.
10806
10807 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10808
10809         PR middle-end/47903
10810         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10811         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10812         r isn't op0 nor op1.
10813
10814 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10815
10816         * config/avr/avr.md: Remove magic comment for emacs.
10817
10818 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10819
10820         PR target/45261
10821         * config/avr/avr.c (avr_option_override): Use error on bad options.
10822         (avr_help): New function.
10823         (TARGET_HELP): Define.
10824
10825 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10826
10827         PR target/42240
10828         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10829         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10830
10831 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10832
10833         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10834         (ARM Options): Ditto.
10835         (i386 and x86-64 Options): Ditto.
10836         (RX Options): Ditto.
10837         (SPARC Options): Ditto.
10838
10839 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10840
10841         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10842         FreeBSD 6 and later.  Generally use cpu generic.
10843
10844 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10845
10846         * doc/cpp.texi: Update copyright years.
10847
10848 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10849
10850         PR target/46898
10851         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10852
10853 2011-02-25  Jon Beniston  <jon@beniston.com>
10854
10855         PR target/46898
10856         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10857         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10858         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10859         (lm32_block_move_inline): Add type cast to remove warning.
10860         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10861         (gen_int_relational): Move declarations to start of function.
10862
10863 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10864
10865         PR tree-optimization/45470
10866         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10867         can throw internally only.
10868         * tree-vect-stmts.c (vectorizable_call): Likewise.
10869
10870 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10871
10872         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10873         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10874         * config/stormy16/stormy16-protos.h
10875         (xstormy16_preferred_reload_class): Remove.
10876         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10877         static. Change 'rclass' argument and return type to reg_class_t.
10878         (TARGET_PREFERRED_RELOAD_CLASS,
10879         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10880
10881 2011-02-24  Richard Guenther  <rguenther@suse.de>
10882
10883         * lto-streamer-in.c (input_bb): Do not find referenced vars
10884         in debug statements.
10885
10886 2011-02-23  Jason Merrill  <jason@redhat.com>
10887
10888         * common.opt (fabi-version): Document v5 and v6.
10889
10890 2011-02-23  Richard Guenther  <rguenther@suse.de>
10891
10892         PR tree-optimization/47849
10893         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10894
10895 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10896
10897         * opts-common.c (decode_cmdline_option): Print empty string
10898         argument as "" in decoded->orig_option_with_args_text.
10899         * gcc.c (execute): Print empty string argument as ""
10900         in the verbose output.
10901         (do_spec_1): Keep empty string argument.
10902
10903 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10904
10905         * config.gcc: Declare score-* and crx-* obsolete.
10906
10907 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10908
10909         PR rtl-optimization/47763
10910         * web.c (web_main): Ignore naked clobber when replacing register.
10911
10912 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10913
10914         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10915         Remove.
10916
10917 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10918
10919         PR doc/47848
10920         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10921
10922 2011-02-22  Mike Stump  <mikestump@comcast.net>
10923
10924         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10925         assembler.
10926         * configure: Regenerate.
10927
10928 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10929
10930         PR rtl-optimization/46002
10931         * ira-color.c (update_copy_costs): Change class intersection
10932         test to reg_class_contents[] test of 'hard_regno'.
10933
10934 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10935
10936         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10937         than Driver option.
10938         * config/hpux11.opt (mt): Likewise.
10939         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10940         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10941         * config/vax/elf.opt (mno-asm-pic): Likewise.
10942         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10943
10944 2011-02-21  Mike Stump  <mikestump@comcast.net>
10945
10946         PR target/47822
10947         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10948         tree so we can get save the type.
10949         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10950         for CFString instead of trying to use past the end of the builtins.
10951         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10952         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10953         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10954         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10955         Rename to darwin_builtin_cfstring.
10956         (darwin_init_cfstring_builtins): Return the built type.
10957
10958 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10959
10960         PR target/47840
10961         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10962         (_mm256_insert_epi64): Use _mm_insert_epi64.
10963
10964 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10965
10966         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10967         * config/stormy16/stormy16-protos.h
10968         (xstormy16_mode_dependent_address_p): Remove.
10969         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10970         Make static. Change return type to bool. Change argument type to
10971         const_rtx. Remove dead code.
10972         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10973
10974 2011-02-21  Richard Guenther  <rguenther@suse.de>
10975
10976         PR lto/47820
10977         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10978         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10979         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10980         TUs context.
10981         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10982         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10983
10984 2011-02-20  Richard Guenther  <rguenther@suse.de>
10985
10986         PR lto/47822
10987         * tree.c (free_lang_data_in_decl): Clean builtins from
10988         the TU decl BLOCK_VARS.
10989
10990 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10991
10992         PR debug/47620
10993         PR debug/47630
10994         * haifa-sched.c (fix_tick_ready): Skip tick computation
10995         for debug insns.
10996
10997 2011-02-19  Richard Guenther  <rguenther@suse.de>
10998
10999         PR lto/47647
11000         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11001         Remove lazy BLOCK_VARS streaming.
11002         (lto_input_ts_block_tree_pointers): Likewise.
11003         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11004
11005 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11006
11007         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11008
11009 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11010
11011         * config/i386/biarch32.h, config/i386/mach.h,
11012         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11013
11014 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11015
11016         PR target/47800
11017         * config/i386/i386.md (peephole2 for shift and plus): Use
11018         operands[1] original mode in the first insn.
11019
11020 2011-02-18  Mike Stump  <mikestump@comcast.net>
11021
11022         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11023
11024 2011-02-18  Jan Hubicka  <jh@suse.cz>
11025
11026         PR middle-end/47788
11027         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11028         to zero when the function is not inlinable at all.
11029
11030 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11031
11032         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11033         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11034         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11035         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11036         * config/pa/t-pa64: Likewise.
11037         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11038
11039 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11040
11041         PR driver/47787
11042         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11043
11044 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11045
11046         PR target/47792
11047         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11048
11049 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11050
11051         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11052         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11053         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11054         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11055         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11056         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11057         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11058         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11059         m32r_legitimate_address_p): New functions.
11060         * config/m32r/constraints.md (constraint "S"): Don't use
11061         STORE_PREINC_PREDEC_P.
11062         (constraint "U"): Don't use LOAD_POSTINC_P.
11063
11064 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11065
11066         PR rtl-optimization/46178
11067         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11068         compute ira_hard_regno_cover_class[].
11069
11070 2011-02-18  Richard Guenther  <rguenther@suse.de>
11071
11072         PR lto/47798
11073         * lto-streamer.h (lto_global_var_decls): Declare.
11074         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11075         statics for global var processing.
11076
11077 2011-02-18  Richard Guenther  <rguenther@suse.de>
11078
11079         PR tree-optimization/47737
11080         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11081         edge dominance check.
11082
11083 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11084
11085         PR debug/47780
11086         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11087         avoid invalid rtx sharing.
11088
11089 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11090
11091         * doc/cpp.texi (Obsolete Features): Add background on the
11092         origin of assertions.
11093
11094 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11095
11096         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11097         objc_abi == 2.
11098         * config/darwin.c (output_objc_section_asm_op): Added support for
11099         ABI v1 and v2.
11100         (is_objc_metadata): New.
11101         (darwin_objc2_section): New.
11102         (darwin_objc1_section): New.
11103         (machopic_select_section): Added support for ABI v1 and v2.
11104         (darwin_emit_objc_zeroed): New.
11105         (darwin_output_aligned_bss): Detect objc metadata and treat it
11106         appropriately.
11107         (darwin_asm_output_aligned_decl_common): Same.
11108         (darwin_asm_output_aligned_decl_local): Same.
11109         * config/darwin-sections.def: Updated for ABI v1 and v2.
11110         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11111         compiling Objective-C code for the NeXT runtime, default to using
11112         ABI version 0 for 32-bit, and version 2 for 64-bit.
11113
11114 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11115
11116         * common.opt (optimize_fast): New Variable.
11117         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11118         instead of local variable ofast.
11119
11120 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11121
11122         * doc/invoke.texi (fobjc-abi-version): Documented.
11123         (fobjc-nilcheck): Documented.
11124         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11125         version.
11126
11127 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11128
11129         PR driver/47390
11130         * common.opt (export-dynamic): New Driver option.
11131         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11132
11133 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11134
11135         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11136
11137 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11138             Jan Hubicka  <jh@suse.cz>
11139
11140         PR debug/47106
11141         PR debug/47402
11142         * cfgexpand.c (account_used_vars_for_block): Remove.
11143         (estimated_stack_frame_size): Use referenced vars.
11144         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11145         that were referenced in the original function.  Test src_fn
11146         rather than cfun.  Drop redundant get_var_ann.
11147         (setup_one_parameter): Drop redundant get_var_ann.
11148         (declare_return_variable): Likewise.
11149         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11150         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11151         * ipa-inline.c (compute_inline_parameters): Do not compute
11152         disregard_inline_limits here.
11153         (compute_inlinable_for_current, pass_inlinable): New.
11154         (pass_inline_parameters): Require PROP_referenced_vars.
11155         * cgraphunit.c (cgraph_process_new_functions): Don't run
11156         compute_inline_parameters explicitly unless function is in SSA form.
11157         (cgraph_analyze_function): Set .disregard_inline_limits.
11158         * tree-sra.c (convert_callers): Compute inliner parameters
11159         only for functions already in SSA form.
11160
11161 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11162
11163         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11164         -mlittle-endian-data.
11165
11166 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11167
11168         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11169         -mno-fpu, not -fpu and -no-fpu.
11170         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11171         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11172
11173 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11174
11175         PR target/43653
11176         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11177         input reload with PLUS RTX.
11178
11179 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11180
11181         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11182         of InverseVar(MDMX).
11183
11184 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11185
11186         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11187         --m4-340.
11188
11189 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11190
11191         * config/mn10300/mn10300.opt (mno-crt0): New.
11192
11193 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11194
11195         * config/m68k/uclinux.opt (static-libc): New Driver option.
11196
11197 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11198
11199         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11200
11201 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11202
11203         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11204         %{muser-extend-enabled}.
11205
11206 2011-02-16  Richard Guenther  <rguenther@suse.de>
11207
11208         PR tree-optimization/47738
11209         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11210         the TODO from tree_predictive_commoning.
11211
11212 2011-02-15  Jeff Law  <law@redhat.com>
11213
11214         Revert
11215         2011-01-25  Jeff Law  <law@redhat.com>
11216
11217         PR rtl-optimization/37273
11218         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11219         handle them like argument loads from stack slots.  Do not double
11220         count memory for memory constants and argument loads from stack slots.
11221
11222 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11223
11224         PR middle-end/47725
11225         * combine.c (cant_combine_insn_p): Revert the last change.
11226
11227 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11228
11229         PR target/47755
11230         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11231         mode for vector constants.  Remove code that checks for TImode.
11232
11233 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11234
11235         PR debug/47106
11236         PR debug/47402
11237         * cgraph.h (compute_inline_parameters): Return void.
11238         * ipa-inline.c (compute_inline_parameters): Adjust.
11239
11240 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11241
11242         PR debug/47106
11243         PR debug/47402
11244         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11245         rather than decl.
11246         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11247         * ipa-inline.c (compute_inline_parameters): Adjust.
11248
11249 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11250
11251         PR debug/47106
11252         PR debug/47402
11253         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11254         Adjust all users.  Pass FN to...
11255         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11256         fn argument.
11257         * ipa-struct-reorg.c: Adjust.
11258         * tree-dfa.c: Adjust.
11259         * tree-into-ssa.c: Adjust.
11260         * tree-sra.c: Adjust.
11261         * tree-ssa-alias.c: Adjust.
11262         * tree-ssa-live.c: Adjust.
11263         * tree-ssa.c: Adjust.
11264         * tree-ssanames.c: Adjust.
11265         * tree-tailcall.c: Adjust.
11266
11267 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11268
11269         PR debug/47106
11270         PR debug/47402
11271         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11272         Adjust all callers.
11273         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11274         * tree-flow-inline.h: Adjust.
11275         * gimple-pretty-print.c: Adjust.
11276         * tree-into-ssa.c: Adjust.
11277         * tree-ssa.c: Adjust.
11278         * cfgexpand.c: Adjust.
11279
11280 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11281
11282         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11283         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11284         (EXTRA_CONSTRAINT): Delete.
11285         * config/iq2000/constraints.md: New file.
11286         * config/iq2000/iq2000.md: Include it.
11287         (define_insn ""): Delete.
11288         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11289         unsupported constraint letters from patterns.
11290         (call_value, call_value_internal1): Likewise.
11291         (call_value_multiple_internal1): Likewise.
11292
11293 2011-02-15  Nick Clifton  <nickc@redhat.com>
11294
11295         * config/mn10300/mn10300.c: Include tm-constrs.h.
11296         (struct liw_data): New data structure describing an LIW candidate
11297         instruction.
11298         (extract_bundle): Use struct liw_data.  Allow small integer
11299         operands for some instructions.
11300         (check_liw_constraints): Use struct liw_data.  Remove swapped
11301         parameter.  Add comments describing the checks.  Fix bug when
11302         assigning the source of liw1 to the source of liw2.
11303         (liw_candidate): Delete.  Code moved into extract_bundle.
11304         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11305         before swapping.
11306         * config/mn10300/predicates.md (liw_operand): New predicate.
11307         Allows registers and small integer constants.
11308         * config/mn10300/constraints.md (O): New constraint.  Accetps
11309         integers in the range -8 to +7 inclusive.
11310         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11311         for moving a small integer into a register.  Give this alternative
11312         LIW attributes.
11313         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11314         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11315         using the J,K,L and M constraints,
11316         (liw): Remove SI mode on second operands to allow for HI and QI
11317         mode values.
11318         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11319         instruction.
11320
11321 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11322
11323         PR middle-end/47725
11324         * combine.c (cant_combine_insn_p): Check zero/sign extended
11325         hard registers.
11326
11327 2011-02-15  Richard Guenther  <rguenther@suse.de>
11328
11329         PR tree-optimization/47743
11330         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11331         for a non-type-compatible VN lookup bail out.
11332
11333 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11334
11335         * config/fr30/constraints.md: New file.
11336         * config/fr30/fr30.md: Include it.
11337         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11338         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11339         (EXTRA_CONSTRAINT): Delete.
11340
11341 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11342
11343         * config/frv/constraints.md: New file.
11344         * config/frv/predicates.md: Include it.
11345         * config/frv/frv.c (reg_class_from_letter): Delete.
11346         (frv_option_override): Don't initialize it.
11347         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11348         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11349         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11350         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11351         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11352         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11353         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11354         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11355         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11356         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11357         (REG_CLASS_FROM_CONSTRAINT): Delete.
11358
11359 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11360
11361         PR middle-end/47581
11362         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11363         if frame size is 0 in a leaf function.
11364
11365 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11366
11367         PR pch/14940
11368         * config/alpha/host-osf.c: New file.
11369         * config/alpha/x-osf: New file.
11370         * config.host (alpha*-dec-osf*): Use it.
11371
11372 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11373
11374         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11375         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11376         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11377         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11378         type to const_rtx.
11379         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11380
11381 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11382
11383         * config/stormy16/constraints.md: New file.
11384         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11385         Use satisfies_constraint_Q and satisfies_constraint_R.
11386         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11387         Delete.
11388         (xstormy16_legitiamte_address_p): Declare.
11389         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11390         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11391         (EXTRA_CONSTRAINT): Delete.
11392         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11393         Un-staticize.
11394         (xstormy16_extra_constraint_p): Delete.
11395
11396 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11397
11398         PR tree-optimization/46494
11399         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11400         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11401         (pass_rtl_loop_done): Add TODO_verify_flow.
11402         * fwprop.c (pass_rtl_fwprop): Likewise.
11403         * modulo-sched.c (pass_sms): Likewise.
11404         * tree-ssa-dom.c (pass_dominator): Likewise.
11405         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11406         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11407         (pass_tree_loop_done): Likewise.
11408         * tree-ssa-pre.c (execute_pre): Likewise.
11409         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11410         * tree-ssa-sink.c (pass_sink_code): Likewise.
11411         * tree-vrp.c (pass_vrp): Likewise.
11412
11413 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11414
11415         * config/v850/constraints.md: New file.
11416         * config/v850/v850.md: Include it.
11417         * config/v850/predicates.md (reg_or_0_operand): Use
11418         satisfies_constraint_G.
11419         (special_symbolref_operand): Use satisfies_constraint_K.
11420         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11421         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11422         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11423         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11424         (EXTRA_CONSTRAINT): Delete.
11425         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11426         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11427         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11428
11429 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11430
11431         PR target/47696
11432         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11433         description.
11434
11435 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11436
11437         * config/mcore/constraints.md: New file.
11438         * config/mcore/mcore.md: Include it.
11439         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11440         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11441         (REG_CLASS_FROM_LETTER): Delete.
11442         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11443         insn_const_int_ok_for_constraint.
11444         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11445         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11446         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11447         (EXTRA_CONSTRAINT): Delete.
11448
11449 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11450
11451         PR ada/41929
11452         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11453         (IS_SIGHANDLER): Define.
11454         (sparc64_is_sighandler): New function, split off from
11455         sparc64_fallback_frame_state.
11456         (sparc_is_sighandler): New function, split off from
11457         sparc_fallback_frame_state.
11458         (sparc64_fallback_frame_state): Merge with ...
11459         (sparc_fallback_frame_state): ... this into ...
11460         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11461         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11462         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11463         stack instead of hardcoded offsets.
11464
11465 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11466
11467         PR target/45808
11468         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11469
11470 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11471
11472         * configure: Regenerate.
11473
11474 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11475
11476         PR driver/45731
11477         * gcc.c (asm_options): Correct spec matching --target-help.
11478
11479 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11480
11481         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11482         to gimple call error.
11483
11484 2011-02-12  Mike Stump  <mikestump@comcast.net>
11485
11486         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11487         comments in backslash regions.
11488
11489 2011-02-12  Mike Stump  <mikestump@comcast.net>
11490             Jakub Jelinek  <jakub@redhat.com>
11491             Iain Sandoe  <iains@gcc.gnu.org>
11492
11493         PR target/47324
11494         * dwarf2out.c (output_cfa_loc): When required, apply the
11495         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11496         (output_loc_sequence): Likewise.
11497         (output_loc_operands_raw): Likewise.
11498         (output_loc_sequence_raw): Likewise.
11499         (output_cfa_loc): Likewise.
11500         (output_loc_list): Suppress register number adjustment when
11501         calling output_loc_sequence()
11502         (output_die): Likewise.
11503
11504 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11505
11506         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11507         Remove macros.
11508         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11509         xtensa_memory_move_cost): New functions.
11510         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11511
11512 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11513
11514         PR lto/47225
11515         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11516         in the current directory.
11517         * configure: Rebuilt.
11518
11519 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11520
11521         * config/darwin.c (darwin_override_options): Add a hunk missed
11522         from the commit of r168571.  Trim comment line lengths and
11523         correct indents of the preceding block.
11524
11525 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11526
11527         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11528         the switch.
11529
11530 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11531
11532         * common.opt (nostartfiles): New Driver option.
11533
11534 2011-02-11  Xinliang David Li  <davidxl@google.com>
11535
11536         PR tree-optimization/47707
11537         * tree-chrec.c (convert_affine_scev): Keep type precision.
11538
11539 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11540
11541         PR tree-optimization/47420
11542         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11543
11544 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11545
11546         PR rtl-optimization/47614
11547         * rtl.h (check_for_inc_dec): Declare.
11548         * dse.c (check_for_inc_dec): Externalize...
11549         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11550         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11551
11552 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11553
11554         PR driver/47678
11555         * gcc.c (main): Do not compile inputs if there were errors in
11556         option handling.
11557         * opts-common.c (read_cmdline_option): Check for wrong language
11558         after other error checks.
11559
11560 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11561
11562         * cgraph.c: Fix comment typos.
11563         * cgraph.h: Likewise.
11564         * cgraphunit.c: Likewise.
11565         * ipa-cp.c: Likewise.
11566         * ipa-inline.c: Likewise.
11567         * ipa-prop.c: Likewise.
11568         * ipa-pure-const.c: Likewise.
11569         * ipa-ref.c: Likewise.
11570         * ipa-reference.c: Likewise.
11571
11572 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11573
11574         PR debug/47684
11575         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11576
11577 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11578
11579         PR testsuite/47400
11580         * doc/sourcebuild.texi (Require Support): Document
11581         dg-require-ascii-locale.
11582
11583 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11584
11585         * doc/lto.texi (Write summary): Fix missing parentheses.
11586
11587 2011-02-10  DJ Delorie  <dj@redhat.com>
11588
11589         * config/m32c/m32c.c (m32c_option_override): Disable
11590         -fcombine-stack-adjustments until flag value tracking and compare
11591         optimization can be rewritten.
11592
11593 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11594
11595         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11596         PROCESSOR_POWER7.
11597         (PROCESSOR_DEFAULT64): Likewise.
11598
11599 2011-02-10  Richard Henderson  <rth@redhat.com>
11600
11601         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11602         change from 2011-02-03.
11603         * config/rx/rx.c (flags_from_code): Likewise.
11604         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11605         is valid, n/pz otherwise.
11606         (rx_select_cc_mode): Return CCmode if Y is not zero.
11607
11608 2011-02-10  Richard Guenther  <rguenther@suse.de>
11609
11610         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11611
11612 2011-02-10  Richard Guenther  <rguenther@suse.de>
11613
11614         PR tree-optimization/47677
11615         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11616
11617 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11618
11619         PR target/47665
11620         * combine.c (make_compound_operation): Only change shifts into
11621         multiplication for SCALAR_INT_MODE_P.
11622
11623 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11624
11625         PR testsuite/47622
11626         Revert
11627         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11628         PR debug/42631
11629         * web.c (entry_register): Don't clobber the number of the
11630         first uninitialized reference in used[].
11631
11632 2011-02-09  Richard Guenther  <rguenther@suse.de>
11633
11634         PR tree-optimization/47664
11635         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11636         all edges again.
11637
11638 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11639
11640         PR target/46481
11641         PR target/47032
11642         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11643         PROCESSOR_POWER7.
11644         (PROCESSOR_DEFAULT64): Same.
11645         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11646
11647 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11648
11649         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11650
11651 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11652
11653         PR middle-end/45505
11654         * tree-sra.c (struct access): New flags grp_scalar_read and
11655         grp_scalar_write.  Changed description of assignment read and write
11656         flags.
11657         (dump_access): Dump new flags, reorder all of them.
11658         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11659         to detect multiple scalar reads.
11660         (analyze_access_subtree): Use the new scalar read write flags instead
11661         of the old flags.  Adjusted comments.
11662
11663 2011-02-08  DJ Delorie  <dj@redhat.com>
11664
11665         PR target/47548
11666         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11667         patterns.
11668
11669 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11670
11671         * config/m68k/uclinux.opt: New.
11672         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11673
11674 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11675
11676         * config/cris/elf.opt (sim): New Driver option.
11677
11678 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11679
11680         * config/xtensa/elf.opt: New.
11681         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11682
11683 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11684
11685         * config/vax/elf.opt: New.
11686         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11687
11688 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11689
11690         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11691
11692 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11693
11694         * config/gnu-user.opt: New.
11695         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11696         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11697         *-*-uclinux*): Use gnu-user.opt.
11698
11699 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11700
11701         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11702         * config/i386/gnu.h (CPP_SPEC): Likewise.
11703
11704 2011-02-08  Ian Lance Taylor  <iant@google.com>
11705
11706         * common.opt (fcx-limited-range): Add SetByCombined flag.
11707         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11708         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11709         (fassociative-math, freciprocal-math): Likewise.
11710         (funsafe-math-optimizations): Likewise.
11711         * opth-gen.awk: Handle SetByCombined.
11712         * optc-gen.awk: Likewise.
11713         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11714         (set_unsafe_math_optimizations_flags): Likewise.
11715         * doc/options.texi (Option properties): Document SetByCombined.
11716
11717 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11718
11719         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11720         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11721         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11722         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11723         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11724
11725 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11726
11727         PR tree-optimization/46834
11728         PR tree-optimization/46994
11729         PR tree-optimization/46995
11730         * graphite-sese-to-poly.c (used_outside_reduction): New.
11731         (detect_commutative_reduction): Call used_outside_reduction.
11732         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11733         translate_scalar_reduction_to_array only when at least one
11734         loop-phi/close-phi tuple has been detected.
11735
11736 2011-02-08  Richard Guenther  <rguenther@suse.de>
11737
11738         PR middle-end/47639
11739         * tree-vect-generic.c (expand_vector_operations_1): Update
11740         stmts here ...
11741         (expand_vector_operations): ... not here.  Cleanup EH info
11742         and the CFG if required.
11743
11744 2011-02-08  Richard Guenther  <rguenther@suse.de>
11745
11746         PR tree-optimization/47641
11747         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11748         require type compatibility.
11749
11750 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11751
11752         * gimple-low.c (lower_function_body): Don't remove the location of
11753         the return statement here.
11754         (lower_gimple_return): Do it here instead but only if the return
11755         statement is actually used twice.
11756
11757 2011-02-08  Richard Guenther  <rguenther@suse.de>
11758
11759         PR tree-optimization/47632
11760         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11761         unused up_to_stmt parameter, return whether cfg-cleanup is
11762         necessary, remove EH info properly.
11763         (forward_propagate_into_gimple_cond): Adjust caller.
11764         (forward_propagate_into_cond): Likewise.
11765         (forward_propagate_comparison): Likewise.
11766         (tree_ssa_forward_propagate_single_use_vars): Make
11767         forward_propagate_comparison case similar to the two others.
11768
11769 2011-02-08  Nick Clifton  <nickc@redhat.com>
11770
11771         * config/mn10300/mn10300.opt (mliw): New command line option.
11772         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11773         (liw_bundling): New automaton.
11774         (liw): New attribute.
11775         (liw_op): New attribute.
11776         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11777         (movsi_internal): Add LIW attributes.
11778         (andsi3): Likewise.
11779         (iorsi3): Likewise.
11780         (xorsi3): Likewise.
11781         (addsi3): Separate register and immediate alternatives.
11782         Add LIW attributes.
11783         (subsi3): Likewise.
11784         (cmpsi): Likewise.
11785         (aslsi3): Likewise.
11786         (lshrsi3): Likewise.
11787         (ashrsi3): Likewise.
11788         (liw): New pattern.
11789         * config/mn10300/mn10300.c (liw_op_names): New
11790         (mn10300_print_operand): Handle 'W' operand descriptor.
11791         (extract_bundle): New function.
11792         (check_liw_constraints): New function.
11793         (liw_candidate): New function.
11794         (mn10300_bundle_liw): New function.
11795         (mn10300_reorg): New function.
11796         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11797         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11798         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11799         __LIW__ or __NO_LIW__.
11800         * doc/invoke.texi: Describe the -mliw command line option.
11801
11802 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11803
11804         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11805         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11806         pthread_mutex_unlock): Remove.
11807         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11808         * config/pa/t-pa64: Likewise.
11809         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11810         shared libc if not linking against libpthread.
11811         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11812
11813 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11814
11815         PR target/47558
11816         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11817         on 10.6 and later to ensure that we always use the unwinder from
11818         the system.  Only add -no_compact_unwind when tarteting darwin
11819         10.6 or later.
11820
11821 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11822
11823         PR target/46997
11824         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11825         (vec_interleave_lowv2sf): Ditto.
11826         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11827         (vec_extract_oddv2sf): Ditto.
11828
11829 2011-02-07  Mike Stump  <mikestump@comcast.net>
11830
11831         PR target/42333
11832         Add __ieee_divdc3 entry point.
11833         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11834         entry point.
11835         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11836         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11837         * config/darwin.c (darwin_rename_builtins): Add.
11838         * config/darwin-protos.h (darwin_rename_builtins): Add.
11839
11840 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11841
11842         PR target/47636
11843         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11844         for the condition.
11845
11846 2011-02-07  Mike Stump  <mikestump@comcast.net>
11847
11848         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11849
11850 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11851
11852         PR target/47534
11853         * config/avr/libgcc.S (exit): Move .endfunc
11854
11855 2011-02-07  Richard Guenther  <rguenther@suse.de>
11856
11857         PR tree-optimization/47615
11858         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11859         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11860         (run_scc_vn): Initialize it.
11861         (visit_reference_op_load): Use it.
11862         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11863
11864 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11865
11866         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11867         DImode trapping arithmetic libfuncs.
11868
11869 2011-02-07  Richard Guenther  <rguenther@suse.de>
11870
11871         PR tree-optimization/47621
11872         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11873         two duplicates ...
11874         (execute_update_addresses_taken): ... here.  Make it more
11875         conservative in what we accept.
11876
11877 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11878
11879         * config/sparc/freebsd.h (ASM_SPEC): Define.
11880         * config/sparc/vxworks.h (ASM_SPEC): Define.
11881
11882 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11883
11884         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11885
11886 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11887
11888         * doc/invoke.texi: Remove reference to compiler internals from
11889         user documentation.
11890
11891         * reg-notes.def: Remove REG_VALUE_PROFILE.
11892         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11893
11894 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11895
11896         PR middle-end/47610
11897         * varasm.c (default_section_type_flags): If decl is NULL,
11898         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11899
11900 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11901
11902         PR debug/42631
11903         * web.c (entry_register): Don't clobber the number of the
11904         first uninitialized reference in used[].
11905
11906 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11907
11908         PR tree-optimization/46194
11909         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11910         (build_classic_dist_vector_1): Do not represent classic distance
11911         vectors when the access functions are variating in different loops.
11912
11913 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11914
11915         * config/mips/iris6.opt: New.
11916         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11917
11918 2011-02-04  Richard Henderson  <rth@redhat.com>
11919             Steve Ellcey  <sje@cup.hp.com>
11920
11921         PR target/46997
11922         * config/ia64/predicates.md (mux1_brcst_element): New.
11923         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11924         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11925         (ia64_unpack_sign): New.
11926         (ia64_expand_unpack): Rewrite using new routines.
11927         (ia64_expand_widen_sum): Ditto.
11928         (ia64_expand_dot_prod_v8qi): Ditto.
11929         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11930         routines, add endian check.
11931         (pmpy2_even): Rename from pmpy2_r, add endian check.
11932         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11933         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11934         (vec_widen_smult_hi_v4hi): Ditto.
11935         (vec_widen_umult_lo_v4hi): Ditto.
11936         (vec_widen_umult_hi_v4hi): Ditto.
11937         (mulv2si3): Change endian checks.
11938         (sdot_prodv4hi): Rewrite with new calls.
11939         (udot_prodv4hi): New.
11940         (vec_pack_ssat_v4hi): Add endian check.
11941         (vec_pack_usat_v4hi): Ditto.
11942         (vec_pack_ssat_v2si): Ditto.
11943         (max1_even): Rename from max1_r, add endian check.
11944         (max1_odd): Rename from max1_l, add endian check.
11945         (*mux1_rev): Format change.
11946         (*mux1_mix): Ditto.
11947         (*mux1_shuf): Ditto.
11948         (*mux1_alt): Ditto.
11949         (*mux1_brcst_v8qi): Use new predicate.
11950         (vec_extract_evenv8qi): Remove endian check.
11951         (vec_extract_oddv8qi): Ditto.
11952         (vec_interleave_lowv4hi): Format change.
11953         (vec_interleave_highv4hi): Ditto.
11954         (mix2_even): Rename from mix2_r, add endian check.
11955         (mix2_odd): Rename from mux2_l, add endian check.
11956         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11957         (vec_extract_evenodd_helper): Format change.
11958         (vec_extract_evenv4hi): Remove endian check.
11959         (vec_extract_oddv4hi): Remove endian check.
11960         (vec_interleave_lowv2si): Format change.
11961         (vec_interleave_highv2si): Format change.
11962         (vec_initv2si): Remove endian check.
11963         (vecinit_v2si): Add endian check.
11964         (reduc_splus_v2sf): Add endian check.
11965         (reduc_smax_v2sf): Ditto.
11966         (reduc_smin_v2sf): Ditto.
11967         (vec_initv2sf): Remove endian check.
11968         (fpack): Add endian check.
11969         (fswap): Add endian check.
11970         (vec_interleave_highv2sf): Add endian check.
11971         (vec_interleave_lowv2sf): Add endian check.
11972         (fmix_lr): Add endian check.
11973         (vec_setv2sf): Format change.
11974         (*vec_extractv2sf_0_be): Use shift to extract operand.
11975         (*vec_extractv2sf_1_be): New.
11976         (vec_pack_trunc_v4hi): Add endian check.
11977         (vec_pack_trunc_v2si): Format change.
11978
11979 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11980
11981         PR inline-asm/23200
11982         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11983         do bb, locus and block comparison and disallow loads if it is not set.
11984         (stmt_is_replaceable_p): New function.
11985         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11986         callers.
11987         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11988         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11989         SSA_NAME_DEF_STMT.
11990         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11991
11992 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11993
11994         * config/rs6000/xilinx.opt: New.
11995         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11996
11997 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11998
11999         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12000
12001 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12002
12003         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12004         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12005         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12006         secondary_reload_info, xtensa_secondary_reload): Remove.
12007         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12008         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12009         (xtensa_preferred_reload_class): Make static. Change return and
12010         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12011         Use CONST_DOUBLE_P predicate.
12012         (xtensa_preferred_output_reload_class): New function.
12013         (xtensa_secondary_reload): Make static.
12014
12015 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12016
12017         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12018         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12019         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12020
12021 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12022
12023         PR middle-end/31490
12024         * output.h (SECTION_RELRO): Define.
12025         (SECTION_MACH_DEP): Adjust.
12026         (get_variable_section): New prototype.
12027         * varpool.c (varpool_finalize_named_section_flags): New function.
12028         (varpool_assemble_pending_decls): Call it.
12029         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12030         * cgraphunit.c (cgraph_output_in_order): Call
12031         varpool_finalize_named_section_flags.
12032         * varasm.c (get_section): Allow section flags conflicts between
12033         relro and read-only sections if the section hasn't been declared yet.
12034         Set SECTION_OVERRIDE after diagnosing section type conflict.
12035         (get_variable_section): No longer static.
12036         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12037         readonly sections that need relocations.
12038         (decl_readonly_section_1): New function.
12039         (decl_readonly_section): Use it.
12040
12041         Revert:
12042         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12043                     Steve Ellcey  <sje@cup.hp.com>
12044
12045         PR middle-end/31490
12046         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12047         if section attribute used.
12048
12049 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12050
12051         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12052         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12053         (darwin_init_sections): Remove assertion.
12054
12055 2011-02-03  Nick Clifton  <nickc@redhat.com>
12056
12057         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12058         lt and ge.
12059         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12060         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12061         instead of "n" and "pz".
12062         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12063         CC_FLAG_S.
12064
12065 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12066
12067         PR target/47312
12068         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12069         fma, expand FMA_EXPR as fma{,f,l} call.
12070
12071         PR lto/47274
12072         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12073         copy them into a unsigned char variable and pass address of it to
12074         lto_output_data_stream.
12075
12076         PR target/47564
12077         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12078         around backend_init_target and lang_dependent_init_target calls.
12079         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12080         (verify_cgraph_node): Don't call set_cfun here.  Use
12081         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12082         Set error_found for incorrectly represented calls to thunks.
12083
12084 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12085
12086         PR debug/43092
12087         PR rtl-optimization/43494
12088         * rtl.h (for_each_inc_dec_fn): New type.
12089         (for_each_inc_dec): Declare.
12090         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12091         (for_each_inc_dec_find_inc_dec): New fn.
12092         (for_each_inc_dec_find_mem): New fn.
12093         (for_each_inc_dec): New fn.
12094         * dse.c (struct insn_size): Remove.
12095         (replace_inc_dec, replace_inc_dec_mem): Remove.
12096         (emit_inc_dec_insn_before): New fn.
12097         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12098         (canon_address): Pass mem modes to cselib_lookup.
12099         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12100         (cselib_lookup_from_insn): Likewise.
12101         (cselib_subst_to_values): Likewise.
12102         * cselib.c (find_slot_memmode): New var.
12103         (cselib_find_slot): New fn.  Use it instead of
12104         htab_find_slot_with_hash everywhere.
12105         (entry_and_rtx_equal_p): Use find_slot_memmode.
12106         (autoinc_split): New fn.
12107         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12108         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12109         Deal with autoinc.  Special-case recursion into MEMs.
12110         (cselib_hash_rtx): Likewise.
12111         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12112         address and MEM modes.
12113         (cselib_subst_to_values): Add memmode, pass it on.
12114         Deal with autoinc.
12115         (cselib_lookup): Add memmode argument, pass it on.
12116         (cselib_lookup_from_insn): Add memmode.
12117         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12118         (struct cselib_record_autoinc_data): New.
12119         (cselib_record_autoinc_cb): New fn.
12120         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12121         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12122         (cselib_process_insn): ... here.
12123         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12124         to cselib_lookup.
12125         (add_uses): Likewise, also to cselib_subst_to_values.
12126         (add_stores): Likewise.
12127         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12128         cselib_subst_to_values.
12129         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12130         * gcse.c (do_local_cprop): Adjusted.
12131         * postreload.c (reload_cse_simplify_set): Adjusted.
12132         (reload_cse_simplify_operands): Adjusted.
12133         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12134
12135 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12136
12137         PR tree-optimization/45122
12138         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12139         unsafe assumptions when there's more than one loop exit.
12140
12141 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12142
12143         PR target/47272
12144         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12145         Document using vector double with the load/store builtins, and
12146         that the load/store builtins always use Altivec instructions.
12147
12148         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12149         to use altivec memory instructions, even on VSX.
12150         (vector_altivec_store_<mode>): Ditto.
12151
12152         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12153         function.
12154
12155         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12156         V2DF, V2DI support to load/store overloaded builtins.
12157
12158         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12159         altivec load/store builtins for V2DF/V2DI types.
12160
12161         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12162         set avoid indexed addresses on power6 if -maltivec.
12163         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12164         vector_altivec_load/vector_altivec_store builtins.
12165         (altivec_expand_st_builtin): Ditto.
12166         (altivec_expand_builtin): Add VSX memory builtins.
12167         (rs6000_init_builtins): Add V2DI types to internal types.
12168         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12169         load/store builtins.
12170         (rs6000_address_for_altivec): Insure memory address is appropriate
12171         for Altivec.
12172
12173         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12174         vec_vsx_ld and vec_vsx_st.
12175         (vsx_store_<mode>): Ditto.
12176
12177         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12178         variables to hold long long types for VSX vector memory builtins.
12179         (RS6000_BTI_unsigned_long_long): Ditto.
12180         (long_long_integer_type_internal_node): Ditti.
12181         (long_long_unsigned_type_internal_node): Ditti.
12182
12183         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12184         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12185         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12186
12187         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12188         short cuts.
12189         (vec_vsx_st): Ditto.
12190
12191 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12192
12193         * config/pa/pa-hpux10.opt: New.
12194         * config/hpux11.opt (pthread): New Driver option.
12195         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12196         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12197
12198 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12199
12200         * config/ia64/vms.opt: New.
12201         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12202
12203 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12204
12205         PR target/47580
12206         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12207         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12208         generator functions.
12209         (vsx_floatuns<VSi><mode>2): Ditto.
12210         (vsx_fix_trunc<mode><VSi>2): Ditto.
12211         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12212
12213 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12214
12215         * config/i386/djgpp.opt (posix): New Driver option.
12216
12217 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12218
12219         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12220         Move to the unsupported targets list.
12221
12222 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12223
12224         PR rtl-optimization/47525
12225         * df-scan.c: Update copyright years.
12226         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12227         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12228
12229 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12230
12231         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12232         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12233         (ASM_OUTPUT_ASCII): Remove.
12234         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12235
12236 2011-02-02  Jeff Law  <law@redhat.com>
12237
12238         PR middle-end/47543
12239         * reload.c (find_reloads_address): Handle reg+d address where both
12240         components are invalid by reloading the entire address.
12241
12242 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12243             Richard Guenther  <rguenther@suse.de>
12244
12245         PR tree-optimization/40979
12246         PR bootstrap/47044
12247         * passes.c (init_optimization_passes): After LIM call copy_prop
12248         and DCE to clean up.
12249         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12250
12251 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12252
12253         PR tree-optimization/47576
12254         PR tree-optimization/47555
12255         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12256         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12257         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12258         * tree-scalar-evolution.c (follow_ssa_edge): Use
12259         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12260
12261 2011-02-02  Richard Guenther  <rguenther@suse.de>
12262
12263         PR tree-optimization/47566
12264         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12265
12266 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12267
12268         PR debug/47106
12269         PR debug/47402
12270         * tree-inline.c (declare_return_variable): Remove unused caller
12271         variable.
12272
12273         PR debug/47106
12274         PR debug/47402
12275         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12276         * cfgexpand.c (account_used_vars_for_block): Use them.
12277         * tree-nrv.c (tree_nrv): Likewise.
12278         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12279         (dump_scope_block): Likewise.
12280         (remove_unused_locals): Likewise.
12281
12282         PR debug/47106
12283         PR debug/47402
12284         * tree-inline.c (declare_return_variable): Add result decl to
12285         local decls only once.
12286         * gimple-low.c (record_vars_into): Mark newly-created variables
12287         as referenced.
12288
12289 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12290
12291         PR debug/47498
12292         PR debug/47501
12293         PR debug/45136
12294         PR debug/45130
12295         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12296         debug insns.
12297         (no_real_insns_p, schedule_block, set_priorities): Drop special
12298         treatment of boundary debug insns.
12299         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12300         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12301         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12302         (BOUNDARY_DEBUG_INSN_P): Likewise.
12303         (SCHEDULE_DEBUG_INSN_P): Likewise.
12304         * sched-rgn.c (init_ready_list): Drop special treatment of
12305         boundary debug insns.
12306         * final.c (rest_of_clean_state): Clear notes' BB.
12307
12308 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12309
12310         * config/openbsd.opt (assert=): New Driver option.
12311
12312 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12313
12314         * config/i386/nto.opt: New.
12315         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12316
12317 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12318
12319         * config/i386/netware.opt: New.
12320         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12321
12322 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12323
12324         * config/interix.opt (posix): New Driver option.
12325
12326 2011-02-01  DJ Delorie  <dj@redhat.com>
12327
12328         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12329
12330         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12331         class for A0/A1.
12332
12333 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12334
12335         PR tree-optimization/47561
12336         * toplev.c (process_options): Print the Graphite flags.  Add
12337         flag_loop_flatten to the list of options requiring Graphite.
12338
12339 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12340
12341         * config/i386/cygming.opt (posix): New Driver option.
12342
12343 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12344
12345         * config/arm/vxworks.opt: New.
12346         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12347
12348 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12349
12350         * config/alpha/elf.opt: New.
12351         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12352         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12353
12354 2011-02-01  Richard Guenther  <rguenther@suse.de>
12355
12356         PR tree-optimization/47559
12357         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12358         store-motion on references that can throw.
12359
12360 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12361
12362         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12363         * tree-pass.h (TDF_CSELIB): New macro.
12364         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12365         cselib_lookup): Check for it rather than for TDF_DETAILS.
12366
12367 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12368
12369         PR driver/47547
12370         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12371         is HOST_BIT_BUCKET.
12372
12373         * opts.c (finish_options): Don't add x_aux_base_name if it is
12374         HOST_BIT_BUCKET.
12375
12376 2011-02-01  Richard Guenther  <rguenther@suse.de>
12377
12378         PR tree-optimization/47555
12379         Revert
12380         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12381
12382         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12383
12384 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12385
12386         PR gcc/46692
12387         * config/lm32/t-lm32: Add multilib for all CPU options.
12388
12389 2011-02-01  Richard Guenther  <rguenther@suse.de>
12390
12391         PR tree-optimization/47541
12392         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12393         sure to have a field at offset zero.
12394
12395 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12396
12397         * config/arc/arc.opt (EB, EL): New Driver options.
12398
12399 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12400
12401         * config/alpha/osf5.opt: New.
12402         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12403
12404 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12405
12406         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12407
12408 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12409
12410         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12411         -floop-interchange.
12412         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12413         is an alias of -floop-interchange and that it requires the
12414         Graphite infrastructure.
12415         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12416         flag_loop_interchange based on the value of flag_tree_loop_linear.
12417
12418 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12419             Richard Guenther  <rguenther@suse.de>
12420
12421         PR tree-optimization/47538
12422         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12423         type instead of r1type, except for comparisons.  For right
12424         shifts and comparisons punt if there are mismatches in
12425         sizetype vs. non-sizetype types.
12426
12427 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12428
12429         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12430         avx_runtime.
12431
12432 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12433
12434         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12435         version number.
12436         * configure: Regenerate.
12437
12438 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12439
12440         * configure.ac (gcc_cv_ld_static_option): Define.
12441         (gcc_cv_ld_dynamic_option): Define.
12442         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12443         instead.
12444         (HAVE_LD_STATIC_DYNAMIC): Update message.
12445         (LD_STATIC_OPTION): Define.
12446         (LD_DYNAMIC_OPTION): Define.
12447         * configure: Regenerate.
12448         * config.in: Regenerate.
12449         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12450         HAVE_LD_STATIC_DYNAMIC]: Use them.
12451
12452 2011-01-31  Nick Clifton  <nickc@redhat.com>
12453
12454         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12455         registers inside interrupt handlers if the handler is not a leaf
12456         function.
12457
12458 2011-01-31  Nick Clifton  <nickc@redhat.com>
12459
12460         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12461         reg_renumber returning an INVALID_REGNUM.
12462
12463 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12464
12465         PR libgcj/44341
12466         * doc/install.texi: Document host options discarded when cross
12467         configuring target libraries.
12468
12469 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12470
12471         Reverted:
12472         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12473         PR debug/45136
12474         PR debug/45130
12475         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12476         debug insns.
12477         (no_real_insns_p, schedule_block, set_priorities): Drop special
12478         treatment of boundary debug insns.
12479         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12480         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12481         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12482         (BOUNDARY_DEBUG_INSN_P): Likewise.
12483         (SCHEDULE_DEBUG_INSN_P): Likewise.
12484         * sched-rgn.c (init_ready_list): Drop special treatment of
12485         boundary debug insns.
12486         * final.c (rest_of_clean-state): Clear notes' BB.
12487
12488 2011-01-31  Alan Modra  <amodra@gmail.com>
12489
12490         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12491         toc relative expressions as we do in print_operand_address.
12492
12493 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12494
12495         * doc/extend.texi: Follow spelling conventions.
12496         * doc/invoke.texi: Fix a typo.
12497
12498 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12499
12500         * config/hpux11.opt: New.
12501         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12502         ia64*-*-hpux*): Use hpux11.opt.
12503
12504 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12505
12506         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12507         to tmake_file.
12508
12509 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12510
12511         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12512         support sites.
12513
12514 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12515
12516         * doc/install.texi (Binaries): Remove outdated reference for
12517         Motorola 68HC11/68HC12 downloads.
12518
12519 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12520
12521         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12522         Drepper's paper.
12523
12524 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12525
12526         PR bootstrap/47147
12527         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12528         used by NetBSD.
12529
12530 2011-01-28  Ahmad Sharif  <asharif@google.com>
12531
12532         * value-prof.c (check_counter): Corrected error message.
12533
12534 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12535
12536         * config/arm/arm.c (arm_legitimize_reload_address): New.
12537         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12538         arm_legitimize_reload_address.
12539         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12540
12541 2011-01-28  Ian Lance Taylor  <iant@google.com>
12542
12543         * godump.c (go_define): Ignore macros whose definitions include
12544         two adjacent operands.
12545
12546 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12547
12548         PR target/42894
12549         * varasm.c (force_const_mem): Store copy of x in desc->constant
12550         instead of x itself.
12551         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12552         itself into REG_EQUAL note.
12553
12554 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12555
12556         * config/freebsd.opt (posix, rdynamic): New Driver options.
12557
12558 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12559
12560         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12561         -Bstatic/-Bdynamic.
12562         * configure: Regenerate.
12563
12564 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12565
12566         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12567         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12568
12569 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12570
12571         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12572         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12573         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12574         (s390_preferred_reload_class): Make static. Change return and
12575         'rclass' argument type to reg_class_t.
12576
12577 2011-01-27  Jan Hubicka  <jh@suse.cz>
12578
12579         PR middle-end/46949
12580         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12581         (process_function_and_variable_attributes): Check defined weakrefs.
12582
12583 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12584
12585         PR tree-optimization/47228
12586         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12587         build_ref_for_offset.
12588
12589 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12590
12591         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12592
12593 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12594
12595         PR rtl-optimization/46856
12596         * postreload.c (reload_combine_recognize_const_pattern): Do not
12597         separate cc0 setter and user on cc0 targets.
12598
12599 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12600
12601         PR c/43082
12602         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12603         passed a VOID_TYPE expression, immediately emit an error and
12604         return error_mark_node.
12605
12606 2011-01-26  Jeff Law  <law@redhat.com>
12607
12608         PR rtl-optimization/47464
12609         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12610         rather than may_trap_p as needed.
12611
12612 2011-01-26  DJ Delorie  <dj@redhat.com>
12613
12614         PR rtl-optimization/46878
12615         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12616         setter/user dependency as well.
12617
12618 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12619
12620         PR rtl-optimization/44469
12621         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12622         after removing trivially dead basic blocks.
12623
12624 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12625
12626         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12627         * config/frv/frv.h (LINK_SPEC): Likewise.
12628         * config/i386/netware.h (LINK_SPEC): Likewise.
12629         * config/m68k/linux.h (ASM_SPEC): Likewise.
12630         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12631         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12632         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12633         * config/sparc/linux.h (ASM_SPEC): Likewise.
12634         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12635         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12636
12637 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12638
12639         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12640         * config/frv/frv.h (ASM_SPEC): Likewise.
12641         * config/m68k/linux.h (ASM_SPEC): Likewise.
12642         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12643         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12644         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12645         * config/sparc/linux.h (ASM_SPEC): Likewise.
12646         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12647         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12648
12649 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12650
12651         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12652         * config/frv/frv.h (LINK_SPEC): Likewise.
12653         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12654
12655 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12656
12657         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12658         * config/frv/frv.h (ASM_SPEC): Likewise.
12659         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12660         * config/m68k/linux.h (ASM_SPEC): Likewise.
12661         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12662         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12663         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12664         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12665         * config/sparc/linux.h (ASM_SPEC): Likewise.
12666         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12667         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12668         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12669
12670 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12671
12672         PR target/46997
12673         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12674         (*mux2): Ditto.
12675         (vec_extract_evenodd_help): Ditto.
12676         (vec_extract_evenv4hi): Ditto.
12677         (vec_extract_oddv4hi): Ditto.
12678         (vec_interleave_lowv2si): Ditto.
12679         (vec_interleave_highv2si): Ditto.
12680         (vec_extract_evenv2si): Ditto.
12681         (vec_extract_oddv2si: Ditto.
12682         (vec_pack_trunc_v2si): Ditto.
12683
12684 2011-01-22  Jan Hubicka  <jh@suse.cz>
12685
12686         PR target/47237
12687         * cgraph.h (cgraph_local_info): New field can_change_signature.
12688         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12689         signature can change.
12690         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12691         can change.
12692         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12693         (cgraph_function_versioning): We can not change signature of functions
12694         that don't allow that.
12695         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12696         (lto_input_node): Likewise.
12697         * ipa-inline.c (compute_inline_parameters): Compute
12698         local.can_change_signature.
12699         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12700         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12701         functions that can not change signature.
12702         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12703         init_cumulative_args): Do not use local calling conventions
12704         for functions that can not change signature.
12705
12706 2011-01-22  Jan Hubicka  <jh@suse.cz>
12707
12708         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12709
12710 2011-01-26  Richard Guenther  <rguenther@suse.de>
12711
12712         PR tree-optimization/47190
12713         * cgraphunit.c (process_common_attributes): New function.
12714         (process_function_and_variable_attributes): Use it.
12715
12716 2011-01-26  Richard Guenther  <rguenther@suse.de>
12717
12718         PR lto/47423
12719         * cgraphbuild.c (record_eh_tables): Record reference to personality
12720         function.
12721
12722 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12723
12724         PR debug/45454
12725         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12726         non-debug insns from moving up.
12727
12728 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12729
12730         PR target/40125
12731         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12732         t-dlldir{,-x} fragment for build and add it to tmake_file.
12733         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12734         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12735         * config/i386/t-dlldir: New file.
12736         (SHLIB_DLLDIR): Define.
12737         * config/i386/t-dlldir-x: New file.
12738         (SHLIB_DLLDIR): Define.
12739         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12740         (SHLIB_INSTALL): Use it.
12741
12742 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12743
12744         PR target/47246
12745         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12746         lower bound of the allowed Thumb-2 coprocessor load/store
12747         index range to -256. Add explaining comment.
12748
12749 2011-01-25  Ian Lance Taylor  <iant@google.com>
12750
12751         * godump.c (go_define): Improve lexing of macro expansion to only
12752         accept expressions which match Go spec.
12753
12754 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12755
12756         PR c++/43601
12757         * tree.c (handle_dll_attribute): Handle it.
12758         * doc/extend.texi (@item dllexport): Mention it.
12759         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12760
12761 2011-01-25  Ian Lance Taylor  <iant@google.com>
12762
12763         PR tree-optimization/26854
12764         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12765         (decl_jump_unsafe): Move higher in file, with no other change.
12766         (bind): Set has_jump_unsafe_decl if appropriate.
12767         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12768         (check_earlier_gotos): Likewise.
12769         (c_check_switch_jump_warnings): Likewise.
12770
12771 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12772
12773         * doc/invoke.texi (Warning Options): Add missing hyphen.
12774         (-fprofile-dir): Minor grammatical fixes.
12775         (-fbranch-probabilities): Likewise.
12776
12777 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12778
12779         PR debug/45136
12780         PR debug/45130
12781         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12782         debug insns.
12783         (no_real_insns_p, schedule_block, set_priorities): Drop special
12784         treatment of boundary debug insns.
12785         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12786         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12787         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12788         (BOUNDARY_DEBUG_INSN_P): Likewise.
12789         (SCHEDULE_DEBUG_INSN_P): Likewise.
12790         * sched-rgn.c (init_ready_list): Drop special treatment of
12791         boundary debug insns.
12792         * final.c (rest_of_clean-state): Clear notes' BB.
12793
12794 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12795
12796         * Makefile.in (LAMBDA_H): Removed.
12797         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12798         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12799         lambda-trans.o, and tree-loop-linear.o.
12800         (lto-symtab.o): Remove dependence on LAMBDA_H.
12801         (tree-loop-linear.o): Remove rule.
12802         (lambda-mat.o): Same.
12803         (lambda-trans.o): Same.
12804         (lambda-code.o): Same.
12805         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12806         (tree-vect-slp.o): Same.
12807         * hwint.h (gcd): Moved here.
12808         (least_common_multiple): Same.
12809         * lambda-code.c: Removed.
12810         * lambda-mat.c: Removed.
12811         * lambda-trans.c: Removed.
12812         * lambda.h: Removed.
12813         * tree-loop-linear.c: Removed.
12814         * lto-symtab.c: Do not include lambda.h.
12815         * omega.c (gcd): Removed.
12816         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12817         * tree-data-ref.c (print_lambda_vector): Moved here.
12818         (lambda_vector_copy): Same.
12819         (lambda_matrix_copy): Same.
12820         (lambda_matrix_id): Same.
12821         (lambda_vector_first_nz): Same.
12822         (lambda_matrix_row_add): Same.
12823         (lambda_matrix_row_exchange): Same.
12824         (lambda_vector_mult_const): Same.
12825         (lambda_vector_negate): Same.
12826         (lambda_matrix_row_negate): Same.
12827         (lambda_vector_equal): Same.
12828         (lambda_matrix_right_hermite): Same.
12829         * tree-data-ref.h: Do not include lambda.h.
12830         (lambda_vector): Moved here.
12831         (lambda_matrix): Same.
12832         (dependence_level): Same.
12833         (lambda_transform_legal_p): Removed declaration.
12834         (lambda_collect_parameters): Same.
12835         (lambda_compute_access_matrices): Same.
12836         (lambda_vector_gcd): Same.
12837         (lambda_vector_new): Same.
12838         (lambda_vector_clear): Same.
12839         (lambda_vector_lexico_pos): Same.
12840         (lambda_vector_zerop): Same.
12841         (lambda_matrix_new): Same.
12842         * tree-flow.h (least_common_multiple): Removed declaration.
12843         * tree-parloops.c (lambda_trans_matrix): Moved here.
12844         (LTM_MATRIX): Same.
12845         (LTM_ROWSIZE): Same.
12846         (LTM_COLSIZE): Same.
12847         (LTM_DENOMINATOR): Same.
12848         (lambda_trans_matrix_new): Same.
12849         (lambda_matrix_vector_mult): Same.
12850         (lambda_transform_legal_p): Same.
12851         * tree-pass.h (pass_linear_transform): Removed declaration.
12852         * tree-ssa-loop.c (tree_linear_transform): Removed.
12853         (gate_tree_linear_transform): Removed.
12854         (pass_linear_transform): Removed.
12855         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12856         flag_loop_interchange.
12857
12858 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12859
12860         PR tree-optimization/47265
12861         PR tree-optimization/47443
12862         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12863         if name still has some uses.
12864
12865 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12866
12867         PR tree-optimization/47382
12868         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12869         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12870
12871 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12872
12873         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12874         sjlj_except_unwind_info.
12875
12876 2011-01-25  Richard Guenther  <rguenther@suse.de>
12877
12878         PR tree-optimization/47426
12879         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12880         visible functions results escape.
12881
12882 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12883
12884         PR target/45701
12885         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12886         (arm_get_frame_offsets): Use it.
12887
12888 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12889             Jakub Jelinek  <jakub@redhat.com>
12890
12891         PR tree-optimization/47271
12892         * tree-if-conv.c (bb_postdominates_preds): New.
12893         (if_convertible_bb_p): Call bb_postdominates_preds.
12894         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12895         (predicate_scalar_phi): Call bb_postdominates_preds.
12896
12897 2011-01-25  Nick Clifton  <nickc@redhat.com>
12898
12899         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12900         * config/rx/rx.c (rx_function_value): Likewise.
12901         (rx_promote_function_mode): Likewise.
12902         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12903         in order to make it legitimate.
12904         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12905         make sure that the first operand is the same as the result register.
12906         (addsi3_unspec): Delete.
12907         (subdi3): Do not accept immediate operands.
12908         (subdi3_internal): Likewise.
12909
12910 2011-01-25  Jeff Law  <law@redhat.com>
12911
12912         PR rtl-optimization/37273
12913         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12914         handle them like argument loads from stack slots.  Do not double
12915         count memory for memory constants and argument loads from stack slots.
12916
12917 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12918
12919         PR tree-optimization/47427
12920         PR tree-optimization/47428
12921         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12922         coalesce if the new root var would be TREE_READONLY.
12923
12924 2011-01-25  Richard Guenther  <rguenther@suse.de>
12925
12926         PR middle-end/47414
12927         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12928         correct type for TBAA.
12929
12930 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12931
12932         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12933         (close_phi_written_to_memory): Call for_each_index with
12934         dr_indices_valid_in_loop.
12935
12936 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12937
12938         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12939         when it is initialized.
12940
12941 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12942
12943         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12944         call to graphite_find_data_references_in_stmt.
12945         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12946         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12947         call to graphite_find_data_references_in_stmt.
12948         (analyze_drs_in_stmts): Same.
12949         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12950         in which the scalar analysis of indices is performed.
12951         (create_data_ref): Same.  Update call to dr_analyze_indices.
12952         (find_data_references_in_stmt): Update call to create_data_ref.
12953         (graphite_find_data_references_in_stmt): Same.
12954         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12955         declaration.
12956         (create_data_ref): Same.
12957         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12958         call to create_data_ref.
12959
12960 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12961
12962         * graphite-sese-to-poly.c (build_poly_scop): Move
12963         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12964
12965 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12966
12967         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12968         VAR_DECL, PARM_DECL, and RESULT_DECL.
12969
12970 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12971
12972         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12973         in a reduction PBB.
12974         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12975         that have already been marked as PBB_IS_REDUCTION.
12976
12977 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12978
12979         * graphite-scop-detection.c (same_close_phi_node): New.
12980         (remove_duplicate_close_phi): New.
12981         (make_close_phi_nodes_unique): New.
12982         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12983
12984 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12985
12986         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12987         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12988         of both data references to be the same.
12989
12990 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12991
12992         * graphite-dependences.c (build_lexicographical_constraint): Remove
12993         the gdim parameter.
12994         (build_lexicographical_constraint): Adjust call to
12995         ppl_powerset_is_empty.
12996         (dependence_polyhedron): Same.
12997         (graphite_legal_transform_dr): Same.
12998         (graphite_carried_dependence_level_k): Same.
12999         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13000         parameter.
13001         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13002
13003 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13004
13005         * graphite-sese-to-poly.c
13006         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13007         (close_phi_written_to_memory): New.
13008         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13009         and unshare_expr.
13010
13011 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13012
13013         * doc/install.texi: Update the expected version number of PPL to 0.11.
13014         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13015         #if PPL_VERSION_MINOR < 11.
13016
13017 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13018
13019         * graphite-dependences.c: Include graphite-cloog-util.h.
13020         (new_poly_ddr): Inlined into dependence_polyhedron.
13021         (free_poly_ddr): Moved close by new_poly_ddr.
13022         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13023         Early return NULL when ppl_powerset_is_empty returns true.
13024         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13025         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13026         (graphite_legal_transform_dr): Call new_poly_ddr.
13027         (graphite_carried_dependence_level_k): Same.
13028         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13029         (dot_transformed_deps_stmt_1): Removed.
13030         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13031         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13032         (dot_deps_1): Call dot_deps_2.
13033         * Makefile.in (graphite-dependences.o): Add missing dependence on
13034         graphite-cloog-util.h.
13035
13036 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13037
13038         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13039         (build_lexicographical_constraint): Same.
13040         (dependence_polyhedron_1): Same.
13041         (graphite_legal_transform_dr): Same.
13042         (graphite_carried_dependence_level_k): Same.
13043         * graphite-ppl.c (ppl_powerset_is_empty): New.
13044         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13045         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13046
13047 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13048
13049         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13050         the "a followed by b" relation and document it.
13051
13052 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13053
13054         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13055         iteration when the bag of constraints is empty.
13056
13057 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13058
13059         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13060
13061 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13062
13063         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13064         nest and two loop depths as parameters.
13065         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13066         lst_perfect_nestify.
13067
13068 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13069
13070         * graphite-dependences.c (print_pddr): Call
13071         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13072
13073 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13074
13075         * graphite-ppl.c (debug_gmp_value): New.
13076         * graphite-ppl.h (debug_gmp_value): Declared.
13077
13078 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13079
13080         * doc/install.texi: Document availability of cloog-0.16.
13081
13082 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13083
13084         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13085         invalid postdominance info.
13086
13087 2011-01-24  Jan Hubicka  <jh@suse.cz>
13088
13089         PR c/21659
13090         * doc/extend.texi (weak pragma): Drop claim that it must
13091         appear before definition.
13092         * varasm.c (merge_weak, declare_weak): Only sanity check
13093         that DECL is not output at a time it is declared weak.
13094
13095 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13096
13097         * machmode.def: Fixed comments.
13098
13099 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13100
13101         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13102
13103 2011-01-24  Paul Koning  <ni1d@arrl.net>
13104
13105         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13106         WORDS_BIG_ENDIAN.
13107
13108 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13109
13110         PR target/46519
13111         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13112         (block_info): Add scanned and prev.
13113         (move_or_delete_vzeroupper_2): Return if the basic block
13114         has been scanned and the upper 128bit state is unchanged
13115         from the last scan.
13116         (move_or_delete_vzeroupper_1): Return true if the exit
13117         state is changed.
13118         (move_or_delete_vzeroupper): Visit basic blocks using the
13119         work-list based algorithm based on vt_find_locations in
13120         var-tracking.c.
13121
13122         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13123
13124 2011-01-24  Nick Clifton  <nickc@redhat.com>
13125
13126         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13127         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13128         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13129         then define __v850e1__.
13130         * doc/invoke.texi: Document -mv850es.
13131
13132 2011-01-24  Richard Henderson  <rth@redhat.com>
13133
13134         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13135         compound unordered comparisons.
13136         * config/rx/rx.c (rx_split_fp_compare): Remove.
13137         * config/rx/rx-protos.h: Update.
13138         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13139         (cbranchsf4): Don't call rx_split_fp_compare.
13140         (*cbranchsf4): Use rx_split_cbranch.
13141         (*cmpsf): Don't accept "i" constraint.
13142         (*conditional_branch): Only valid after reload.
13143         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13144
13145 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13146
13147         PR target/47385
13148         * config/rs6000/altivec.md (vector constant splitters): Add
13149         support for creating vector single precision constants if -mvsx is
13150         used and we would create the constant using Altivec primitives.
13151
13152 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13153             Richard Sandiford  <rdsandiford@googlemail.com>
13154
13155         PR rtl-optimization/47166
13156         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13157         mechanism for PRE_MODIFY and POST_MODIFY.
13158         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13159         reloadreg.
13160
13161 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13162
13163         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13164
13165 2011-01-22  Jan Hubicka  <jh@suse.cz>
13166
13167         PR lto/47333
13168         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13169
13170 2011-01-22  Jan Hubicka  <jh@suse.cz>
13171
13172         PR tree-optimization/43884
13173         PR lto/44334
13174         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13175         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13176
13177 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13178
13179         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13180         * config/s390/s390.c (s390_register_move_cost,
13181         s390_memory_move_cost): New.
13182         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13183
13184 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13185
13186         PR middle-end/47401
13187         * except.c (sjlj_assign_call_site_values): Move setting the
13188         crtl->uses_eh_lsda flag to ...
13189         (sjlj_mark_call_sites): ... here.
13190         (sjlj_emit_function_enter): Support NULL dispatch label.
13191         (sjlj_build_landing_pads): In a function with no landing pads
13192         that still has must-not-throw regions, generate code to register
13193         a personality function with empty LSDA.
13194
13195 2011-01-21  Richard Henderson  <rth@redhat.com>
13196
13197         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13198
13199         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13200
13201         * compare-elim.c: New file.
13202         * Makefile.in (OBJS-common): Add it.
13203         (compare-elim.o): New.
13204         * common.opt (fcompare-elim): New.
13205         * opts.c (default_options_table): Add OPT_fcompare_elim.
13206         * tree-pass.h (pass_compare_elim_after_reload): New.
13207         * passes.c (init_optimization_passes): Add it.
13208         * recog.h: Protect against re-inclusion.
13209         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13210         * doc/invoke.texi (-fcompare-elim): Document it.
13211         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13212         * doc/tm.texi: Rebuild.
13213
13214 2011-01-22  Nick Clifton  <nickc@redhat.com>
13215
13216         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13217         rx_split_fp_compare.
13218
13219 2011-01-22  Nick Clifton  <nickc@redhat.com>
13220
13221         * config/rx/rx.md (UNSPEC_CONST): New.
13222         (deallocate_and_return): Wrap the amount popped off the stack in
13223         an UNSPEC_CONST in order to stop it being rejected by
13224         -mmax-constant-size.
13225         (pop_and_return): Add a "(return)" rtx.
13226         (call): Drop the immediate operand.
13227         (call_internal): Likewise.
13228         (call_value): Likewise.
13229         (call_value_internal): Likewise.
13230         (sibcall_internal): Likewise.
13231         (sibcall_value_internal): Likewise.
13232         (sibcall): Likewise.  Generate an explicit call using
13233         sibcall_internal.
13234         (sibcall_value): Likewise.
13235         (mov<>): FAIL if a constant operand is not legitimate.
13236         (addsi3_unpsec): New pattern.
13237
13238         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13239         (ok_for_max_constant): New function.
13240         (gen_safe_add): New function.
13241         (rx_expand_prologue): Use gen_safe_add.
13242         (rx_expand_epilogue): Likewise.
13243         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13244         UNSPEC CONSTs.
13245
13246 2011-01-21  Jeff Law  <law@redhat.com>
13247
13248         PR tree-optimization/47053
13249         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13250         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13251         statements are deleted.
13252         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13253         is nonempty, then purge dead edges and cleanup the CFG.
13254
13255 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13256
13257         PR debug/47402
13258         Temporarily revert:
13259         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13260         PR debug/47106
13261         * tree-dfa.c (create_var_ann): Mark variable as used.
13262
13263 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13264
13265         PR middle-end/45566
13266         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13267         notes from other section in hot/cold partitioning even if
13268         last_action is -3.  Increment call_site_base.
13269
13270         PR rtl-optimization/47366
13271         * fwprop.c (forward_propagate_into): Return bool.  If
13272         any changes are made, -fnon-call-exceptions is used and
13273         REG_EH_REGION note is present, call purge_dead_edges
13274         and return true if it purged anything.
13275         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13276         any EH edges were purged.
13277
13278 2011-01-21  Jeff Law  <law@redhat.com>
13279
13280         PR rtl-optimization/41619
13281         * caller-save.c (setup_save_areas): Break out code to determine
13282         which hard regs are live across calls by examining the reload chains
13283         so that it is always used.
13284         Eliminate code which checked REG_N_CALLS_CROSSED.
13285
13286 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13287
13288         PR tree-optimization/47355
13289         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13290         NOP has non-debug uses beyond PHIs in new_bb.
13291
13292 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13293
13294         PR debug/47106
13295         * cfgexpand.c (account_used_vars_for_block): Only account vars
13296         that are annotated as used.
13297         (estimated_stack_frame_size): Don't set TREE_USED.
13298         * tree-dfa.c (create_var_ann): Mark variable as used.
13299
13300 2011-01-21  Richard Guenther  <rguenther@suse.de>
13301
13302         PR middle-end/47395
13303         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13304
13305 2011-01-21  Richard Guenther  <rguenther@suse.de>
13306
13307         PR tree-optimization/47365
13308         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13309         (vn_reference_lookup_pieces): Adjust.
13310         (vn_reference_lookup): Likewise.
13311         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13312         (vn_reference_lookup_3): Only look through kills if in
13313         VN_WALKREWRITE mode.
13314         (vn_reference_lookup_pieces): Adjust.
13315         (vn_reference_lookup): Likewise.
13316         (visit_reference_op_load): Likewise.
13317         (visit_reference_op_store): Likewise.
13318         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13319         (compute_avail): Likewise.
13320         (eliminate): Likewise.
13321
13322 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13323
13324         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13325         DECL_IGNORED_P non-reg vars if they are used.
13326
13327         PR tree-optimization/47391
13328         * varpool.c (const_value_known_p): Return false if
13329         decl is volatile.
13330
13331 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13332
13333         PR bootstrap/47215
13334         * config/i386/i386.c (ix86_local_alignment): Handle
13335         case for va_list_type_node is nil.
13336         (ix86_canonical_va_list_type): Likewise.
13337
13338 2011-01-21  Alan Modra  <amodra@gmail.com>
13339
13340         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13341         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13342
13343 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13344
13345         * config/arm/arm.md (define_attr type): Rename f_load
13346         and f_store to f_fpa_load and f_fpa_store. Update.
13347         (write_conflict): Deal with rename fallout.
13348         (*push_fp_multi): Likewise.
13349         * config/arm/fpa.md (f_load): Use f_fpa_load.
13350         (f_store): Use f_fpa_store.
13351         (*movsf_fpa): Likewise.
13352         (*movdf_fpa): Likewise.
13353         (*movxf_fpa): Likewise.
13354         (*thumb2_movsf_fpa): Likewise.
13355         (*thumb2_movdf_fpa): Likewise.
13356         (*thumb2_movxf_fpa): Likewise.
13357         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13358         f_loadd and f_stored.
13359         (*thumb2_movdi_vfp): Likewise.
13360         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13361         (*thumb2_movsi_vfp): Likewise.
13362         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13363         Use f_loads instead of f_load.
13364         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13365
13366 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13367
13368         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13369         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13370         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13371         (xtensa_mode_dependent_address_p): New function.
13372         (constantpool_address_p): Make static. Change return type to bool.
13373         Change argument type to const_rtx. Use CONST_INT_P predicate.
13374
13375 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13376
13377         PR debug/46583
13378         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13379
13380 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13381
13382         PR debug/47283
13383         * cfgexpand.c (expand_debug_expr): Instead of generating
13384         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13385         etc. handling.
13386
13387 2011-01-20  Richard Guenther  <rguenther@suse.de>
13388
13389         PR middle-end/47370
13390         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13391         the pointer operand of MEM_REFs.
13392
13393 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13394
13395         PR tree-optimization/46130
13396         * ipa-split.c (consider_split): If return_bb contains non-virtual
13397         PHIs other than for retval or if split_function would not adjust it,
13398         refuse to split.
13399
13400 2011-01-20  Richard Guenther  <rguenther@suse.de>
13401
13402         PR tree-optimization/47167
13403         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13404         Revert previous change, only avoid enumeral type changes.
13405
13406 2011-01-19  Mike Stump  <mikestump@comcast.net>
13407
13408         * doc/tm.texi.in (BRANCH_COST): Englishify.
13409         * doc/tm.texi (BRANCH_COST): Likewise.
13410
13411 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13412
13413         PR c++/47291
13414         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13415         (gen_scheduled_generic_parms_dies): New functions.
13416         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13417         generation for the end of CU compilation.
13418         (dwarf2out_finish): Generate template parameters DIEs here.
13419
13420 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13421
13422         PR debug/46240
13423         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13424         debug bind stmt on merge edges.
13425
13426 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13427
13428         PR debug/47079
13429         PR debug/46724
13430         * function.c (instantiate_expr): Instantiate incoming rtl of
13431         implicit arguments, and recurse on VALUE_EXPRs.
13432         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13433         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13434
13435 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13436
13437         * c-parser.c (c_parser_for_statement): Initialize
13438         collection_expression.
13439
13440 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13441
13442         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13443
13444 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13445
13446         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13447         (LINK_SHLIB_SPEC): Don't use %(link_path).
13448         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13449
13450 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13451
13452         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13453         (NO_SHARED_LIB_SUPPORT): Remove.
13454         (LINK_SHLIB_SPEC): Remove one conditional definition.
13455
13456 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13457
13458         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13459         %{call_shared}.
13460         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13461         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13462         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13463         %{call_shared} and conditionals on these options not being passed.
13464         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13465         %{call_shared}.
13466
13467 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13468
13469         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13470         simplify.
13471
13472         * ipa-split.c: Spelling fixes.
13473
13474 2011-01-19  Richard Henderson  <rth@redhat.com>
13475
13476         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13477         (*mulsi3): Likewise.
13478
13479         * longlong.h [__mn10300__] (count_leading_zeros): New.
13480         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13481         [__mn10300__] (add_ssaaaa, subddmmss): New.
13482         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13483         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13484
13485 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13486
13487         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13488
13489 2011-01-19  Richard Henderson  <rth@redhat.com>
13490
13491         * config/mn10300/mn10300.md (addsi3_flags): New.
13492         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13493         (subsi3_flags, subc_internal, subdi3): New.
13494         (subdi3_internal, *subdi3_degenerate): New.
13495         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13496
13497         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13498         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13499         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13500         * config/mn10300/mn10300-protos.h: Update.
13501         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13502         (return_ret): Likewise.  Rename from return_internal_regs.
13503         (return_internal): Remove.
13504
13505         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13506         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13507         (mn10300_legitimate_constant_p): Likewise.
13508         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13509         (mn10300_frame_size): New.
13510         (mn10300_expand_prologue): Use it.
13511         (mn10300_expand_epilogue): Likewise.
13512         (mn10300_initial_offset): Likewise.
13513         * config/mn10300/mn10300-protos.h: Update.
13514         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13515         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13516         (prologue, epilogue, return_internal): Tidy output code.
13517         (mn10300_store_multiple_operation, return): Likewise.
13518         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13519         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13520         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13521         (load_pic, am33_load_pic): New.
13522         (mn10300_load_pic0, mn10300_load_pic1): New.
13523
13524         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13525         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13526         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13527         (cc_flags_for_mode, cc_flags_for_code): New.
13528         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13529         overflow flag is not valid.  Validate that the flags we need
13530         for the comparison are valid.
13531         (mn10300_output_cmp): Remove.
13532         (mn10300_output_add): New.
13533         (mn10300_select_cc_mode): Use cc_flags_for_code.
13534         (mn10300_split_cbranch): New.
13535         (mn10300_match_ccmode): New.
13536         (mn10300_split_and_operand_count): New.
13537         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13538         to the function.
13539         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13540         (addsi3): ... here.  Use mn10300_output_add.
13541         (*addsi3_flags): New.
13542         (*am33_subsi3, *mn10300_subsi3): Merge...
13543         (subsi3): ... here.  Use attribute isa.
13544         (*subsi3_flags): New.
13545         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13546         when possible.
13547         (*am33_andsi3, *mn10300_andsi3): Merge...
13548         (andsi3): ... here.
13549         (*andsi3_flags): New.
13550         (andsi3 splitters): New.
13551         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13552         (iorsi3): ... here.
13553         (*iorsi3_flags): New.
13554         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13555         (xorsi3): ... here.
13556         (*xorsi3_flags): New.
13557         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13558         (one_cmplsi2): ... here.
13559         (*one_cmplsi2_flags): New.
13560         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13561         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13562         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13563         use matching constraints to eliminate a self-comparison.
13564         (*integer_conditional_branch): Rename from integer_conditional_branch.
13565         Use int_mode_flags to match CC_REG.
13566         (*cbranchsi4_btst, *btstsi): New.
13567         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13568         mn10300_split_cbranch.
13569         (*am33_cmpsf): Rename from am33_cmpsf.
13570         (*float_conditional_branch): Rename from float_conditional_branch.
13571         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13572         (zero_extendqisi2): ... here.
13573         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13574         (zero_extendhisi2): ... here.
13575         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13576         (extendqisi2): ... here.
13577         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13578         (extendhisi2): ... here.
13579         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13580         (ashlsi3): ... here.
13581         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13582         (lshrsi3): ... here.
13583         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13584         (ashrsi3): ... here.
13585         (consecutive add peephole): Remove.
13586         * config/mn10300/predicates.md (label_ref_operand): New.
13587         (int_mode_flags): New.
13588         (CCZN_comparison_operator): New.
13589
13590         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13591         (throughput_42_latency_43): New reservation.
13592         (mulsidi3, umulsidi3): New expanders.
13593         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13594         the MDR register to allocation; separately allocate the low and
13595         high parts of the DImode result.
13596         (umulsidi3_internal): Similarly.
13597         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13598         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13599         (udivsi3, umodsi3): Remove.
13600         (udivmodsi4, divmodsi4): New expanders.
13601         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13602         (*divmodsi4): Simiarly.
13603         (ext_internal): New.
13604
13605         * config/mn10300/constraints.md ("z"): New constraint.
13606         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13607         (FIXED_REGISTERS): Don't fix MDR.
13608         (CALL_USED_REGSITERS): Reformat nicely.
13609         (REG_ALLOC_ORDER): Add MDR.
13610         (enum regclass): Add MDR_REGS.
13611         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13612         (IRA_COVER_CLASSES): Add MDR_REGS.
13613         (REGNO_REG_CLASS): Handle MDR_REG.
13614         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13615         (mn10300_register_move_cost): Likewise.
13616         * config/mn10300/mn10300.md (MDR_REG): New.
13617         (*movsi_internal): Handle moves to/from MDR_REGS.
13618
13619         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13620         POST_MODIFY.
13621         (mn10300_secondary_reload): Tidy combination reload classes.
13622         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13623         addresses for AM33.  Allow symbolic offsets for reg+imm.
13624         (mn10300_regno_in_class_p): New.
13625         (mn10300_legitimize_reload_address): New.
13626         * config/mn10300/mn10300.h (enum reg_class): Remove
13627         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13628         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13629         SP_OR_GENERAL_REGS.
13630         (REG_CLASS_NAMES): Update to match.
13631         (REG_CLASS_CONTENTS): Likewise.
13632         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13633         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13634         (REGNO_IN_RANGE_P): Remove.
13635         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13636         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13637         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13638         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13639         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13640         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13641         (REGNO_GENERAL_P): New.
13642         (HAVE_POST_MODIFY_DISP): New.
13643         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13644         (LEGITIMIZE_RELOAD_ADDRESS): New.
13645         * config/mn10300/mn10300-protos.h: Update.
13646
13647         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13648         DATA_REGS for AM33 stack-pointer destination.
13649         (mn10300_preferred_output_reload_class): Likewise.
13650         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13651         into a form appropriate for ...
13652         (TARGET_SECONDARY_RELOAD): New.
13653         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13654         * config/mn10300/mn10300-protos.h: Update.
13655         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13656         reload_insi; use the "A" constraint for the scratch; handle AM33
13657         moves of sp to non-address registers.
13658
13659         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13660         (*movqi_internal): ... here.
13661         (*am33_movhi, *mn10300_movhi): Merge into...
13662         (*movhi_internal): ... here.
13663         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13664         as the source/destination of moves from/to SP.
13665         (movsf): Only allow for AM33-2.
13666         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13667         any integer constant constraint.  Only allow for AM33-2.  Tidy
13668         all of the alternative outputs.
13669         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13670         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13671         for MN103.
13672         (udivsi3, umodsi3): New patterns for MN103 only.
13673
13674 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13675
13676         * doc/tm.texi.in: Spell out that a lack of register class unions
13677         can lead to ICEs.
13678         * doc/tm.texi: Regenerate.
13679
13680 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13681
13682         PR rtl-optimization/47337
13683         * dce.c (check_argument_store): New function.
13684         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13685
13686         PR tree-optimization/47290
13687         * tree-eh.c (infinite_empty_loop_p): New function.
13688         (cleanup_empty_eh): Use it.
13689
13690 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13691
13692         PR target/46997
13693         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13694         (a64_expand_widen_sum): Ditto.
13695         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13696         (vec_extract_evenodd_help): Ditto.
13697         (vec_extract_evenv4hi): Ditto.
13698         (vec_extract_oddv4hi): Ditto.
13699         (vec_extract_evenv2si): Ditto.
13700         (vec_extract_oddv2si): Ditto.
13701         (vec_extract_evenv2sf): Ditto.
13702         (vec_extract_oddv2sf): Ditto.
13703         (vec_pack_trunc_v4hi: Ditto.
13704         (vec_pack_trunc_v2si): Ditto.
13705         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13706         (vec_interleave_highv8qi): Ditto.
13707         (mix1_r): Ditto.
13708         (vec_extract_oddv8qi): Ditto.
13709         (vec_interleave_lowv4hi): Ditto.
13710         (vec_interleave_highv4hi): Ditto.
13711         (vec_interleave_lowv2si): Ditto.
13712         (vec_interleave_highv2si): Ditto.
13713
13714 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13715
13716         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13717         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13718         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13719         (pa_c_mode_for_suffix): New.
13720         (TARGET_EXPAND_BUILTIN): Define.
13721         (TARGET_C_MODE_FOR_SUFFIX): Define.
13722         (pa_builtins): Define.
13723         (pa_init_builtins): Register __float128 type and init new support
13724         builtins.
13725         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13726         * config/pa/quadlib.c (_U_Qfcopysign): New.
13727
13728 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13729
13730         PR middle-end/46894
13731         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13732         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13733         are defined.
13734
13735 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13736
13737         PR tree-optimization/47179
13738         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13739         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13740
13741 2011-01-18  Richard Guenther  <rguenther@suse.de>
13742
13743         PR rtl-optimization/47216
13744         * emit-rtl.c: Include tree-flow.h.
13745         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13746         of replicating it with different semantics.
13747         * Makefile.in (emit-rtl.o): Adjust.
13748
13749 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13750
13751         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13752         (cortex_a9_dp): Handle neon types correctly.
13753
13754 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13755
13756         PR rtl-optimization/47299
13757         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13758         subtarget.  Use normal multiplication if both operands are constants.
13759         * expmed.c (expand_widening_mult): Don't try to optimize constant
13760         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13761         before using it.
13762
13763 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13764
13765         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13766         spacing after 'e.g.', typos, comma, hyphenation.
13767
13768 2011-01-17  Richard Henderson  <rth@redhat.com>
13769
13770         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13771         (rx_restricted_mem_operand): New.
13772         (rx_shift_operand): Use register_operand.
13773         (rx_source_operand, rx_compare_operand): Likewise.
13774         * config/rx/rx.md (addsi3_flags): New expander.
13775         (adddi3): Rewrite as expander.
13776         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13777         (subsi3_flags): New expander.
13778         (subdi3): Rewrite as expander.
13779         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13780
13781         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13782         (rx_init_builtins): Remove sat builtin.
13783         (rx_expand_builtin): Likewise.
13784         * config/rx/rx.md (ssaddsi3): New.
13785         (*sat): Rename from sat.  Represent the CC_REG input.
13786
13787         * config/rx/predicates.md (rshift_operator): New.
13788         * config/rx/rx.c (rx_expand_insv): Remove.
13789         * config/rx/rx-protos.h: Update.
13790         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13791         operand to the canonical position.
13792         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13793         (*bitclr, *bitclr_in_memory): Similarly.
13794         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13795         (insv): Retain the zero_extract in the expansion.
13796
13797         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13798         (bswaphi2, bitinvert, revw): Likewise.
13799
13800         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13801         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13802         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13803         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13804         (bitset, bitset_in_memory): Likewise.
13805         (bitinvert, bitinvert_in_memory): Likewise.
13806         (bitclr, bitclr_in_memory): Likewise.
13807         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13808         (rx_strend, rx_cmpstrn): Likewise.
13809         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13810         (bitop peep2 patterns): Remove.
13811
13812         * config/rx/rx.c (rx_match_ccmode): New.
13813         * config/rx/rx-protos.h: Update.
13814         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13815         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13816         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13817         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13818         (fix_truncsfsi2, floatsisf2): Likewise.
13819         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13820         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13821         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13822         (*subsi3_flags, *xorsi3_flags): New.
13823
13824         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13825
13826         * config/rx/rx.c (rx_print_operand): Remove workaround for
13827         unsplit comparison operations.
13828
13829         * config/rx/rx.md (movsicc): Split after reload.
13830         (*movsicc): Merge *movsieq and *movsine via match_operator.
13831         (*stcc): New pattern.
13832
13833         * config/rx/rx.c (rx_float_compare_mode): Remove.
13834         * config/rx/rx.h (rx_float_compare_mode): Remove.
13835         * config/rx/rx.md (cstoresi4): Split after reload.
13836         (*sccc): New pattern.
13837
13838         * config/rx/predicates.md (label_ref_operand): New.
13839         (rx_z_comparison_operator): New.
13840         (rx_zs_comparison_operator): New.
13841         (rx_fp_comparison_operator): New.
13842         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13843         Validate that the flags are set properly for the comparison.
13844         (rx_gen_cond_branch_template): Remove.
13845         (rx_cc_modes_compatible): Remove.
13846         (mode_from_flags): New.
13847         (flags_from_code): Rename from flags_needed_for_conditional.
13848         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13849         (rx_select_cc_mode): Likewise.
13850         (rx_split_fp_compare): New.
13851         (rx_split_cbranch): New.
13852         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13853         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13854         (*cbranchsf4): Similarly.
13855         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13856         match_operator and rx_split_cbranch.
13857         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13858         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13859         (*cmpsi): Rename from cmpsi.
13860         (*tstsi): Rename from tstsi.
13861         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13862         (*conditional_branch): Rename from conditional_branch.
13863         (*reveresed_conditional_branch): Remove.
13864         (b<code>): Remove expander.
13865         * config/rx/rx-protos.h: Update.
13866
13867         * config/rx/rx.c (rx_compare_redundant): Remove.
13868         * config/rx/rx.md (cmpsi): Don't use it.
13869         * config/rx/rx-protos.h: Update.
13870
13871         * config/rx/rx-modes.def (CC_F): New mode.
13872         * config/rx/rx.c (rx_select_cc_mode): New.
13873         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13874         * config/rx/rx-protos.h: Update.
13875
13876 2011-01-17  Richard Henderson  <rth@redhat.com>
13877
13878         * except.c (dump_eh_tree): Fix stray ; after for statement.
13879
13880 2011-01-17  Richard Guenther  <rguenther@suse.de>
13881
13882         PR tree-optimization/47313
13883         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13884         handling before copying the body.  Properly deal with
13885         by-reference result in SSA form.
13886
13887 2011-01-17  Ian Lance Taylor  <iant@google.com>
13888
13889         PR target/47219
13890         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13891         (struct_value_alias_set): Don't define.
13892         (sparc_option_override): Don't set sparc_sr_alias_set and
13893         struct_value_alias_set.
13894         (save_or_restore_regs): Use gen_frame_mem rather than calling
13895         set_mem_alias_set.
13896         (sparc_struct_value_rtx): Likewise.
13897
13898 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13899
13900         PR target/47318
13901         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13902         (_mm_maskstore_pd): Likewise.
13903         (_mm_maskload_ps): Likewise.
13904         (_mm_maskstore_ps): Likewise.
13905         (_mm256_maskload_pd): Change mask to __m256i.
13906         (_mm256_maskstore_pd): Likewise.
13907         (_mm256_maskload_ps): Likewise.
13908         (_mm256_maskstore_ps): Likewise.
13909
13910         * config/i386/i386-builtin-types.def: Updated.
13911         (ix86_expand_special_args_builtin): Likewise.
13912
13913         * config/i386/i386.c (bdesc_special_args): Update
13914         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13915         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13916         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13917         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13918
13919         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13920         Use <avxpermvecmode> on mask register.
13921         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13922
13923 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13924             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13925             Eric Botcazou  <ebotcazou@adacore.com>
13926
13927         PR target/46655
13928         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13929         if <= USHRT_MAX in 32-bit mode.
13930
13931 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13932
13933         * doc/install.texi (Configuration, Specific): Wrap long
13934         lines in examples.  Allow line wrapping in long options
13935         and URLs where beneficial for PDF output.
13936
13937 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13938
13939         * config/mips/mips.c (mips_classify_symbol): Don't return
13940         SYMBOL_PC_RELATIVE for nonlocal labels.
13941
13942 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13943
13944         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13945
13946 2011-01-15  Jan Hubicka  <jh@suse.cz>
13947
13948         PR tree-optimization/47276
13949         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13950         declarations as needed.
13951
13952 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13953
13954         * common.opt (fdevirtualize): New flag.
13955         * doc/invoke.texi (Option Summary): Document it.
13956         * opts.c (default_options_table): Add devirtualize flag.
13957         * ipa-prop.c (detect_type_change): Return immediately if
13958         devirtualize flag is not set.
13959         (detect_type_change_ssa): Likewise.
13960         (compute_known_type_jump_func): Likewise.
13961         (ipa_analyze_virtual_call_uses): Likewise.
13962
13963 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13964
13965         PR tree-optimization/45934
13966         PR tree-optimization/46302
13967         * ipa-prop.c (type_change_info): New type.
13968         (stmt_may_be_vtbl_ptr_store): New function.
13969         (check_stmt_for_type_change): Likewise.
13970         (detect_type_change): Likewise.
13971         (detect_type_change_ssa): Likewise.
13972         (compute_complex_assign_jump_func): Check for dynamic type change.
13973         (compute_complex_ancestor_jump_func): Likewise.
13974         (compute_known_type_jump_func): Likewise.
13975         (compute_scalar_jump_functions): Likewise.
13976         (ipa_analyze_virtual_call_uses): Likewise.
13977         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13978
13979 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13980
13981         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13982         * config/i386/i386.opt (msse5): New Alias.
13983
13984 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13985
13986         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13987         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13988         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13989         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13990
13991 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13992
13993         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13994         -mcpu options.
13995         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13996         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13997         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13998         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13999         Likewise.
14000         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14001
14002 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14003
14004         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14005
14006 2011-01-14  Mike Stump  <mikestump@comcast.net>
14007
14008         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14009         * config/fr30/fr30.md: Likweise
14010         (movsi_push): Likewise.
14011         (movsi_pop): Likewise.
14012         (enter_func): Likewise.
14013         * config/moxie/moxie.md (movsi_push): Likewise.
14014         (movsi_pop): Likewise.
14015
14016 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14017
14018         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14019         %{no_archive} %{exact_version}.
14020         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14021         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14022         %{no_archive} %{exact_version}.
14023         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14024         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14025         * config/mips/vxworks.h: Likewise.
14026
14027 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14028
14029         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14030
14031 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14032
14033         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14034         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14035
14036 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14037
14038         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14039         -nodefaultlib.
14040
14041 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14042
14043         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14044         for mcpu not cpu.
14045         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14046         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14047         not cpu.
14048         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14049         Don't handle -shlib.
14050
14051 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14052
14053         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14054         (CC1_SPEC): Don't handle -profile.
14055
14056 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14057
14058         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14059         * config/mips/mips.h (CC1_SPEC): Likewise.
14060
14061 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14062
14063         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14064         * config/mips/mips.h (CC1_SPEC): Likewise.
14065
14066 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14067
14068         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14069         * config/m32r/linux.h (LINK_SPEC): Likewise.
14070         * config/mips/linux.h (LINK_SPEC): Likewise.
14071         * config/mips/linux64.h (LINK_SPEC): Likewise.
14072         * config/sparc/linux.h (LINK_SPEC): Likewise.
14073         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14074         LINK_SPEC): Likewise.
14075         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14076
14077 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14078
14079         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14080         %{version:-v}.
14081         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14082
14083 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14084
14085         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14086         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14087
14088 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14089
14090         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14091
14092 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14093
14094         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14095         supports -Bstatic/-Bdynamic.
14096         * configure: Regenerate.
14097
14098 2011-01-14  Jan Hubicka  <jh@suse.cz>
14099             Jack Howarth  <howarth@bromo.med.uc.edu>
14100
14101         PR target/46037
14102         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14103         when checking debug_info_level. Test write_symbols instead of
14104         debug_hooks->var_location when setting flag_var_tracking_uninit.
14105
14106 2011-01-14  Richard Guenther  <rguenther@suse.de>
14107
14108         PR tree-optimization/47179
14109         * target.def (ref_may_alias_errno): New target hook.
14110         * targhooks.h (default_ref_may_alias_errno): Declare.
14111         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14112         (default_ref_may_alias_errno): New function.
14113         * target.h (struct ao_ref_s): Declare.
14114         * tree-ssa-alias.c: Include target.h.
14115         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14116         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14117         (targhooks.o): Likewise.
14118         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14119         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14120
14121 2011-01-14  Richard Guenther  <rguenther@suse.de>
14122
14123         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14124
14125 2011-01-14  Richard Guenther  <rguenther@suse.de>
14126
14127         PR tree-optimization/47280
14128         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14129         return CFG changes.
14130         (tree_ssa_forward_propagate_single_use_vars): Deal with
14131         CFG changes from associate_plusminus.
14132
14133 2011-01-14  Richard Guenther  <rguenther@suse.de>
14134
14135         PR middle-end/47281
14136         Revert
14137         2011-01-11  Richard Guenther  <rguenther@suse.de>
14138
14139         PR tree-optimization/46076
14140         * tree-ssa.c (useless_type_conversion_p): Conversions from
14141         unprototyped to empty argument list function types are useless.
14142
14143 2011-01-14  Richard Guenther  <rguenther@suse.de>
14144
14145         PR tree-optimization/47286
14146         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14147
14148 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14149
14150         PR middle-end/46823
14151         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14152
14153 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14154
14155         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14156         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14157         * config/xtensa/xtensa.c (xtensa_libcall_value,
14158         xtensa_function_value_regno_p): New functions.
14159         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14160
14161 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14162
14163         PR c++/47213
14164         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14165         PE specific hook.
14166         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14167         New function prototype.
14168         * config/i386/winnt.c (i386_pe_assemble_visibility):
14169         Warn only if attribute was specified by user.
14170
14171 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14172
14173         PR target/47251
14174         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14175         floating point.
14176         (floatunsdidf2_fcfidu): Ditto.
14177
14178 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14179
14180         * config/s390/s390.c (print_operand_address): Replace 'error' with
14181         'output_operand_lossage'.
14182         (print_operand): Likewise.
14183
14184 2011-01-13  Jeff Law  <law@redhat.com>
14185
14186         PR rtl-optimization/39077
14187         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14188         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14189         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14190         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14191         * gcse.c (prune_insertions_deletions): New function.
14192         (compute_pre_data): Use it.
14193
14194 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14195
14196         PR debug/PR46973
14197         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14198         static function.
14199         (prune_unused_types_mark): Use it.
14200
14201 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14202
14203         PR rtl-optimization/45352
14204         * sel-sched.c: Update copyright years.
14205         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14206         in the advancing loop when we have issued issue_rate insns.
14207
14208 2011-01-12  Richard Henderson  <rth@redhat.com>
14209
14210         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14211         (TARGET_MD_ASM_CLOBBERS): New.
14212
14213         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14214         (TARGET_DELEGITIMIZE_ADDRESS): New.
14215
14216         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14217         (clzsi2, *bsch): New patterns.
14218
14219         * config/mn10300/mn10300.md (INT): New mode iterator.
14220         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14221
14222         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14223         flag_split_wide_types.
14224
14225         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14226         (mn10300_trampoline_init): Rewrite without a template, an immediate
14227         load and a direct branch.
14228         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14229
14230 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14231
14232         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14233         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14234         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14235         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14236
14237 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14238
14239         PR debug/47209
14240         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14241         of type.
14242
14243 2011-01-12  Jan Hubicka  <jh@suse.cz>
14244
14245         PR driver/47244
14246         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14247         (PLUGIN_COND_CLOSE): New macro.
14248         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14249
14250 2011-01-12  Richard Guenther  <rguenther@suse.de>
14251
14252         PR lto/47259
14253         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14254         register variables in a MEM_REF.
14255
14256 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14257
14258         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14259         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14260         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14261         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14262         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14263         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14264         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14265         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14266         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14267         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14268         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14269         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14270         * config/gnu-user.h: New.  Copied from linux.h.
14271         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14272         GNU_USER_TARGET_STARTFILE_SPEC.
14273         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14274         GNU_USER_TARGET_ENDFILE_SPEC.
14275         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14276         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14277         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14278         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14279         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14280         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14281         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14282         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14283         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14284         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14285         * config/arm/linux-eabi.h (CC1_SPEC): Use
14286         GNU_USER_TARGET_CC1_SPEC.
14287         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14288         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14289         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14290         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14291         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14292         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14293         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14294         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14295
14296 2011-01-12  Richard Guenther  <rguenther@suse.de>
14297
14298         PR other/46946
14299         * doc/invoke.texi (ffast-math): Document it is turned on
14300         with -Ofast.
14301
14302 2011-01-12  Jan Hubicka  <jh@suse.cz>
14303
14304         PR tree-optimization/47233
14305         * opts.c (common_handle_option): Disable ipa-reference with profile
14306         feedback.
14307
14308 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14309
14310         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14311         error message.
14312
14313 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14314
14315         * c-parser.c (c_lex_one_token): Updated and reindented some
14316         comments.  No changes in code.
14317
14318 2011-01-11  Ian Lance Taylor  <iant@google.com>
14319
14320         * godump.c (go_output_var): Don't output the variable if there is
14321         already a type with the same name.
14322
14323 2011-01-11  Ian Lance Taylor  <iant@google.com>
14324
14325         * godump.c (go_format_type): Don't generate float80.
14326
14327 2011-01-11  Richard Henderson  <rth@redhat.com>
14328
14329         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14330         declaration.  Rewrite for both speed and size.
14331         (mn10300_address_cost_1): Remove.
14332         (mn10300_register_move_cost): New.
14333         (mn10300_memory_move_cost): New.
14334         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14335         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14336         extensions, shifts, BSWAP, CLZ.
14337         (mn10300_wide_const_load_uses_clr): Remove.
14338         (TARGET_REGISTER_MOVE_COST): New.
14339         (TARGET_MEMORY_MOVE_COST): New.
14340         * config/mn10300/mn10300-protos.h: Update.
14341         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14342
14343         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14344         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14345         * config/mn10300/mn10300-protos.h: Update.
14346         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14347         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14348         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14349         (*test_int_bitfield, *test_byte_bitfield): Remove.
14350         (*bit_test, *subreg_bit_test): Remove.
14351         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14352
14353         * config/mn10300/constraints.md ("c"): Rename from "A".
14354         ("A", "D"): New constraint letters.
14355         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14356         (fmssf4, fnmasf4, fnmssf4): Likewise.
14357
14358         * config/mn10300/mn10300.md (isa): New attribute.
14359         (enabled): New attribute.
14360
14361         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14362         (abssf2, negsf2): Define only for hardware fp.
14363         (sqrtsf2): Reformat.
14364         (addsf3, subsf3, mulsf3): Merge expander and insn.
14365
14366         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14367         (DEBUGGER_AUTO_OFFSET): Remove.
14368         (DEBUGGER_ARG_OFFSET): Remove.
14369
14370         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14371         Emit register stores with the same offsets as the hardware.
14372         (mn10300_store_multiple_operation): Don't check that the register
14373         save offsets are monotonic.
14374         * config/mn10300/mn10300-protos.h: Update.
14375
14376         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14377
14378         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14379         in terms of the value on the stack, not the MDR register.
14380
14381 2011-01-11  Jan Hubicka  <jh@suse.cz>
14382
14383         PR lto/45721
14384         PR lto/45375
14385         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14386         (symbol_alias_set_destroy, symbol_alias_set_contains,
14387         propagate_aliases_backward): Declare.
14388         * lto-streamer-out.c (struct sets): New sturcture.
14389         (trivally_defined_alias): New function.
14390         (output_alias_pair_p): Rewrite.
14391         (output_unreferenced_globals): Fix output of alias pairs.
14392         (produce_symtab): Likewise.
14393         * ipa.c (function_and_variable_visibility): Set weak alias destination
14394         as needed in lto.
14395         * varasm.c (symbol_alias_set_t): Remove.
14396         (symbol_alias_set_destroy): Export.
14397         (propagate_aliases_forward, propagate_aliases_backward): New functions
14398         based on ...
14399         (compute_visible_aliases): ... this one; remove.
14400         (trivially_visible_alias): New
14401         (trivially_defined_alias): New.
14402         (remove_unreachable_alias_pairs): Rewrite.
14403         (finish_aliases_1): Reorganize code checking if alias is defined.
14404         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14405         in LTO mode.
14406
14407 2011-01-11  Richard Guenther  <rguenther@suse.de>
14408
14409         PR tree-optimization/46076
14410         * tree-ssa.c (useless_type_conversion_p): Conversions from
14411         unprototyped to empty argument list function types are useless.
14412
14413 2011-01-11  Richard Guenther  <rguenther@suse.de>
14414
14415         PR middle-end/45235
14416         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14417         volatile MEMs as MEM_READONLY_P.
14418
14419 2011-01-11  Richard Guenther  <rguenther@suse.de>
14420
14421         PR tree-optimization/47239
14422         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14423
14424 2011-01-11  Jeff Law  <law@redhat.com>
14425
14426         PR tree-optimization/47086
14427         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14428         IVs from statements that might throw.
14429
14430 2011-01-10  Jan Hubicka  <jh@suse.cz>
14431
14432         PR lto/45375
14433         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14434
14435 2011-01-10  Jan Hubicka  <jh@suse.cz>
14436
14437         PR lto/45375
14438         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14439         when correcting profile.
14440
14441 2011-01-10  Jan Hubicka  <jh@suse.cz>
14442
14443         PR lto/46083
14444         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14445         DECL_FINI_PRIORITY.
14446         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14447         Restore DECL_FINI_PRIORITY.
14448
14449 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14450
14451         * doc/gimple.texi: Fix quoting of multi-word return values in
14452         @deftypefn statements.  Ensure presence of return value.  Wrap
14453         overlong @deftypefn lines.
14454         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14455         descriptions of removed functions.
14456         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14457         of multi-word return value in @deftypefn statement.
14458
14459 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14460
14461         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14462         (Conditional Expressions, Logical Operators)
14463         (Statement and operand traversals): Do not indent smallexample
14464         code.  Fix duplicate function argument in example.
14465
14466 2011-01-10  Jeff Law  <law@redhat.com>
14467
14468         PR tree-optimization/47141
14469         * ipa-split.c (split_function): Handle case where we are
14470         returning a value and the return block has a virtual operand phi.
14471
14472 2011-01-10  Jan Hubicka  <jh@suse.cz>
14473
14474         PR tree-optimization/47234
14475         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14476         (pass_feedback_split_functions): Declare.
14477         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14478         tree-profile.
14479         * ipa-split.c (gate_split_functions): Update comments; disable
14480         split-functions for profile_arc_flag and branch_probabilities.
14481         (gate_feedback_split_functions): New function.
14482         (execute_feedback_split_functions): New function.
14483         (pass_feedback_split_functions): New global var.
14484
14485 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14486
14487         PR lto/46760
14488         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14489         calling gimple_call_set_cannot_inline.
14490
14491 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14492
14493         * config/darwin-sections.def: Remove unused section.
14494
14495 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14496
14497         PR c++/47218
14498         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14499
14500 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14501
14502         PR objc/47232
14503         * c-parser.c (c_parser_declaration_or_fndef): Improved
14504         error message.
14505
14506 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14507
14508         * config/i386/winnt.c (i386_pe_start_function): Make sure
14509         to switch back to function's section.
14510
14511 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14512
14513         PR gcc/46902
14514         PR testsuite/46912
14515         * plugin.c: Move include of dlfcn.h from here...
14516         * system.h: ... to here.
14517
14518 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14519
14520         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14521         file name.
14522         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14523         two extra empty pages in PDF output.
14524
14525 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14526
14527         PR objc/47078
14528         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14529         for error recovery purposes behave as if it was not specified so
14530         that the default type is usd.
14531
14532 2011-01-07  Jan Hubicka  <jh@suse.cz>
14533
14534         PR tree-optmization/46469
14535         * ipa.c (function_and_variable_visibility): Clear needed flags on
14536         nodes with external decls; handle weakrefs merging correctly.
14537
14538 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14539
14540         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14541         not false.
14542
14543 2011-01-07  Jan Hubicka  <jh@suse.cz>
14544
14545         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14546         and no longer claim that gold is required for linker plugin.
14547         * configure: Regenerate.
14548         * gcc.c (PLUGIN_COND): New macro.
14549         (LINK_COMMAND_SPEC): Use it.
14550         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14551         * config.in (HAVE_LTO_PLUGIN): New.
14552         * configure.ac (--with-lto-plugin): New parameter; autodetect
14553         HAVE_LTO_PLUGIN.
14554
14555 2011-01-07  Jan Hubicka  <jh@suse.cz>
14556
14557         PR tree-optimization/46367
14558         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14559         when we can update original.
14560         (cgraph_mark_inline_edge): Sanity check.
14561         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14562
14563 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14564
14565         * config/spu/spu.h (ASM_COMMENT_START): Define.
14566
14567 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14568
14569         PR driver/42445
14570         * gcc.c (%>S): New.
14571         (SWITCH_KEEP_FOR_GCC): Likewise.
14572         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14573         (do_spec_1): Handle "%>".
14574
14575         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14576
14577 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14578
14579         PR target/47201
14580         * config/i386/i386.c (ix86_delegitimize_address): If
14581         simplify_gen_subreg fails, return orig_x.
14582
14583         PR bootstrap/47187
14584         * value-prof.c (gimple_stringop_fixed_value): Handle
14585         lhs of the call properly.
14586
14587 2011-01-07  Jan Hubicka  <jh@suse.cz>
14588
14589         PR lto/45375
14590         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14591
14592 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14593
14594         * target.def (function_switched_text_sections): New hook.
14595         * doc/tm.texi: Regenerated.
14596         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14597         * final.c (default_function_switched_text_sections): New.
14598         (final_scan_insn): Call function_switched_text_sections when a
14599         mid-function section change occurs.
14600         * output.h (default_function_switched_text_sections): Declare.
14601         * config/darwin-protos.h (darwin_function_switched_text_sections):
14602         Likewise.
14603         * config/darwin.c (darwin_function_switched_text_sections): New.
14604         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14605
14606 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14607
14608         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14609         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14610         the secondary code fragment when outputting for DWARF == 2.
14611
14612 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14613
14614         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14615         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14616         Remove.
14617         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14618         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14619
14620 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14621
14622         PR debug/46704
14623         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14624         when it is not empty.
14625
14626 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14627
14628         Bobcat Enablement
14629         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14630         (case ${target}): Add btver1.
14631         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14632         -march=native recognize btver1 processors.
14633         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14634         btver1 def_and_undef
14635         * config/i386/i386.c (struct processor_costs btver1_cost): New
14636         btver1 cost table.
14637         (m_BTVER1): New definition.
14638         (m_AMD_MULTIPLE): Includes m_BTVER1.
14639         (initial_ix86_tune_features): Add btver1 tune.
14640         (processor_target_table): Add btver1 entry.
14641         (static const char *const cpu_names): Add btver1 entry.
14642         (software_prefetching_beneficial_p): Add btver1.
14643         (ix86_option_override_internal): Add btver1 instruction sets.
14644         (ix86_issue_rate): Add btver1.
14645         (ix86_adjust_cost): Add btver1.
14646         * config/i386/i386.h (TARGET_BTVER1): New definition.
14647         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14648         (enum processor_type): Add PROCESSOR_BTVER1.
14649         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14650
14651 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14652
14653         PR target/43309
14654         * config/i386/i386.c (legitimize_tls_address)
14655         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14656         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14657         (tls_initial_exec_64_sun): New pattern.
14658
14659 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14660
14661         * doc/invoke.texi (Overall Options): Improve wording and markup
14662         of the description of -wrapper.
14663
14664 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14665
14666         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14667         rdynamic, threads): New Driver options.
14668
14669 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14670
14671         PR target/38118
14672         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14673         if coming from .tdata.
14674         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14675
14676 2011-01-06  Jan Hubicka  <jh@suse.cz>
14677
14678         PR lto/47188
14679         * collect2.c (main): Do not enable LTOmode when plugin is active.
14680
14681 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14682
14683         PR other/45915
14684         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14685         --version output if supported.
14686         * configure: Regenerate.
14687
14688 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14689
14690         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14691         Driver options.
14692
14693 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14694
14695         PR c/47150
14696         * c-convert.c (convert): When converting a complex expression
14697         other than COMPLEX_EXPR to a different complex type, ensure
14698         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14699         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14700         when converting COMPLEX_TYPE.
14701
14702 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14703
14704         PR tree-optimization/47139
14705         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14706         only the last reduction value is used outside the loop.  Update
14707         documentation.
14708
14709 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14710
14711         * config/rtems.opt: New.
14712         * config.gcc (*-*-rtems*): Use rtems.opt.
14713
14714 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14715
14716         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14717         processors do not support 3DNow instructions.
14718
14719 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14720
14721         * config/spu/spu.c (spu_option_override): Set parameter
14722         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14723
14724 2011-01-05  Jan Hubicka  <jh@suse.cz>
14725
14726         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14727         at the command line.
14728
14729 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14730
14731         PR lto/47162
14732         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14733         deltas on streamed outgoing edges.
14734         (output_node_opt_summary): Output info for outgoing edges only when
14735         the node is in new parameter set.
14736         (output_cgraph_opt_summary): New parameter set, passed to the two
14737         aforementioned functions.  Update its forward declaration and its
14738         callee too.
14739
14740 2011-01-05  Tom Tromey  <tromey@redhat.com>
14741
14742         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14743         operator to c_finish_omp_atomic.
14744         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14745         (build_unary_op): Update.
14746         (build_modify_expr): Update.
14747         (build_asm_expr): Update.
14748
14749 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14750
14751         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14752         newly inserted insns.
14753         (pad_bb): Likewise.
14754         (spu_emit_branch_hint): Likewise.
14755         (insert_hbrp_for_ilb_runout): Likewise.
14756         (spu_machine_dependent_reorg): Call df_finish_pass after
14757         schedule_insns returns.
14758
14759 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14760
14761         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14762
14763 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14764
14765         PR tree-optimization/47005
14766         * tree-sra.c (struct access): Add 'non_addressable' bit.
14767         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14768         (decide_one_param_reduction): Return 0 if the parameter is passed by
14769         reference and one of the accesses in the group is non_addressable.
14770
14771 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14772
14773         PR tree-optimization/47056
14774         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14775         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14776         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14777
14778 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14779
14780         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14781         initializer.  Skip view conversions from aggregate types.
14782
14783 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14784
14785         PR bootstrap/47055
14786         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14787
14788 2011-01-04  Philipp Thomas  <pth@suse.de>
14789
14790         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14791         obvious typo.
14792
14793 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14794
14795         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14796         on empty epilogue sequences.
14797
14798 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14799
14800         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14801         non-static): New Driver options.
14802
14803 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14804
14805         PR driver/47137
14806         * gcc.c (default_compilers[]): Set combinable field to 0
14807         for all assembly languages.
14808
14809 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14810
14811         * config/mips/loongson3a.md: New file.
14812         * config/mips/mips.md: Include loongson3a.md.
14813         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14814         TUNE_LOONGSON_3A.
14815
14816 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14817
14818         PR middle-end/47017
14819         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14820         instead of convert_memory_address_addr_space on the base expression.
14821
14822 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14823
14824         * config/spu/spu.c (spu_option_override): Update error text
14825         for bad -march= / -mtune= values.
14826
14827 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14828
14829         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14830         if branch-hint optimization will be performed.
14831
14832 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14833
14834         PR tree-optimization/47148
14835         * ipa-split.c (split_function): Convert arguments to
14836         DECL_ARG_TYPE if possible.
14837
14838         PR tree-optimization/47155
14839         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14840         when computing uns.
14841
14842         PR rtl-optimization/47157
14843         * combine.c (try_combine): If undobuf.other_insn becomes
14844         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14845         and set *new_direct_jump_p too.
14846
14847 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14848
14849         PR tree-optimization/47021
14850         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14851
14852 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14853
14854         * gcc.c (process_command): Update copyright notice dates.
14855         * gcov.c (print_version): Likewise.
14856         * gcov-dump.c (print_version): Likewise.
14857         * mips-tfile.c (main): Likewise.
14858         * mips-tdump.c (main): Likewise.
14859
14860 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14861
14862         PR tree-optimization/46801
14863         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14864         aggregate fields start at byte boundary instead of the bit-field flag.
14865
14866 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14867
14868         PR driver/47137
14869         * gcc.c (main): Revert revision 168407.
14870
14871 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14872
14873         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14874
14875 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14876
14877         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14878         vector optab to expand vector/scalar shift, update gimple to vector.
14879
14880 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14881
14882         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14883         a thunk.
14884
14885 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14886
14887         PR tree-optimization/46984
14888         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14889         HOST_WIDE_INT.
14890         (cgraph_create_indirect_edge): Fixed line length.
14891         (cgraph_indirect_call_info): Declare.
14892         (cgraph_make_edge_direct) Update declaration.
14893         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14894         (cgraph_create_indirect_edge): Use it.
14895         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14896         callees.
14897         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14898         the new thunk_delta representation.
14899         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14900         HOST_WIDE_INT.
14901         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14902         (ipa_read_indirect_edge_info): Likewise.
14903         * lto-cgraph.c (output_edge_opt_summary): New function.
14904         (output_node_opt_summary): Call it on all outgoing edges.
14905         (input_edge_opt_summary): New function.
14906         (input_node_opt_summary): Call it on all outgoing edges.
14907
14908 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14909
14910         PR driver/47137
14911         * gcc.c (main): Don't check have_o when settting combine_inputs.
14912
14913 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14914
14915         * regrename.c: Add general comment describing the pass.
14916         (struct du_head): Remove 'length' field.
14917         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14918         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14919         Force renaming to the preferred class (if any) in the first pass and do
14920         not consider registers that belong to it in the second pass.
14921         (create_new_chain): Do not set 'length' field.
14922         (scan_rtx_reg): Likewise.
14923
14924 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14925
14926         PR tree-optimization/47140
14927         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14928         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14929         to bit_value_binop.
14930
14931         PR rtl-optimization/47028
14932         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14933         parm_birth_insn instead of at the beginning of first bb.
14934
14935 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14936
14937         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14938         Remove the word "see" before "@pxref".
14939         * doc/rtl.texi: Remove the word "see" before "@pxref".
14940
14941 2011-01-01  Jan Hubicka  <jh@suse.cz>
14942
14943         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14944         memory.
14945
14946 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14947
14948         PR target/38662
14949         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14950
14951 \f
14952 Copyright (C) 2011 Free Software Foundation, Inc.
14953
14954 Copying and distribution of this file, with or without modification,
14955 are permitted in any medium without royalty provided the copyright
14956 notice and this notice are preserved.