re PR target/49098 (unused parameters in rx.c:rx_memory_move_cost)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-21  Nick Clifton  <nickc@redhat.com>
2
3         PR target/49098
4         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5
6 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7
8         * gengtype.c (walk_type): Implemented "atomic" GTY option.
9         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
10
11 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
12
13         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
14         * optc-gen.awk: Move common code to opt-read.awk.
15         * opth-gen.awk: Likewise.
16         * Makefile.in (options.c, s-options-h): Update to use
17         opt-read.awk.
18
19 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
20
21         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
22
23 2011-05-20  Tom de Vries  <tom@codesourcery.com>
24
25         PR target/45098
26         * tree-ssa-loop-ivopts.c: Include expmed.h.
27         (get_shiftadd_cost): New function.
28         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
29
30 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
31
32         PR bootstrap/49086
33         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
34         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
35
36 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
37
38         * Makefile.in: Update comment referring to $(OBJS-common).
39
40 2011-05-20  Ian Lance Taylor  <iant@google.com>
41
42         * godump.c (go_output_typedef): Put enum constants in the macro
43         hash table to avoid duplicate Go const definitions.
44
45 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
46
47         * Makefile.in (LIBDEPS): Add libcommon.a.
48         (LIBS): Likewise.
49         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
50         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
51         pretty-print.o and version.o.
52         (OBJS-libcommon): New.
53         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
54         (BACKEND): Add libcommon.a.
55         (MOSTLYCLEANFILES): Likewise.
56         (libcommon.a): New.
57         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
58         (cpp$(exeext)): Likewise.
59         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
60         pretty-print.o and input.o.
61         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
62         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
63         (errors.o): Remove.
64         (mips-tfile): Don't explicitly use version.o.
65         (mips-tdump): Likewise.
66         (gcov.o): Depend on $(DIAGNOSTIC_H).
67         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
68         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
69         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
70         * gcov-dump.c: Include intl.h and diagnostic.h.
71         (main): Initialize diagnostics.
72         * gcov.c: Include diagnostic.h.
73         (fnotice): Remove.
74         (main): Initialize diagnostics.
75         * lto-wrapper.c: Include diagnostic.h.
76         (main): Initialize diagnostics.
77
78 2011-05-20  Michael Matz  <matz@suse.de>
79
80         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
81
82 2011-05-20  Michael Matz  <matz@suse.de>
83             Richard Guenther  <rguenther@suse.de>
84
85         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
86         use lto_streamer_cache_append directly instead of returning a VEC.
87         (preload_common_node): Remove.
88         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
89         track seen nodes.
90         (lto_streamer_cache_create): Call lto_preload_common_nodes.
91
92 2011-05-20  Richard Guenther  <rguenther@suse.de>
93
94         PR tree-optimization/49079
95         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
96         MEM_REFs correctly for the trailing array access detection.
97         Special case constants the same way as decls for overall size
98         constraining.
99
100 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
101
102         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
103         argument expansion.
104
105 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
106
107         PR tree-optimization/49073
108         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
109         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
110         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
111
112 2011-05-20  Richard Guenther  <rguenther@suse.de>
113
114         PR middle-end/48849
115         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
116         of pointer types the same way the middle-end does.
117
118 2011-05-20  Richard Guenther  <rguenther@suse.de>
119
120         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
121         or pointer-to chains.  Delay all fixup to uniquify_nodes.
122
123 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
124
125         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
126         (fma4_fmaddsub): Likewise
127
128 2011-05-19  Jan Hubicka  <jh@suse.cz>
129
130         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
131         (GIMPLE_TYPE_PAIR_SIZE): New macro.
132         (type_pair_cache): New static var.
133         (lookup_type_pair): Use fixed sized custom hash; make inline.
134         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
135         calls of lookup_type_pair.
136         (print_gimple_types_stats): Remove cache stats.
137         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
138         and gtc_ob.
139
140 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
141
142         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
143         when TARGET_RDRND is active.
144         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
145         Generate dummy SImode target register when target is NULL.
146
147 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
148
149         * config/arm/arm-fpus.def: New.
150         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
151         arm-fpus.def.
152         * config/arm/arm-tables.opt: Regenerate.
153         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
154         (arm_option_override): Don't decode FPU name to string here.
155         * config/arm/arm.opt (mfpu=): Use Enum.
156         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
157         Update dependencies.
158
159 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
160
161         * collect2.c: Include diagnostic.h.
162         (fatal_perror, fatal, error, fancy_abort): Remove.
163         (main): Set progname.  Call xmalloc_set_program_name and
164         diagnostic_initialize.
165         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
166         scan_libraries, resolve_lib_name): Call fatal_error instead of
167         fatal and fatal_perror.
168         * collect2.h (error, fatal, fatal_perror): Don't declare.
169         * tlink.c: Include diagnostic-core.h.
170         (recompile_files): Call fatal_error instead of fatal_perror.
171         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
172         pretty-print.o and input.o.
173         (collect2.o, tlink.o): Update dependencies.
174
175 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
176
177         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
178
179 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
180
181         PR target/40483
182         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
183         COMDAT group syntax, both SPARC and x86 variants.
184         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
185         * configure: Regenerate.
186         * config/sol2.h (TARGET_SOLARIS): Define.
187         (PUSHSECTION_FORMAT): Remove.
188         (SECTION_NAME_FORMAT): Define.
189         * config/sol2.c: Include hashtab.h.
190         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
191         expansion, using SECTION_NAME_FORMAT.
192         (solaris_comdat_htab): New variable.
193         (struct comdat_entry): Define.
194         (comdat_hash): New function.
195         (comdat_eq): New function.
196         (solaris_elf_asm_comdat_section): New function.
197         (solaris_define_comdat_signature): New function.
198         (solaris_code_end): New function.
199         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
200         (solaris_code_end): Declare.
201         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
202         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
203         solaris_code_end.
204         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
205         Remove ATTRIBUTE_UNUSED.
206         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
207         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
208         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
209         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
210         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
211         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
212         (PUSHSECTION_FORMAT): Remove.
213         (SECTION_NAME_FORMAT): Redefine.
214
215 2011-05-19  Kai Tietz  <ktietz@redhat.com>
216
217         * tree-cfg.c (verify_gimple_assign_binary): Barf on
218         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
219         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
220
221 2011-05-19  Anatoly Sokolov <aesok@post.ru>
222             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
223
224         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
225
226 2011-05-19  Richard Guenther  <rguenther@suse.de>
227
228         PR middle-end/48985
229         * tree-object-size.c (addr_object_size): If the pointed-to
230         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
231
232 2011-05-19  Richard Guenther  <rguenther@suse.de>
233
234         * gimple.c (gimple_types_compatible_p_1): Compare names of
235         the types themselves.
236         (iterative_hash_gimple_type): And hash them that way.
237         (gimple_register_type_1): If we register a main variant properly
238         initialize the leader to ourselves.
239
240 2011-05-19  Tom de Vries  <tom@codesourcery.com>
241
242         PR target/45098
243         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
244         get_loop_invariant_expr_id.
245         (get_loop_invariant_expr_id): Use get_expr_id.
246         (parm_decl_cost): New function.
247         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
248         Improve bound cost estimation.  Use different inv_expr_id for elim and
249         express cases.
250
251 2011-05-19  Tom de Vries  <tom@codesourcery.com>
252
253         PR target/45098
254         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
255         cost_base.cost == 0.
256
257 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
258
259         PR target/49002
260         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
261         Properly handle load cast.
262
263 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
264
265         PR tree-optimization/49039
266         * tree-vrp.c (extract_range_from_binary_expr): For
267         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
268         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
269
270 2011-05-18  Tom de Vries  <tom@codesourcery.com>
271
272         PR target/45098
273         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
274
275 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
276
277         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
278         (*tls_global_dynamic_64): Ditto.
279         (*tls_local_dynamic_base_32_gnu): Ditto.
280         (*tls_local_dynamic_base_64): Ditto.
281         (tls_initial_exec_64_sun): Ditto.
282
283 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
284
285         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
286         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
287         bf592-none.
288         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
289         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
290         * config/bfin/bfin.c (bfin_cpus): Add bf592.
291         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
292         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
293         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
294         * config/bfin/elf.h (LIB_SPEC): Add bf592.
295
296 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
297
298         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
299         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
300         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
301         target_thread_pointer, arm_structure_size_boundary, struct
302         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
303         struct abi_name, arm_all_abis): Remove.
304         (arm_option_override) Don't process most enumerated option values here.
305         Don't process target_fpe_name here.  Work with integer not string for
306         structure size boundary; use separate diagnostics for each case.
307         * config/arm/arm.h (enum float_abi_type, enum
308         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
309         to arm-opts.h.
310         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
311         arm_structure_size_boundary): Remove.
312         * config/arm/arm.opt (mabi=): Use Enum and Init.
313         (arm_abi_type): New Enum and EnumValue entries.
314         (mfloat-abi=): Use Enum and Init.
315         (float_abi_type): New Enum and EnumValue entries.
316         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
317         (mfp16-format=): Use Enum and Init.
318         (arm_fp16_format_type): New Enum and EnumValue entries.
319         (mstructure-size-boundary=): Use UInteger and Init.
320         (mtp=): Use Enum and Init.
321         (arm_tp_type): New Enum and EnumValue entries.
322
323 2011-05-18  Richard Guenther  <rguenther@suse.de>
324
325         PR tree-optimization/49018
326         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
327         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
328         gimple_has_side_effects.
329
330 2011-05-18  Richard Guenther  <rguenther@suse.de>
331
332         * gimple.c (gimple_register_type_1): New function, split out from ...
333         (gimple_register_type): ... here.  Avoid infinite recursion.
334
335 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
336
337         PR tree-optimization/41881
338         * tree-vectorizer.h (struct _loop_vec_info): Add new field
339         reduction_chains along with a macro for its access.
340         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
341         (destroy_loop_vec_info): Free reduction chains.
342         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
343         (vect_is_slp_reduction): New function.
344         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
345         (vect_create_epilog_for_reduction): Support SLP reduction chains.
346         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
347         definition types for reduction chains.
348         (vect_supported_load_permutation_p): Don't allow permutations for
349         reduction chains.
350         (vect_analyze_slp_instance): Support reduction chains.
351         (vect_analyze_slp): Try to build SLP instance from reduction chains.
352         (vect_get_constant_vectors):  Handle reduction chains.
353         (vect_schedule_slp_instance): Mark the first statement of the
354         reduction chain as reduction.
355
356 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
357
358         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
359         names for group elements access.
360         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
361         reduction chains as well.  Remove data reference and interleaving
362         related words from the fields names.
363         * tree-vect-loop.c (vect_transform_loop): Use new names for group
364         elements access.
365         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
366         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
367         vect_update_interleaving_chain, vect_same_range_drs,
368         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
369         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
370         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
371         vect_analyze_group_access, vect_analyze_data_ref_access,
372         vect_create_data_ref_ptr, vect_transform_strided_load,
373         vect_record_strided_load_vectors): Likewise.
374         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
375         vect_model_load_cost, vectorizable_store, vectorizable_load,
376         vect_remove_stores, new_stmt_vec_info): Likewise.
377         * tree-vect-slp.c (vect_build_slp_tree,
378         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
379
380 2011-05-18  Richard Guenther  <rguenther@suse.de>
381
382         PR middle-end/48989
383         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
384         operand verification.
385         (verify_gimple_assign_binary): Likewise.
386         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
387         to non-1-precision BOOLEAN_TYPEs.
388
389 2011-05-18  Tom de Vries  <tom@codesourcery.com>
390
391         PR target/45098
392         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
393
394 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
395
396         PR tree-optimization/49000
397         * tree-ssa.c (execute_update_addresses_taken): Call
398         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
399         be rewritten and decl has been marked for renaming, reset
400         the debug stmt.
401
402 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
403
404         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
405         enum_opts_set when testing if attributes have set -mfpmath=.
406
407 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
408
409         * config/mips/mips.c (mips_handle_option): Remove unused variable.
410
411 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
412
413         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
414         info->entry with 0
415         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
416         id.transform_lang_insert_block with NULL.
417
418 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
419
420         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
421         (output_fp_compare): Change args 3 and 4 to bool.
422         (ix86_expand_call): Change arg 6 to bool.
423         (ix86_attr_length_immediate_default): Change arg 2 to bool.
424         (ix86_attr_length_vex_default): Change arg 3 to bool.
425         * config/i386/i386.md: Update all uses.
426         * config/i386/i386.c: Ditto.
427         (ix86_flags_dependent): Change return type to bool.
428
429 2011-05-17  Richard Guenther  <rguenther@suse.de>
430
431         * gimple.c (type_hash_pair_compare): Fix comparison.
432
433 2011-05-17  Richard Guenther  <rguenther@suse.de>
434
435         * gimple.c (iterative_hash_gimple_type): Simplify singleton
436         case some more, fix final hash value of the non-singleton case.
437
438 2011-05-17  Richard Guenther  <rguenther@suse.de>
439
440         PR bootstrap/49013
441         Revert
442         2011-05-16  Richard Guenther  <rguenther@suse.de>
443
444         * gimple.c (gimple_types_compatible_p_1): Use names of the
445         type itself, not its main variant.
446         (iterative_hash_gimple_type): Likewise.
447
448 2011-05-17  Richard Guenther  <rguenther@suse.de>
449
450         * gimple.c (gimple_register_canonical_type): Use the main-variant
451         leader for computing the canonical type.
452
453 2011-05-17  Nick Clifton  <nickc@redhat.com>
454
455         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
456         moves.
457
458         * config/rx/rx.md: Add peephole to remove redundant extensions
459         after loads.
460         (bitset_in_memory): Use rx_restricted_mem_operand.
461         (bitinvert_in_memory): Likewise.
462         (bitclr_in_memory): Likewise.
463
464 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
465             Nick Clifton  <nickc@redhat.com>
466
467         * config/rx/rx.md: Add peepholes to match a register move followed
468         by a comparison of the moved register.  Replace these with an
469         addition of zero that does both actions in one instruction.
470
471 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
472
473         PR target/48986
474         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
475         predicate to allow CONST_INT.
476         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
477
478 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
479
480         * opts-common.c (opt_enum_arg_to_value): New.
481         * opts.h (opt_enum_arg_to_value): Declare.
482         * config/i386/i386.opt (fpmath): Remove.
483         (mfpmath=): Use Enum, Init and Save.
484         (fpmath_unit): New Enum and EnumValue entries.
485         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
486         name for function fpmath state.
487         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
488         * config/i386/i386.c: Include diagnostic.h.
489         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
490         (ix86_target_string): Take enum fpmath_unit value instead of string.
491         (ix86_debug_options): Update call to ix86_target_string.
492         (ix86_option_override_internal): Don't process fpmath strings here.
493         (x86_function_specific_save, ix86_function_specific_restore):
494         Don't handle fpmath state specially.
495         (ix86_function_specific_print): Pass fpmath state to
496         ix86_target_string instead of printing in this function.
497         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
498         Handle enum attributes.
499         (IX86_ATTR_ENUM, ix86_opt_enum): New.
500         (ix86_valid_target_attribute_tree): Update option_strings
501         handling.  Handle fpmath as enum option.
502         (ix86_can_inline_p): Update field names for function fpmath state.
503         (ix86_expand_builtin): Update call to ix86_target_string.
504         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
505         (ix86_fpmath): Remove.
506         * config/i386/t-i386 (i386.o): Update dependencies.
507
508 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
509
510         PR preprocessor/48677
511         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
512         from decoded_options[0], not from itself.
513
514 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
515
516         * config/i386/constraints.md (z): New constraint.
517         * config/i386/i386.c (c): New mode attribute.
518         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
519         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
520         constraint for operand 0.
521         (*call_vzeroupper): Ditto.
522         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
523         (*call_rex64_ms_sysv_vzeroupper): Ditto.
524         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
525         Use "lzm" constraint for operand 0.
526         (*call_pop_vzeroupper): Ditto.
527         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
528         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
529         constraint for operand 0.
530         (*sibcall_vzeroupper): Ditto.
531         (*sibcall_rex64_ms_sysv): Ditto.
532         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
533         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
534         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
535         (*sibcall_pop_vzeroupper): Ditto.
536         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
537         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
538         mode iterator.  Use "<c>zm" constraint for operand 1.
539         (*call_value_vzeroupper): Ditto.
540         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
541         for operand 1.
542         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
543         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
544         *call_value_pop_1.  Use "lzm" constraint for operand 1.
545         (*call_value_pop_vzeroupper): Ditto.
546         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
547         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
548         mode iterator.  Use "Uz" constraint for operand 1.
549         (*sibcall_value_vzeroupper): Ditto.
550         (*sibcall_value_rex64_ms_sysv): Ditto.
551         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
552         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
553         constraint for operand 1.
554         (*sibcall_value_pop_vzeroupper): Ditto.
555         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
556         and "z" constraint for operand 2.
557         (*tls_global_dynamic_32_gnu): Ditto.
558         (*tls_local_dynamic_base_32_gnu): Ditto.
559         (*tls_local_dynamic_base_64): Ditto.
560         (*tls_local_dynamic_32_once): Ditto.
561         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
562         Update all callers.
563         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
564
565 2011-05-16  Richard Guenther  <rguenther@suse.de>
566
567         * gimple.c (gimple_types_compatible_p_1): Use names of the
568         type itself, not its main variant.
569         (iterative_hash_gimple_type): Likewise.
570
571 2011-05-16  Richard Guenther  <rguenther@suse.de>
572
573         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
574         always visit pointer target and function result and argument types.
575
576 2011-05-16  Jason Merrill  <jason@redhat.com>
577
578         PR c++/48999
579         * tree-inline.c (copy_statement_list): Put back recursion.
580
581 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
582
583         PR target/27663
584         PR target/41076
585         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
586         * config/avr/avr.md ("*ior<mode>qi.byte0",
587         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
588
589 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
590
591         PR target/45099
592         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
593         register is needed for a function argument.
594
595 2011-05-16  Richard Guenther  <rguenther@suse.de>
596
597         * gimple.c (struct type_hash_pair): New type.
598         (type_hash_pair_compare): New function.
599         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
600
601 2011-05-16  Revital Eres  <revital.eres@linaro.org>
602
603         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
604
605 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
606
607         * config/i386/i386.md (floating point move splitters): Fix
608         usage of standard_80387_constant_p.
609         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
610
611 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
612
613         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
614
615 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
616
617         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
618         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
619         (tree_ssa_lim_finalize): Likewise.
620
621 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
622
623         * config/i386/constraint.md (Yd, Yx): New register constraints.
624         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
625         Yd conditional register constraint.
626         (*movtf_internal): Use standard_sse_constant_opcode.
627         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
628         Yx conditional register constraint.
629         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
630         Yd conditional register constraint.  Use standard_sse_constant_p to
631         check for valid SSE constants and call standard_sse_constant_opcode to
632         output SSE insn.
633         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
634         constants and call standard_sse_constant_opcode to output SSE insn.
635         * config/i386/i386.c (ix86_option_ovverride_internal): Set
636         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
637         optimize_size is set.
638         (standard_sse_constant_opcode): Output conditional AVX insn templates.
639
640 2011-05-14  Tobias Burnus  <burnus@net-b.de>
641
642         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
643
644 2011-05-13  Martin Jambor  <mjambor@suse.cz>
645
646         * ipa-prop.c (ipa_cst_from_jfunc): New function.
647         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
648         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
649         (evaluate_conditions_for_ipcp_clone): Removed.
650         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
651         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
652         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
653
654 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
655
656         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
657         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
658         lieu of MAY_HAVE_DEBUG_STMTS.
659         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
660         debug statements if !MAY_HAVE_DEBUG_STMTS.
661
662 2011-05-13  Martin Thuresson  <martint@google.com>
663
664         PR gcov-profile/47793
665         * libgcov.c (gcov_exit): Support relative profile paths.
666         * doc/invoke.texi (-fprofile-dir): Update for above change.
667
668 2011-05-13  Richard Guenther  <rguenther@suse.de>
669
670         * gimple.c (gimple_canonical_types_compatible_p): Do not use
671         type-pair caching, do not compare hashes.
672
673 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
674
675         PR middle-end/48965
676         * tree-cfg.c (edge_to_cases_cleanup): Return true.
677         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
678
679 2011-05-13  Kai Tietz  <ktietz@redhat.com>
680
681         * gimplify.c (gimplify_expr): Make sure operand is boolified.
682         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
683         compatible type for TRUTH_NOT_EXPR.
684
685 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
686
687         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
688         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
689         can_create_pseudo_p ().
690
691 2011-05-13  Richard Guenther  <rguenther@suse.de>
692
693         PR lto/48978
694         * gimple.c (iterative_hash_gimple_type): Revert change in
695         pointer target and function result and argument hashing.
696
697 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
698
699         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
700         (*movxf_internal_nointeger): Ditto.
701         (*movdf_internal_rex64): Ditto.
702         (*movdf_internal): Ditto.
703         (*movdf_internal_nointeger): Ditto.
704         (*movsf_internal): Ditto.
705         (sincos splitters): Use can_create_pseudo ().
706
707 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
708
709         * config/i386/i386-opts.h: New.
710         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
711         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
712         ix86_section_threshold): Remove.
713         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
714         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
715         OPT_mbranch_cost_.
716         (ix86_option_override_internal): Don't decode strings for options
717         other than -march=, -mtune= and -mfpmath=.  Don't allow for
718         __attribute__ uses in remaining diagnostics for options with
719         string arguments.  Don't check for integer arguments being negative.
720         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
721         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
722         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
723         ix86_branch_cost, ix86_section_threshold): Remove.
724         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
725         HeaderInclude.
726         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
727         but not Var.
728         (masm=): Use Enum and Init.
729         (asm_dialect): New Enum and EnumValue entries.
730         (mbranch-cost=): Use UInteger.
731         (mlarge-data-threshold=): Use UInteger and Init.
732         (mcmodel=): Use Enum and Init.
733         (cmodel): New Enum and EnumValue entries.
734         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
735         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
736         mregparm=): Use UInteger.
737         (mstringop-strategy=): Use Enum and Init.
738         (stringop_alg): New Enum and EnumValue entries.
739         (mtls-dialect=): Use Enum and Init.
740         (tls_dialect): New Enum and EnumValue entries.
741         (mabi=): Use Enum and Init.
742         (calling_abi): New Enum and EnumValue entries.
743         (mveclibabi=): Use Enum and Init.
744         (ix86_veclibabi): New Enum and EnumValue entries.
745
746 2011-05-13  Nick Clifton  <nickc@redhat.com>
747
748         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
749         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
750
751 2011-05-13  Kai Tietz  <ktietz@redhat.com>
752
753         PR middle-end/48984
754         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
755         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
756         (gimple_boolify): Check for cast for boolean_type_node instead for
757         BOOLEAN_TYPE.
758
759 2011-05-13  Richard Guenther  <rguenther@suse.de>
760
761         PR tree-optimization/48172
762         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
763         multiplying by number of iterations for equal step.
764         (vect_create_cond_for_alias_checks): Likewise.
765
766 2011-05-13  Andreas Schwab  <schwab@redhat.com>
767
768         * configure.ac: Use AS_HELP_STRING throughout.
769         * configure: Regenerate.
770
771 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
772
773         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
774         (ix86_emit_restore_regs_using_mov): Likewise.
775         (ix86_emit_restore_sse_regs_using_mov): Likewise.
776
777 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
778
779         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
780         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
781         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
782         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
783         RTX_OK_FOR_OLO10_P): ...here.
784         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
785         SYMBOLIC_CONST.
786
787 2011-05-12  Kai Tietz  <ktietz@redhat.com>
788
789         * gimplify.c (gimple_boolify): Re-boolify expression
790         arguments even if expression type is of kind BOOLEAN_TYPE.
791         (gimplify_boolean_expr): Removed.
792         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
793         and XOR. Additional take care that we keep expression's type.
794         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
795         of TRUTH_AND|OR|XOR_EXPR.
796
797 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
798
799         PR tree-optimization/48975
800         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
801         on all bbs here and free and clear ifc_bbs at the end.
802
803 2011-05-12  Richard Guenther  <rguenther@suse.de>
804
805         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
806         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
807         until after simple checks.
808         (gimple_types_compatible_p): Likewise.
809         (iterative_hash_gimple_type): Always hash pointer targets
810         and function return and argument types.
811         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
812         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
813         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
814         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
815         completely in the simple compare section.
816         (gimple_register_canonical_type): Query the cache again after
817         registering.
818
819 2011-05-12  Richard Guenther  <rguenther@suse.de>
820
821         PR tree-optimization/48172
822         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
823         the number of iterations from the segment size calculation.
824         (vect_create_cond_for_alias_checks): Adjust.
825
826 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
827
828         PR debug/48967
829         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
830         if validate_subreg fails.
831
832 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
833
834         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
835         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
836         early.
837
838 2011-05-12  DJ Delorie  <dj@redhat.com>
839
840         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
841         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
842         created builtin into rx_builtins array.
843         (rx_builtin_decl): New function.
844         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
845
846 2011-05-12  DJ Delorie  <dj@redhat.com>
847             Nick Clifton  <nickc@redhat.com>
848
849         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
850         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
851         (rx_is_legitimate_address): Add pre-decrement and post-increment
852         addressing in HImode and QImode.  Fix test for out of range
853         REG+INT addressing.
854         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
855         (rx_align_for_label): Test label before extracting its usage count.
856         (rx_adjust_insn_lengths): Fix selection of insn codes.
857         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
858
859 2011-05-11  Jason Merrill  <jason@redhat.com>
860
861         * tree.c (type_hash_canon): Use struct tree_type_non_common.
862
863 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
864
865         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
866         reindent the subsequent block.
867
868 2011-05-11  Satoru Takabayashi  <satorux@google.com>
869             Paul Pluzhnikov  <ppluzhnikov@google.com>
870
871         * doc/install.texi (Configuration): Document --with-linker-hash-style.
872         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
873         * config.in: Add LINKER_HASH_STYLE.
874         * configure.ac: Add --with-linker-hash-style.
875         * configure: Regenerate.
876
877 2011-05-11  Richard Guenther  <rguenther@suse.de>
878
879         PR middle-end/48964
880         * gimple.c (iterative_hash_canonical_type): Fix typo.
881
882 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
883
884         * config/i386/i386.c (legitimize_tls_address)
885         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
886         expanders directly for TARGET_GNU2_TLS.  Determine pic and
887         __tls_get_addr symbol reference here.  Update call to
888         gen_tls_global_dynamic_{32,64} for added arguments.
889         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
890         expanders directly for TARGET_GNU2_TLS.  Determine
891         __tls_get_addr symbol reference here.  Update call to
892         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
893         unique UNSPEC REG_EQUIV to libcall block.
894         (ix86_tls_get_addr): Declare static.
895         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
896         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
897         Do not determine pic and __tls_get_addr symbol reference here. Do not
898         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
899         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
900         (tls_global_dynamic_64): Add operand 2.  Do not determine
901         __tls_get_addr symbol reference here.  Do not call
902         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
903         (tls_local_dynamic_base64): Ditto for operand 1.
904
905 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
906
907         * function.c (expand_function_start): Initialize stack_check_probe_note
908         only if the generic stack checking mechanism is used.
909
910 2011-05-11  Richard Guenther  <rguenther@suse.de>
911
912         PR tree-optimization/15256
913         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
914         (A & B) | C, combine (A op CST1) op CST2.
915         (tree_ssa_forward_propagate_single_use_vars): Only bother to
916         visit assigns that have uses.
917
918 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
919
920         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
921         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
922         (unpack_ts_type_common_value_fields): ...this.  Update comment.
923         (unpack_value_fields): Adjust for renaming.
924         (lto_input_ts_type_tree_pointers): Split into...
925         (lto_input_ts_type_common_tree_pointer): ...this and...
926         (lto_input_ts_type_non_common_tree_pointers): ...this.
927         (lto_input_tree_pointers): Adjust for above split.
928         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
929         (pack_ts_type_common_value_fields): ...this.  Update comment.
930         (lto_output_ts_type_tree_pointers): Split into...
931         (lto_output_ts_type_common_tree_pointers): ...this and...
932         (lto_output_ts_type_non_common_tree_pointers): ...this.
933         (lto_output_tree_pointers): Adjust for above split.
934         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
935         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
936         * stor-layout.c (vector_type_mode): Adjust location of mode field.
937         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
938         Define.
939         (struct tree_type): Split into...
940         (struct tree_type_common: ...this and...
941         (struct tree_type_with_lang_specific): ...this and...
942         (struct tree_type_non_common): ...this.  Adjust accessor macros
943         accordingly.
944         (TYPE_VALUES_RAW): Define.
945         (union tree_node): Update for above changes.
946         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
947         TS_TYPE_NON_COMMON.
948         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
949         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
950         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
951         * treestructu.def (TS_TYPE): Remove.
952         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
953         Define.
954
955 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
956
957         PR debug/48159
958         * tree-ssa.c (reset_debug_uses): New function.
959         * tree-flow.h (reset_debug_uses): New prototype.
960         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
961         * tree-loop-distribution.c (generate_loops_for_partition): Call
962         reset_debug_uses on the stmts that will be removed.  Keep around
963         all debug stmts, don't count them as bits in partition bitmap.
964         (generate_builtin): Don't count debug stmts or labels as bits in
965         partition bitmap.
966
967 2011-05-11  Richard Guenther  <rguenther@suse.de>
968
969         * gimple.c (gimple_type_hash_1): Merge with ...
970         (gimple_type_hash): ... this.
971         (gtc_visit): Remove mode parameter and simplify accordingly.
972         (gimple_types_compatible_p_1): Likewise.
973         (gimple_types_compatible_p): Likewise.
974         (iterative_hash_gimple_type): Likewise.
975         (visit): Likewise.
976         (gimple_type_eq): Adjust.
977
978 2011-05-11  Revital Eres  <revital.eres@linaro.org>
979
980         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
981         enters the branch create an anti edge in the opposite direction
982         to prevent the creation of reg-moves.
983         * modulo-sched.c: Adjust comment to reflect the fact we are
984         scheduling closing branch.
985         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
986         (stage_count): New field in struct partial_schedule.
987         (calculate_stage_count): New function.
988         (normalize_sched_times): Rename to reset_sched_times and handle
989         incrementing the sched time of the nodes by a constant value
990         passed as parameter.
991         (duplicate_insns_of_cycles): Skip closing branch.
992         (sms_schedule_by_order): Schedule closing branch.
993         (ps_insn_find_column): Handle closing branch.
994         (sms_schedule): Call reset_sched_times and adjust the code to
995         support scheduling of the closing branch.
996         (ps_insert_empty_row): Update calls to normalize_sched_times
997         and rotate_partial_schedule functions.
998
999 2011-05-11  Richard Guenther  <rguenther@suse.de>
1000
1001         PR middle-end/48953
1002         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1003
1004 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1005
1006         * opts.c (finish_options): Move warning settings from process_options.
1007         * toplev.c (process_options): Move warning settings to finish_options.
1008
1009 2011-05-11  Richard Guenther  <rguenther@suse.de>
1010
1011         PR tree-optimization/18041
1012         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1013         (simplify_bitwise_binary): ... this.  Handle operand conversions
1014         by applying them to the result instead.
1015         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1016
1017 2011-05-11  Richard Guenther  <rguenther@suse.de>
1018
1019         * gimple.c (gimple_canonical_types_compatible_p): Split out
1020         from gimple_types_compatible_p and friends.  Do not recurse
1021         to pointed-to types.
1022         (gimple_canonical_type_eq): Use it.
1023         (iterative_hash_canonical_type): Split out from
1024         iterative_hash_gimple_type and friends.  Do not recurse
1025         to pointed-to types.
1026         (gimple_canonical_type_hash): Use it, allocate the hash here.
1027
1028 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1029
1030         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1031         recognizing doloop.
1032
1033 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1034
1035         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1036         instead of PREV_INSN.
1037
1038 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1039
1040         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1041         * loop-doloop.c (doloop_condition_get): Likewise.
1042         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1043         (doloop_end): New.
1044         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1045
1046 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1047
1048         * tree.def (CASE_LABEL_EXPR): Add an operand.
1049         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1050
1051 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1052
1053         * c-decl.c (c_override_global_bindings_to_false): Remove.
1054         (global_bindings_p): Don't check
1055         c_override_global_bindings_to_false.
1056         * c-tree.h (c_override_global_bindings_to_false): Remove.
1057         * c-typeck.c (composite_type): Don't set
1058         c_override_global_bindings_to_false.
1059
1060 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1061
1062         PR target/48857, 48495
1063         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1064         (VSX_MODE): Ditto.
1065         (VSX_MOVE_MODE): Ditto.
1066         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1067         VSX vector types.  Add V2DImode.
1068         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1069         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1070         (MODES_TIEABLE_P): Ditto.
1071
1072         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1073         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1074         VSX_VECTOR_MODE.
1075         (init_cumulative_args): Ditto.
1076         (rs6000_function_arg_boundary): Ditto.
1077         (rs6000_function_arg_advance_1): Ditto.
1078         (rs6000_function_arg): Ditto.
1079         (rs6000_function_ok_for_sibcall): Ditto.
1080         (emit_frame_save): Ditto.
1081         (rs6000_function_value): Ditto.
1082         (rs6000_libcall_value): Ditto.
1083
1084 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1085
1086         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1087         i386/darwin-lib.h to $libgcc_tm_file.
1088         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1089
1090 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1091
1092         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1093
1094 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1095
1096         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1097         * config/rs6000/rs6000-tables.opt: New file (generated).
1098         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1099         rs6000/rs6000-tables.opt to extra_options.
1100         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1101         * config/rs6000/rs6000.c (rs6000_select): Remove.
1102         (processor_target_table): Move contents to rs6000-cpus.def.
1103         (darwin_rs6000_override_options): Check
1104         global_options_set.x_rs6000_cpu_index instead of
1105         rs6000_select[1].string.
1106         (rs6000_option_override_internal): Likewise.
1107         (rs6000_handle_option): Don't assert that global structures are in
1108         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1109         (rs6000_default_cpu): New variable.
1110         (rs6000_file_start): Set it instead of local default_cpu.  Check
1111         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1112         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1113         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1114         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1115         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1116         rs6000_select): Remove.
1117         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1118         Remove.
1119         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1120         * config/rs6000/t-rs6000
1121         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1122         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1123         global_options_set.x_rs6000_cpu_index instead of
1124         rs6000_select[1].string.
1125         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1126         global_options_set.x_rs6000_cpu_index instead of
1127         rs6000_select[1].string.
1128
1129 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1130
1131         * config.gcc (libgcc_tm_file): Define instead of including files
1132         from ../../libgcc/config/ in tm_file.
1133         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1134         * configure: Regenerate.
1135         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1136         libgcc_tm.h, cs-libgcc_tm.h): New.
1137         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1138         (clean): Remove libgcc_tm.h.
1139         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1140         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1141         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1142
1143 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1144
1145         PR target/48896
1146         * config/avr/avr.c (avr_ret_register): Return unsigned int
1147         instead of int.
1148         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1149         it to avr_libcall_value.
1150         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1151         expand_expr.
1152         (avr_expand_binop_builtin): Ditto.
1153         (avr_expand_unop_builtin): Ditto.
1154
1155 2011-05-10  DJ Delorie  <dj@redhat.com>
1156
1157         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1158         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1159         * config/rx/rx.c (rx_align_for_label): Add label and
1160         uses_threshold parameters.  Do not align when the label is not
1161         used enough.
1162         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1163
1164 2011-05-10  Richard Guenther  <rguenther@suse.de>
1165
1166         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1167         a series of conversions and apply foldings similar to what
1168         fold-const does.
1169         (tree_ssa_forward_propagate_single_use_vars): Call it.
1170
1171 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1172
1173         PR tree-optimization/48611
1174         PR tree-optimization/48794
1175         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1176         referenced from RESX or EH_DISPATCH arguments.
1177
1178         PR debug/48928
1179         * dfp.c (decimal_to_decnumber): Handle conversion from
1180         dconst{1,2,m1,half}.
1181
1182 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1183
1184         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1185         for !flag_prefer_avx128.
1186         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1187
1188 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1189
1190         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1191         (fold_ternary_loc): Use expr_location_or.
1192
1193 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1194
1195         PR debug/48853
1196         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1197         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1198         Pmode and mem_mode is not VOIDmode.
1199
1200 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1201
1202         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1203         TYPE_QUAL_RESTRICT): Convert to enum.
1204
1205 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1206
1207         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1208         (const_pow2_1_to_8_operand): Ditto.
1209         (const_pow2_1_to_128_operand): Ditto.
1210         (const_pow2_1_to_32768_operand): Ditto.
1211         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1212         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1213         in insn constraint to check integer value of operand 3.
1214         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1215
1216         (PINSR_MODE): New mode iterator.
1217         (sse2p4_1): New mode attribute.
1218         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1219         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1220         iterator.  Use const_int_operand instead of
1221         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1222         exact_log2 in insn constraint to check integer value of operand 3.
1223
1224 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1225
1226         * config/i386/sse.md (blendbits): Remove mode attribute.
1227         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1228         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1229         Check integer value of operand 3 in insn constraint.
1230
1231 2011-05-09  Richard Guenther  <rguenther@suse.de>
1232
1233         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1234         for diagnostics.
1235         (lto_symtab_merge): Likewise.  Do not register types here.
1236         (lto_symtab_merge_decls_2): Likewise.
1237         (lto_symtab_merge_decls_1): Likewise.
1238         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1239         * gimple.c (enum gtc_mode): Declare.
1240         (gimple_types_compatible_p): Make static.
1241
1242 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1243
1244         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1245         temporary register to match Pmode.
1246
1247 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1248
1249         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1250         and *vec_concatv4si_1_avx.
1251
1252 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1253
1254         PR rtl-optimization/48927
1255         * ira-conflicts.c (commutative_constraint_p): Use
1256         recog_data.alternative_enabled_p to disable alternatives where
1257         "enabled" attribute is false.
1258         (get_dup_num): Ditto.
1259         * ira-lives.c (single_reg_class): Ditto.
1260         (ira_implicitly_set_insn_hard_regs): Ditto.
1261
1262 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1263
1264         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1265         (dataflow_set_preserve_mem_locs): Likewise.
1266
1267 2011-05-09  Philipp Thomas  <pth@suse.de>
1268
1269         * config/mep/mep.c (mep_validate_vliw): Syntax description
1270         should not be translated.
1271
1272 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1273
1274         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1275         * config/mips/mips-tables.opt: New file (generated).
1276         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1277         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1278         MIPS_ARCH_OPTION_NATIVE): Define.
1279         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1280         mips-cpus.def.
1281         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1282         mips_parse_cpu): Remove.
1283         (mips_cpu_info_from_opt, mips_default_arch): New.
1284         (mips_handle_option): Don't assert that global structures are in
1285         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1286         (mips_option_override): Use new variables and functions to set
1287         state of these options.  Use strcmp to check for individual CPU names.
1288         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1289         definition.
1290         * config/mips/mips.opt (march=): Use ToLower and Enum.
1291         (mips): Use ToLower, Enum and Var.
1292         (mtune=): Use ToLower and Enum.
1293         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1294
1295 2011-05-08  Jan Hubicka  <jh@suse.cz>
1296
1297         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1298         Arrange type pairs to be UID ordered.
1299         (gimple_lookup_type_leader): Make inline.
1300
1301 2011-05-09  Nick Clifton  <nickc@redhat.com>
1302
1303         PR target/48899
1304         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1305         PROCESSOR_DEFAULT.
1306
1307         PR target/48897
1308         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1309         variable 's'.
1310
1311 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1312
1313         * combine.c (simplify_comparison): Abstract out parts into...
1314         (simplify_compare_const): ... new function.
1315         (try_combine): Generalize parallel arithmetic/compare combining
1316         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1317
1318 2011-05-08  Jan Hubicka  <jh@suse.cz>
1319
1320         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1321         (cgraph_create_virtual_clone): Call hooks once virtual clone
1322         is finished.
1323         * cgraph.h (cgraph_clone_node): Update prototype.
1324         * ipa-cp.c (ipcp_estimate_growth): Use
1325         estimate_ipcp_clone_size_and_time.
1326         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1327         * lto-cgraph.c (input_node): Update.
1328         * ipa-inline.c (recursive_inlining): Update.
1329         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1330         (evaluate_conditions_for_known_args): Break out from ...
1331         (evaluate_conditions_for_edge): ... here.
1332         (evaluate_conditions_for_ipcp_clone): New function.
1333         (inline_node_duplication_hook): Update clone summary based
1334         on parameter map.
1335         (estimate_callee_size_and_time): Rename to ...
1336         (estimate_node_size_and_time): take NODE instead of EDGE;
1337         take POSSIBLE_TRUTHS as argument.
1338         (estimate_callee_size_and_time): Update.
1339         (estimate_ipcp_clone_size_and_time): New function.
1340         (do_estimate_edge_time): Update.
1341
1342 2011-05-08  Richard Guenther  <rguenther@suse.de>
1343
1344         PR middle-end/48908
1345         PR middle-end/48905
1346         * expmed.c (expand_shift_1): Compute adjusted constant shift
1347         amount manually.
1348
1349 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1350
1351         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1352
1353 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1354
1355         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1356
1357 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1358
1359         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1360
1361 2011-05-07  Jan Hubicka  <jh@suse.cz>
1362
1363         * ipa-inline-transform.c (inline_call): Account when program size
1364         decreases.
1365         * ipa-inline.c (relative_time_benefit): New function.
1366         (edge_badness): Reorganize to be power 2 based; fix thinko when
1367         computing badness for negative growth; update comments to match
1368         reality; better dumps.
1369
1370 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1371
1372         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1373         type to bool and adjust comment.
1374         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1375         (fold_mathfn_compare): Remove calls to global_bindings_p.
1376         (fold_inf_compare): Likewise.
1377         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1378         * c-tree.h (global_bindings_p): Adjust prototype.
1379         * c-decl.c (global_bindings_p): Return bool and simplify.
1380
1381 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1382
1383         PR tree-optimization/48837
1384         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1385         when accumulator transformation is performed.
1386
1387 2011-05-06  Jan Hubicka  <jh@suse.cz>
1388
1389         * i386.h (ix86_tune_indices): Add
1390         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1391         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1392         * i386.c (initial_ix86_tune_features): Add
1393         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1394         (software_prefetching_beneficial_p): Remove predicate.
1395         (ix86_option_override_internal): Use new macro.
1396
1397 2011-05-06  Jan Hubicka  <jh@suse.cz>
1398
1399         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1400
1401 2011-05-06  Jan Hubicka  <jh@suse.cz>
1402
1403         * cgraph.c (cgraph_add_thunk): Create real function node instead
1404         of alias node; finalize it and mark needed/reachale; arrange visibility
1405         to be right and add it into the corresponding same comdat group list.
1406         (dump_cgraph_node): Dump thunks.
1407         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1408         cgraph_function_with_gimple_body_p,
1409         cgraph_first_function_with_gimple_body,
1410         cgraph_next_function_with_gimple_body): New functions.
1411         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1412         New macros.
1413         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1414         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1415         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1416         devirtualization when optimizing.
1417         (verify_cgraph_node): Verify thunks.
1418         (cgraph_analyze_function): Analyze thunks.
1419         (cgraph_mark_functions_to_output): Output thunks only in combination
1420         with function they are assigned to.
1421         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1422         alias into normal node.
1423         (assemble_thunks): New functoin.
1424         (cgraph_expand_function): Use it.
1425         * lto-cgraph.c (lto_output_node): Stream thunks.
1426         (input_overwrite_node): Stream in thunks.
1427         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1428         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1429         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1430         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1431         (inline_analyze_function): Do not care about thunk jump functions.
1432         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1433         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1434         cgraph_function_with_gimple_body_p.
1435         * passes.c (do_per_function_toporder): Use
1436         cgraph_function_with_gimple_body_p.
1437         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1438         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1439         (function_called_by_processed_nodes_p): Likewise.
1440
1441 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1442
1443         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1444         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1445         entries.
1446         (mabi=): Replace with separate entries for mabi=altivec,
1447         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1448         mabi=ieeelongdouble and mabi=ibmlongdouble.
1449         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1450         check for -mabi=spe without SPE ABI support here.
1451         (rs6000_handle_option): Replace OPT_mabi_ handling with
1452         OPT_mabi_altivec and OPT_mabi_spe handling.
1453
1454 2011-05-06  Cary Coutant  <ccoutant@google.com>
1455
1456         * dwarf2out.c (contains_subprogram_definition): New function.
1457         (should_move_die_to_comdat): Call it.
1458
1459 2011-05-06  Jeff Law  <law@redhat.com>
1460
1461         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1462         remove_ctrl_stmt_and_useless_edges.
1463         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1464         (fixup_template_block, thread_single_edge): Likewise.
1465         (mark_threaded_blocks): Use THREAD_TARGET.
1466
1467 2011-05-06  Alan Modra  <amodra@gmail.com>
1468
1469         PR target/48900
1470         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1471         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1472
1473 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1474
1475         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1476         constraint modifier to "r".
1477
1478 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1479
1480         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1481         fall through for OPT_mcmodel_.
1482
1483 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1484
1485         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1486         instruction sizes.
1487         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1488
1489 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1490
1491         PR target/47930
1492         * config/arm/arm.opt (marm): Document it.
1493         (mthumb): Reject negative variant.
1494
1495 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1496
1497         PR target/48898
1498         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1499         Fix typo in "ccvt" variable name.
1500
1501 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1502
1503         PR target/48895
1504         * config/vms/vms-ar.c (main): Remove cwd variable.
1505
1506 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1507
1508         PR debug/48902
1509         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1510
1511 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1512
1513         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1514         * gimplify.c (gimplify_switch_expr): Likewise.
1515         * omp-low.c (expand_omp_sections): Likewise.
1516         * tree-eh.c (lower_try_finally_switch): Likewise.
1517         (lower_eh_dispatch): Likewise.
1518         * tree.h (build_case_label): Declare.
1519         * tree.c (build_case_label): Define.
1520
1521 2011-05-05  Jason Merrill  <jason@redhat.com>
1522
1523         PR c++/40975
1524         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1525         (copy_statement_list): Don't recurse.
1526         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1527         STATEMENT_LIST.
1528
1529 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1530
1531         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1532         through from -mfpu= handling.
1533         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1534
1535 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1536
1537         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1538         POST_MODIFY.
1539
1540 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1541
1542         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1543         for 11.31.
1544         (hppa[12]*-*-hpux11*): Ditto.
1545         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1546         * config/ia64/hpux-unix2003.h: New.
1547         * config/pa/pa-hpux1131.opt: New.
1548         * config/pa/pa-hpux1131.h: New.
1549         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1550         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1551         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1552
1553 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1554
1555         PR debug/48853
1556         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1557         instead of mode as 3rd argument to recursive call.
1558         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1559         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1560         VOIDmode.
1561         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1562         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1563         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1564         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1565
1566 2011-05-05  Julian Brown  <julian@codesourcery.com>
1567
1568         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1569         parenthesis in D-register case.
1570
1571 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1572
1573         * opt-functions.awk (var_type_struct): Handle Enum options.
1574         * optc-gen.awk: Don't check range of variables of character type.
1575         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1576         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1577         rs6000_sdata_name, rs6000_explicit_options): Remove.
1578         (rs6000_option_override_internal): Check for -malign-power here.
1579         Use global_options_set instead of rs6000_explicit_options.
1580         (rs6000_parse_fpu_option): Remove.
1581         (rs6000_handle_option): Access variables via opts and opts_set
1582         pointers.  Use error_at and warning_at.  Add fall-through
1583         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1584         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1585         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1586         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1587         here.  Don't use rs6000_parse_fpu_option.
1588         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1589         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1590         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1591         (mrecip=): Use Var.
1592         (mspe): Use Var and Save.
1593         (mtraceback=): Use Enum and Var.
1594         (rs6000_traceback_type): New Enum and EnumValue entries.
1595         (mfloat-gprs=): Use Enum, Var and Save.
1596         (rs6000_float_gprs): New Enum and EnumValue entries.
1597         (mlong-double-): use Var and Save.
1598         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1599         (malign-): Use Enum and Var.
1600         (rs6000_alignment_flags): New Enum and EnumValue entries.
1601         (mfpu=): Use Enum.
1602         (fpu_type_t): New Enum and EnumValue entries.
1603         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1604         global_options_set instead of rs6000_explicit_options.
1605         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1606         global_options_set instead of rs6000_explicit_options.
1607         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1608         global_options_set instead of rs6000_explicit_options.
1609         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1610         global_options_set instead of rs6000_explicit_options.
1611         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1612         global_options_set instead of rs6000_explicit_options.
1613         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1614         global_options_set instead of rs6000_explicit_options.
1615         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1616         definition.
1617         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1618         global_options_set instead of rs6000_explicit_options.
1619         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1620         (rs6000_cmodel): New Enum and EnumValue entries.
1621         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1622         global_options_set instead of rs6000_explicit_options.
1623         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1624         (mtls-size=): Use Enum and Var.
1625         (rs6000_tls_size): New Enum and EnumValue entries.
1626
1627 2011-05-05  Michael Matz  <matz@suse.de>
1628
1629         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1630         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1631         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1632         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1633         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1634         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1635         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1636         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1637         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1638         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1639         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1640         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1641         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1642         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1643         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1644         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1645
1646 2011-05-05  Richard Guenther  <rguenther@suse.de>
1647
1648         * expmed.c (expand_variable_shift): Rename to ...
1649         (expand_shift_1): ... this.  Take an expanded shift amount.
1650         For rotates recurse directly not building trees for the shift amount.
1651         (expand_variable_shift): Wrap around expand_shift_1.
1652         (expand_shift): Adjust.
1653
1654 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1655
1656         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1657
1658 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1659
1660         * tree.h (get_pending_sizes): Remove prototype.
1661         (put_pending_size): Likewise.
1662         (put_pending_sizes): Likewise.
1663         * stor-layout.c (pending_sizes): Delete.
1664         (get_pending_sizes): Likewise.
1665         (put_pending_size): Likewise.
1666         (put_pending_sizes): Likewise.
1667         (variable_size): Do not call put_pending_size and tidy up.
1668         * function.h (struct function): Remove dont_save_pending_sizes_p.
1669         * lto-streamer-in.c (input_function): Do not stream it.
1670         * lto-streamer-out.c (output_function): Likewise.
1671         * tree-inline.c (initialize_cfun): Do not copy it.
1672         * c-decl.c (store_parm_decls): Do not set it.
1673         * omp-low.c (create_task_copyfn): Likewise.
1674         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1675
1676 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1677
1678         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1679         conditions.
1680         (*movdf_internal): Ditto.
1681         (*movdf_internal_nointeger): Ditto.
1682         (*movsf_internal): Ditto.
1683
1684 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1685
1686         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1687         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1688         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1689         (c_variable_size): Remove.
1690         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1691         call put_pending_sizes.
1692         (get_parm_info): Add parameter expr.  Use it to set
1693         arg_info->pending_sizes.
1694         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1695         get_pending_sizes.
1696         * c-parser.c (c_parser_parms_declarator): Update call to
1697         c_parser_parms_list_declarator.
1698         (c_parser_parms_list_declarator): Take parameter expr.  Update
1699         call to push_parm_decl.  Update recursive call.  Don't call
1700         get_pending_sizes.  Update calls to get_parm_info.
1701         (c_parser_objc_method_definition): Update calls to
1702         c_parser_objc_method_decl and objc_start_method_definition.
1703         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1704         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1705         grokparm.
1706         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1707         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1708         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1709
1710 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1711
1712         PR pch/45979
1713         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1714         __ARM_EABI__ hosts.
1715
1716 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1717
1718         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1719         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1720         (spu_output_mi_thunk): New function.
1721
1722 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1723
1724         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1725         targetm.asm_out.print_operand.
1726         * config/sol2.c: Include target.h.
1727
1728 2011-05-04  Jan Hubicka  <jh@suse.cz>
1729
1730         * ipa-inline.c (reset_edge_caches): New function.
1731         (update_caller_keys): Add check_inlinablity_for; do not
1732         reset edge caches; remove now unnecesary loop.
1733         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1734         (update_all_callee_keys): Likewise.
1735         (inline_small_functions): Sanity check cache; update code
1736         recomputing it.
1737
1738 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1739
1740         PR rtl-optimization/47612
1741         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1742         as the last insn of the sequence to be moved.
1743
1744 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1745
1746         PR fortran/48864
1747         * doc/invoke.texi (Ofast): Document that it
1748         enables Fortran's -fno-protect-parens.
1749
1750 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1751
1752         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1753
1754 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1755
1756         * stor-layout.c (variable_size): Do not issue errors.
1757
1758 2011-05-04  Richard Guenther  <rguenther@suse.de>
1759
1760         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1761         for array-ref indices.
1762         (tree_coverage_counter_addr): Likewise.
1763         (build_fn_info_type): Use size_int for index types.
1764         (build_gcov_info): Likewise.
1765
1766 2011-05-04  Richard Guenther  <rguenther@suse.de>
1767
1768         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1769         to build_int_cst.
1770         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1771         for constructor indices.
1772         (push_init_level): Likewise.
1773
1774 2011-05-04  Richard Guenther  <rguenther@suse.de>
1775
1776         * explow.c (promote_mode): Move variable declarations before code.
1777
1778 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1779
1780         * tree.h (build_function_type_array): Declare.
1781         (build_varargs_function_type_array): Declare.
1782         (build_function_type_vec, build_varargs_function_type_vec): Define.
1783         * tree.c (build_function_type_array_1): New function.
1784         (build_function_type_array): New function.
1785         (build_varargs_function_type_array): New function.
1786
1787 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1788
1789         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1790         before setting STMT_VINFO_TYPE.
1791
1792 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1793
1794         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1795         instead of spu_pass_by_reference.
1796
1797 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1798
1799         * calls.c (emit_library_call_value_1): Invoke
1800         promote_function_mode hook on libcall arguments.
1801         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1802         argument being NULL.
1803         * targhooks.c (default_promote_function_mode): Lisewise.
1804         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1805         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1806
1807         * doc/tm.texi: Document that TYPE argument might be NULL.
1808
1809 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1810
1811         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1812
1813 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1814
1815         From Bernd Schmidt
1816         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1817
1818 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1819
1820         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1821         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1822         Move ...
1823         * mips-tfile.c: ... here.
1824         Don't include coretypes.h, tm.h, filenames.h.
1825         (saber_stop): Remove definition and all calls.
1826         [__SABER__]: Remove.
1827         (__LINE__): Remove default.
1828         (Size_t, Ptrdiff_t): Remove definitions.
1829         Replace by size_t, ptrdiff_t.
1830         [!MIPS_DEBUGGING_INFO]: Remove.
1831         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1832         (progname): Add const.
1833         (STATIC): Remove.
1834         Replace all uses by static.
1835         (ALIGN_SYMTABLE_OFFSET): Remove default.
1836         * mips-tdump.c: Don't include coretypes.h, tm.h.
1837         Remove !MIPS_IS_STAB guard.
1838         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1839         $(TM_H), filenames.h dependencies.
1840         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1841
1842 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1843
1844         From Jie Zhang
1845         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1846         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1847
1848 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1849
1850         From Bernd Schmidt
1851         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1852         account and save/restore RETS.
1853         (PROFILE_BEFORE_PROLOGUE): Define.
1854         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1855         the push insn to use predecrement.
1856
1857 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1858
1859         From Jie Zhang
1860         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1861
1862 2011-05-04  Nick Clifton  <nickc@redhat.com>
1863
1864         * config/mn10300/mn10300.c: Include cfgloop.h.
1865         (DUMP): New macro.
1866         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1867         Lcc or a FLcc insn into the instruction stream.
1868         (mn10300_block_contains_call): New function.  Returns true if the
1869         given basic block contains a CALL insn.
1870         (mn10300_loop_contains_call_insn): New function.  Returns true if
1871         the given loop contains a CALL insn.
1872         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1873         to use the SETLB and Lcc or FLcc insns.
1874         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1875         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1876         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1877         disable the SETLB optimization.
1878         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1879         __SETLB__ or __NO_SETLB__.
1880         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1881         (movsf_internal): Handle MDR register.
1882         (cmpsi): Make visible.
1883         (setlb): New pattern.
1884         (Lcc): New pattern.
1885         (FLcc): New pattern.
1886
1887 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1888
1889         PR target/48860
1890         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1891         for reg<->xmm moves.
1892         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1893         (vec_concatv2di_rex64_sse): Ditto.
1894         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1895         (*vec_extractv2di_1_rex64): Ditto.
1896
1897         Revert:
1898         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1899
1900         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1901         reg<->xmm moves.
1902         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1903
1904 2011-05-04  Richard Guenther  <rguenther@suse.de>
1905
1906         * tree.h (int_const_binop): Remove notrunc argument.
1907         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1908         create integer constants that are properly truncated.
1909         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1910         (const_binop): Remove zero notrunc argument to int_const_binop.
1911         (size_binop_loc): Likewise.
1912         (fold_div_compare): Likewise.
1913         (maybe_canonicalize_comparison_1): Likewise.
1914         (fold_comparison): Likewise.
1915         (fold_binary_loc): Likewise.
1916         (multiple_of_p): Likewise.
1917         * expr.c (store_constructor): Likewise.
1918         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1919         (maybe_fold_stmt_addition): Likewise.
1920         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1921         * stor-layout.c (layout_type): Likewise.
1922         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1923         * tree-sra.c (build_ref_for_offset): Likewise.
1924         (build_user_friendly_ref_for_offset): Likewise.
1925         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1926         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1927         * tree-ssa-loop-niter.c (inverse): Likewise.
1928         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1929         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1930         * tree-switch-conversion.c (check_range): Likewise.
1931         (build_constructors): Likewise.
1932         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1933         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1934         (extract_range_from_assert): Likewise.
1935         (vrp_int_const_binop): Likewise.
1936         (extract_range_from_binary_expr): Likewise.
1937         (extract_range_from_unary_expr): Likewise.
1938         (check_array_ref): Likewise.
1939         (find_case_label_range): Likewise.
1940         (simplify_div_or_mod_using_ranges): Likewise.
1941         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1942         comparing case labels for merging.
1943
1944 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1945
1946         * dwarf2out.c (debug_str_hash_forced): Removed.
1947         (gen_label_for_indirect_string): Removed.
1948         (get_debug_string_label): Removed.
1949         (AT_string_form): Generate label directly.
1950         (output_indirect_string): Test indirect_string_node for
1951         DW_FORM_strp instead of checking label and refcount.
1952         (prune_indirect_string): Removed.
1953         (prune_unused_types): Don't check debug_str_hash_forced or
1954         call prune_indirect_string.
1955
1956 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1957
1958         PR other/48093
1959         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1960
1961 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1962
1963         PR debug/47994
1964         PR debug/47919
1965         * combine.c (try_combine): Skip debug insns at m_split tests.
1966
1967 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1968
1969         PR42288
1970         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1971         when info_section_emitted.
1972
1973 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1974
1975         * config/mips/mips-opts.h: New.
1976         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1977         to mips-opts.h.
1978         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1979         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1980         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1981         via opts pointer.
1982         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1983         mips-opts.h.
1984         (mips_abi, mips_code_readable): Don't declare.
1985         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1986         (mabi=): Use Enum and Var.
1987         (mips_abi): New Enum and EnumValue entries.
1988         (mcode-readable=): Use Enum and Var.
1989         (mips_code_readable_setting): New Enum and EnumValue entries.
1990         (mr10k-cache-barrier=): Use Enum and Var.
1991         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1992
1993 2011-05-03  Jan Hubicka  <jh@suse.cz>
1994
1995         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1996         replace hash by pointer map.
1997         (cgraph_node_set_element_def, cgraph_node_set_element,
1998         const_cgraph_node_set_element, varpool_node_set_element_def,
1999         varpool_node_set_element, const_varpool_node_set_element): Remove.
2000         (free_cgraph_node_set, free_varpool_node_set): New function.
2001         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2002         * tree-emutls.c: Free varpool node set.
2003         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2004         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2005         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2006         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2007         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2008         Move here from ipa.c; implement using pointer_map
2009         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2010         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2011         debug_cgraph_node_set, varpool_node_set_new,
2012         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2013         dump_varpool_node_set, debug_varpool_node_set):
2014         Move to ipa-uitls.c.
2015         * passes.c (ipa_write_summaries): Update.
2016
2017 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2018
2019         From Mike Frysinger:
2020         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2021         bf542/bf544/bf547/bf548/bf549.
2022
2023 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2024
2025         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2026
2027 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2028
2029         From Bernd Schmidt:
2030         * config/bfin/bfin.md (MOVCC): New mode_macro.
2031         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2032         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2033         comments from generated assembly.
2034
2035 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2036
2037         From Bernd Schmidt
2038         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2039         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2040         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2041         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2042         * config/bfin/lib1funcs.asm (___muldi3): New function.
2043
2044 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2045
2046         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2047         build_function_type_list instead of build_function_type.
2048         Rearrange initialization of `args' to do so.
2049
2050 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2051
2052         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2053         instead of build_function_type.
2054
2055 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2056
2057         * config/rs6000/rs6000.c (spe_init_builtins): Call
2058         build_function_type_list instead of build_function_type.
2059         (paired_init_builtins, altivec_init_builtins): Likewise.
2060         (builtin_function_type): Likewise.
2061
2062 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2063
2064         * config/sh/sh.c (sh_media_init_builtins): Call
2065         build_function_type_list instead of build_function_type.
2066
2067 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2068
2069         * config/sparc/sparc.c (sparc_file_end): Call
2070         build_function_type_list instead of build_function_type.
2071
2072 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2073
2074         * config/alpha/alpha.c (alpha_init_builtins): Call
2075         build_function_type_list instead of build_function_type.
2076
2077 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2078
2079         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2080         build_function_type_list instead of build_function_type.
2081
2082 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2083
2084         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2085         build_function_type_list instead of build_function_type.
2086         Delete `endlink' variable.
2087
2088 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2089
2090         * config/avr/avr.c (avr_init_builtins): Call
2091         build_function_type_list instead of build_function_type.
2092
2093 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2094
2095         * config/picochip/picochip.c (picochip_init_builtins): Call
2096         build_function_type_list instead of build_function_type.
2097         Delete `endlink' variable.
2098
2099 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2100
2101         * config/bfin/bfin.c (bfin_init_builtins): Call
2102         build_function_type_list instead of build_function_type.
2103
2104 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2105
2106         From Bernd Schmidt
2107         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2108         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2109
2110 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2111
2112         From Jie Zhang:
2113         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2114         libbffastfp overrides libgcc when -mfast-fp.
2115
2116 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2117
2118         Originally from Bernd Schmidt
2119         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2120         * config/bfin/bfin.c (override_options): Test it and error if
2121         TARGET_FDPIC.
2122
2123 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2124
2125         Originally From Bernd Schmidt
2126         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2127         FD-PIC.
2128
2129 2011-05-03  Jeff Law  <law@redhat.com>
2130
2131         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2132         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2133         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2134         than accessing AUX field directly.  Free the AUX field before
2135         clearing it.
2136         (thread_block, thread_through_loop_header): Likewise.
2137         (thread_single_edge, mark_threaded_blocks): Likewise.
2138         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2139         (register_jump_thread): Do not attempt to thread to a NULL edge.
2140
2141 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2142
2143         * function.c (init_function_start): Call decide_function_section.
2144         * varasm.c (decide_function_section): New function.
2145         (assemble_start_function): When not using
2146         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2147         or first_function_block_is_cold.
2148         * rtl.h (decide_function_section): Declare.
2149
2150 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2151             Jakub Jelinek  <jakub@redhat.com>
2152
2153         PR target/48774
2154         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2155         only succeed if req_mode is the same as set_mode.
2156
2157 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2158
2159         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2160         * genemit.c (gen_exp): Handle RETURN.
2161         * emit-rtl.c (verify_rtx_sharing): Likewise.
2162         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2163         * rtl.c (copy_rtx): RETURN is shared.
2164         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2165         (ret_rtx): New.
2166         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2167         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2168         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2169         * config/cris/cris.c (cris_expand_return): Likewise.
2170         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2171         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2172         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2173         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2174         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2175         Likewise.
2176         * config/v850/v850.c (expand_epilogue): Likewise.
2177         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2178         * config/arm/arm.md (epilogue): Likewise.
2179         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2180         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2181         variable to ret_reg.
2182
2183 2011-05-03  Richard Guenther  <rguenther@suse.de>
2184
2185         PR lto/48846
2186         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2187         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2188         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2189
2190 2011-05-03  Richard Guenther  <rguenther@suse.de>
2191
2192         * c-decl.c (grokdeclarator): Instead of looking at
2193         TREE_OVERFLOW check if the constant fits in the index type.
2194
2195 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2196
2197         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2198         (vec_store_lanes<mode><mode>): Likewise.
2199
2200 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2201
2202         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2203         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2204         convert_optab_index values.
2205         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2206         * genopinit.c (optabs): Initialize the new optabs.
2207         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2208         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2209         (expand_STORE_LANES): New functions.
2210         * tree.h (build_array_type_nelts): Declare.
2211         * tree.c (build_array_type_nelts): New function.
2212         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2213         (vect_model_load_cost): Likewise.
2214         (vect_store_lanes_supported, vect_load_lanes_supported)
2215         (vect_record_strided_load_vectors): Declare.
2216         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2217         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2218         (vect_transform_strided_load): Split out statement recording into...
2219         (vect_record_strided_load_vectors): ...this new function.
2220         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2221         (write_vector_array, create_array_ref): New functions.
2222         (vect_model_store_cost): Add store_lanes_p argument.
2223         (vect_model_load_cost): Add load_lanes_p argument.
2224         (vectorizable_store): Try to use store-lanes functions for
2225         interleaved stores.
2226         (vectorizable_load): Likewise load-lanes and loads.
2227         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2228         to vect_model_store_cost.
2229         (vect_build_slp_tree): Likewise vect_model_load_cost.
2230
2231 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2232
2233         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2234         * hooks.c (hook_bool_mode_uhwi_false): New function.
2235         * target.def (array_mode_supported_p): New hook.
2236         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2237         * doc/tm.texi: Regenerate.
2238         * stor-layout.c (mode_for_array): New function.
2239         (layout_type): Use it.
2240         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2241         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2242
2243 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2244
2245         PR target/48723
2246         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2247         for -fstack-check if the size to allocate is negative.
2248
2249 2011-05-02  Lawrence Crowl  <crowl@google.com>
2250
2251         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2252         (timevar_cond_start): New for starting a timer only when it is not
2253         already running.
2254         (timevar_cond_stop): New for stopping a timer when it was not already
2255         running.
2256
2257         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2258         (timevar_cond_start): New as above.
2259         (timevar_cond_stop): New as above.
2260
2261         * timevar.def: Add start/stop timers for compiler phases,
2262         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2263         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2264         and TV_PHASE_FINALIZE.
2265         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2266         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2267         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2268         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2269         Make unused TV_OVERLOAD into a start/stop timer.
2270
2271         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2272         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2273         to indicate that they are start/stop timers.
2274
2275         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2276         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2277         Move initialization to do_compile.
2278         (do_compile): Add initialization from above.
2279         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2280
2281         * c-decl.c (c_write_global_declarations): Add start/stop of
2282         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2283
2284         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2285         or TV_PARSE_INLINE, as appropriate.
2286         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2287         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2288
2289 2011-05-02  Jason Merrill  <jason@redhat.com>
2290
2291         PR c++/40975
2292         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2293
2294 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2295
2296         PR c/35445
2297         * c-decl.c (finish_decl): Only create a composite if the types are
2298         compatible.
2299
2300 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2301
2302         * config/fr30/fr30-protos.h (Mmode): Don't define.
2303         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2304         definition where used.
2305         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2306         define.  Expand definitions where used.
2307         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2308         Expand definitions where used.
2309         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2310         rx_function_arg, rx_function_arg_advance,
2311         rx_function_arg_boundary): Expand definitions of those macros.
2312         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2313         definition where used.
2314
2315 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2316
2317         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2318         reg<->xmm moves.
2319         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2320         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2321         with *movv2sf_internal_rex64_avx.
2322         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2323         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2324         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2325         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2326         "vex" in "prefix" attribute calculation.
2327         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2328
2329 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2330
2331         PR target/47951
2332         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2333         inputs match the output.
2334
2335 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2336
2337         PR target/47955
2338         * config/m68k/m68k.c (m68k_expand_prologue): Set
2339         current_function_static_stack_size.
2340
2341 2011-05-02   Jan Hubicka  <jh@suse.cz>
2342
2343         * lto-streamer.c (lto_streamer_cache_insert_1,
2344         lto_streamer_cache_lookup, lto_streamer_cache_create,
2345         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2346         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2347
2348 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2349
2350         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2351         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2352         config/m68k/t-opts: New files.
2353         * config/m68k/m68k-tables.opt: New file (generated).
2354         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2355         extra_options and m68k/t-opts to tmake_file.
2356         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2357         (all_isas): Initialize using m68k-isas.def.
2358         (all_microarchs): Initialize using m68k-microarchs.def.
2359         (m68k_find_selection): Remove.
2360         (m68k_handle_option): Don't assert that global structures are in
2361         use.  Use error_at.  Access variables via opts pointer.  Don't
2362         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2363         directly for -m68020-40 and -m68020-60.
2364         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2365         m68k_tune_entry here.
2366         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2367         to m68k-opts.h.
2368         (m68k_library_id_string): Remove declaration.
2369         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2370         (m68k_library_id_string): New Variable.
2371         (march=, mcpu=, mtune=): Use Enum and Var.
2372
2373 2011-05-02  Richard Guenther  <rguenther@suse.de>
2374
2375         * varasm.c (output_constructor_regular_field): Compute zero-based
2376         index with double-ints.  Make sure to ICE instead of producing
2377         wrong code.
2378         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2379         in asserts.  Properly use a signed type.
2380
2381 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2382
2383         * config/i386/sse.md (V): New mode iterator.
2384         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2385         TARGET_SSE2.
2386         (V_256): Rename from AVX256MODE.
2387         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2388         condition to all users.
2389         (VF1): Ditto.
2390         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2391         condition to all users.
2392         (VF_128): Make V4SF mode unconditional.
2393         (VF_256): Rename from AVX256MODEF2P.
2394         (VI4F_128): Rename from SSEMODE4S.
2395         (VI8F_128): Rename from SSEMODE2D.
2396         (VI4F_256): Rename from AVX256MODE8P.
2397         (VI8F_256): Rename from AVX256MODE4P.
2398         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2399         (ssescalarmodesuffix): Remove SF and DF modes.
2400         (SSEMODE124): Remove.
2401         (SSEMODE1248): Ditto.
2402         (SSEMODEF2P): Ditto.
2403         (AVXMODEF2P): Ditto.
2404         (AVXMODEFDP): Ditto.
2405         (AVXMODEFSP): Ditto.
2406         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2407         unconditional.
2408         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2409         unconditional.
2410         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2411         xop_pcmov_<mode>256.  Use V mode iterator.
2412
2413         Adjust RTX patterns globally for renamed mode attributes.
2414
2415 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2416
2417         * haifa-sched.c (sched_emit_insn): Emit insn before first
2418         non-scheduled insn.  Inform back-end about new insn.  Add
2419         new insn to scheduled_insns list.
2420
2421 2011-05-02  Richard Guenther  <rguenther@suse.de>
2422
2423         PR tree-optimization/48822
2424         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2425         (process_scc): Indicate which iteration we start.
2426
2427 2011-05-02  Jan Hubicka  <jh@suse.cz>
2428
2429         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2430         (lto_section_overrun): New.
2431         * lto-section-out.c (append_block): Rename to ...
2432         (lto_append_block): ... this one; export.
2433         (lto_output_1_stream): Move lto lto-streamer.h
2434         (lto_output_data_stream): Update.
2435         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2436         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2437         functions.
2438
2439 2011-05-02  Richard Guenther  <rguenther@suse.de>
2440
2441         * tree.c (tree_code_counts): New global array.
2442         (record_node_allocation_statistics): Count individual tree codes.
2443         (dump_tree_statistics): Dump individual code stats.
2444
2445 2011-05-01  Jan Hubicka  <jh@suse.cz>
2446
2447         * ipa-inline.c (caller_growth_limits): Fix thinko when
2448         looking for largest stack frame.
2449         * ipa-inline.h (dump_inline_summary): Declare.
2450         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2451         on stack usage.
2452         (dump_inline_summary): Export.
2453         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2454
2455 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2456
2457         * reginfo.c (memory_move_cost): Change rclass argument type form
2458         'enum reg_class' to reg_class_t.
2459         * reload.h (memory_move_cost): Update prototype.
2460         * postreload.c reload_cse_simplify_set): Change type dclass var to
2461         reg_class_t.
2462         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2463         Update prototype.
2464         (ira_allocate_and_set_costs): Change aclass argument type form
2465         'enum reg_class' to reg_class_t.
2466         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2467         Change aclass argument type to reg_class_t.
2468         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2469         to reg_class_t.
2470         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2471         memory_move_cost call.
2472
2473         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2474         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2475         Change type tmp var to reg_class_t.
2476
2477 2011-04-30  Jan Hubicka  <jh@suse.cz>
2478
2479         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2480         inlining into function with flatten attribute.
2481         (want_inline_small_function_p): Be more realistic about inlining
2482         cold calls where callee size grows.
2483
2484 2011-04-30  Jan Hubicka  <jh@suse.cz>
2485
2486         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2487         flags.
2488
2489 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2490
2491         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2492         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2493         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2494         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2495         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2496         (print_operand): Rename to...
2497         (sparc_print_operand): ...this. Make static. Adjust
2498         sparc_print_operand function call.
2499         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2500         functions.
2501
2502 2011-04-30  Jan Hubicka  <jh@suse.cz>
2503
2504         PR middle-end/48752
2505         * ipa-inline.c (early_inliner): Disable when doing late
2506         addition of function.
2507
2508 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2509
2510         * dwarf2out.c (get_address_mode): New inline.
2511         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2512         if not dwarf_strict emit
2513         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2514         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2515         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2516         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2517         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2518         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2519         mem_loc_descriptor callers.
2520         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2521         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2522         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2523         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2524         (base_types): New variable.
2525         (get_base_type_offset, calc_base_type_die_sizes,
2526         base_type_for_mode, mark_base_types, base_type_cmp,
2527         move_marked_base_types): New functions.
2528         (calc_die_sizes): Assert that die_offset is 0 or equal to
2529         next_die_offset.
2530         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2531         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2532         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2533         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2534         (gen_subprogram_die): Don't give up on call site parameters
2535         with non-integral or large integral modes.  Adjust
2536         mem_loc_descriptor callers.
2537         (prune_unused_types): Call prune_unused_types_mark on base_types
2538         vector entries.
2539         (resolve_addr): Call mark_base_types.
2540         (dwarf2out_finish): Call move_marked_base_types.
2541
2542         PR tree-optimization/48809
2543         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2544         type.
2545         (gen_inbound_check): Don't compute index_expr - range_min in utype
2546         again, instead reuse SSA_NAME initialized in build_arrays.
2547         Remove two useless gsi_for_stmt calls.
2548
2549 2011-04-29  Jeff Law  <law@redhat.com>
2550
2551         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2552
2553 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2554
2555         * cgraph.h (cgraph_postorder): Remove declaration.
2556         * ipa-utils.h (ipa_free_postorder_info): Declare.
2557         (ipa_reverse_postorder): Likewise.
2558         * cgraphunit.c: Include ipa-utils.h.
2559         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2560         * ipa-inline.c: Include ipa-utils.h.
2561         (ipa_inline): Update call to ipa_reverse_postorder.
2562         * ipa-pure-const.c (propagate_pure_const): Update call to
2563         ipa_reduced_postorder and ipa_print_order.  Call
2564         ipa_free_postorder_info to clean up.
2565         (propagate_nothrow): Likewise.
2566         * ipa-reference.c (propagate): Removed a useless call to
2567         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2568         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2569         * ipa.c: Include ipa-utils.h.
2570         (ipa_profile): Update call to ipa_reverse_postorder.
2571         (cgraph_postorder): Moved to...
2572         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2573         (ipa_utils_print_order): Renamed to ipa_print_order.
2574         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2575         comments.
2576         (ipa_free_postorder_info): New function.
2577         * passes.c: Include ipa-utils.h.
2578         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2579         (ipa_write_summaries): Likewise.
2580         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2581         (cgraphunit.o): Likewise.
2582         (ipa.o): Likewise.
2583         (ipa-inline.o): Likewise.
2584
2585 2011-04-29  Jan Hubicka  <jh@suse.cz>
2586
2587         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2588         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2589         * ipa-inline.h (clause_t): Turn into unsigned int.
2590         * ipa-inline-analysis.c (add_clause): Do more simplification.
2591         (and_predicates): Shortcut more cases.
2592         (predicates_equal_p): Move forward; check that clauses are properly
2593         ordered.
2594         (or_predicates): Shortcut more cases.
2595         (edge_execution_predicate): Rewrite as...
2596         (set_cond_stmt_execution_predicate): ... this function; handle
2597         __builtin_constant_p.
2598         (set_switch_stmt_execution_predicate): New .
2599         (compute_bb_predicates): New.
2600         (will_be_nonconstant_predicate): Update TODO.
2601         (estimate_function_body_sizes): Use compute_bb_predicates
2602         and free them later, always try to estimate if stmt is constant.
2603         (estimate_time_after_inlining, estimate_size_after_inlining):
2604         Gracefully handle optimized out edges.
2605         (read_predicate): Fix off by one error.
2606
2607 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2608
2609         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2610
2611 2011-04-27  Xinliang David Li  <davidxl@google.com>
2612
2613         * tree-profile.c (init_ic_make_global_vars): Set
2614         tls attribute on ic vars.
2615         * coverage.c (coverage_end_function): Initialize
2616         function_list with zero.
2617
2618 2011-04-29  Richard Guenther  <rguenther@suse.de>
2619
2620         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2621         for the type of the result.
2622         (fold_builtin_isascii): Likewise.
2623         (fold_builtin_toascii): Use integer_type_node where appropriate.
2624         (fold_builtin_logb): Likewise.
2625         (fold_builtin_frexp): Likewise.
2626         (fold_builtin_strstr): Likewise.
2627         (fold_builtin_strpbrk): Likewise.
2628         (fold_builtin_fputs): Likewise.
2629         (fold_builtin_sprintf): Likewise.
2630         (fold_builtin_snprintf): Likewise.
2631         (fold_builtin_printf): Likewise.
2632         (do_mpfr_remquo): Use a proper type for the assigned constant.
2633         (do_mpfr_lgamma_r): Likewise.
2634         * dwarf2out.c (resolve_one_addr): Use size_int.
2635         * except.c (init_eh): Likewise.
2636         (assign_filter_values): Use integer_type_node for filter values.
2637         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2638         indices.
2639         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2640         for EH region numbers.
2641         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2642         for the shift amount.
2643
2644 2011-04-29  Richard Guenther  <rguenther@suse.de>
2645
2646         * expr.h (expand_shift): Rename to ...
2647         (expand_variable_shift): ... this.
2648         (expand_shift): Take a constant shift amount.
2649         * expmed.c (expand_shift): Rename to ...
2650         (expand_variable_shift): ... this.
2651         (expand_shift): New wrapper around expand_variable_shift.
2652         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2653         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2654         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2655         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2656         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2657         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2658         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2659         emit_store_flag_1, emit_store_flag): Likewise.
2660         * builtins.c (expand_builtin_signbit): Likewise.
2661         * calls.c (load_register_parameters): Likewise.
2662         * function.c (assign_parm_setup_block): Likewise.
2663         * lower-subreg.c (resolve_shift_zext): Likewise.
2664         * optabs.c (widen_bswap, expand_abs_nojump,
2665         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2666         * spu/spu.c (spu_expand_extv): Likewise.
2667         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2668
2669 2011-04-29  Richard Guenther  <rguenther@suse.de>
2670
2671         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2672         for the remapped region number.
2673         * predict.c (build_predict_expr): Use integer_type_node for the
2674         predict kind.
2675         * fold-const.c (fold_binary_loc): Use integer_type_node for
2676         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2677
2678 2011-04-29  Michael Matz  <matz@suse.de>
2679
2680         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2681         other trees that just builtins.
2682         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2683
2684 2011-04-29  Richard Guenther  <rguenther@suse.de>
2685
2686         * tree-nested.c (get_trampoline_type): Use size_int.
2687         (get_nl_goto_field): Likewise.
2688         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2689         for all indexes.
2690         (lower_eh_constructs_2): Likewise.
2691         (lower_resx): Likewise.
2692         (lower_eh_dispatch): Likewise.
2693         * tree-mudflap.c (mf_build_string): Use size_int.
2694         (mudflap_register_call): Use integer_type_node for the flag.
2695         (mudflap_enqueue_constant): Use size_int.
2696         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2697         instead of rebuilding it.
2698
2699 2011-04-29  Richard Guenther  <rguenther@suse.de>
2700
2701         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2702         Handle OBJ_TYPE_REF.
2703         (find_func_aliases_for_call): Use it more consistently.
2704
2705 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2706
2707         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2708         (rank_for_schedule): Use it.
2709         (schedule_block): Set it.
2710
2711 2011-04-28  David Li  <davidxl@google.com>
2712
2713         * tree.c (crc32_string): Use crc32_byte.
2714         (crc32_byte): New function.
2715         * tree.h (crc32_byte): New function.
2716         * gcov.c (read_graph_file): Handle new cfg_cksum.
2717         (read_count_file): Ditto.
2718         * profile.c (instrument_values): Ditto.
2719         (get_exec_counts): Ditto.
2720         (read_profile_edge_counts): Ditto.
2721         (compute_branch_probabilities): Ditto.
2722         (compute_value_histograms): Ditto.
2723         (branch_prob): Ditto.
2724         (end_branch_prob): Ditto.
2725         * coverage.c (read_counts_file): Ditto.
2726         (get_coverage_counts): Ditto.
2727         (tree_coverage_counter_addr): Ditto.
2728         (coverage_checksum_string): Ditto.
2729         (coverage_begin_output): Ditto.
2730         (coverage_end_function): Ditto.
2731         (build_fn_info_type): Ditto.
2732         (build_fn_info_value): Ditto.
2733         * libgcov.c (gcov_exit): Ditto.
2734         * gcov-dump.c (tag_function): Ditto.
2735         (compute_checksum): Remove.
2736
2737 2011-04-29  Alan Modra  <amodra@gmail.com>
2738
2739         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2740         unspec plus offset.  Tidy macho code.
2741
2742 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2743
2744         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2745         node instead of a decl.  Update all callers.
2746         * cgraph.h: Update declaration.
2747
2748 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2749
2750         PR tree-optimization/48765
2751         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2752         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2753         to indicate if loop aware SLP is being used.  Scan the statements
2754         and update the vectorization factor according to the type of
2755         vectorization before statement analysis.
2756         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2757         pass it to vect_analyze_loop_operations.
2758         (vectorizable_reduction): Set number of copies to 1 in case of pure
2759         SLP statement.
2760         * tree-vect-stmts.c (vectorizable_conversion,
2761         vectorizable_assignment, vectorizable_shift,
2762         vectorizable_operation, vectorizable_type_demotion,
2763         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2764         Likewise.
2765         (vectorizable_condition): Move the check that it is not SLP
2766         vectorization before the number of copies check.
2767         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2768         to vectorize the loop using SLP.
2769
2770 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2771
2772         PR middle-end/48597
2773         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2774         inline asm.
2775
2776 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2777
2778         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2779         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2780         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2781         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2782         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2783         linux*.h headers.
2784         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2785         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2786         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2787         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2788         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2789         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2790         REG_NAME.
2791         * config/i386/linux.h (REG_NAME): Don't define.
2792         * config/i386/linux64.h (REG_NAME): Don't define.
2793         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2794         Undefine before defining.
2795
2796 2011-04-28  Jan Hubicka  <jh@suse.cz>
2797
2798         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2799         nonconstant_names array.
2800         (estimate_function_body_sizes): Build nonconstant_names array; handle
2801         BUILT_IN_CONSTANT_P.
2802
2803 2011-04-28  Richard Guenther  <rguenther@suse.de>
2804
2805         PR bootstrap/48804
2806         Revert
2807         2011-04-28  Richard Guenther  <rguenther@suse.de>
2808
2809         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2810         as late as possible.
2811
2812 2011-04-28  Richard Guenther  <rguenther@suse.de>
2813
2814         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2815         (debug_constraint): Do it here.
2816         (dump_constraints): And here.
2817         (rewrite_constraints): And here.
2818         (dump_constraint_edge): Remove.
2819         (dump_constraint_graph): Rewrite to produce DOT output.
2820         (solve_constraints): Build succ graph as late as possible.
2821         Dump constraint graphs before and after solving.
2822
2823 2011-04-28  Richard Guenther  <rguenther@suse.de>
2824
2825         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2826         New function split out from ...
2827         (find_func_aliases): ... here.  Call it.
2828         (find_func_aliases_for_call): Likewise.
2829
2830 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2831
2832         * internal-fn.h (internal_fn_name_array): Declare.
2833         (internal_fn_flags_array): Likewise.
2834
2835 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2836
2837         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2838         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2839         Move from sse.md.
2840         (ssemodefsuffix): Remove.
2841         (ssevecmodesuffix): New mode attribute.
2842         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2843         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2844         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2845         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2846         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2847         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2848         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2849         ssemodesuffix mode attribute.
2850         (float splitters): Use ssevecmodesuffix mode attribute.
2851         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2852         (sseinsmode): Rename from avxvecmode.
2853         (avxsizesuffix): Rename from avxmodesuffix.
2854         (sseintvecmode): Rename from avxpermvecmode.
2855         (ssedoublevecmode): Rename from ssedoublesizemode.
2856         (ssehalfvecmode): Rename from avxhalfvecmode.
2857         (ssescalarmode): Rename from avxscalarmode.
2858         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2859         templates for ssemodesuffix mode attribute.
2860         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2861         mode attribute.
2862
2863         Adjust RTX patterns globally for renamed mode attributes.
2864
2865 2011-04-27  Jan Hubcika  <jh@suse.cz>
2866
2867         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2868         * ipa-inline-analysis.c: Include alloc-pool.h.
2869         (edge_predicate_pool): New.
2870         (trye_predicate_p): New function
2871         (false_predicate_p): New function.
2872         (add_clause): Sanity check that false clauses are "optimized";
2873         never add clauses to predicate that is already known to be false.
2874         (and_predicate): Use flase_predicate_p.
2875         (evaulate_predicate): Rename to ...
2876         (evaluate_predicate): ... this one; update all callers; assert
2877         that false is not listed among possible truths.
2878         (dump_predicate): Use true_predicate_p.
2879         (account_size_time): Use false_predicate_p.
2880         (evaulate_conditions_for_edge): Rename to ...
2881         (evaluate_conditions_for_edge) ... this one.
2882         (edge_set_predicate): New function.
2883         (inline_edge_duplication_hook): Duplicate edge predicates.
2884         (inline_edge_removal_hook): Free edge predicates.
2885         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2886         (dump_inline_summary): Update.
2887         (estimate_function_body_sizes): Set edge predicates.
2888         (estimate_calls_size_and_time): Handle predicates.
2889         (estimate_callee_size_and_time): Update.
2890         (remap_predicate): Add toplev_predicate; update comment.
2891         (remap_edge_predicates): New function.
2892         (inline_merge_summary): Compute toplev predicate; update.
2893         (read_predicate): New function.
2894         (read_inline_edge_summary): Use it.
2895         (inline_read_section): Likewise.
2896         (write_predicate): New function.
2897         (write_inline_edge_summary): Use it.
2898         (inline_write_summary): Likewise.
2899         (inline_free_summary): Free alloc pool and edge summary vec.
2900
2901 2011-04-27  Richard Guenther  <rguenther@suse.de>
2902
2903         * tree-ssa-structalias.c (changed_count): Remove.
2904         (changed): Use a bitmap.
2905         (unify_nodes): Adjust.
2906         (do_sd_constraint): Likewise.
2907         (do_ds_constraint): Likewise.
2908         (do_complex_constraint): Likewise.
2909         (solve_graph): Likewise.
2910
2911 2011-04-27  Jan Hubicka  <jh@suse.cz>
2912
2913         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2914
2915 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2916
2917         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2918         (avx_vperm2f128_*_operand): Ditto.
2919         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2920         Use avx_vpermilp_parallel in insn condition.
2921         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2922         Use avx_vperm2f128_parallel in insn condition.
2923
2924 2011-04-27  Richard Guenther  <rguenther@suse.de>
2925
2926         * Makefile.in (tree-ssa-structalias.o): Remove
2927         gt-tree-ssa-structalias.h dependency.
2928         (GTFILES): Remove tree-ssa-structalias.c.
2929         * tree.c (allocate_decl_uid): New function.
2930         (make_node_stat): Use it.
2931         (copy_node_stat): Likewise.
2932         * tree.h (allocate_decl_uid): Declare.
2933         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2934         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2935         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2936         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2937         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2938         (struct heapvar_map): Likewise.
2939         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2940         heapvar_insert): Likewise.
2941         (make_heapvar_for): Rename to ...
2942         (make_heapvar): ... this.  Simplify.
2943         (fake_var_decl_obstack): New global var.
2944         (build_fake_var_decl): New function.
2945         (make_constraint_from_heapvar): Adjust.
2946         (handle_lhs_call): Likewise.
2947         (create_function_info_for): Likewise.
2948         (intra_create_variable_infos): Likewise.
2949         (init_alias_vars): Allocate fake_var_decl_obstack.
2950         (init_alias_heapvars, delete_alias_heapvars): Remove.
2951         (compute_points_to_sets): Do not call init_alias_heapvars.
2952         (ipa_pta_execute): Likewise.
2953         (delete_points_to_sets): Free fake_var_decl_obstack.
2954
2955 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2956
2957         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2958         (si_from_UTItype, si_to_UTItype): New functions.
2959         (__udivmodti4): Use them to implement type-punning.
2960         * config/spu/multi3.c (union qword_TItype): New data type.
2961         (si_from_TItype, si_to_TItype): New functions.
2962         (__multi3): Use them to implement type-punning.
2963
2964 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2965
2966         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2967
2968 2011-04-27  Jan Hubicka  <jh@suse.cz>
2969
2970         * ipa-prop.c (function_insertion_hook_holder): New holder.
2971         (ipa_add_new_function): New function.
2972         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2973         Register/deregister holder.
2974
2975 2011-04-27  Richard Guenther  <rguenther@suse.de>
2976
2977         PR tree-optimization/48772
2978         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2979
2980 2011-04-27  Richard Guenther  <rguenther@suse.de>
2981
2982         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2983         TARGET_MEM_REF handling.
2984
2985 2011-04-27  Nick Clifton  <nickc@redhat.com>
2986
2987         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2988         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2989         (REG_CLASS_NAMES): Likewise.
2990         (REG_CLASS_CONTENTS): Likewise.
2991         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2992         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2993         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2994         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2995         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2996         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2997         duplicate register classes.
2998         (frv_class_likely_spilled_p): Likewise.
2999         (frv_register_move_cost): Likewise.
3000
3001         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3002         end of the regno_reg_class array.
3003
3004 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3005
3006         PR c/48742
3007         * c-typeck.c (build_binary_op): Don't wrap arguments if
3008         int_operands is true.
3009
3010 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3011
3012         PR target/48767
3013         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3014         targetm.calls.must_pass_in_stack for void type.
3015
3016 2011-04-26  Jan Hubicka  <jh@suse.cz>
3017
3018         * cgraphbuild.c (build_cgraph_edges): Update call
3019         of cgraph_create_edge and cgraph_create_indirect_edge.
3020         * cgraph.c (cgraph_create_edge_including_clones,
3021         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3022         cgraph_update_edges_for_call_stmt_node): Do not take nest
3023         argument; do not initialize call_stmt_size/time.
3024         (dump_cgraph_node): Do not dump nest.
3025         (cgraph_clone_edge): Do not take loop_nest argument;
3026         do not propagate it; do not clone call_stmt_size/time.
3027         (cgraph_clone_node): Likewise.
3028         (cgraph_create_virtual_clone): Update.
3029         * cgraph.h (struct cgraph_edge): Remove
3030         call_stmt_size/call_stmt_time/loop_nest.
3031         (cgraph_create_edge, cgraph_create_indirect_edge,
3032         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3033         prototype.
3034         * tree-emutls.c (gen_emutls_addr): Update.
3035         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3036         loop_nest; handle indirect calls, too.
3037         (clone_inlined_nodes): Do not care about updating inline summaries.
3038         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3039         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3040         stream call_stmt_size/call_stmt_time/loop_nest.
3041         * ipa-inline.c (edge_badness): Update.
3042         (ipa_inline): dump summaries after inlining.
3043         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3044         New.
3045         (inline_edge_summary): New function.
3046         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3047         (inline_edge_removal_hook): Handle edge summaries.
3048         (inline_edge_duplication_hook): New hook.
3049         (inline_summary_alloc): Alloc hooks.
3050         (initialize_growth_caches): Do not register removal hooks.
3051         (free_growth_caches); Do not free removal hook.
3052         (dump_inline_edge_summary): New function.
3053         (dump_inline_summary): Use it.
3054         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3055         (inline_update_callee_summaries): New function.
3056         (inline_merge_summary): Use it.
3057         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3058         (read_inline_edge_summary): New function.
3059         (inline_read_section): Use it.
3060         (write_inline_edge_summary): New function.
3061         (inline_write_summary): Use it.
3062         (inline_free_summary): Free edge new holders.
3063         * tree-inline.c (copy_bb): Update.
3064
3065 2011-04-26  Jason Merrill  <jason@redhat.com>
3066
3067         * tree-eh.c (lower_try_finally_switch): Create the label along with
3068         the CASE_LABEL_EXPR.
3069
3070 2011-04-26  David S. Miller  <davem@davemloft.net>
3071             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3072
3073         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3074         * configure: Regenerate.
3075
3076 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3077
3078         PR target/48258
3079         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3080         reduction.
3081         (VEC_reduc): New code iterator and splitters for vector reduction.
3082         (VEC_reduc_name): Ditto.
3083         (VEC_reduc_rtx): Ditto.
3084         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3085         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3086
3087         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3088         support for extracting SF on VSX.
3089
3090         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3091         generating xscvspdp.
3092         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3093         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3094         double add, minimum, maximum vector reduction.
3095         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3096         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3097         optimize double vector reduction.
3098         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3099
3100 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3101
3102         * config/fr30/fr30.h (inhibit_libc): Don't define.
3103         * config/m32r/m32r-protos.h: Correct comment.
3104         * config/v850/v850.h (GHS_default_section_names,
3105         GHS_current_section_names): Use tree, not union tree_node *.
3106
3107 2011-04-26  Xinliang David Li  <davidxl@google.com>
3108
3109         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3110         * c-family/c-opts.c (c_common_handle_option): Set
3111         warn_maybe_uninitialized.
3112         * opts.c (common_handle_option): Ditto.
3113         * common.opt:  New option.
3114         * tree-ssa.c (warn_uninit): Add one more parameter.
3115         (warn_uninitialized_var): Pass warning code.
3116         * tree-flow.h: Interface change.
3117
3118
3119 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3120
3121         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3122         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3123         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3124
3125 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3126
3127         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3128         * config/mips/mips.opt (mmips-tfile): Remove.
3129
3130         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3131         mips-tdump reference to ...
3132         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3133         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3134         reference by Tru64 UNIX.
3135
3136 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3137
3138         PR debug/48768
3139         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3140         is error_mark_node, set value to NULL.
3141
3142         PR tree-optimization/48734
3143         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3144         if return value from maybe_fold_*_comparsions isn't something
3145         the code is prepared to handle.
3146
3147 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3148
3149         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3150         mode check.
3151         (ext_QIreg_nomode_operands): Remove.
3152         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3153         (*andsi_1): Ditto.
3154         (*andhi_1): Ditto.
3155
3156 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3157
3158         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3159
3160 2011-04-26  Richard Guenther  <rguenther@suse.de>
3161
3162         * c-typeck.c (build_unary_op): Do not expand array-refs via
3163         pointer arithmetic.  Only adjust qualifiers for function types.
3164
3165 2011-04-26  Richard Guenther  <rguenther@suse.de>
3166
3167         PR middle-end/48694
3168         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3169         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3170         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3171         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3172
3173 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3174
3175         * doc/extend.texi: Document __underlying_type.
3176
3177 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3178
3179         * config/rs6000/titan.md (automata_option "progress"): Remove.
3180
3181 2011-04-25  Jeff Law  <law@redhat.com>
3182
3183         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3184
3185 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3186
3187         * system.h (ENUM_BITFIELD): Remove.
3188
3189 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3190             Eric Botcazou  <ebotcazou@adacore.com>
3191
3192         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3193         for STORE_FLAG_VALUE==-1 case.
3194
3195 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3196
3197         PR target/43804
3198         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3199         LEGITIMATE_PIC_OPERAND_P.
3200
3201 2011-04-24  Jan Hubicka  <jh@suse.cz>
3202
3203         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3204         WPA hack.
3205         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3206         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3207         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3208         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3209         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3210         Sanity check predicate length.
3211         (remap_predicate): Likewise; sanity check jump functions.
3212         (inline_read_section, inline_write_summary): Sanity check
3213         predicate length.
3214
3215 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3216
3217         PR other/48748
3218         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3219         __is_literal_type, and __is_trivial; update throughout about
3220         possibly cv-qualified void types.
3221
3222 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3223
3224         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3225         testsuite and make it version agnostic.
3226
3227 2011-04-22  Jan Hubicka  <jh@suse.cz>
3228
3229         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3230
3231 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3232
3233         PR c/48685
3234         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3235         to VOID_TYPE even around MODIFY_EXPR.
3236
3237 2011-04-22  Mike Stump  <mikestump@comcast.net>
3238
3239         * gensupport.c (read_md_rtx): Fix typo in comment.
3240         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3241         comment.
3242
3243 2011-04-22  Jan Hubicka  <jh@suse.cz>
3244
3245         * gengtype.c (open_base_files): Add ipa-inline.h include.
3246         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3247         ipa-prop.c; update all uses.
3248         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3249         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3250         merge summary of inlined function into former caller.
3251         * ipa-inline.c (max_benefit): Remove.
3252         (edge_badness): Compensate for removal of benefits.
3253         (update_caller_keys): Use
3254         reset_node_growth_cache/reset_edge_growth_cache.
3255         (update_callee_keys): Likewise.
3256         (update_all_callee_keys): Likewise.
3257         (inline_small_functions): Do not collect max_benefit; do not reset
3258         estimated_growth; call free_growth_caches and initialize_growth_caches.
3259         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3260         struct size_time_entry): New structures.
3261         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3262         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3263         and estimated_growth.
3264         (edge_growth_cache_entry): New structure.
3265         (node_growth_cache, edge_growth_cache): New global vars.
3266         (estimate_growth): Turn into inline.
3267         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3268         initialize_growth_caches, free_growth_caches): Declare.
3269         (estimate_edge_growth): Rewrite.
3270         (estimate_edge_time): Implement as inline cache lookup.
3271         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3272         functions.
3273         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3274         (NUM_CONDITIONS): New constant.
3275         (predicate_conditions): New enum.
3276         (IS_NOT_CONSTANT): New constant.
3277         (edge_removal_hook_holder): New var.
3278         (node_growth_cache, edge_growth_cache): New global vars.
3279         (true_predicate, single_cond_predicate, false_predicate,
3280         not_inlined_predicate, add_condition, add_clause, and_predicates,
3281         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3282         dump_clause, dump_predicate, account_size_time,
3283         evaulate_conditions_for_edge): New functions.
3284         (inline_summary_alloc): Move to heap.
3285         (inline_node_removal_hook): Clear condition and entry vectors.
3286         (inline_edge_removal_hook): New function.
3287         (initialize_growth_caches, free_growth_caches): New function.
3288         (dump_inline_summary): Update.
3289         (edge_execution_predicate): New function.
3290         (will_be_nonconstant_predicate): New function.
3291         (estimate_function_body_sizes): Compute BB and constantness predicates.
3292         (compute_inline_parameters): Do not clear estimated_growth.
3293         (estimate_edge_size_and_time): New function.
3294         (estimate_calls_size_and_time): New function.
3295         (estimate_callee_size_and_time): New function.
3296         (remap_predicate): New function.
3297         (inline_merge_summary): New function.
3298         (do_estimate_edge_time): New function based on...
3299         (estimate_edge_time): ... this one.
3300         (do_estimate_edge_growth): New function.
3301         (do_estimate_growth): New function based on....
3302         (estimate_growth): ... this one.
3303         (inline_analyze_function): Analyze after deciding on jump functions.
3304         (inline_read_section): New function.
3305         (inline_read_summary): Use it.
3306         (inline_write_summary): Write all the new data.
3307         * ipa-prop.c (ipa_get_param_decl_index): Export.
3308         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3309         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3310         Declare.
3311         (ipa_get_lattice): Move here from ipa-cp.c
3312         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3313         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3314         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3315         cgraph_edge_inlinable_p): Remove.
3316         * cgraphunit.c: Include ipainline.h
3317         (cgraph_process_new_functions): Update call of
3318         compute_inline_parameters.
3319
3320 2011-04-22  Richard Guenther  <rguenther@suse.de>
3321
3322         * tree.c (build_int_cst): Properly create canonicalized integer
3323         constants.
3324         (build_int_cst_type): Remove scary comments.
3325
3326 2011-04-22  Xinliang David Li  <davidxl@google.com>
3327
3328         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3329         by default when -Wno-error is not specified.
3330         * opts-global.c (decode_options): Remove call to
3331         control_warning_options.
3332
3333 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3334
3335         PR tree-optimization/48717
3336         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3337         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3338
3339 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3340
3341         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3342         definition where used.
3343
3344 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3345
3346         PR c/48716
3347         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3348         TREE_STATIC variables declared inside of some OpenMP construct.
3349
3350 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3351
3352         PR middle-end/48585
3353         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3354
3355 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3356
3357         PR c/36750
3358         * c-typeck.c (pop_init_level): Do not warn about initializing
3359         with ` = {0}'.
3360
3361 2011-04-22  Alan Modra  <amodra@gmail.com>
3362
3363         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3364         when returning call_cookie.
3365         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3366         pointers, to functions with no more vector args than the current
3367         function, and some non-local calls for ABI_V4.
3368         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3369         sibcall_nonlocal_aix64): Combine to ..
3370         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3371         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3372         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3373         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3374         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3375         operand.
3376         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3377         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3378         sibcall_value_symbolic_64): Delete.
3379
3380 2011-04-21  Xinliang David Li  <davidxl@google.com>
3381
3382         * cgraph.h: Remove pid.
3383         * cgraph.c: Remove pid.
3384         * value-prof.c (init_node_map): New function.
3385         (del_node_map): New function.
3386         (find_func_by_funcdef_no): New function.
3387         (gimple_ic_transform): Call new function.
3388         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3389         * function.c (get_last_funcdef_no): New function.
3390         * function.h (get_last_funcdef_no): New function.
3391         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3392         to libgcov function.
3393         (tree-profiling): Call node map init and delete function.
3394
3395 2011-04-21  Ian Lance Taylor  <iant@google.com>
3396
3397         * godump.c (go_format_type): Use exported Go name for anonymous
3398         field name.
3399
3400 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3401
3402         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3403         Call builtin_function_type_list instead of builtin_function_type.
3404         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3405
3406 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3407
3408         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3409         build_function_type_list instead of build_function_type.
3410         Delete variable `endlink'.
3411
3412 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3413
3414         * config/s390/s390.c (s390_init_builtins): Call
3415         build_function_type_list instead of build_function_type.
3416
3417 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3418
3419         * config/ia64/ia64.c (ia64_init_builtins): Call
3420         build_function_type_list instead of builtin_function_type.
3421
3422 2011-04-21  Easwaran Raman  <eraman@google.com>
3423
3424         * cfgexpand.c (stack_var): Remove OFFSET...
3425         (add_stack_var): ...and its reference here...
3426         (expand_stack_vars): ...and here.
3427         (stack_var_cmp): Sort by descending order of size.
3428         (partition_stack_vars): Change heuristic.
3429         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3430         (dump_stack_var_partition): Add newline after each partition.
3431
3432 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3433             Jeff Law  <law@redhat.com>
3434
3435         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3436         * gengtype.c (matching_file_name_substitute): Likewise.
3437
3438 2011-04-21  Richard Guenther  <rguenther@suse.de>
3439
3440         PR lto/48703
3441         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3442
3443 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3444
3445         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3446
3447 2011-04-21  Richard Guenther  <rguenther@suse.de>
3448
3449         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3450         file name.
3451
3452 2011-04-21  Richard Guenther  <rguenther@suse.de>
3453
3454         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3455         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3456         Use DECL_P, not SSA_VAR_P.
3457         (ptr_derefs_may_alias_p): Likewise.
3458         (ptr_deref_may_alias_ref_p_1): Likewise.
3459         (decl_refs_may_alias_p): Likewise.
3460         (refs_may_alias_p_1): Likewise.
3461         (ref_maybe_used_by_call_p_1): Likewise.
3462         (call_may_clobber_ref_p_1): Likewise.
3463         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3464         are either MEM_REF or TARGET_MEM_REF.
3465         (indirect_refs_may_alias_p): Likewise.
3466         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3467         for MEM_EXPR of indirect calls.
3468
3469 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3470
3471         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3472         (dst_file_info_struct): Remove flen field.
3473         (lookup_filename): Remove code that set flen field.
3474
3475 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3476
3477         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3478
3479 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3480
3481         PR target/48708
3482         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3483         vec_extract and vec_concat for non-SSE4_1 targets.
3484
3485 2011-04-21  Richard Guenther  <rguenther@suse.de>
3486
3487         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3488         return statements.
3489
3490 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3491
3492         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3493         undefine.
3494         (FILE): Don't undefine.
3495
3496 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3497
3498         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3499         struct rtx_def *.
3500         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3501         struct rtx_def *.
3502         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3503         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3504         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3505         rtx_def *.
3506         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3507         definitions where used.
3508         * config/microblaze/microblaze.h (struct microblaze_args): Use
3509         rtx, not struct rtx_def *.
3510         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3511         rtx_def *.
3512         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3513         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3514         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3515         not struct rtx_def *.
3516         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3517         struct rtx_def *.
3518         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3519         rtx_def *.
3520         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3521
3522 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3523
3524         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3525         operand_equal_p to compare DR_BASE_ADDRESSes.
3526         (vect_check_interleaving): Likewise.
3527
3528 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3529
3530         PR target/46329
3531         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3532         for all Neon struct constants.
3533
3534 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3535
3536         * target.def (legitimate_constant_p): New hook.
3537         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3538         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3539         * doc/tm.texi: Regenerate.
3540         * hooks.h (hook_bool_mode_rtx_true): Declare.
3541         * hooks.c (hook_bool_mode_rtx_true): Define.
3542         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3543         * calls.c (precompute_register_parameters): Replace uses of
3544         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3545         (emit_library_call_value_1): Likewise.
3546         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3547         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3548         * ira-costs.c (scan_one_insn): Likewise.
3549         * recog.c (general_operand, immediate_operand): Likewise.
3550         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3551         * reload1.c (init_eliminable_invariants): Likewise.
3552
3553         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3554         mode argument.
3555         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3556         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3557         argument.
3558         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3559         * config/alpha/predicates.md (input_operand): Update call to
3560         alpha_legitimate_constant_p.
3561
3562         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3563         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3564         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3565         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3566         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3567         (arm_legitimate_constant_p): New functions.
3568         (arm_cannot_force_const_mem): Make static.
3569
3570         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3571
3572         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3573         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3574         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3575         instead of bfin_legitimate_constant_p.
3576         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3577         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3578
3579         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3580
3581         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3582
3583         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3584         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3585         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3586         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3587
3588         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3589         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3590         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3591
3592         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3593         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3594         * config/i386/i386.c (legitimate_constant_p): Rename to...
3595         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3596         argument.
3597         (ix86_cannot_force_const_mem): Update accordingly.
3598         (ix86_legitimate_address_p): Likewise.
3599         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3600         * config/i386/i386.md: Update commentary.
3601
3602         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3603         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3604         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3605         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3606
3607         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3608
3609         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3610         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3611         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3612         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3613
3614         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3615         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3616         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3617
3618         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3619         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3620         (m32r_legitimate_constant_p): New function.
3621
3622         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3623         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3624         LEGITIMATE_CONSTANT_P.
3625         (LEGITIMATE_CONSTANT_P): Delete.
3626         * config/m68k/m68k.c (m68k_expand_prologue): Call
3627         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3628         (m68k_legitimate_constant_p): New function.
3629         * config/m68k/m68k.md: Update comments.
3630
3631         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3632         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3633         (mcore_legitimate_constant_p): New function.
3634
3635         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3636         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3637         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3638         Add a mode argument.
3639         (mep_legitimate_address): Update accordingly.
3640         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3641
3642         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3643         Delete.
3644         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3645         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3646         static.  Check OP's mode for VOIDmode.
3647         (microblaze_legitimate_constant_p): New function.
3648         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3649
3650         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3651         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3652         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3653         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3654         * config/mips/predicates.md: Update comments.
3655
3656         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3657         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3658         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3659         (mmix_legitimate_constant_p): Make static, return a bool, and take
3660         a mode argument.
3661         (mmix_print_operand_address): Update accordingly.
3662
3663         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3664         Delete.
3665         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3666         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3667         static.  Add a mode argument.
3668         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3669
3670         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3671
3672         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3673         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3674         (pa_legitimate_constant_p): New function.
3675
3676         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3677
3678         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3679         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3680         (pdp11_legitimate_constant_p): New function.
3681
3682         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3683         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3684         (rs6000_legitimate_constant_p): New function.
3685
3686         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3687         (rx_legitimate_constant_p): ...this.
3688         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3689         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3690         (rx_legitimate_constant_p): ...this.
3691         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3692         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3693
3694         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3695         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3696         * config/s390/s390.c (legitimate_constant_p): Rename to...
3697         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3698         and add a mode argument.
3699         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3700
3701         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3702
3703         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3704         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3705         (sh_legitimate_constant_p): New function.
3706
3707         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3708         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3709         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3710         (legitimate_constant_p): Rename to...
3711         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3712         argument.
3713         (constant_address_p): Update accordingly.
3714
3715         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3716         argument and return a bool.
3717         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3718         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3719         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3720         (spu_rtx_costs): Update accordingly.
3721         * config/spu/predicates.md (vec_imm_operand): Likewise.
3722
3723         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3724
3725         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3726         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3727         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3728
3729         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3730         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3731         * config/vax/vax.c (legitimate_constant_p): Likewise.
3732
3733         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3734         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3735         (xtensa_legitimate_constant_p): New function.
3736
3737 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3738
3739         * target.def (cannot_force_const_mem): Add a mode argument.
3740         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3741         * doc/tm.texi: Regenerate.
3742         * hooks.h (hook_bool_mode_rtx_false): Declare.
3743         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3744         (hook_bool_mode_const_rtx_true): Likewise.
3745         (hook_bool_mode_rtx_false): New function.
3746         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3747         to be non-VOID.  Update call to cannot_force_const_mem.
3748         (find_reloads): Update accordingly.
3749         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3750         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3751         argument.
3752         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3753         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3754         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3755         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3756         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3757         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3758         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3759         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3760         (m68k_cannot_force_const_mem): ...this new function.
3761         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3762         argument.
3763         (mips_const_insns, mips_legitimize_const_move): Update calls.
3764         (mips_secondary_reload_class): Likewise.
3765         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3766         (pa_cannot_force_const_mem): ...this new function.
3767         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3768         (rs6000_cannot_force_const_mem): ...this new function.
3769         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3770         argument.
3771         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3772         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3773         to...
3774         (xtensa_cannot_force_const_mem): ...this new function.
3775
3776 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3777
3778         * config/mips/mips.c (mips16_build_function_stub): Call
3779         build_function_type_list instead of build_function_type.
3780         (mips16_build_call_stub): Likewise.
3781
3782 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3783
3784         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3785         instead of build_function_type.
3786
3787 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3788
3789         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3790         instead of build_function_type.
3791
3792 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3793
3794         PR target/48678
3795         * config/i386/i386.md (insv): Change operand 0 constraint to
3796         "register_operand".  Change operand 1 and 2 constraint to
3797         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3798         * config/i386/sse.md (sse4_1_pinsrb): Export.
3799         (sse2_pinsrw): Ditto.
3800         (sse4_1_pinsrd): Ditto.
3801         (sse4_1_pinsrq): Ditto.
3802         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3803         * config/i386/i386.c (ix86_expand_pinsr): New.
3804
3805 2011-04-20  Easwaran Raman  <eraman@google.com>
3806
3807         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3808         containing union type only with -fstrict-aliasing.
3809
3810 2011-04-20  Jim Meyering  <meyering@redhat.com>
3811
3812         Remove useless if-before-free tests.
3813         * calls.c (expand_call, save_area): Likewise.
3814         * cfgcleanup.c (try_forward_edges): Likewise.
3815         * collect2.c (collect_execute): Likewise.
3816         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3817         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3818         * coverage.c (coverage_checksum_string): Likewise.
3819         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3820         * cselib.c (cselib_init): Likewise.
3821         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3822         (df_set_clean_cfg): Likewise.
3823         * function.c (free_after_compilation): Likewise.
3824         * gcc.c (do_spec_1, main): Likewise.
3825         * gcov.c (create_file_names): Likewise.
3826         * gensupport.c (identify_predicable_attribute): Likewise.
3827         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3828         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3829         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3830         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3831         * ipa-pure-const.c (local_pure_const): Likewise.
3832         * ipa-reference.c (propagate): Likewise.
3833         * ira-costs.c (free_ira_costs): Likewise.
3834         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3835         * matrix-reorg.c (mat_free): Likewise.
3836         * prefix.c (get_key_value): Likewise.
3837         * profile.c (compute_value_histograms): Likewise.
3838         * reload1.c (free_reg_equiv): Likewise.
3839         * sched-deps.c (free_deps): Likewise.
3840         * sel-sched-ir.c (fence_clear): Likewise.
3841         * sese.c (set_rename, if_region_set_false_region): Likewise.
3842         * tree-data-ref.c (free_rdg): Likewise.
3843         * tree-eh.c (lower_try_finally): Likewise.
3844         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3845         * tree-ssa-live.c (delete_var_map): Likewise.
3846         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3847         * tree-ssa-pre.c (phi_trans_add): Likewise.
3848
3849 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3850
3851         PR tree-optimization/48611
3852         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3853         beyond ERT_MUST_NOT_THROW region.
3854
3855 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3856
3857         * config/mips/mips.opt (mfix-24k): New.
3858         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3859         * config/mips/mips.md (length): Increase by 4 for stores if
3860         fixing 24K errata.
3861         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3862         all noreorder if fixing 24K errata.
3863         * doc/invoke.texi: Document mfix-24k.
3864
3865 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3866
3867         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3868         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3869
3870 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3871
3872         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3873         (const_ok_for_op): ... to here.
3874
3875 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3876
3877         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3878         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3879
3880 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3881
3882         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3883
3884 2011-04-20  Richard Guenther  <rguenther@suse.de>
3885
3886         PR tree-optimization/47892
3887         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3888         are if-convertible.
3889
3890 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3891
3892         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3893
3894 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3895
3896         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3897
3898 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3899
3900         PR target/18145
3901
3902         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3903         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3904         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3905         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3906         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3907
3908         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3909         New prototype.
3910
3911         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3912         (avr_asm_named_section, avr_asm_output_aligned_common,
3913         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3914         New functions to update...
3915         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3916         (avr_asm_init_sections): Overwrite section callbacks for
3917         data_section, bss_section.
3918         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3919         from here to...
3920         (avr_file_end): ...here.
3921
3922 2011-04-20  Richard Guenther  <rguenther@suse.de>
3923
3924         PR middle-end/48695
3925         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3926         objects and types here.  Adjust for their offset before comparing.
3927
3928 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3929
3930         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3931         statement per copy.
3932
3933 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3934
3935         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3936         (GIMPLE_H): Include $(INTERNAL_FN_H).
3937         (OBJS-common): Add internal-fn.o.
3938         (internal-fn.o): New rule.
3939         * internal-fn.def: New file.
3940         * internal-fn.h: Likewise.
3941         * internal-fn.c: Likewise.
3942         * gimple.h: Include internal-fn.h.
3943         (GF_CALL_INTERNAL): New gf_mask.
3944         (gimple_statement_call): Put fntype into a union with a new
3945         internal_fn field.
3946         (gimple_build_call_internal): Declare.
3947         (gimple_build_call_internal_vec): Likewise.
3948         (gimple_call_same_target_p): Likewise.
3949         (gimple_call_internal_p): New function.
3950         (gimple_call_internal_fn): Likewise.
3951         (gimple_call_fntype): Return null for internal calls.
3952         (gimple_call_set_fntype): Assert that the function is not internal.
3953         (gimple_call_set_fn): Likewise.
3954         (gimple_call_set_fndecl): Likewise.
3955         (gimple_call_set_internal_fn): New function.
3956         (gimple_call_addr_fndecl): Handle null functions.
3957         (gimple_call_return_type): Likewise null types.
3958         * gimple.c (gimple_build_call_internal_1): New function.
3959         (gimple_build_call_internal): Likewise.
3960         (gimple_build_call_internal_vec): Likewise.
3961         (gimple_call_same_target_p): Likewise.
3962         (gimple_call_flags): Handle calls to internal functions.
3963         (gimple_call_fnspec): New function.
3964         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3965         (gimple_has_side_effects): Handle null functions.
3966         (gimple_rhs_has_side_effects): Likewise.
3967         (gimple_call_copy_skip_args): Handle calls to internal functions.
3968         * cfgexpand.c (expand_call_stmt): Likewise.
3969         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3970         * gimple-fold.c (gimple_fold_call): Handle null functions.
3971         (gimple_fold_stmt_to_constant_1): Don't fold
3972         calls to internal functions.
3973         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3974         functions.
3975         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3976         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3977         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3978         (do_warn_unused_result): Likewise.
3979         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3980         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3981         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3982         the target of a call.
3983         (initialize_hash_element): Update accordingly.
3984         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3985         (iterative_hash_hashable_expr): Handle calls to internal functions.
3986         (print_expr_hash_elt): Likewise.
3987         * tree-ssa-pre.c (can_value_number_call): Likewise.
3988         (eliminate): Handle null functions.
3989         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3990         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3991         (find_func_aliases): Likewise.
3992         * value-prof.c (gimple_ic_transform): Likewise.
3993         (gimple_indirect_call_to_profile): Likewise.
3994         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3995         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3996
3997 2011-04-19  Jan Hubicka  <jh@suse.cz>
3998
3999         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4000         * ipa-inline.c (inline_small_functions): Compute summaries first,
4001         populate heap later.
4002
4003 2011-04-19  Jan Hubicka  <jh@suse.cz>
4004
4005         * cgraph.h (save_inline_function_body): Remove.
4006         * ipa-inline-transform.c: New file, broke out of...
4007         * ipa-inline.c: ... this one; Update toplevel comment.
4008         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4009         make global.
4010         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4011         (cgraph_mark_inline_edge): Rename to inline_call; move to
4012         ipa-inline-transform.c.
4013         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4014         move to ipa-inline-transform.c
4015         (recursive_inlining, inline_small_functions, flatten_function,
4016         ipa_inline, inline_always_inline_functions,
4017         early_inline_small_functions): Update.
4018         (inline_transform): Move to ipa-inline-transform.c.
4019         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4020         Declare.
4021         * Makefile.in (ipa-inline-transform.o): New file.
4022         * cgraphunit.c (save_inline_function_body): Move to
4023         ipa-inline-transform.c
4024
4025 2011-04-19  DJ Delorie  <dj@redhat.com>
4026
4027         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4028         registers if we already know there aren't any.
4029         (m32c_emit_epilogue): Don't emit a barrier here.
4030         (m32c_emit_eh_epilogue): Likewise.
4031         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4032         operands at expand time.
4033         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4034         int" wchar type.
4035         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4036         duplicates.  Provide aliases instead.
4037         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4038         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4039         the compiler.
4040
4041 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4042
4043         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4044         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4045         (general_or_i64_p, sparc_register_move_cost): New function.
4046
4047 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4048
4049         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4050         Add lynx, mipssde.  Sort table.
4051
4052 2011-04-19  Xinliang David Li  <davidxl@google.com>
4053
4054         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4055         not negative.
4056
4057 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4058
4059         PR target/48678
4060         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4061         is a SUBREG with non-MODE_INT mode inside of it.
4062
4063 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4064
4065         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4066         also according to actual contants.
4067         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4068         (gimple_fold_call): Use it.
4069         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4070
4071 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4072
4073         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4074         non-pointer assignments.
4075
4076 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4077
4078         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4079         account anc_offset and otr_type from the indirect edge info.
4080         * ipa-prop.c (get_ancestor_addr_info): New function.
4081         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4082         get_ancestor_addr_info, call it.
4083         (ipa_note_param_call): Do not initialize information about polymorphic
4084         calls, return the indirect call graph edge.  Remove the last
4085         parameter, adjust all callers.
4086         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4087         parameters.  Initialize polymorphic information in the indirect edge.
4088
4089 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4090
4091         PR lto/48148
4092         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4093         the types if they have different enumeration identifiers.
4094
4095 2011-04-19  Jan Hubicka  <jh@suse.cz>
4096
4097         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4098         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4099         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4100         (optimize_function_for_size_p) ... here.
4101
4102 2011-04-19  Richard Guenther  <rguenther@suse.de>
4103
4104         PR lto/48207
4105         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4106         langhook.
4107
4108 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4109
4110         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4111         if DECL_NO_INLINE_WARNING_P is set on the function.
4112
4113 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4114
4115         PR fortran/47976
4116         * reload1.c (inc_for_reload): Return void. All callers changed.
4117         (emit_input_reload_insns): Don't try to delete previous output
4118         reloads to a register, or record spill_reg_store for autoincs.
4119
4120 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4121
4122         * gengtype.h: Updated copyright year.
4123         (struct input_file_st): Add inpisplugin field.
4124         (type_fileloc): New function.
4125         * gengtype.c
4126         (write_typed_struct_alloc_def): Add gcc_assert.
4127         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4128         (write_typed_alloc_defns): Don't output for plugin files.
4129         (input_file_by_name): Clear inpisplugin field.
4130         (main): Set inpisplugin field for plugin files.
4131
4132 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4133
4134         * gengtype-state.c (string_eq): New.
4135         (read_state): Use string_eq instead of strcmp when creating the
4136         state_ident_tab.
4137
4138 2011-04-19  Wei Guozhi  <carrot@google.com>
4139
4140         PR target/47855
4141         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4142         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4143         linkage.
4144         * config/arm/constraints.md (Uu): New constraint.
4145         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4146
4147 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4148
4149         * config.gcc (-*-*-*vms): Added.
4150         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4151         definitions moved.
4152         * config/vms/vms-ld.c: New file.
4153         * config/vms/vms-ar.c: New file.
4154         * config/vms/t-vmsnative: New file.
4155
4156 2011-04-18  Xinliang David Li  <davidxl@google.com>
4157
4158         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4159
4160 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4161
4162         PR middle-end/48661
4163         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4164         if TREE_TYPE (v) is non-NULL.
4165
4166         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4167         gimple_get_virt_mehtod_for_binfo.
4168         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4169         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4170         callers.
4171         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4172
4173 2011-04-18  Michael Matz  <matz@suse.de>
4174             Steve Ellcey  <sje@cup.hp.com>
4175
4176         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4177         use its mode as source mode if it isn't VOIDmode.
4178
4179 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4180
4181         * doc/passes.texi: Fill crossref nodes.
4182
4183 2011-04-18  Jim Meyering  <meyering@redhat.com>
4184
4185         Fix doubled-word typos in comments and strings
4186         * config/alpha/vms-unwind.h: s/for for/for/
4187         * config/arm/unwind-arm.h: Likewise.
4188         * config/microblaze/microblaze.c: Likewise.
4189         * config/sh/constraints.md: s/in in/in/
4190         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4191
4192 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4193
4194         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4195         (AVX_FLOAT_MODE_P): Ditto.
4196         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4197         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4198         (AVX_VEC_FLOAT_MODE_P): Ditto.
4199         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4200         (UNSPEC_MASKSTORE): Ditto.
4201         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4202         Merge from <sse>_movmsk<ssemodesuffix> and
4203         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4204         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4205         iterator.
4206         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4207         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4208         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4209
4210 2011-04-18  Jan Hubicka  <jh@suse.cz>
4211
4212         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4213
4214         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4215         (want_inline_function_called_once_p): Break out the logic from
4216         ipa_inline.
4217         (edge_badness): Ensure that profile is not misupdated.
4218         (lookup_recursive_calls): Prioritize by call frequencies.
4219         (inline_small_functions): Move program size estimates here;
4220         actually process whole queue even when unit growth has been
4221         met. (to properly compute inline_failed reasons and for the
4222         case unit size decrease.) Revisit comments on recursive inlining.
4223         (ipa_inline): Remove unit summary code; first inline hot calls
4224         of functions called once, cold calls next.
4225         (order, nnodes): Remove unused variables.
4226         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4227         (GTFILES): Remove ipa-inline.c
4228         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4229
4230 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4231
4232         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4233
4234 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4235             Richard Earnshaw  <rearnsha@arm.com>
4236
4237         * arm.c (neon_builtin_type_bits): Remove.
4238         (typedef enum neon_builtin_mode): New.
4239         (T_MAX): Don't define.
4240         (typedef enum neon_builtin_datum): Remove bits, codes[],
4241         num_vars and base_fcode.  Add mode, code and fcode.
4242         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4243         VAR10): Change accordingly.
4244         (neon_builtin_data[]): Change accordingly
4245         (arm_init_neon_builtins): Change accordingly.
4246         (neon_builtin_compare): Remove.
4247         (locate_neon_builtin_icode): Remove.
4248         (arm_expand_neon_builtin): Change accordingly.
4249
4250         * arm.h (enum arm_builtins): Move to ...
4251         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4252
4253         * arm.c (arm_builtin_decl): Declare.
4254         (TARGET_BUILTIN_DECL): Define.
4255         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4256         (arm_builtin_decls[]): New.
4257         (arm_init_neon_builtins): Store builtin declarations in
4258         arm_builtin_decls[].
4259         (arm_init_tls_builtins): Likewise.
4260         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4261         (arm_builtin_decl): New.
4262
4263 2011-04-18  Richard Guenther  <rguenther@suse.de>
4264
4265         * tree.c (upper_bound_in_type): Build properly canonicalized
4266         INTEGER_CSTs.
4267         (lower_bound_in_type): Likewise.
4268
4269 2011-04-18  Richard Guenther  <rguenther@suse.de>
4270
4271         * gimple.h (gimple_call_addr_fndecl): New function.
4272         (gimple_call_fndecl): Use it.
4273         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4274         for direct calls.
4275         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4276         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4277
4278 2011-04-18  Richard Guenther  <rguenther@suse.de>
4279
4280         PR middle-end/48650
4281         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4282
4283 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4284
4285         PR lto/48492
4286         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4287         DECL_IN_CONSTANT_POOL without RTL.
4288
4289 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4290             Ira Rosen  <ira.rosen@linaro.org>
4291
4292         PR target/48252
4293         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4294         to match neon_vzip/vuzp/vtrn_internal.
4295         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4296         outputs explicitly dependent on both inputs.
4297         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4298
4299 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4300
4301         PR tree-optimization/48616
4302         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4303         whether the shift is by scalar or vector based on whether all SLP
4304         scalar stmts have the same rhs.
4305
4306 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4307
4308         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4309         memory operands.
4310
4311 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4312
4313         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4314         registers.
4315
4316 2011-04-17  Jan Hubicka  <jh@suse.cz>
4317
4318         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4319         * cgrpahunit.c (cgraph_finalize_function): Do not set
4320         finalized_by_frontend.
4321         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4322         finalized_by_frontend.
4323
4324 2011-04-17  Jan Hubicka  <jh@suse.cz>
4325
4326         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4327         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4328         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4329         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4330         method.
4331         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4332         gimple-fold.c
4333         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4334
4335 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4336
4337         PR lto/48538
4338         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4339         is non-null before accessing it.
4340         (input_cgraph): Remove trailing spaces.
4341
4342 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4343
4344         * params.def (sms-min-sc): New param flag.
4345         * modulo-sched.c (sms_schedule): Use it.
4346         * doc/invoke.texi (sms-min-sc): Document it.
4347
4348 2011-04-17  Jan Hubicka  <jh@suse.cz>
4349
4350         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4351         present, also set gimple_call_set_cannot_inline.
4352         * ipa-inline.c: Update toplevel comment.
4353         (MAX_TIME): Remove.
4354         (cgraph_clone_inlined_nodes): Fix linebreaks.
4355         (cgraph_check_inline_limits): Restructure to ...
4356         (caller_growth_limits): ... this one; be more tolerant
4357         on growth in nested inline chains; add explanatory comment;
4358         fix stack accounting thinko introduced by previous patch.
4359         (cgraph_default_inline_p): Remove.
4360         (report_inline_failed_reason): New function.
4361         (can_inline_edge_p): New function.
4362         (can_early_inline_edge_p): New function.
4363         (leaf_node_p): Move upwards in file.
4364         (want_early_inline_function_p): New function.
4365         (want_inline_small_function_p): New function.
4366         (want_inline_self_recursive_call_p): New function.
4367         (cgraph_edge_badness): Rename to ...
4368         (edge_badness) ... this one; fix linebreaks.
4369         (update_edge_key): Update call of edge_baddness; add
4370         detailed dump about queue updates.
4371         (update_caller_keys): Use can_inline_edge_p and
4372         want_inline_small_function_p.
4373         (cgraph_decide_recursive_inlining): Rename to...
4374         (recursive_inlining): Use can_inline_edge_p and
4375         want_inline_self_recursive_call_p; simplify and remove no longer
4376         valid FIXME.
4377         (cgraph_set_inline_failed): Remove.
4378         (add_new_edges_to_heap): Use can_inline_edge_p and
4379         want_inline_small_function_p.
4380         (cgraph_decide_inlining_of_small_functions): Rename to ...
4381         (inline_small_functions): ... this one; cleanup; use
4382         can/want predicates; cleanup debug ouput; work edges till fibheap
4383         is exhausted and do not stop once unit growth is reached; remove
4384         later loop processing remaining edges.
4385         (cgraph_flatten): Rename to ...
4386         (flatten_function): ... this one; use can_inline_edge_p
4387         and can_early_inline_edge_p predicates.
4388         (cgraph_decide_inlining): Rename to ...
4389         (ipa_inline): ... this one; remove unreachable nodes before
4390         inlining functions called once; simplify the pass.
4391         (cgraph_perform_always_inlining): Rename to ...
4392         (inline_always_inline_functions): ... this one; use
4393         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4394         (cgraph_decide_inlining_incrementally): Rename to ...
4395         (early_inline_small_functions): ... this one; simplify
4396         using new predicates; cleanup; make dumps prettier.
4397         (cgraph_early_inlining): Rename to ...
4398         (early_inliner): newer inline regular functions into always-inlines;
4399         fix updating of call stmt summaries.
4400         (pass_early_inline): Update for new names.
4401         (inline_transform): Fix formating.
4402         (gate_cgraph_decide_inlining): Rename to ...
4403         (pass_ipa_inline): ... this one.
4404         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4405         * ipa-inline-analysis.c (dump_inline_summary): Update.
4406         (compute_inline_parameters): Do not compute disregard_inline_limits;
4407         look for mismatching arguments.
4408         (estimate_growth): Fix handlig of non-trivial self recursion.
4409         (inline_read_summary): Do not read info->disregard_inline_limits.
4410         (inline_write_summary): Do not write info->disregard_inline_limits.
4411         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4412         and move all checks into can_inline_edge_p predicate; re-enable code
4413         comparing optimization levels.
4414         (expand_call_inline): Do not test inline_forbidden_into_p.
4415         * Makefile.in (ipa-inline.o): Update arguments.
4416
4417 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4418
4419         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4420
4421 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4422
4423         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4424
4425 2011-04-17  Michael Matz  <matz@suse.de>
4426
4427         PR tree-optimization/48622
4428         PR lto/48645
4429         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4430         in same order as they're written.
4431
4432 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4433
4434         * config/pa/predicates.md: Reorganize and simplify predicates.
4435         Eliminate duplicate code checks.
4436         (arith_operand): Rename to arith14_operand
4437         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4438         * config/pa/pa.md: Use renamed operands.
4439         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4440         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4441         arith11_operand, adddi3_operand, indexed_memory_operand,
4442         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4443         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4444         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4445         move_dest_operand, move_src_operand, prefetch_cc_operand,
4446         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4447         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4448         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4449         div_operand, int5_operand, movb_comparison_operator,
4450         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4451         arith_double_operand, ireg_operand, lhs_lshift_operand,
4452         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4453         integer_store_memory_operand): Likewise.
4454         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4455         (integer_store_memory_operand, read_only_operand,
4456         function_label_operand, borx_reg_operand,
4457         non_hard_reg_operand): Likewise.
4458         (eq_neq_comparison_operator): Delete unused operator.
4459         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4460         function_label_operand.
4461         (emit_move_sequence): Likewise.
4462
4463 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4464
4465         * config/i386/sse.md (sseunpackmode): New mode attribute.
4466         (ssepackmode): Ditto.
4467         (vec_pack_trunc_<mode>): Macroize expander from
4468         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4469         (vec_unpacks_lo_<mode>): Macroize expander from
4470         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4471         (vec_unpacks_hi_<mode>): Macroize expander from
4472         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4473         (vec_unpacku_lo_<mode>): Macroize expander from
4474         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4475         (vec_unpacku_hi_<mode>): Macroize expander from
4476         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4477         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4478         ix86_expand_sse4_unpack.
4479         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4480
4481 2011-04-16  Jan Hubicka  <jh@suse.cz>
4482
4483         * cgraphbuild.c: Include ipa-inline.h.
4484         (reset_inline_failed): Use initialize_inline_failed.
4485         * cgraph.c: Include ipa-inline.h.
4486         (cgraph_create_node_1): Do not initialize estimated_growth.
4487         (initialize_inline_failed): More to ipa-inline-analysis.c
4488         (dump_cgraph_node): Do not dump inline flags.
4489         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4490         and disregard_inline_limits flags.
4491         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4492         time, size, estimated_growth.
4493         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4494         Update.
4495         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4496         DECL_DISREGARD_INLINE_LIMITS.
4497         (cgraph_analyze_function): Do not initialize
4498         node->local.disregard_inline_limits.
4499         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4500         inlinable, versionable and disregard_inline_limits.
4501         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4502         cgraph_check_inline_limits, cgraph_default_inline_p,
4503         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4504         add_new_edges_to_heap): Update.
4505         (cgraph_decide_inlining_of_small_function): Update; set
4506         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4507         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4508         cgraph_decide_inlining_incrementally): Update.
4509         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4510         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4511         time, size and estimated_growth parameters.
4512         (estimate_edge_growth): Update.
4513         (initialize_inline_failed): Declare.
4514         * ipa-split.c: Include ipa-inline.h
4515         (execute_split_functions): Update.
4516         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4517         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4518         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4519         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4520         estimated_growth to INT_MIN.
4521         (inline_node_duplication_hook): Likewise.
4522         (dump_inline_summary): Dump new fields.
4523         (compute_inline_parameters): Update.
4524         (estimate_edge_time, estimate_time_after_inlining,
4525         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4526         inline_write_summary):
4527         (initialize_inline_failed): Move here from cgraph.c.
4528         * tree-sra.c: Include ipa-inline.h.
4529         (ipa_sra_preliminary_function_checks): Update.
4530         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4531         ipa-inline.h.
4532
4533 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4534
4535         * config/i386/sse.md (V16): New mode iterator.
4536         (VI1, VI8): Ditto.
4537         (AVXMODEQI, AVXMODEDI): Remove.
4538         (sse2, sse3): New mode attribute.
4539         (mov<mode>): Use V16 mode iterator.
4540         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4541         (push<mode>1): Use V16 mode iterator.
4542         (movmisalign<mode>): Ditto.
4543         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4544         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4545         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4546         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4547         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4548         avx_movdqu<avxmodesuffix>.
4549         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4550         *avx_movdqu<avxmodesuffix>.
4551         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4552         avx_lddqu<avxmodesuffix>.
4553         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4554         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4555         avx_movnt<AVXMODEDI:mode>.
4556         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4557         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4558
4559 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4560
4561         PR target/48629
4562         * haifa-sched.c (prune_ready_list, schedule_block): Use
4563         sched_pressure_p rather than flag_sched_pressure.
4564
4565 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4566
4567         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4568         cgraph_get_node instead of cgraph_get_create_node.
4569
4570 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4571
4572         * cfgexpand.c (expand_debug_expr): Use
4573         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4574
4575 2011-04-15  Michael Matz  <matz@suse.de>
4576
4577         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4578         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4579         * function.c (gimplify_parameters): Ditto.
4580         * gimplify.c (gimplify_vla_decl): Ditto.
4581
4582         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4583         (gimple_call_set_alloca_for_var): New inline function.
4584         (gimple_call_alloca_for_var_p): Ditto.
4585         * gimple.c (gimple_build_call_from_tree): Remember
4586         CALL_ALLOCA_FOR_VAR_P state.
4587         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4588
4589         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4590         calls if they were for VLA objects.
4591
4592 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4593
4594         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4595         of ADR_EXPRs.
4596
4597 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4598
4599         PR middle-end/48601
4600         * tree-emutls.c (lower_emutls_function_body): Call
4601         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4602         result is non-NULL.
4603
4604 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4605
4606         * c-decl.c (detect_field_duplicates): Call
4607         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4608
4609 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4610
4611         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4612         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4613         * ipa-pure-const.c (check_stmt): Call it.
4614         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4615
4616 2011-04-15  Richard Guenther  <rguenther@suse.de>
4617
4618         PR tree-optimization/48290
4619         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4620         Properly decide inhibiting propagation based on the valueized
4621         operand.  Do loop-closed SSA form preserving here ...
4622         (init_copy_prop): ... not here.
4623
4624 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4625
4626         PR target/48612
4627         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4628         (*ieee_smax<mode>3): Likewise.
4629
4630 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4631
4632         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4633         Replace match_operand with match_dup for the third operand in
4634         these expanders.
4635
4636 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4637
4638         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4639         to track processing of conditionals.  Update all callers.
4640         (try_combine, simplify_if_then_else): Update.
4641
4642 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4643
4644         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4645         -fsched-pressure.
4646
4647 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4648
4649         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4650         instead of match_operand for operand 3.
4651
4652 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4653
4654         * recog.h (insn_operand_data): Add an "allows_mem" field.
4655         * genoutput.c (output_operand_data): Initialize it.
4656         * optabs.c (maybe_legitimize_operand_same_code): New function.
4657         (maybe_legitimize_operand): Use it when matching the original
4658         op->value.
4659
4660 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4661
4662         * gimplify.c: Fix issues in comments throughout.
4663         (voidify_wrapper_expr): Fix long line.
4664         (build_stack_save_restore): Likewise.
4665         (gimplify_loop_expr): Likewise.
4666         (gimplify_compound_lval): Likewise.
4667         (gimplify_init_ctor_eval): Likewise.
4668         (gimplify_modify_expr_rhs): Likewise.
4669         (omp_notice_threadprivate_variable): Likewise.
4670
4671 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4672
4673         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4674         original one if this is not a builtin function.
4675
4676 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4677
4678         PR target/48605
4679         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4680         offset it as needed based on top 2 bits in operands[3], change
4681         MEM mode to SFmode and mask those 2 bits away from operands[3].
4682
4683 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4684
4685         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4686         change from objc_declare_protocols() to objc_declare_protocol().
4687
4688 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4689
4690         * config/i386/sse.md (sse4_1): New mode attribute.
4691         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4692         avx_blend<ssemodesuffix><avxmodesuffix> and
4693         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4694         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4695         avx_blendv<ssemodesuffix><avxmodesuffix> and
4696         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4697         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4698         avx_dp<ssemodesuffix><avxmodesuffix> and
4699         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4700         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4701         (sse4_1_packusdw): Merge with *avx_packusdw.
4702         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4703         (sse4_1_pblendw): Merge with *avx_pblendw.
4704         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4705         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4706         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4707         VF mode iterator.
4708         (sse4_1_round<ssescalarmodesuffix>): Merge with
4709         *avx_round<ssescalarmodesuffix>.
4710         (aesenc): Merge with *avx_aesenc.
4711         (aesenclast): Merge with *avx_aesenclast.
4712         (aesdec): Merge with *avx_aesdec.
4713         (aesdeclast): Merge with *avx_aesdeclast.
4714         (pclmulqdq): Merge with *pclmulqdq.
4715         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4716         New predicate.
4717         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4718
4719 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4720
4721         PR middle-end/48608
4722         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4723         (align_local_variable): This.  Update DECL_ALIGN.
4724         (add_stack_var): Updated.
4725         (expand_one_stack_var): Likewise.
4726
4727 2011-04-14  Richard Guenther  <rguenther@suse.de>
4728
4729         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4730         Remove.
4731         (dse_initialize_block_local_data, dse_leave_block,
4732         record_voperand_set, get_stmt_uid): Likewise.
4733         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4734         (dse_optimize_stmt): Remove voperand set handling code.
4735         Simplify and improve to handle any kind of killing stmt.
4736         (dse_record_phi): Remove.
4737         (dse_enter_block): Simplify.
4738         (tree_ssa_dse): Likewise.
4739         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4740
4741 2011-04-14  Jan Hubicka  <jh@suse.cz>
4742
4743         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4744         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4745         (cgraph_local_info): Remove inline_summary.
4746         * ipa-cp.c: Include ipa-inline.h.
4747         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4748         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4749         accesor.
4750         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4751         (input_overwrite_node): Do not set inline summary.
4752         (input_node): Do not stream inline summary.
4753         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4754         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4755         growth; we do not have inline parameters computed for that anyway.
4756         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4757         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4758         (inline_summary_t): New type and VECtor.
4759         (debug_inline_summary, dump_inline_summaries): Declare.
4760         (inline_summary): Use VOCtor.
4761         (estimate_edge_growth): Kill hack computing call stmt size directly.
4762         * lto-section-in.c (lto_section_name): Add inline section.
4763         * ipa-inline-analysis.c: Include lto-streamer.h
4764         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4765         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4766         (inline_summary_vec): Define.
4767         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4768         dump_inline_summaries): New functions.
4769         (estimate_function_body_sizes): Properly compute size/time of outgoing
4770         calls.
4771         (compute_inline_parameters): Alloc inline_summary; do not compute
4772         size/time of incomming calls.
4773         (estimate_edge_time): Avoid missing time summary hack.
4774         (inline_read_summary): Read inline summary info.
4775         (inline_write_summary): Write inline summary info.
4776         (inline_free_summary): Free all hooks and inline summary vector.
4777         * lto-streamer.h: Add LTO_section_inline_summary section.
4778         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4779         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4780
4781 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4782
4783         * tree-vectorizer.h (vect_strided_store_supported): Add a
4784         HOST_WIDE_INT argument.
4785         (vect_strided_load_supported): Likewise.
4786         (vect_permute_store_chain): Return void.
4787         (vect_transform_strided_load): Likewise.
4788         (vect_permute_load_chain): Delete.
4789         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4790         count argument.  Check that the count is a power of two.
4791         (vect_strided_load_supported): Likewise.
4792         (vect_permute_store_chain): Return void.  Update after above changes.
4793         Assert that the access is supported.
4794         (vect_permute_load_chain): Likewise.
4795         (vect_transform_strided_load): Return void.
4796         * tree-vect-stmts.c (vectorizable_store): Update calls after
4797         above interface changes.
4798         (vectorizable_load): Likewise.
4799         (vect_analyze_stmt): Don't check for strided powers of two here.
4800
4801 2011-04-14  Richard Guenther  <rguenther@suse.de>
4802
4803         PR tree-optimization/48590
4804         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4805         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4806         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4807         BUILT_IN_STACK_SAVE.
4808         * tree-ssa-dce.c (propagate_necessity): Handle
4809         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4810
4811 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4812
4813         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4814         objc_declare_class.
4815
4816 2011-04-14  Richard Guenther  <rguenther@suse.de>
4817
4818         * tree.h (get_object_alignment_1): Declare.
4819         * builtins.c (get_object_alignment_1): Split out worker from ...
4820         (get_object_alignment): ... here.
4821         * fold-const.c (get_pointer_modulus_and_residue): Use
4822         get_object_alignment_1.
4823
4824 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4825
4826         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4827         type parameter.
4828         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4829         parameter.  Generalise code to handle arrays as well as vectors.
4830         (vect_setup_realignment): Update accordingly.
4831         * tree-vect-stmts.c (vectorizable_store): Likewise.
4832         (vectorizable_load): Likewise.
4833
4834 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4835
4836         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4837         within the per-copy loop.
4838
4839 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4840
4841         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4842         in the dump file.
4843
4844 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4845
4846         * doc/options.texi (Negative): Explicitly mention that the
4847         Negative chain must be circular.
4848
4849 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4850
4851         * function.h (block_chainon): Declare.
4852         * function.c (block_chainon): Define.
4853
4854 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4855             Eric Weddington  <eric.weddington@atmel.com>
4856             Georg-Johann Lay  <avr@gjlay.de>
4857
4858         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4859         New Includes
4860         (avr_init_builtins, avr_expand_builtin,
4861         avr_expand_delay_cycles, avr_expand_unop_builtin,
4862         avr_expand_binop_builtin ): New functions.
4863         (avr_builtin_id): New enum
4864         (struct avr_builtin_description): New struct
4865         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4866         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4867
4868         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4869         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4870         UNSPECV_DELAY_CYCLES): new enumeration values
4871         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4872         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4873         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4874         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4875         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4876         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4877         "fmulsu"): New insns
4878
4879         * config/avr/avr-c.c: fix line endings
4880         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4881         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4882         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4883         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4884         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4885
4886         * doc/extend.texi (AVR Built-in Functions): New node
4887         (Target Builtins): Add documentation of AVR
4888         built-in functions.
4889
4890 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4891
4892         PR target/44643
4893         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4894         alone. Error if non-const data has attribute progmem.
4895
4896 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4897
4898         * tree.h (struct tree_constructor): Include tree_typed instead of
4899         tree_common.
4900         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4901         TS_TYPED instead of TS_COMMON.
4902
4903 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4904
4905         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4906         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4907         (sse2_psadbw): Merge with *avx_psadbw.
4908         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4909         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4910         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4911         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4912         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4913         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4914         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4915         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4916         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4917         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4918         (ssse3_palignrti): Merge with *avx_palignrti.
4919
4920 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4921
4922         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4923         * tree-ssanames.c (fini_ssanames): VEC_free it.
4924         (make_ssa_name_fn): Update for VECness of free_ssanames.
4925         (release_ssa_name, release_dead_ssa_names): Likewise.
4926         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4927         tree_common.
4928         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4929         TS_TYPED instead of TS_COMMON.
4930
4931 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4932
4933         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4934         statistics_counter_event.
4935         * tree-ssa-copyrename.c (stats): Define.
4936         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4937         statistics_counter_event.
4938         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4939         (bswap_stats, widen_mul_stats): Define.
4940         (insert_reciprocals): Increment rdivs_inserted.
4941         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4942         rfuncs_inserted.  Add calls to statistics_counter_event.
4943         (execute_cse_sincos_1): Increment inserted.
4944         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4945         statistics_counter_event.
4946         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4947         of bswap_stats.  Add calls to statistics_counter_event.
4948         (convert_mult_to_widen): Increment widen_mults_inserted.
4949         (convert_plusminus_to_widen): Increment maccs_inserted.
4950         (convert_mult_to_fma): Increment fmas_inserted.
4951         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4952         calls to statistics_counter_event.
4953
4954 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4955
4956         PR rtl-optimization/48455
4957         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4958         `temp_costs->mem_cost'.
4959
4960 2011-04-13  Jan Hubicka  <jh@suse.cz>
4961
4962         * ipa-inline.h: New file.
4963         * ipa-inline-analysis.c: New file. Broken out of ...
4964         * ipa-inline.c: ... this file; update toplevel comment;
4965         include ipa-inline.h
4966         (inline_summary): Move to ipa-inline.h
4967         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4968         ipa-inline-analysis.c.
4969         (cgraph_estimate_time_after_inlining): Rename to
4970         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4971         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4972         to estimate_edge_growth.
4973         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4974         rename to estimate_size_after_inlining.
4975         (cgraph_mark_inline_edge): Update for new naming convention.
4976         (cgraph_check_inline_limits): Likewise.
4977         (cgraph_edge_badness): Likewise.
4978         (cgraph_decide_recursive_inlining): Likewise.
4979         (cgraph_decide_inlining_of_small_functions): Likewise.
4980         (cgraph_decide_inlining_incrementally): Likewise.
4981         (cgraph_estimate_growth): Rename to estimate_growth; move to
4982         ipa-inline-analysis.c.
4983         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4984         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4985         (compute_inline_parameters): Likewise.
4986         (compute_inline_parameters_for_current): Likewise.
4987         (pass_inline_parameters): Likewise.
4988         (inline_indirect_intraprocedural_analysis): Likewise.
4989         (analyze_function): Rename to inline_analyze_function; likewise.
4990         (add_new_function): Move to ipa-inline-analysis.c.
4991         (inline_generate_summary): Likewise.
4992         (inline_read_summary): Likewise.
4993         (inline_write_summary): Likewise.
4994         * Makefile.in (ipa-inline-analysis.c): New file.
4995
4996 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4997
4998         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4999         * configure: Regenerate.
5000
5001 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5002
5003         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5004         instead of tree_common.
5005         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5006         Likewise.
5007         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5008         TS_TYPED rather than TS_COMMON.
5009         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5010
5011 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5012
5013         PR target/45263
5014         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5015         r20 around calls of __tablejump_elpm__
5016
5017 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5018
5019         PR middle-end/48591
5020         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5021         NULL.
5022         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5023
5024 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5025
5026         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5027         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5028         (cfi_vec): New typedef.
5029         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5030         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5031         (cie_cfi_vec): New static variable.
5032         (cie_cfi_head): Delete.
5033         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5034         declaration changed. Use vector rather than list operations.
5035         (new_cfi): Don't initialize the dw_cfi_next field.
5036         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5037         rather than list operations.
5038         (lookup_cfa): Use vector rather than list operations.
5039         (output_cfis): New argument upto. Accept a cfi_vec rather than
5040         a dw_cfi_ref list head as argument. All callers changed.
5041         Iterate over the vector using upto as a maximum index.
5042         (output_all_cfis): New static function.
5043         (output_fde): Use vector rather than list operations. Use the
5044         new upto argument for output_cfis rather than manipulating a
5045         list.
5046         (dwarf2out_begin_prologue): Change initializations to match
5047         new struct members.
5048         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5049         from the vector length rather than searching for the end of a list.
5050         Use output_all_cfis.
5051         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5052
5053 2011-04-13  Nick Clifton  <nickc@redhat.com>
5054
5055         * config/rx/rx.md (movmemsi): Do not use this pattern when
5056         volatile pointers are involved.
5057
5058 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5059
5060         * config/i386/sse.md (pinsrbits): Remove.
5061         (sse2_packsswb): Merge with *avx_packsswb.
5062         (sse2_packssdw): Merge with *avx_packssdw.
5063         (sse2_packuswb): Merge with *avx_packuswb.
5064         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5065         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5066         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5067         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5068         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5069         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5070         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5071         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5072         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5073         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5074         (sse2_loadld): Merge with *avx_loadld.
5075         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5076         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5077         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5078         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5079         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5080
5081 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5082
5083         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5084         calling TREE_CHAIN.
5085         * print-tree.c (print_node): Likewise.
5086         * tree-inline.c (copy_tree_r): Likewise.
5087         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5088         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5089         instead of TS_COMMON.
5090         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5091         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5092         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5093         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5094         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5095         ...and these...
5096         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5097         * tree.h: ...here.
5098         (TREE_CHAIN): Check for a TS_COMMON structure.
5099         (TREE_TYPE): Check for a TS_TYPED structure.
5100
5101 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5102
5103         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5104         cgraph_get_create_node instead of cgraph_node.
5105
5106 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5107
5108         * c-parser.c (c_parser_initelt): Updated call to
5109         objc_build_message_expr.
5110         (c_parser_postfix_expression): Likewise.
5111
5112 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5113
5114         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5115         MASK_MS_BITFIELD_LAYOUT bit.
5116
5117 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5118
5119         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5120         assert it is always true.
5121         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5122         moves.
5123
5124 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5125
5126         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5127         compiling Objective-C to be more efficient.
5128
5129 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5130
5131         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5132         argv_copied.
5133
5134 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5135
5136         * recog.h, genoutput.c, optabs.c: Revert last patch.
5137
5138 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5139
5140         PR target/48090
5141         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5142
5143 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5144
5145         * recog.h (insn_operand_data): Add an "allows_mem" field.
5146         * genoutput.c (output_operand_data): Initialize it.
5147         * optabs.c (maybe_legitimize_operand_same_code): New function.
5148         (maybe_legitimize_operand): Use it when matching the original
5149         op->value.
5150
5151 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5152
5153         * genpreds.c (process_define_predicate): Move most processing
5154         to gensupport.c.  Continue to validate the expression.
5155         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5156         (process_define_predicate): Move processing to gensupport.c.
5157         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5158         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5159         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5160         argument.
5161         (valid_predicate_name_p): New function, split out from old
5162         genpreds.c:process_define_predicate.
5163         (process_define_predicate): New function, combining code from
5164         old genpreds.c and genrecog.c functions.
5165         (process_rtx): Call it for DEFINE_PREDICATE and
5166         DEFINE_SPECIAL_PREDICATE.
5167
5168 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5169
5170         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5171         size of a '%A' memory reference.
5172         (T_DREG, T_QREG): New neon_builtin_type_bits.
5173         (arm_init_neon_builtins): Assert that the load and store operands
5174         are neon_struct_operands.
5175         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5176         (NEON_ARG_MEMORY): New builtin_arg.
5177         (neon_dereference_pointer): New function.
5178         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5179         Handle NEON_ARG_MEMORY.
5180         (arm_expand_neon_builtin): Update after above interface changes.
5181         Use NEON_ARG_MEMORY for loads and stores.
5182         * config/arm/predicates.md (neon_struct_operand): New predicate.
5183         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5184         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5185         (V_four_elem): Tweak formatting.
5186         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5187         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5188         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5189         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5190         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5191         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5192         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5193         Use %A in the output template.
5194         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5195         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5196         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5197         the width of the memory access.  Remove post-increment.
5198         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5199
5200 2011-04-12  Nick Clifton  <nickc@redhat.com>
5201
5202         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5203         instruction for interrupt handlers if the target is the basic V850
5204         architecture.
5205         (expand_epilogue): Likewise.
5206
5207 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5208
5209         PR rtl-optimization/48549
5210         * combine.c (propagate_for_debug): Also stop after BB_END of
5211         this_basic_block.  Process LAST and just stop processing after it.
5212         (combine_instructions): If last_combined_insn has been deleted,
5213         set last_combined_insn to its PREV_INSN.
5214
5215 2011-04-12  Richard Guenther  <rguenther@suse.de>
5216
5217         PR tree-optimization/46076
5218         * gimple.h (struct gimple_statement_call): Add fntype field.
5219         (gimple_call_fntype): Adjust.
5220         (gimple_call_set_fntype): New function.
5221         * gimple.c (gimple_build_call_1): Set the call function type.
5222         * gimplify.c (gimplify_call_expr): Preserve the function
5223         type the frontend used for the call.
5224         (gimplify_modify_expr): Likewise.
5225         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5226         function type.
5227         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5228         function type.
5229         * tree-ssa.c (useless_type_conversion_p): Function pointer
5230         conversions are useless.
5231
5232 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5233
5234         * cgraph.h (cgraph_node): Remove function declaration.
5235         (cgraph_create_node): Declare.
5236         (cgraph_get_create_node): Likewise.
5237         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5238         Updated all callers.
5239         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5240         the decl does not already exist.  Call cgraph_get_create_node instead
5241         of cgraph_node.
5242         (cgraph_get_create_node): New function.
5243         (cgraph_same_body_alias): Update comment.
5244         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5245         assert it does not return NULL.
5246         (cgraph_update_edges_for_call_stmt): Likewise.
5247         (cgraph_clone_edge): Likewise.
5248         (cgraph_create_virtual_clone): Likewise.
5249         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5250         instead of cgraph_node.
5251         (cgraph_add_new_function): Call cgraph_create_node or
5252         cgraph_get_create_node instead of cgraph_node.
5253         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5254         instead of cgraph_node.
5255         (record_eh_tables): Likewise.
5256         (mark_address): Likewise.
5257         (mark_load): Likewise.
5258         (build_cgraph_edges): Call cgraph_get_create_node instead
5259         of cgraph_node.
5260         (rebuild_cgraph_edges): Likewise.
5261         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5262         instead of cgraph_node.
5263         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5264         cgraph_node.
5265         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5266         cgraph_create_node instead of cgraph_node.
5267         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5268         of cgraph_node.
5269         * lto-cgraph.c (input_node): Likewise.
5270         * lto-streamer-in.c (input_function): Likewise.
5271         * varasm.c (mark_decl_referenced): Likewise.
5272         (assemble_alias): Likewise.
5273
5274 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5275
5276         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5277         instead of cgraph_node and assert it does not return NULL.
5278         * lto-streamer-in.c (lto_read_body): Likewise.
5279         * omp-low.c (new_omp_context): Likewise.
5280         (create_task_copyfn): Likewise.
5281         * tree-emutls.c (lower_emutls_function_body): Likewise.
5282         * matrix-reorg.c (transform_allocation_sites): Likewise.
5283
5284 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5285
5286         PR c/48552
5287         * c-typeck.c (build_asm_expr): Error out on attempts to use
5288         void type outputs or inputs for constraints that allow reg or
5289         don't allow memory.
5290
5291 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5292             Richard Earnshaw  <rearnsha@arm.com>
5293
5294         PR target/48250
5295         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5296         to use sign-magnitude offsets. Reject unsupported unaligned
5297         cases. Add detailed description in comments.
5298         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5299         condition from TARGET_32BIT to TARGET_ARM.
5300
5301 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5302
5303         * tree.h (struct typed_tree): New.
5304         (struct tree_common): Include it instead of tree_base.
5305         (TREE_TYPE): Update for new location of type field.
5306         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5307         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5308         (union tree_node): Add typed field.
5309         * treestruct.def (TS_TYPED): New.
5310         * lto-streamer.c (check_handled_ts_structures): Handle it.
5311         * tree.c (MARK_TS_TYPED): New macro.
5312         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5313
5314 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5315
5316         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5317         (force_nonfallthru): Do not alter the loop nest if no basic block
5318         was created.
5319
5320 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5321
5322         * config/i386/sse.md (VI): New mode iterator.
5323         (SSEMODEI): Remove.
5324         (AVX256MODEI): Ditto.
5325         (AVXMODEF4P): Ditto.
5326         (avxvecpsmode): Ditto.
5327         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5328         (sse2_andnot<mode>3): New expander.
5329         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5330         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5331         (<any_logic:code><mode>3): Use VI mode iterator.
5332         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5333         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5334         (*andnottf3): Handle AVX three-operand constraints.
5335         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5336
5337 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5338             Robert Millan  <rmh@gnu.org>
5339
5340         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5341         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5342         GNU_USER_DYNAMIC_LINKER64): Define.
5343         (REG_NAME): Don't undefine.
5344         (MD_UNWIND_SUPPORT): Undefine.
5345         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5346         (REG_NAME): Don't undefine.
5347         (MD_UNWIND_SUPPORT): Undefine.
5348         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5349
5350 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5351
5352         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5353         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5354
5355 2011-04-11  Xinliang David Li  <davidxl@google.com>
5356
5357         * value-profile.c (check_ic_target): New function.
5358         (gimple_ic_transform): Sanity check indirect call target.
5359         * gimple-low.c (gimple_check_call_args): Interface change.
5360         (gimple_check_call_matching_types): New function.
5361         * tree-inline.c (tree_can_inline_p): Call new function.
5362
5363 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5364
5365         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5366         tree-pretty-print.h & realmpfr.h.
5367
5368 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5369
5370         PR middle-end/48464
5371         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5372         (setup_allocno_and_important_classes): Ditto.
5373
5374 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5375
5376         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5377         GNU_USER_DYNAMIC_LINKER.
5378         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5379         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5380         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5381         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5382         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5383         GNU_USER_TARGET_OS_CPP_BUILTINS.
5384         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5385         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5386         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5387         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5388         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5389         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5390         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5391         GNU_USER_TARGET_OS_CPP_BUILTINS.
5392         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5393         GNU_USER_DYNAMIC_LINKER.
5394         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5395         GNU_USER_TARGET_OS_CPP_BUILTINS.
5396         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5397         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5398         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5399         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5400         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5401         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5402         GNU_USER_DYNAMIC_LINKER64): Remove.
5403         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5404         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5405         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5406         GNU_USER_DYNAMIC_LINKER.
5407         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5408         GNU_USER_TARGET_OS_CPP_BUILTINS.
5409         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5410         GNU_USER_TARGET_OS_CPP_BUILTINS.
5411         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5412         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5413         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5414         GNU_USER_TARGET_OS_CPP_BUILTINS.
5415         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5416         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5417         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5418         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5419         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5420         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5421         GNU_USER_DYNAMIC_LINKER.
5422         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5423         GNU_USER_TARGET_OS_CPP_BUILTINS.
5424         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5425         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5426         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5427         GNU_USER_DYNAMIC_LINKER.
5428         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5429         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5430         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5431         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5432         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5433         GNU_USER_DYNAMIC_LINKER.
5434         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5435         GNU_USER_DYNAMIC_LINKERN32.
5436         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5437         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5438         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5439         GNU_USER_DYNAMIC_LINKER32.
5440         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5441         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5442         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5443         GNU_USER_DYNAMIC_LINKER.
5444         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5445         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5446         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5447         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5448         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5449         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5450         GNU_USER_DYNAMIC_LINKER32.
5451         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5452         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5453         GNU_USER_DYNAMIC_LINKER.
5454         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5455         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5456         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5457         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5458         GNU_USER_DYNAMIC_LINKER64.
5459         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5460         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5461         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5462         GNU_USER_DYNAMIC_LINKER.
5463         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5464         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5465         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5466         GNU_USER_DYNAMIC_LINKER.
5467         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5468         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5469         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5470         GNU_USER_DYNAMIC_LINKER32.
5471         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5472         GNU_USER_DYNAMIC_LINKER64.
5473         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5474         GNU_USER_DYNAMIC_LINKER64.
5475         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5476         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5477         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5478         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5479         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5480
5481 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5482
5483         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5484         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5485         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5486         GNU_USER_DYNAMIC_LINKER.
5487         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5488         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5489         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5490         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5491         GNU_USER_DYNAMIC_LINKER64.
5492         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5493         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5494         GNU_USER_LINK_EMULATION.
5495         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5496         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5497         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5498         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5499         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5500         CPP_SPEC, CC1_SPEC): Remove.
5501         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5502         (GNU_USER_DYNAMIC_LINKER): Define.
5503         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5504         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5505         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5506         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5507         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5508         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5509         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5510         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5511         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5512         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5513         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5514         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5515         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5516         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5517         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5518         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5519         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5520         GNU_USER_DYNAMIC_LINKER.
5521         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5522         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5523         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5524         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5525         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5526         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5527         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5528         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5529         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5530         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5531
5532 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5533
5534         PR target/9601
5535         PR target/11772
5536         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5537         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5538         comment.
5539         (ix86_is_msabi_thiscall): Removed.
5540         (ix86_is_type_thiscall): Likewise.
5541         (ix86_get_callcvt): New function.
5542         (ix86_comp_type_attributes): Simplify check.
5543         (ix86_function_regparm): Use ix86_get_callcvt for calling
5544         convention attribute checks.
5545         (ix86_return_pops_args): Likewise.
5546         (ix86_static_chain): Likewise.
5547         (x86_this_parameter): Likewise.
5548         (x86_output_mi_thunk): Likewise.
5549         (ix86_function_type_abi): Optimize check for types without attributes.
5550         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5551         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5552         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5553         by flag-values.
5554         (IX86_BASE_CALLCVT): Helper macro.
5555         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5556         Use ix86_get_callcvt for calling convention attribute checks and avoid
5557         symbol-decoration for stdcall in TARGET_RTD case.
5558         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5559         Likewise.
5560         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5561         for declaration.
5562
5563 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5564
5565         * config/i386/sse.md (VI_128): New mode iterator.
5566         (VI12_128): Rename from SSEMODE12.
5567         (VI14_128): Rename from SSEMODE14.
5568         (VI124_128): New mode iterator.
5569         (VI24_128): Rename from SSEMODE248.
5570         (VI248_128): Rename from SSEMODE248.
5571         (SSEMODE124C8): Remove.
5572         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5573         (*sse2_<plusminus_insn><mode>3): Merge with
5574         *avx_<plusminus_insn><mode>3.
5575         (*mulv8hi3): Merge with *avx_mulv8hi3.
5576         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5577         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5578         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5579         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5580         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5581         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5582         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5583         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5584         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5585         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5586         (*<smaxmin:code>v8hi3): Ditto.
5587         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5588         (*<smaxmin:code>v16qi3): Ditto.
5589         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5590         (*sse2_eq<mode>3): Ditto.
5591         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5592         (*sse2_gt<mode>3): Ditto.
5593         (vcondv2di): Split out of vcond<mode>.
5594         (vconduv2di): Split out of vcondu<mode>.
5595
5596 2011-04-11  Richard Guenther  <rguenther@suse.de>
5597
5598         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5599         before calling tree_low_cst.
5600
5601 2011-04-11  Richard Guenther  <rguenther@suse.de>
5602
5603         * stor-layout.c (layout_type): Compute all array index size operations
5604         in the original type.
5605         (initialize_sizetypes): Add comment.
5606         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5607
5608 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5609
5610         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5611
5612 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5613
5614         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5615         of cgraph_node, handle NULL return value.
5616         (cgraph_global_info): Likewise.
5617         (cgraph_rtl_info): Likewise.
5618         * tree-inline.c (estimate_num_insns): Likewise.
5619         * gimplify.c (unshare_body): Likewise.
5620         (unvisit_body): Likewise.
5621         (gimplify_body): Likewise.
5622         * predict.c (optimize_function_for_size_p): Likewise.
5623         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5624         (call_may_clobber_ref_p_1): Likewise.
5625         * varasm.c (function_section_1): Likewise.
5626         (assemble_start_function): Likewise.
5627
5628 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5629
5630         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5631         of cgraph_node.
5632         * final.c (rest_of_clean_state): Likewise.
5633         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5634         * passes.c (pass_init_dump_file): Likewise.
5635         (execute_all_ipa_transforms): Likewise.
5636         (function_called_by_processed_nodes_p): Likewise.
5637         * predict.c (maybe_hot_frequency_p): Likewise.
5638         (probably_never_executed_bb_p): Likewise.
5639         (compute_function_frequency): Likewise.
5640         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5641         (unnest_nesting_tree_1): Likewise.
5642         (lower_nested_functions): Likewise.
5643         * tree-optimize.c (execute_fixup_cfg): Likewise.
5644         (tree_rest_of_compilation): Likewise.
5645         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5646         * tree-sra.c (ipa_early_sra): Likewise.
5647         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5648         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5649         * ipa.c (record_cdtor_fn): Likewise.
5650         * ipa-inline.c (cgraph_early_inlining): Likewise.
5651         (compute_inline_parameters_for_current): Likewise.
5652         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5653         * ipa-pure-const.c (local_pure_const): Likewise.
5654         * ipa-split.c (split_function): Likewise.
5655         (execute_split_functions): Likewise.
5656         * cgraphbuild.c (build_cgraph_edges): Likewise.
5657         (rebuild_cgraph_edges): Likewise.
5658         (cgraph_rebuild_references): Likewise.
5659         (remove_cgraph_callee_edges): Likewise.
5660         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5661         (verify_cgraph_node): Likewise.
5662         (cgraph_analyze_functions): Likewise.
5663         (cgraph_preserve_function_body_p): Likewise.
5664         (save_inline_function_body): Likewise.
5665         (save_inline_function_body): Likewise.
5666         * tree-inline.c (copy_bb): Likewise.
5667         (optimize_inline_calls): Likewise.
5668
5669 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5670
5671         PR tree-optimization/48195
5672         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5673         ipa_check_create_edge_args.
5674         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5675         ipa_check_create_edge_args.
5676         * ipa-inline.c (inline_generate_summary): Do not call
5677         ipa_check_create_node_params and ipa_check_create_edge_args.
5678         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5679         ipa_check_create_edge_args.
5680
5681 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5682
5683         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5684         instead of loop.
5685         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5686         * function.c (record_hard_reg_sets): Likewise.
5687         * ira.c (compute_regs_asm_clobbered): Likewise.
5688         * sched-deps.c (sched_analyze_1): Likewise.
5689         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5690
5691 2011-04-09  Xinliang David Li  <davidxl@google.com>
5692
5693         PR tree-optimization/PR48484
5694         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5695         has_valid_pred lazily
5696
5697 2011-04-09  Duncan Sands  <baldrick@free.fr>
5698
5699         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5700
5701 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5702
5703         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5704         cost of I0 to zero at the end, if any.
5705
5706 2011-04-08  Xinliang David Li  <davidxl@google.com>
5707
5708         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5709         to insane profile data.
5710
5711 2011-04-08  Xinliang David Li  <davidxl@google.com>
5712
5713         * ipa-cp.c (ipcp_update_profiling): Correct
5714          negative scale factor due to insane profile data.
5715
5716 2011-04-08  Xinliang David Li  <davidxl@google.com>
5717
5718         * final.c (dump_basic_block_info): New function.
5719         (final): Dump basic block.
5720         (final_scan_insn): Remove old dump.
5721
5722 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5723
5724         PR target/47829
5725         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5726         crtbegin/crtend.
5727
5728 2011-04-08  Michael Matz  <matz@suse.de>
5729
5730         PR middle-end/48389
5731         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5732         functions.
5733         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5734         * rtl.h (rebuild_jump_labels_chain): Declare.
5735         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5736         insns inserted on edges.
5737
5738 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5739
5740         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5741         * config/arm/arm-arches.def: New.
5742         * config/arm/arm-opts.h: New.
5743         * config/arm/genopt.sh: New.
5744         * config/arm/arm-tables.opt: New (generated).
5745         * config/arm/arm.c (arm_handle_option, arm_target_help,
5746         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5747         (all_architectures): Get most table contents from arm-arches.def.
5748         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5749         arm_selected_tune here.
5750         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5751         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5752         (march=, mcpu=, mtune=): Use Enum and Var.
5753         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5754         (arm.o): Update dependencies.
5755
5756 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5757
5758         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5759         of header_file.
5760         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5761         (write_typed_alloc_defns): Likewise.
5762         (main): Calls write_typed_alloc_defns with output_header.
5763
5764 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5765
5766         PR inline-asm/48435
5767         * ira-color.c (setup_profitable_hard_regs): Add comments.
5768         Don't take prohibited hard regs into account.
5769         (setup_conflict_profitable_regs): Rename to
5770         get_conflict_profitable_regs.
5771         (check_hard_reg_p): Check prohibited hard regs.
5772
5773 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5774
5775         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5776         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5777         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5778
5779 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5780
5781         PR target/48366
5782         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5783         move from floating point to shift amount register.
5784         (emit_move_sequence): Remove secondary reload support for floating
5785         point to shift amount amount register copies.
5786         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5787         amount register copies.
5788         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5789         register, return false if mode isn't a scalar integer mode.
5790         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5791
5792 2011-04-08  Richard Guenther  <rguenther@suse.de>
5793
5794         * gimple.c (gimple_call_flags): Remove kludge.
5795
5796 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5797
5798         * sel-sched.c (sel_region_init): Move call to
5799         sel_setup_region_sched_flags after setup_current_loop_nest.
5800
5801 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5802
5803         PR rtl-optimization/48272
5804         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5805         init_insn_reg_pressure_info.  Adjust a caller.
5806         * sched-int.h (init_insn_reg_pressure_info): Declare.
5807         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5808         when sched-pressure is enabled.
5809
5810 2011-04-08  Richard Guenther  <rguenther@suse.de>
5811
5812         * gimple.c (gimple_set_modified): Do not queue calls to
5813         MODIFIED_NORETURN_CALLS here ...
5814         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5815
5816 2011-04-08  Richard Guenther  <rguenther@suse.de>
5817
5818         PR lto/48467
5819         * toplev.c (lang_dependent_init): Do not open asm_out_file
5820         in WPA mode, nor perform debug machinery initialization.
5821         (finalize): Do not unlink asm_out_file in WPA mode.
5822
5823 2011-04-08  Richard Guenther  <rguenther@suse.de>
5824
5825         * gimple.h (gimple_call_fntype): New function.
5826         (gimple_call_return_type): Use it.
5827         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5828         * gimple-low.c (gimple_check_call_args): Likewise.
5829         * gimple.c (gimple_call_flags): Likewise.
5830         (gimple_call_arg_flags): Likewise.
5831         (gimple_call_return_flags): Likewise.
5832         * tree-cfg.c (verify_gimple_call): Likewise.
5833         (do_warn_unused_result): Likewise.
5834         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5835         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5836
5837 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5838
5839         PR rtl-optimization/48235
5840         * sel-sched.c (code_motion_process_successors): Recompute the last
5841         insn in basic block if control flow changed.
5842         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5843         Update condition for ilist_remove.
5844
5845 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5846
5847         PR rtl-optimization/48302
5848         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5849         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5850         it to record added preheader blocks.
5851         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5852         on to sel_add_loop_preheaders.
5853         (sel_region_init): Move call to setup_current_loop_nest after
5854         sel_init_bbs.
5855
5856 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5857
5858         PR target/48273
5859         * cfgloop.h (loop_has_exit_edges): New helper.
5860         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5861         non-clonable.
5862         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5863         that have no exit edges.
5864
5865 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5866
5867         PR rtl-optimization/48442
5868         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5869         all callers.  Adjust assert.
5870
5871 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5872
5873         PR tree-optimization/48377
5874         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5875         is_packed to true even for types with smaller TYPE_ALIGN than
5876         TYPE_SIZE.
5877
5878 2011-04-08  Richard Guenther  <rguenther@suse.de>
5879
5880         PR bootstrap/48513
5881         * doc/tm.texi: Re-generate.
5882
5883 2011-04-08  Wei Guozhi  <carrot@google.com>
5884
5885         PR target/47855
5886         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5887         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5888         * config/arm/arm.md (*push_multi): Change the length computation to
5889         call a C function.
5890
5891 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5892
5893         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5894         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5895         * doc/tm.texi: Regenerate.
5896         * system.h (ASM_OUTPUT_BSS): Poison.
5897         * varasm.c (asm_output_bss): Remove function.
5898         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5899
5900         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5901         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5902         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5903         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5904         Likewise.
5905         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5906         Likewise.
5907         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5908         Likewise.
5909         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5910
5911 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5912
5913         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5914         EnumValue lines.
5915
5916 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5917
5918         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5919         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5920         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5921         OPT_mcpu32.
5922         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5923         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5924         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5925         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5926         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5927         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5928         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5929         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5930         options.  Don't map other m68k options manually.  Don't handle
5931         old-style options as canonical.
5932         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5933         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5934
5935 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5936
5937         * basic-block.h (force_nonfallthru): Move to...
5938         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5939         (force_nonfallthru): ...here.
5940         * cfghooks.c (force_nonfallthru): New function.
5941         * cfgrtl.c (force_nonfallthru): Rename into...
5942         (rtl_force_nonfallthru): ...this.
5943         (commit_one_edge_insertion): Do not set AUX field.
5944         (commit_edge_insertions): Do not discover new basic blocks.
5945         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5946         (cfg_layout_rtl_cfg_hooks): Likewise.
5947         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5948         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5949         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5950
5951 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5952
5953         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5954         Remove macros.
5955
5956 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5957
5958         * config/i386/sse.md: Update copyright year.
5959         (avxcvtvecmode): Remove.
5960         (sse_movhlps): Merge with *avx_movhlps.
5961         (sse_movlhps): Merge with *avx_movlhps.
5962         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5963         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5964         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5965         (sse_loadhps): Merge with *avx_loadhps.
5966         (sse_storelps): Merge with *avx_storelps.
5967         (sse_loadlps): Merge with *avx_loadlps.
5968         (sse_movss): Merge with *avx_movss.
5969         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5970         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5971         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5972         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5973         (vec_set<mode>_0): Ditto.
5974         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5975         (sse4_1_insertps): Merge with *avx_insertps.
5976         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5977         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5978         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5979         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5980         (sse2_storehpd): Merge with *avx_storehpd.
5981         (sse2_loadhpd): Merge with *avx_loadhpd.
5982         (sse2_loadlpd): Merge with *avx_loadlpd.
5983         (sse2_movsd): Merge with *avx_movsd.
5984         (*vec_concatv2df): Merge with *vec_concatv2df.
5985
5986 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5987
5988         PR debug/48343
5989         * combine.c (combine_instructions): Add last_combined_insn,
5990         update it if insn is after it, pass it to all try_combine calls.
5991         (try_combine): Add last_combined_insn parameter, pass it instead of
5992         i3 to propagate_for_debug.
5993
5994 2011-04-07  Nick Clifton  <nickc@redhat.com>
5995
5996         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5997         to handle MDR <-> data register transfers.
5998         (movhi_internal): Likewise.
5999
6000 2011-04-07  Alan Modra  <amodra@gmail.com>
6001
6002         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6003         previous stack info.
6004
6005 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6006
6007         PR target/43920
6008         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6009         flow_find_cross_jump.  Swap variables to implement backward replacement.
6010         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6011
6012 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6013
6014         PR target/43920
6015         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6016         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6017         and bb2.
6018         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6019         src1 or src2.  Redirect edges to the last basic block.  Update
6020         frequency and count on multiple basic blocks in case of fallthru.
6021
6022 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6023
6024         PR target/43920
6025         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6026         function.
6027         (old_insns_match_p): Change return type.  Replace return false/true
6028         with return dir_none/dir_both.  Use can_replace_by.
6029         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6030         direction from dir_p.  Register replacement direction in dir, last_dir
6031         and afterlast_dir.  Handle new return type of old_insns_match_p using
6032         merge_dir.  Return replacement direction in dir_p.
6033         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6034         return type of old_insns_match_p.
6035         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6036         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6037         flow_find_cross_jump.
6038         * basic-block.h (enum replace_direction): New type.
6039         (flow_find_cross_jump): Add parameter to declaration.
6040
6041 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6042
6043         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6044         (AVXMODEDCVTPS2DQ): Ditto.
6045         (VEC_FLOAT_MODE): Ditto.
6046         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6047         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6048         (<any_logic:code><mode>3): Use VF mode iterator.
6049         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6050         Use VF mode iterator.
6051         (copysign<mode>3): Use VF mode iterator.
6052         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6053         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6054         (*<any_logic:code><MODEF:mode>3): Merge with
6055         *avx_<any_logic:code><MODEF:mode>3.
6056         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6057         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6058         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6059         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6060         (sse2_cvtdq2ps): Use %v modifier.
6061         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6062         (avx_cvtps2dq<avxmodesuffix>): Remove.
6063         (sse2_cvtps2dq): Use %v modifier.
6064         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6065         (avx_cvttps2dq<avxmodesuffix>): Remove.
6066         (sse2_cvttps2dq): Use %v modifier.
6067         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6068         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6069         (sse2_cvtsd2siq): Fix insn template.
6070         (sse2_cvtsd2siq_2): Ditto.
6071         (sse2_cvttsd2siq): Ditto.
6072         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6073         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6074
6075 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6076
6077         * gcov-io.c: Use GCC Runtime Library Exception.
6078
6079 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6080
6081         PR debug/48466
6082         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6083         as base_reg whatever register reg has been eliminated to, instead
6084         of hardcoding STACK_POINTER_REGNUM.
6085
6086 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6087
6088         * doc/tm.texi.in: Document C target hooks as separate from general
6089         target hooks.
6090         * doc/tm.texi: Regenerate.
6091         * genhooks.c (struct hook_desc): Add docname field.
6092         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6093         docname field.
6094         (hook_array): Include c-target.def.
6095         (emit_documentation): Use docname field in output.
6096         (emit_init_macros): Take docname argument.  Only emit definitions
6097         for hooks matching docname.
6098         (main): Expect additional arguments in all cases.  Pass argument
6099         to emit_init_macros.
6100         * target.def: Move initial macro definitions and comments to
6101         target-hooks-macros.h.
6102         (gcc_targetcm): Move to c-family/c-target.def.
6103         * target.h (targetcm): Move declaration to c-family/c-target.h.
6104         * targhooks.c (default_handle_c_option): Move to
6105         c-family/c-opts.c.
6106         * targhooks.h (default_handle_c_option): Move declaration to
6107         c-family/c-common.h.
6108         * target-hooks-macros.h: New file.
6109         * config.gcc (target_has_targetcm): Define and use to add to
6110         c_target_objs and cxx_target_objs.
6111         * config/default-c.c: New file.
6112         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6113         of target.h and target-def.h.
6114         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6115         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6116         darwin_check_cfstring_format_arg): Make static.
6117         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6118         TARGET_STRING_OBJECT_REF_TYPE_P,
6119         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6120         * config/darwin-protos.h (darwin_objc_construct_string,
6121         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6122         declare.
6123         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6124         TARGET_STRING_OBJECT_REF_TYPE_P,
6125         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6126         * config/t-darwin (darwin-c.o): Update dependencies.
6127         * system.h (TARGET_HAS_TARGETCM): Poison.
6128         * Makefile.in (TARGET_H): Update.
6129         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6130         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6131         (default-c.o): New target.
6132         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6133         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6134         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6135         c-target.def.
6136         (build/genhooks.o): Update dependencies.
6137
6138 2011-04-06  Richard Guenther  <rguenther@suse.de>
6139
6140         * ipa-inline.c (enum inlining_mode): Remove.
6141         (cgraph_flatten): Use some other token.
6142         (cgraph_edge_early_inlinable_p): New function, split out from ...
6143         (cgraph_perform_always_inlining): New function, split out from ...
6144         (cgraph_decide_inlining_incrementally): ... here.
6145         (cgraph_mark_inline_edge): Adjust.
6146         (cgraph_early_inlining): Re-structure.
6147         (pass_early_inline): Require SSA form.
6148
6149 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6150             Julian Brown  <julian@codesourcery.com>
6151             Mark Shinwell  <shinwell@codesourcery.com>
6152
6153         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6154         LO_REGS only for Thumb-1.
6155         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6156         be used in short instructions when optimising for size on Thumb-2.
6157
6158 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6159
6160         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6161         associated with user returns to be preserved.
6162
6163 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6164
6165         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6166         symbol_queue_size, DBXOUT_DECR_NESTING,
6167         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6168         if XCOFF_DEBUGGING_INFO.
6169
6170 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6171
6172         * config/i386/i386.md (attribute isa): New.
6173         (attribute enabled): New.
6174         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6175         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6176         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6177         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6178         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6179         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6180         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6181         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6182
6183         * config/i386/sse.md (VF): New mode iterator.
6184         (VF1): Ditto.
6185         (VF2): Ditto.
6186         (VF_128): Ditto.
6187         (SSEMODEF4): Remove.
6188         (attribute sse): Handle V8SF and V4DF modes.
6189         (<absneg:code><mode>2): Use VF mode iterator.
6190         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6191         mode iterator.
6192         (<plusminus_insn><mode>3): Use VF mode iterator.
6193         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6194         Use VF mode iterator.
6195         (<sse>_vm<plusminus_insn><mode>3): Merge with
6196         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6197         (mul<mode>3): Use VF mode iterator.
6198         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6199         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6200         mode iterator.
6201         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6202         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6203         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6204         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6205         mode iterator.
6206         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6207         Use VF1 mode iterator.
6208         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6209         (sqrt<VF2:mode>2): New expander.
6210         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6211         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6212         and sqrtv2df2.  Use VF mode iterator.
6213         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6214         mode iterator.
6215         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6216         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6217         Use VF1 mode iterator.
6218         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6219         (<smaxmin:code><mode>3): Use VF mode iterator.
6220         (*<smaxmin:code><mode>3_finite): Merge with
6221         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6222         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6223         (<sse>_vm<smaxmin:code><mode>2): Merge with
6224         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6225         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6226         mode iterator.
6227         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6228         mode iterator.
6229         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6230         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6231         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6232         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6233         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6234         VF mode iterator.
6235         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6236         Use VF_128 mode iterator.
6237         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6238         mode iterator.
6239         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6240         VF_128 mode iterator.
6241         (vcond<mode>): Use VF mode iterator.
6242         * config/i386/predicates.md (sse_comparison_operator): Merge with
6243         avx_comparison_float_operator.  Do not declare as special_predicate.
6244         * config/i386/i386.c (struct builtin_description): Update for renamed
6245         compare patterns.
6246         (ix86_expand_args_builtin): Ditto.
6247         (ix86_expand_sse_compare_mask): Ditto.
6248
6249 2011-04-06  Richard Guenther  <rguenther@suse.de>
6250
6251         * tree-inline.c (estimate_num_insns): For calls simply account
6252         for all passed arguments and a used return value.
6253
6254 2011-04-06  Richard Guenther  <rguenther@suse.de>
6255
6256         PR tree-optimization/47663
6257         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6258         call_stmt_time fields.
6259         (cgraph_edge_inlinable_p): Declare.
6260         (cgraph_edge_recursive_p): New inline function.
6261         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6262         (cgraph_clone_edge): Copy it.
6263         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6264         Account for call stmt time.
6265         (cgraph_estimate_time_after_inlining): Take edge argument.
6266         (cgraph_estimate_edge_growth): Account call stmt size.
6267         (cgraph_estimate_size_after_inlining): Take edge argument.
6268         (cgraph_mark_inline_edge): Adjust.
6269         (cgraph_check_inline_limits): Likewise.
6270         (cgraph_recursive_inlining_p): Remove.
6271         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6272         (cgraph_decide_recursive_inlining): Take edge argument and
6273         adjust.
6274         (cgraph_decide_inlining_of_small_functions): Do not avoid
6275         diags for recursive inlining here.
6276         (cgraph_flatten): Adjust.
6277         (cgraph_decide_inlining_incrementally): Likewise.
6278         (estimate_function_body_sizes): Remove call cost handling.
6279         (compute_inline_parameters): Initialize caller edge call costs.
6280         (cgraph_estimate_edge_growth): New function.
6281         (cgraph_estimate_growth): Use it.
6282         (cgraph_edge_badness): Likewise.
6283         (cgraph_check_inline_limits): Take an edge argument.
6284         (cgraph_decide_inlining_of_small_functions): Adjust.
6285         (cgraph_decide_inlining): Likewise.
6286         * tree-inline.c (estimate_num_insns): Only account for call
6287         return value if it is used.
6288         (expand_call_inline): Avoid diagnostics on recursive inline
6289         functions here.
6290         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6291         (input_edge): Input edge call costs.
6292
6293 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6294
6295         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6296
6297 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6298
6299         * doc/invoke.texi (Spec Files): Fix typo.
6300
6301 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6302
6303         * profile.c (branch_prob): Move declaration of local variable.  Remove
6304         obsolete ??? comment.  Expand the location explicitly instead of using
6305         the LOCATION_FILE and LOCATION_LINE macros.
6306
6307 2011-04-06  Wei Guozhi  <carrot@google.com>
6308
6309         PR target/47855
6310         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6311         (arm_cond_branch): Likewise.
6312         (arm_cond_branch_reversed): Likewise.
6313         (arm_jump): Likewise.
6314         (push_multi): Likewise.
6315         * config/arm/constraints.md (Py): New constraint.
6316
6317 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6318
6319         PR bootstrap/48471
6320         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6321         Move these...
6322         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6323         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6324         #ifdef DBX_DEBUGGING_INFO.
6325
6326 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6327
6328         PR bootstrap/48403
6329         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6330         if old and new states differ.
6331
6332 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6333
6334         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6335         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6336         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6337         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6338         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6339         mcfv4e): Use Alias.
6340         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6341         ColdFire options to -mcpu= options.
6342
6343 2011-04-05  Jeff Law  <law@redhat.com>
6344
6345         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6346         check if BB is a successor of LOOP->header and return
6347         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6348
6349 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6350
6351         * cprop.c (struct reg_use): Remove.
6352         (reg_use_table): Make an array of RTX.
6353         (find_used_regs, constprop_register, local_cprop_pass,
6354         bypass_block): Simplify users of reg_use_table.
6355         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6356         on one of the uses found by find_used_regs.
6357
6358 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6359
6360         PR bootstrap/48469
6361         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6362         declaration.
6363
6364 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6365
6366         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6367         as an rtx.
6368         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6369
6370 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6371
6372         PR middle-end/48441
6373         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6374
6375 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6376
6377         * combine.c: Include obstack.h.
6378         (struct insn_link): Define.
6379         (uid_log_links): Adjust type.
6380         (FOR_EACH_LOG_LINK): New macro.
6381         (insn_link_obstack): Declare.
6382         (alloc_insn_link): Define.
6383         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6384         type of link variables.
6385         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6386         (try_combine, record_promoted_values, distribute_notes): Likewise.
6387         (distribute_links): Likewise.  Tweak prototype.
6388         (clear_log_links): Delete.
6389         (adjust_for_new_dest): Call alloc_insn_link.
6390         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6391
6392 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6393
6394         * gcse.c (modify_mem_list): Convert to an array of VECs.
6395         (canon_modify_mem_list, compute_transp): Tweak formatting.
6396         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6397         (load_killed_in_block_p): Likewise.
6398         (record_last_mem_set_info): Likewise.
6399         (clear_modify_mem_tables): Likewise.
6400
6401 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6402
6403         PR middle-end/48461
6404         * function.c (emit_use_return_register_into_block): Only define if
6405         HAVE_return.
6406
6407 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6408
6409         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6410
6411 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6412
6413         * config/rx/rx-opts.h: New.
6414         * config/rx/rx.c (rx_cpu_type): Remove.
6415         (rx_handle_option): Don't assert that global structures are in
6416         use.  Access variables via opts pointer.  Defer most handling of
6417         OPT_mint_register_.  Use error_at.
6418         (rx_option_override): Handle deferred OPT_mint_register_ here.
6419         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6420         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6421         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6422         (rx_cpu_types): New Enum and EnumValue entries.
6423         (mint-register=): Use Defer and use Var accordingly.
6424
6425 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6426
6427         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6428         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6429         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6430         Move these...
6431         (debug_free_queue, debug_nesting, symbol_queue_index):
6432         ...and these...
6433         * dbxout.c: ...to here.  Make static.
6434
6435 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6436
6437         * gcse.c (modify_pair): Define.  Define a VEC of it.
6438         (canon_modify_mem_list): Convert to an array of VECs.
6439         (free_insn_expr_list_list): Delete.
6440         (clear_modify_mem_tables): Call VEC_free instead.
6441         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6442         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6443         (canon_list_insert, compute_transp): Likewise.
6444
6445 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6446
6447         PR target/43920
6448         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6449         for size.
6450
6451 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6452
6453         PR target/43920
6454         * function.c (emit_use_return_register_into_block): New function.
6455         (thread_prologue_and_epilogue_insns): Use
6456         emit_use_return_register_into_block.
6457
6458 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6459
6460         PR target/43920
6461         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6462         insn.
6463
6464 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6465
6466         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6467
6468 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6469
6470         * config/arm/arm.md (define_constants for unspec): Replace with
6471         define_c_enum.
6472         (define_constants for unspecv): Replace with define_c_enum.
6473         * config/arm/neon.md (define_constants for unspec): Replace with
6474         define_c_enum.
6475
6476 2011-04-04  Richard Henderson  <rth@redhat.com>
6477
6478         PR bootstrap/48400
6479         * dwarf2out.c (output_line_info): Always emit line info from
6480         at least one section.
6481         (dwarf2out_init): Create text_section_line_info here ...
6482         (set_cur_line_info_table): ... not here.
6483
6484 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6485
6486         PR target/48380
6487         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6488         not called.
6489
6490         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6491
6492 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6493
6494         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6495         (expr_equiv_p): Remove.
6496         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6497         (hash_scan_set): Update call to insert_set_in_table.
6498         (dump_hash_table): Dump <dest, src> pair.
6499         (lookup_set): Simplify.  Lookup <dest, src> pair.
6500         (compute_transp): Remove, fold heavily simplified code into...
6501         (compute_local_properties): ...here.  Expect COMP and TRANSP
6502         unconditionally.
6503         (find_avail_set): Take set directly from struct expr.
6504         (find_bypass-set): Likewise.
6505         (bypass_block): Likewise.
6506         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6507
6508         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6509         checks on form of COND from find_implicit_sets to here.
6510         (find_implicit_sets): Cleanup control flow. Split critical edges
6511         if it exposes implicit sets.  Allocate/resize implicit_sets as
6512         necessary.
6513         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6514         changed something.  Run df_analyze after find_implicit_sets if any
6515         edges were split.  Do not allocate implicit_sets here.
6516
6517         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6518         (gcse_obstack): Renamed to cprop_obstack.
6519         (GNEW, GNEWVEC, GNEWVAR): Remove.
6520         (gmalloc): Remove.
6521         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6522         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6523         (gcse_alloc): Likewise, and rename to cprop_alloc.
6524         (alloc_gcse_men, free_gcse_mem): Remove.
6525         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6526         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6527         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6528
6529         * cprop.c (oprs_not_set_p): Remove.
6530         (mark_set, mark_clobber): Remove.
6531         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6532         (reg_not_set_p): New function.
6533         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6534         (cprop_insn): Likewise.
6535         (cprop_jump): Use FOR_EACH_EDGE.
6536
6537 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6538
6539         PR bootstrap/48403
6540         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6541         (rank_for_schedule): Use scheduled_insns vector instead of
6542         last_scheduled_insn.
6543         (ok_for_early_queue_removal): Likewise.
6544         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6545         we have a dbg_cnt.
6546         (choose_ready): Likewise.
6547         (commit_schedule): Use VEC_iterate.
6548         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6549         a dbg_cnt, use it and ensure the first insn is in the ready list.
6550         (haifa_sched_init): Allocate scheduled_insns.
6551         (sched_extend_ready_list): Don't allocate it; reserve space.
6552         (haifa_sched_finish): Free it.
6553
6554 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6555
6556         * optc-gen.awk: Always remove type from Variable entry before
6557         recording in var_seen.
6558
6559 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6560
6561         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6562         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6563         call to tidy_fallthru_edges.
6564
6565 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6566
6567         * doc/options.texi (ToLower): Document.
6568         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6569         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6570         * opts.h (cl_option): Add cl_tolower field.
6571         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6572         arguments with lowercase strings.
6573         * config/rx/rx.opt (mcpu=): Add ToLower.
6574         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6575         argument.
6576
6577 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6578
6579         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6580
6581 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6582
6583         * config/vax/vax.c: Include reload.h.
6584
6585 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6586
6587         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6588         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6589         (sparc_preferred_reload_class): New function.
6590
6591 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6592
6593         PR debug/48401
6594         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6595         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6596
6597 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6598
6599         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6600         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6601
6602 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6603
6604         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6605         (ASM_OUTPUT_ALIGNED_BSS): Define.
6606
6607 2011-04-03  Michael Matz  <matz@suse.de>
6608
6609         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6610         and next_slot members.
6611         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6612         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6613         (lto_streamer_cache_append): Declare.
6614         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6615         unsigned index, remove offset parameter, ensure that we append
6616         or update existing entries.
6617         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6618         parameter, update next_slot for append.
6619         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6620         parameter.
6621         (lto_streamer_cache_insert_at): Likewise.
6622         (lto_streamer_cache_append): New function.
6623         (lto_streamer_cache_lookup): Use unsigned index.
6624         (lto_streamer_cache_get): Likewise.
6625         (lto_record_common_node): Don't test tree_node_can_be_shared.
6626         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6627         (lto_streamer_cache_delete): Don't free offsets member.
6628         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6629         (lto_output_string_with_length): Use lto_output_data_stream.
6630         (lto_output_tree_header): Remove ix parameter, don't write it.
6631         (lto_output_builtin_tree): Likewise.
6632         (lto_write_tree): Adjust callers to above, don't track and write
6633         offset, write unsigned index.
6634         (output_unreferenced_globals): Don't emit all global vars.
6635         (write_global_references): Use unsigned indices.
6636         (lto_output_decl_state_refs): Likewise.
6637         (write_symbol): Likewise.
6638         * lto-streamer-in.c (lto_input_chain): Move earlier.
6639         (input_function): Use unsigned index.
6640         (input_alias_pairs): Don't read and then ignore all global vars.
6641         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6642         don't pass it back, use lto_streamer_cache_append.
6643         (lto_register_var_decl_in_symtab): Use unsigned index.
6644         (lto_register_function_decl_in_symtab): Likewise.
6645         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6646         index.
6647         (lto_get_builtin_tree): Don't read index, use
6648         lto_streamer_cache_append.
6649         (lto_read_tree): Adjust call to lto_materialize_tree.
6650
6651         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6652         don't use function calls in arguments to MIN.
6653
6654         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6655         twice.
6656
6657         * gimple.c (gimple_type_leader_entry): Mark deletable.
6658
6659 2011-04-03  Alan Modra  <amodra@gmail.com>
6660
6661         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6662
6663 2011-04-03  Michael Matz  <matz@suse.de>
6664
6665         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6666         an integer.
6667         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6668
6669 2011-04-03  Michael Matz  <matz@suse.de>
6670
6671         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6672         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6673         without function context.
6674         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6675         current_function_decl and cfun.
6676
6677 2011-04-03  Michael Matz  <matz@suse.de>
6678
6679         * tree.c (decl_init_priority_insert): Don't create entry for
6680         default priority.
6681         (decl_fini_priority_insert): Ditto.
6682         (fields_compatible_p, find_compatible_field): Remove.
6683         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6684         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6685
6686 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6687
6688         * combine.c (try_combine): Remove useless local variable.
6689
6690 2011-04-03  Richard Guenther  <rguenther@suse.de>
6691             Ira Rosen  <ira.rosen@linaro.org>
6692
6693         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6694         non-variable offsets and compare the remaining bases of the two
6695         accesses instead of looking for exact same data-ref.
6696
6697 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6698
6699         PR target/48416
6700         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6701
6702         * i386.c (ix86_is_msabi_thiscall): New helper function.
6703         (ix86_is_type_thiscall): New helper function.
6704         (ix86_comp_type_attributes): Handle thiscall for method-functions
6705         special.
6706         (init_cumulative_args): Likewise.
6707         (find_drap_reg): Likewise.
6708         (ix86_static_chain): Likewise.
6709         (x86_this_parameter): Likewise.
6710         (x86_output_mi_thunk): Likewise.
6711
6712 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6713             Nicolas Setton  <setton@adacore.com>
6714             Eric Botcazou  <ebotcazou@adacore.com>
6715
6716         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6717         (add_gnat_descriptive_type_attribute): New function.
6718         (gen_array_type_die): Call it.
6719         (gen_enumeration_type_die): Likewise.
6720         (gen_struct_or_union_type_die): Likewise.
6721         (modified_type_die): Likewise.
6722         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6723         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6724         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6725
6726 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6727
6728         PR bootstrap/48148
6729         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6730         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6731
6732         Revert:
6733         2011-03-17  Richard Guenther  <rguenther@suse.de>
6734
6735         PR bootstrap/48148
6736         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6737         origin for decls in other ltrans units.
6738         (input_varpool_node): Likewise.
6739
6740 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6741
6742         PR middle-end/48335
6743         * expr.c (expand_assignment): Handle all possibilities
6744         if TO_RTX is CONCAT.
6745         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6746         (store_split_bit_field): If SUBREG_REG (op0) or
6747         op0 itself has smaller mode than word, return it
6748         for offset 0 and const0_rtx for out-of-bounds stores.
6749         If word is const0_rtx, skip it.
6750
6751 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6752
6753         * config/h8300/h8300.c (print_operand_address): Rename to...
6754         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6755         Call h8300_print_operand and h8300_print_operand_address instead of
6756         print_operand and print_operand_address. Declare.
6757         (print_operand): Renake to...
6758         (h8300_print_operand): ...this. Make static. Adjust comments.
6759         Call h8300_print_operand instead of print_operand. Declare.
6760         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6761         (h8300_register_move_cost): Likewise.
6762         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6763         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6764         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6765         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6766         * config/h8300/h8300-protos.h (print_operand): Delete.
6767         (print_operand_address): Delete.
6768
6769 2011-04-01  Richard Henderson  <rth@redhat.com>
6770
6771         PR 48400
6772         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6773         in strict mode before dwarf4.  Re-order tests to early out
6774         before switching sections.
6775
6776 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6777
6778         * config/h8300/constraints.md: New file.
6779         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6780         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6781         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6782         * config/h8300/predicates.md (bit_operand): Likewise.
6783         (incdec_operand): Use satisfies_constraint_M and
6784         satisfies_constraint_O.  Don't use C code block.
6785         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6786         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6787         (compute_mov_length): Use satisfies_constraint_G.
6788         (fix_bit_operand): Use satisfies_constraint_U.
6789         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6790         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6791         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6792         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6793         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6794         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6795         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6796         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6797         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6798         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6799         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6800         (EXTRA_MEMORY_CONSTRAINT): Delete.
6801
6802 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6803             Michael Meissner  <meissner@linux.vnet.ibm.com>
6804
6805         PR target/48262
6806         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6807         operands, as per the specifications.
6808
6809         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6810         (vec_extract_evenv4sf): Ditto.
6811         (vec_extract_evenv8hi): Ditto.
6812         (vec_extract_evenv16qi): Ditto.
6813         (vec_extract_oddv4si): Ditto.
6814
6815 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6816
6817         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6818         high_pc attribute if the CU has no associated code. Only output
6819         DW_AT_entry_pc for CU if not generating strict dwarf and
6820         dwarf_version < 4.
6821
6822 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6823
6824         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6825         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6826         out of ...
6827         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6828         * final.c (final_start_function): Call the new function rather
6829         than using a NULL argument for dwarf2out_frame_debug.
6830
6831         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6832         that contains the prologue.
6833
6834         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6835         changed.  Print it in debugging output.
6836
6837         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6838
6839         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6840         Split most of the code into...
6841         (begin_move_insn): ... here.  New function.
6842         (ebb_sched_info): Add a pointer to it.
6843         * haifa-sched.c (scheduled_insns): New static variable.
6844         (sched_extend_ready_list): Allocate it.
6845         (schedule_block): Use it to record the order of scheduled insns.
6846         Perform RTL changes to move insns only after all scheduling
6847         decisions have been made.
6848         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6849         begin_move_insn field.
6850         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6851         * sched-int.h (struct haifa_sched_info): Remove second argument
6852         from begin_schedule_ready hook.  Add new member begin_move_insn.
6853         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6854         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6855
6856         * haifa-sched.c (prune_ready_list): New function, broken out of
6857         schedule_block.
6858         (schedule_block): Use it.
6859
6860 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6861
6862         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6863
6864 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6865
6866         * config.gcc (*-*-mingw*): Allow as option the
6867         posix threading model.
6868         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6869         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6870         definition.
6871         (CPP_SPEC): Add pthread/no-pthread handling.
6872         (LIB_SPEC): Likewise.
6873         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6874         (LIB_SPEC): Likewise.
6875         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6876         flag to pass -pthread option for shared libgcc build.
6877         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6878         for shared libgcc build.
6879         * config/i386/t-mingw-pthread: New file.
6880         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6881         New define to enable use of library pthread by default.
6882         * config/i386/mingw.opt (pthread): New driver option.
6883         (no-pthread): New driver option.
6884         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6885         * config/i386/mingw-w64.opt: Likewise.
6886
6887 2011-04-01  Gary Funck  <gary@intrepid.com>
6888
6889         * c-decl.c (grokdeclarator): Fix formatting.
6890
6891 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6892
6893         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6894         instead of n_operands.
6895         (set_storage_via_setmem): Likewise.
6896         * optabs.c (maybe_gen_insn): Likewise.
6897         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6898         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6899         (mips_expand_builtin_direct): Likewise.
6900         * config/spu/spu.c (expand_builtin_args): Likewise.
6901
6902 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6903
6904         * recog.h (insn_data_d): Add n_generator_args.
6905         * genoutput.c (data): Likewise.
6906         (output_insn_data): Print it.
6907         (max_opno, num_dups): Delete.
6908         (scan_operands): Just fill in "d->operand[...]".
6909         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6910
6911 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6912
6913         * gensupport.h (pattern_stats): New structure.
6914         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6915         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6916         (max_operand_1, max_operand_vec): Delete.
6917         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6918
6919 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6920
6921         * emit-rtl.c (emit_pattern_after_setloc): New function.
6922         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6923         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6924         (emit_pattern_after): New function.
6925         (emit_insn_after, emit_jump_insn_after): Call it.
6926         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6927         (emit_pattern_before_setloc): New function.
6928         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6929         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6930         Likewise.
6931         (emit_pattern_before): New function.
6932         (emit_insn_before, emit_jump_insn_before): Call it.
6933         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6934
6935 2011-03-31  Richard Henderson  <rth@redhat.com>
6936
6937         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6938         (dw_separate_line_info_entry): Remove.
6939         (enum dw_line_info_opcode): New.
6940         (dw_line_info_entry): Use it.
6941         (dw_line_info_table, dw_line_info_table_p): New.
6942         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6943         (line_info_table, line_info_label_num): Remove.
6944         (line_info_table_in_use): Remove.
6945         (separate_line_info_table): Remove.
6946         (separate_line_info_table_allocated): Remove.
6947         (separate_line_info_table_in_use): Remove.
6948         (LINE_INFO_TABLE_INCREMENT): Remove.
6949         (line_info_label_num): New.
6950         (cur_line_info_table): New.
6951         (text_section_line_info, cold_text_section_line_info): New.
6952         (separate_line_info): New.
6953         (SEPARATE_LINE_CODE_LABEL): Remove.
6954         (print_dwarf_line_table): Remove.
6955         (debug_dwarf): Don't dump it.
6956         (output_one_line_info_table): New.
6957         (output_line_info): Use it.
6958         (new_line_info_table): New.
6959         (set_cur_line_info_table): New.
6960         (dwarf2out_switch_text_section): Use it.
6961         (dwarf2out_begin_function): Likewise.
6962         (push_dw_line_info_entry): New.
6963         (dwarf2out_source_line): Rewrite for new line info tables.
6964         (dwarf2out_init): Remove dead initailizations.
6965
6966 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6967
6968         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6969         various flags.
6970         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6971         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6972         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6973         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6974         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6975         * opt-functions.awk (flag_init, switch_bit_fields): New.
6976         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6977         generate CL_MISSING_OK or CL_SAVE.
6978         * optc-gen.awk: Update to generate bit-field output as well as
6979         flags field.
6980         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6981         bit-field instead of CL_REJECT_DRIVER flag.
6982         * opts-common.c (generate_canonical_option,
6983         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6984         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6985         instead of CL_REJECT_NEGATIVE flag.
6986         * toplev.c (print_switch_values): Use cl_report bit-field instead
6987         of CL_REPORT flag.
6988
6989 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6990
6991         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6992         a zero minimum index only if it is redundant.
6993
6994 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6995
6996         PR rtl-optimization/48381
6997         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6998         instead of ira_class_hard_reg_index for calculating conflicting
6999         hard registers.
7000
7001 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7002
7003         * cprop.c: Clean up hash table building.
7004         (reg_avail_info): Remove.
7005         (oprs_available_p): Remove.
7006         (record_last_reg_set_info): Remove.
7007         (record_last_set_info): Remove.
7008         (reg_available_p): New function.
7009         (gcse_constant_p): Do not treat unfolded conditions as constants.
7010         (make_set_regs_unavailable): New function.
7011         (hash_scan_set): Simplify with new reg_available_p.
7012         (compute_hash_table_work): Traverse insns stream only once.
7013         Do not compute reg_avail_info. Traverse insns in reverse order.
7014         Record implicit sets after recording explicit sets from the block.
7015
7016 2011-03-31  Michael Matz  <matz@suse.de>
7017
7018         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7019
7020 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7021
7022         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7023         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7024         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7025         (h8300_mode_dependent_address_p): New function.
7026         (h8300_get_index): Make static.
7027
7028 2011-03-31  Jeff Law  <law@redhat.com>
7029
7030         * reload1.c (elimination_effects): Fix typo in recent change.
7031
7032         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7033         typo potentially leading to null pointer dereference.
7034
7035         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7036         (setup_save_areas): Corresponding changes to avoid useless
7037         assignments.
7038
7039         * jump.c (reversed_comparison_code_parts): Avoid successive return
7040         statements when REVERSE_CONDITION is defined.
7041
7042         * expr.c (expand_assignment): Avoid useless assignments.
7043         (expand_expr_real_1): Likewise.
7044         (expand_expr_real_2): Avoid useless statements.
7045
7046         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7047
7048         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7049
7050         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7051         statements.
7052
7053         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7054
7055 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7056
7057         PR target/47109
7058         * doc/tm.texi.in (TARGET_VERSION): Remove.
7059         * doc/tm.texi: Regenerate.
7060         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7061         * collect2.c (main): Don't use TARGET_VERSION.
7062         * mips-tdump.c (main): Don't use TARGET_VERSION.
7063         * mips-tfile.c (main): Don't use TARGET_VERSION.
7064         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7065         * config/rs6000/vxworksae.h: Remove.
7066         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7067         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7068         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7069         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7070         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7071         * config/arm/arm.h (TARGET_VERSION): Remove.
7072         * config/arm/coff.h (TARGET_VERSION): Remove.
7073         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7074         * config/arm/elf.h (TARGET_VERSION): Remove.
7075         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7076         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7077         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7078         * config/arm/pe.h (TARGET_VERSION): Remove.
7079         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7080         * config/arm/semi.h (TARGET_VERSION): Remove.
7081         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7082         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7083         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7084         * config/avr/avr.h (TARGET_VERSION): Remove.
7085         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7086         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7087         * config/frv/frv.h (TARGET_VERSION): Remove.
7088         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7089         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7090         * config/i386/darwin.h (TARGET_VERSION): Remove.
7091         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7092         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7093         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7094         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7095         * config/i386/gnu.h (TARGET_VERSION): Remove.
7096         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7097         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7098         * config/i386/linux.h (TARGET_VERSION): Remove.
7099         * config/i386/linux64.h (TARGET_VERSION): Remove.
7100         * config/i386/lynx.h (TARGET_VERSION): Remove.
7101         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7102         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7103         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7104         * config/i386/netware.h (TARGET_VERSION): Remove.
7105         * config/i386/nto.h (TARGET_VERSION): Remove.
7106         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7107         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7108         * config/ia64/elf.h (TARGET_VERSION): Remove.
7109         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7110         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7111         * config/ia64/linux.h (TARGET_VERSION): Remove.
7112         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7113         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7114         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7115         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7116         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7117         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7118         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7119         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7120         * config/m68k/linux.h (TARGET_VERSION): Remove.
7121         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7122         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7123         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7124         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7125         * config/mep/mep.h (TARGET_VERSION): Remove.
7126         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7127         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7128         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7129         * config/mips/linux.h (TARGET_VERSION): Remove.
7130         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7131         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7132         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7133         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7134         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7135         * config/pa/pa.h (TARGET_VERSION): Remove.
7136         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7137         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7138         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7139         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7140         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7141         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7142         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7143         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7144         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7145         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7146         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7147         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7148         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7149         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7150         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7151         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7152         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7153         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7154         * config/s390/linux.h (TARGET_VERSION): Remove.
7155         * config/s390/s390.h (TARGET_VERSION): Remove.
7156         * config/s390/tpf.h (TARGET_VERSION): Remove.
7157         * config/score/score.h (TARGET_VERSION): Remove.
7158         * config/sh/linux.h (TARGET_VERSION): Remove.
7159         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7160         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7161         * config/sh/sh.h (TARGET_VERSION): Remove.
7162         * config/sh/sh64.h (TARGET_VERSION): Remove.
7163         * config/sh/superh.h (TARGET_VERSION): Remove.
7164         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7165         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7166         * config/sparc/linux.h (TARGET_VERSION): Remove.
7167         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7168         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7169         TARGET_NAME32, TARGET_NAME): Remove.
7170         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7171         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7172         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7173         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7174         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7175         * config/spu/spu.h (TARGET_VERSION): Remove.
7176         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7177         * config/v850/v850.h (TARGET_VERSION): Remove.
7178         * config/vax/linux.h (TARGET_VERSION): Remove.
7179         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7180         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7181         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7182
7183 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7184
7185         PR target/48142
7186         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7187         frame-related from frame-unrelated adjustments to the stack pointer.
7188
7189 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7190
7191         * common.opt (fdebug-types-section): Move earlier.
7192         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7193
7194 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7195
7196         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7197         var.
7198
7199 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7200
7201         * tree.h (CASE_CHAIN): Define.
7202         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7203         (gimple_redirect_edge_and_branch): Likewise.
7204
7205 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7206
7207         PR middle-end/48367
7208         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7209         calculation.
7210
7211 2011-03-30  Jeff Law  <law@redhat.com>
7212
7213         * PR bootstrap/48371
7214         * reload1.c (reload): Fix botch in last change.
7215
7216         * reload.h (struct reload): Fix typo introduced in last change.
7217
7218 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7219
7220         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7221         Undocumented.  Remove help text.
7222         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7223         -mhard-float.
7224
7225 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7226
7227         * doc/options.texi (NegativeAlias): Document.
7228         (Alias): Mention NegativeAlias.
7229         * opt-functions.awk: Handle NegativeAlias.
7230         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7231         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7232         * opts.h (CL_NEGATIVE_ALIAS): Define.
7233         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7234         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7235         OPT_mspe_.
7236         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7237         Alias entries.
7238         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7239         mno-spe and mno-isel instead of mspe=no and -misel=no.
7240
7241 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7242
7243         * common.opt (fdebug-types-section): New flag.
7244         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7245         * dwarf2out.c (use_debug_types): New define.
7246         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7247         (print_die): Guard output of type unit signatures using
7248         use_debug_types.
7249         (build_abbrev_table): Replace assert of dwarf_version >= 4
7250         with assert on use_debug_types.
7251         (size_of_die): Likewise.
7252         (unmark_dies): Likewise.
7253         (value_format): Decide AT_ref_external form on use_debug_types.
7254         (output_die): Replace dwarf_version version check guard with
7255         use_debug_types where appropriate.
7256         (modified_type_die): Likewise.
7257         (gen_reference_type_die): Likewise.
7258         (dwarf2out_start_source_file): Likewise.
7259         (dwarf2out_end_source_file): Likewise.
7260         (prune_unused_types_walk_attribs): Likewise.
7261         (dwarf2out_finish): Likewise.
7262
7263 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7264
7265         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7266
7267 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7268
7269         PR rtl-optimization/48332
7270         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7271         mode of input operand N and modeN to its actual mode.
7272
7273 2011-03-30  Jeff Law  <law@redhat.com>
7274
7275         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7276         define accessor macro.
7277         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7278         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7279         (reg_equiv_init): Likewise.
7280         (reg_equivs_size): New variable.
7281         (reg_equiv_init_size): Remove.
7282         (allocate_initial_values): Move prototype to here from....
7283         * integrate.h (allocate_initial_values): Remove prototype.
7284         * integrate.c: Include reload.h.
7285         (allocate_initial_values): Corresponding changes.
7286         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7287         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7288         (update_equiv_regs): Corresponding changes.
7289         (ira): Corresponding changes.
7290         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7291         (push_secondary_reload): Corresponding changes.
7292         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7293         (make_memloc, find_reloads_address): Corresponding changes.
7294         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7295         (find_reloads_address_1): Corresponding changes.
7296         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7297         (refers_to_regno_for_reload_p): Corresponding changes.
7298         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7299         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7300         * reload1.c: Include ggc.h.
7301         (grow_reg_equivs): New function.
7302         (replace_pseudos_in, reload): Corresponding changes.
7303         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7304         (eliminate_regs_1, elimination_effects): Corresponding changes.
7305         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7306         (delete_output_reload): Likewise.
7307         * caller-save.c (mark_referenced_regs): Corresponding changes.
7308         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7309         * frv/predicates.md (frv_load_operand): Corresponding changes.
7310         * microblaze/microblaze.c (double_memory_operand): Corresponding
7311         changes.
7312         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7313         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7314         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7315         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7316         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7317         changes.
7318         * pa/pa.c (emit_move_sequence): Corresponding changes.
7319         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7320
7321 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7322
7323         PR target/47551
7324         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7325         structure modes.  Don't check neon_vector_mem_operand for
7326         vector or structure modes.
7327
7328 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7329             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7330
7331         PR target/43590
7332         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7333         operand 1 and reshuffle the operands to match.
7334         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7335
7336 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7337
7338         PR driver/48208
7339         * config/c.opt (F): Added 'Driver' to -F option.
7340
7341         PR driver/48260
7342         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7343           handler function.
7344         * config/darwin.opt: Added '-arch' option.
7345
7346 2011-03-30  Nick Clifton  <nickc@redhat.com>
7347
7348         * config/rx/rx.md: Add peepholes and patterns to combine
7349         extending loads and simple arithmetic instructions.
7350         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7351         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7352         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7353         modes to use pre-decrement and post-increment addressing.
7354         (rx_is_restricted_memory_address): Add range checking of REG+INT
7355         addresses.
7356         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7357         (rx_memory_move_cost): Adjust cost of stores.
7358         (rx_adjust_insn_length): New function.
7359
7360 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7361
7362         PR c/48305
7363         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7364         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7365         matching arg00/arg01 types.
7366
7367 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7368
7369         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7370         last_location to UNKNOWN_LOCATION.
7371
7372 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7373
7374         PR target/48349
7375         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7376         FLOAT_SSE_REGS.
7377
7378 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7379             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7380
7381         PR bootstrap/48337
7382         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7383         Init(PROCESSOR_V7).
7384         (sparc_cpu): Likewise.
7385         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7386         PROCESSOR_V7.
7387
7388 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7389
7390         PR target/48336
7391         PR middle-end/48342
7392         PR rtl-optimization/48345
7393         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7394         hard regs for given mode from profitable regs when doing secondary
7395         allocation.
7396
7397 2011-03-29  Jeff Law  <law@redhat.com>
7398
7399         PR bootstrap/48327
7400         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7401         do_not_duplicate field.
7402         (lookup_redirection_data): Corresponding changes.
7403         (create_duplicates): Always create a template block.
7404         (redirect_edges): Remove code which reused the original block
7405         when it was going to become unreachable code.
7406         (thread_block): Don't set do_not_duplicate field.
7407
7408 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7409
7410         * lto-opts.c (register_user_option_p, lto_register_user_option):
7411         Make type argument unsigned.
7412         * lto-streamer.h (lto_register_user_option): Make type argument
7413         unsigned.
7414         * opth-gen.awk: Make CL_* macros unsigned.
7415         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7416         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7417         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7418         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7419         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7420         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7421         (find_opt): Make lang_mask argument unsigned.
7422
7423 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7424
7425         PR rtl-optimization/48331
7426         PR rtl-optimization/48334
7427         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7428         for any used algorithm.
7429
7430 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7431
7432         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7433         to parent_max.
7434
7435 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7436
7437         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7438         (alpha_option_override): Don't set alpha_sr_alias_set.
7439         (emit_frame_store_1): Use gen_frame_mem rather than calling
7440         set_mem_alias_set.
7441         (alpha_expand_epilogue): Ditto.
7442
7443 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7444
7445         PR tree-optimization/48290
7446         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7447         vectorization, check that relevant phis in the basic block after
7448         the inner loop are really inner loop's exit phis.
7449
7450 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7451
7452         PR debug/48190
7453         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7454         (cached_dw_loc_list_def): New structure.
7455         (cached_dw_loc_list): New typedef.
7456         (cached_dw_loc_list_table): New variable.
7457         (cached_dw_loc_list_table_hash): New function.
7458         (cached_dw_loc_list_table_eq): Likewise.
7459         (add_location_or_const_value_attribute): Take a bool cache_p.
7460         Cache the list when the parameter is true.
7461         (gen_formal_parameter_die): Update caller.
7462         (gen_variable_die): Likewise.
7463         (dwarf2out_finish): Likewise.
7464         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7465         while generating debug info for the decl.
7466         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7467         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7468         (resolve_addr): Cache the result of resolving a chain of
7469         location lists.
7470
7471 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7472
7473         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7474         conflict object hard regset nodes have intersecting hard reg sets.
7475
7476         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7477         after regstat_init_n_sets_and_refs.
7478
7479         * ira.c: Add more comments at the top.
7480         (setup_stack_reg_pressure_class, setup_pressure_classes):
7481         Add comments how we compute the register pressure classes.
7482         (setup_allocno_and_important_classes): Add more comments.
7483         (setup_class_translate_array, reorder_important_classes)
7484         (setup_reg_class_relations): Add comments.
7485
7486         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7487         start of the file.
7488
7489         * ira-color.c: Add 2011 to the Copyright line.
7490         (assign_hard_reg):  Add more comments.
7491         (improve_allocation): Ditto.
7492
7493         * ira-costs.c: Add 2011 to the Copyright line.
7494         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7495         comments.
7496         (setup_regno_cost_classes_by_mode): Ditto.
7497
7498         Initial patches from ira-improv branch:
7499
7500         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7501
7502         * ira-build.c (ira_create_object): Remove initialization of
7503         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7504         (ira_create_allocno): Remove initialization of
7505         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7506         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7507         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7508         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7509         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7510         Initialize ALLOCNO_ADD_DATA.
7511         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7512         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7513         ALLOCNO_REG.
7514         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7515         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7516
7517         * ira.c (ira_reallocate): Remove.
7518         (setup_pressure_classes): Call
7519         ira_init_register_move_cost_if_necessary.  Use
7520         ira_register_move_cost instead of ira_get_register_move_cost.
7521         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7522         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7523
7524         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7525         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7526         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7527         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7528         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7529         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7530         Fix formatting.
7531         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7532         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7533         (struct allocno_color_data): New.
7534         (allocno_color_data_t): New typedef.
7535         (allocno_color_data): New definition.
7536         (ALLOCNO_COLOR_DATA): New macro.
7537         (struct object_color_data): New.
7538         (object_color_data_t): New typedef.
7539         (object_color_data): New definition.
7540         (OBJECT_COLOR_DATA): New macro.
7541         (update_copy_costs, calculate_allocno_spill_cost): Call
7542         ira_init_register_move_cost_if_necessary.  Use
7543         ira_register_move_cost instead of ira_get_register_move_cost.
7544         (move_spill_restore, update_curr_costs): Ditto.
7545         (allocno_spill_priority): Make it inline.
7546         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7547         (struct coalesce_data, coalesce_data_t): New.
7548         (allocno_coalesce_data): New definition.
7549         (ALLOCNO_COALESCE_DATA): New macro.
7550         (merge_allocnos, coalesced_allocno_conflict_p): Use
7551         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7552         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7553         (coalesce_allocnos): Ditto.
7554         (setup_coalesced_allocno_costs_and_nums): Ditto.
7555         (collect_spilled_coalesced_allocnos): Ditto.
7556         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7557         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7558         (coalesce_spill_slots): Ditto.
7559         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7560         free allocno_coalesce_data.
7561
7562         * ira-conflicts.c: Fix formatting.
7563         (process_regs_for_copy): Call
7564         ira_init_register_move_cost_if_necessary.  Use
7565         ira_register_move_cost instead of ira_get_register_move_cost.
7566         (build_object_conflicts): Optimize.
7567
7568         * ira-costs.c (record_reg_classes): Optimize.  Call
7569         ira_init_register_move_cost_if_necessary.  Use
7570         ira_register_move_cost, ira_may_move_in_cost, and
7571         ira_may_move_out_cost instead of ira_get_register_move_cost and
7572         ira_get_may_move_cost.
7573         (record_address_regs): Ditto.
7574         (scan_one_insn): Optimize.
7575         (find_costs_and_classes): Optimize.
7576         (process_bb_node_for_hard_reg_moves): Call
7577         ira_init_register_move_cost_if_necessary.  Use
7578         ira_register_move_cost instead of ira_get_register_move_cost.
7579
7580         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7581         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7582         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7583         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7584         definitions.
7585         (ira_initiate_emit_data, ira_finish_emit_data)
7586         (create_new_allocno): New functions.
7587         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7588         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7589         Use ira_register_move_cost instead of ira_get_register_move_cost.
7590
7591         * ira-int.h: Fix some comments.
7592         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7593         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7594         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7595         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7596         add_data.
7597         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7598         bitfield after mode.  Make hard_regno a short int.  Make
7599         hard_regno short.  Remove first_coalesced_allocno and
7600         next_coalesced_allocno.  Move mem_optimized_dest_p,
7601         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7602         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7603         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7604         temp, colorable_p.  Add new member add_data.
7605         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7606         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7607         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7608         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7609         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7610         (ALLOCNO_ADD_DATA): New macro.
7611         (ira_emit_data_t): New typedef.
7612         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7613         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7614         from struct ira_allocno.
7615         (ALLOCNO_EMIT_DATA): New macro.
7616         (ira_allocno_emit_data, allocno_emit_reg): New.
7617         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7618         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7619         (OBJECT_ADD_DATA): New macro.
7620         (ira_reallocate): Remove.
7621         (ira_initiate_emit_data, ira_finish_emit_data): New.
7622         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7623         (ira_init_register_move_cost_if_necessary): New.
7624         (ira_object_conflict_iter_next): Merge into
7625         ira_object_conflict_iter_cond.
7626         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7627
7628         * ira-live.c (process_single_reg_class_operands): Call
7629         ira_init_register_move_cost_if_necessary.  Use
7630         ira_register_move_cost instead of ira_get_register_move_cost.
7631
7632         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7633
7634         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7635
7636         * ira-costs.c: Fix formatting.
7637         (cost_classes, cost_classes_num): Remove.
7638         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7639         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7640         (cost_classes_del, cost_classes_htab): New.
7641         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7642         (initiate_regno_cost_classes, setup_cost_classes): New.
7643         (setup_regno_cost_classes_by_aclass): New.
7644         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7645         (record_reg_classes): Use regno_cost_classes instead of
7646         cost_classes.  Move checking opposite operand up.
7647         (record_address_regs): Use regno_cost_classes
7648         instead of cost_classes.
7649         (scan_one_insn): Ditto.  Use always general register.
7650         (print_allocno_costs): Use regno_cost_classes instead of
7651         cost_classes.
7652         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7653         (find_costs_and_classes): Set up cost classes for each registers.
7654         Use also their mode for this.  Use regno_cost_classes instead of
7655         cost_classes.
7656         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7657         cost_classes.
7658         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7659         (ira_costs, ira_set_pseudo_classes): Call
7660         initiate_regno_cost_classes and finish_regno_cost_classes.
7661
7662         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7663
7664         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7665
7666         * target.def (ira_cover_classes): Remove.
7667
7668         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7669
7670         * doc/tm.texi.in: Ditto.
7671
7672         * ira-conflicts.c: Remove mentioning cover classes from the file.
7673         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7674         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7675
7676         * targhooks.c (default_ira_cover_classes): Remove.
7677
7678         * targhooks.h (default_ira_cover_classes): Ditto.
7679
7680         * haifa-sched.c: Remove mentioning cover classes from the file.
7681         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7682         ira_pressure_classes and ira_pressure_classes_num instead of
7683         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7684         sched_regno_pressure_class instead of sched_regno_cover_class.
7685         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7686         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7687
7688         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7689         classes from the file.
7690         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7691         (struct object_hard_regs, struct object_hard_regs_node): New.
7692         (struct ira_object): New members profitable_hard_regs,
7693         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7694         (struct ira_allocno): Rename cover_class to aclass.  Rename
7695         cover_class_cost and updated_cover_class_cost to class_cost and
7696         updated_class_cost.  Remove splay_removed_p and
7697         left_conflict_size.  Add new members colorable_p.
7698         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7699         (ALLOCNO_COLORABLE_P): New macro.
7700         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7701         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7702         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7703         (OBJECT_...): Rename parameter C to O.
7704         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7705         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7706         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7707         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7708         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7709         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7710         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7711         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7712         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7713         x_ira_reg_class_subunion.
7714         (ira_max_memory_move_cost, ira_max_register_move_cost)
7715         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7716         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7717         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7718         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7719         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7720         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7721         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7722         (ira_tune_allocno_costs_and_cover_classes): Rename to
7723         ira_tune_allocno_costs.
7724         (ira_debug_hard_regs_forest): New.
7725         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7726         (ira_object_conflict_iter_next): Fix comments.
7727         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7728         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7729         cover_class to aclass.
7730         (ira_allocate_and_accumulate_costs): Ditto.
7731         (ira_allocate_and_set_or_copy_costs): Ditto.
7732
7733         * opts.c (decode_options): Remove ira_cover_class check.
7734
7735         * ira-color.c: Remove mentioning cover classes from the file.  Use
7736         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7737         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7738         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7739         (splay-tree.h): Remove include.
7740         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7741         before copy_freq_compare_func.
7742         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7743         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7744         New definitions.
7745         (hard_regs_roots, hard_regs_node_vec): Ditto.
7746         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7747         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7748         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7749         (create_new_object_hard_regs_node): Ditto.
7750         (add_new_object_hard_regs_node_to_forest): Ditto.
7751         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7752         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7753         Ditto.
7754         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7755         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7756         (remove_unused_object_hard_regs_nodes): Ditto.
7757         (enumerate_object_hard_regs_nodes): Ditto.
7758         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7759         (object_hard_regs_subnode_t): Ditto.
7760         (struct object_hard_regs_subnode): Ditto.
7761         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7762         (setup_object_hard_regs_subnode_index): Ditto.
7763         (get_object_hard_regs_subnodes_num): Ditto.
7764         (form_object_hard_regs_nodes_forest): Ditto.
7765         (finish_object_hard_regs_nodes_tree): Ditto.
7766         (finish_object_hard_regs_nodes_forest): Ditto.
7767         (allocnos_have_intersected_live_ranges_p): Rename to
7768         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7769         (pseudos_have_intersected_live_ranges_p): Rename to
7770         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7771         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7772         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7773         (update_copy_costs): Remove assert.  Skip cost update if the hard
7774         reg does not belong the class.
7775         (assign_hard_reg): Process only profitable hard regs.
7776         (uncolorable_allocnos_num): Make it scalar.
7777         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7778         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7779         and ira_reg_class_max_nregs.
7780         (bucket_allocno_compare_func): Check frequency first.
7781         (sort_bucket): Add compare function as a parameter.
7782         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7783         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7784         (push_allocno_to_stack): Rewrite for checking new allocno
7785         colorability.
7786         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7787         (push_only_colorable): Pass new parameter to sort_bucket.
7788         (push_allocno_to_spill): Remove.
7789         (allocno_spill_priority_compare): Make it inline and rewrite.
7790         (splay_tree_allocate, splay_tree_free): Remove.
7791         (allocno_spill_sort_compare): New function.
7792         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7793         build and use splay tree.  Choose first allocno in uncolorable
7794         allocno bucket to spill.  Remove setting spill cost.
7795         (all_conflicting_hard_regs): Remove.
7796         (setup_allocno_available_regs_num): Check only profitable hard
7797         regs.  Print info about hard regs nodes.
7798         (setup_allocno_left_conflicts_size): Remove.
7799         (put_allocno_into_bucket): Don't call
7800         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7801         (improve_allocation): New.
7802         (color_allocnos): Call setup_profitable_hard_regs,
7803         form_object_hard_regs_nodes_forest, improve_allocation,
7804         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7805         (print_loop_title): Use pressure classes.
7806         (color_allocnso): Ditto.
7807         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7808         and allocnos_for_spilling.
7809         (ira_sort_regnos_for_alter_reg): Don't setup members
7810         {first,next}_coalesced_allocno.
7811         (color): Remove allocating and freeing removed_splay_allocno_vec.
7812         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7813         prohibited_class_mode_regs.
7814
7815         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7816         formatting.
7817         (update_allocno_pressure_excess_length): Use pressure classes.
7818         (inc_register_pressure, dec_register_pressure): Check for pressure
7819         class.
7820         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7821         pressure class.  Use ira_reg_class_nregs instead of
7822         ira_reg_class_max_nregs.
7823         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7824         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7825         (single_reg_class): Use ira_reg_class_nregs instead of
7826         ira_reg_class_max_nregs.
7827         (process_bb_node_lives): Use pressure classes.
7828
7829         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7830         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7831         (change_loop): Use pressure classes.
7832         (modify_move_list): Call ira_set_allocno_class instead of
7833         ira_set_allocno_cover_class.
7834
7835         * ira-build.c: Remove mentioning cover classes from the file.  Use
7836         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7837         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7838         ALLOCNO_UPDATED_CLASS_COST instead of
7839         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7840         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7841         (ira_create_allocno): Remove initialization of
7842         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7843         ALLOCNO_COLORABLE_P.
7844         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7845         Update conflict regs for the objects.
7846         (create_cap_allocno): Remove assert.  Don't propagate
7847         ALLOCNO_AVAILABLE_REGS_NUM.
7848         (ira_free_allocno_costs): New function.
7849         (finish_allocno): Change a part of code into call of
7850         ira_free_allocno_costs.
7851         (low_pressure_loop_node_p): Use pressure classes.
7852         (object_range_compare_func): Don't compare classes.
7853         (setup_min_max_conflict_allocno_ids): Ditto.
7854
7855         * loop-invariant.c: Remove mentioning cover classes from the file.
7856         Use ira_pressure_classes and ira_pressure_classes_num instead of
7857         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7858         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7859         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7860         Use reg_allocno_class instead of reg_cover_class.
7861         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7862         STACK_REG_COVER_CLASS.
7863         (get_regno_cover_class): Rename to get_regno_pressure_class.
7864         (move_loop_invariants): Initialize and finalize regstat.
7865
7866         * ira.c: Remove mentioning cover classes from the file.  Add
7867         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7868         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7869         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7870         setup_class_subset_and_memory_move_costs.
7871         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7872         (setup_cover_and_important_classes): Rename to
7873         setup_allocno_and_important_classes.
7874         (setup_class_translate_array): New.
7875         (setup_class_translate): Call it for allocno and pressure classes.
7876         (cover_class_order): Rename to allocno_class_order.
7877         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7878         of ira_class_translate.
7879         (reorder_important_classes): Set up ira_important_class_nums.
7880         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7881         (print_class_cover): Rename to print_classes.  Add parameter.
7882         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7883         Print pressure classes too.
7884         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7885         setup_reg_subclasses.
7886         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7887         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7888         (setup_prohibited_class_mode_regs): Use
7889         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7890         (clarify_prohibited_class_mode_regs): New function.
7891         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7892         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7893         (ira_init_once): Initialize them.
7894         (free_register_move_costs): Process them.
7895         (ira_init): Move calls of find_reg_classes and
7896         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7897         Call clarify_prohibited_class_mode_regs.
7898         (ira_no_alloc_reg): Remove.
7899         (too_high_register_pressure_p): Use pressure classes.
7900
7901         * sched-deps.c: Remove mentioning cover classes from the file.
7902         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7903         ira_pressure_classes and ira_pressure_classes_num instead of
7904         ira_reg_class_cover_size and ira_reg_class_cover.
7905         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7906         sched_regno_pressure_class instead of sched_regno_cover_class.
7907         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7908         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7909
7910         * ira.h: Add 2010 to Copyright.
7911         (ira_no_alloc_reg): Remove external.
7912         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7913         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7914         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7915         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7916         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7917         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7918         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7919         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7920         x_ira_no_alloc_regs.
7921         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7922         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7923         ira_allocno_classes_num and ira_allocno_classes.
7924         (ira_class_translate): Rename to ira_allocno_class_translate.
7925         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7926         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7927         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7928         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7929         (ira_no_alloc_regs): New.
7930
7931         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7932         classes from the file.  Use ALLOCNO_CLASS instead of
7933         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7934         ALLOCNO_COVER_CLASS_COST.
7935         (regno_cover_class): Rename to regno_aclass.
7936         (record_reg_classes): Use ira_reg_class_subunion instead of
7937         ira_reg_class_union.
7938         (record_address_regs): Check overflow.
7939         (scan_one_insn): Ditto.
7940         (print_allocno_costs): Print total mem cost fore regional allocation.
7941         (print_pseudo_costs): Use REG_N_REFS.
7942         (find_costs_and_classes): Use classes intersected with them on the
7943         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7944         ira_reg_class_union.  Use ira_allocno_class_translate and
7945         regno_aclass instead of ira_class_translate and regno_cover_class.
7946         Modify code for finding regno_aclass.  Setup preferred classes for
7947         the next pass.
7948         (setup_allocno_cover_class_and_costs): Rename to
7949         setup_allocno_class_and_costs.  Use regno_aclass instead of
7950         regno_cover_class.  Use ira_set_allocno_class instead of
7951         ira_set_allocno_cover_class.
7952         (init_costs, finish_costs): Use regno_aclass instead of
7953         regno_cover_class.
7954         (ira_costs): Use setup_allocno_class_and_costs instead of
7955         setup_allocno_cover_class_and_costs.
7956         (ira_tune_allocno_costs_and_cover_classes): Rename to
7957         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7958         by processing objects.  Use ira_reg_class_max_nregs instead of
7959         ira_reg_class_nregs.
7960
7961         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7962
7963         * sched-int.h: Remove mentioning cover classes from the file.
7964         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7965
7966         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7967         classes from the file.
7968         (struct reg_pref): Rename coverclass into allocnoclass.
7969         (reg_cover_class): Rename to reg_allocno_class.
7970
7971         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7972
7973         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7974
7975         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7976
7977         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7978
7979         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7980
7981         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7982
7983         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7984
7985         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7986
7987         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7988
7989         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7990
7991         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7992         (i386_ira_cover_classes): Ditto.
7993
7994         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7995
7996         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7997
7998         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7999
8000         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8001
8002         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8003
8004         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8005
8006         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8007         (mips_ira_cover_classes): Ditto.
8008
8009         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8010
8011         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8012
8013         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8014
8015         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8016
8017         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8018
8019         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8020         (IRA_COVER_CLASSES_VSX): Ditto.
8021
8022         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8023         (rs6000_ira_cover_classes): Ditto.
8024
8025         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8026
8027         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8028
8029         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8030
8031         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8032
8033         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8034
8035         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8036
8037         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8038
8039         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8040
8041         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8042
8043         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8044
8045 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8046
8047         PR debug/48253
8048         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8049         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8050         dw_fde_unlikely_section_end_label, cold_in_std_section,
8051         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8052         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8053         fields.
8054         (output_fde): Use dw_fde_second_{begin,end} if second is
8055         true, otherwise dw_fde_{begin,end}.
8056         (output_call_frame_info): Test dw_fde_second_begin != NULL
8057         instead of dw_fde_switched_sections.
8058         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8059         fields, initialize new fields.  Initialize in_std_section
8060         unconditionally from the first partition.
8061         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8062         dw_fde_second_begin is non-NULL.
8063         (dwarf2out_switch_text_section): Stop initializing removed
8064         dw_fde_struct fields, initialize new fields, initialize
8065         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8066         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8067         (struct var_loc_list_def): Add last_before_switch field.
8068         (arange_table, arange_table_allocated, arange_table_in_use,
8069         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8070         (size_of_aranges): Count !in_std_section and !second_in_std_section
8071         hunks in fdes, instead of looking at arange_table_in_use.
8072         (output_aranges): Add aranges_length argument, don't call
8073         size_of_aranges here.  Instead of using aranges_table*
8074         emit ranges for fdes when !in_std_section resp.
8075         !second_in_std_section.
8076         (dw_loc_list): Break ranges crossing section switch.
8077         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8078         use dw_fde_second_end instead of dw_fde_end as end of last range.
8079         (gen_subprogram_die): Don't call add_arange.  Use
8080         dw_fde_{begin,end} for first partition and if switched
8081         section dw_fde_second_{begin,end} for the second.
8082         (var_location_switch_text_section_1,
8083         var_location_switch_text_section): New functions.
8084         (dwarf2out_begin_function): Initialize cold_text_section even
8085         when function_section () isn't text_section.
8086         (prune_unused_types): Don't walk arange_table.
8087         (dwarf2out_finish): Don't needlessly test
8088         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8089         If info_section_emitted, call size_of_aranges and if it indicates
8090         non-empty .debug_aranges, call output_aranges with the computed
8091         size.  Stop using removed dw_fde_struct fields, use
8092         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8093         for second.
8094
8095         PR debug/48203
8096         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8097         create ENTRY_VALUE if incoming or address of incoming's MEM
8098         is a hard REG.
8099         * dwarf2out.c (mem_loc_descriptor): Don't emit
8100         DW_OP_GNU_entry_value of DW_OP_fbreg.
8101         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8102         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8103         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8104         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8105         ENTRY_VALUE_EXPs.
8106         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8107         is a REG_P or MEM_P with REG_P address, compute hash directly
8108         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8109         (preserve_only_constants): Don't clear VALUES forwaring
8110         ENTRY_VALUE to some other VALUE.
8111
8112 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8113
8114         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8115         instead of GEN_INT.
8116
8117 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8118
8119         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8120         block before expanding the statement.
8121         (expand_gimple_stmt_1): Likewise.  Set them here...
8122         (expand_gimple_stmt): ...and not here.  Tidy.
8123         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8124         unknown.
8125
8126 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8127
8128         * Makefile.in: New rule for cprop.o.
8129         * gcse.c: Move constant/copy propagation to cprop.c.
8130         (compute_local_properties): Only handle expression tables.
8131         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8132         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8133         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8134         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8135         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8136         compute_cprop_data, find_used_regs, try_replace_reg,
8137         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8138         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8139         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8140         find_bypass_set, reg_killed_on_edge, bypass_block,
8141         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8142         execute_rtl_cprop, pass_rtl_cprop): Move to...
8143         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8144         moved from gcse.c to here with minor cleanups in duplicated code.
8145
8146 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8147
8148         * config/i386/i386.c (flag_opts): Fix a typo in
8149         -mavx256-split-unaligned-store.
8150
8151 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8152
8153         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8154         LIBCALL_VALUE): Remove macros.
8155         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8156         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8157         (h8300_function_value, h8300_libcall_value,
8158         h8300_function_value_regno_p): New functions.
8159
8160 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8161
8162         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8163
8164 2011-03-28  Jeff Law  <law@redhat.com>
8165
8166         * tree-ssa-threadupdate.c (redirect_edges): Call
8167         create_edge_and_update_destination_phis as needed.
8168         (create_edge_and_update_destination_phis): Accept new BB argument.
8169         All callers updated.
8170         (thread_block): Do not update the profile when threading around
8171         intermediate blocks.
8172         (thread_single_edge): Likewise.
8173         (determine_bb_domination_status): If BB is not a successor of the
8174         loop header, return NONDOMINATING.
8175         (register_jump_thread): Note when we register a jump thread around
8176         an intermediate block.
8177         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8178         (thread_across_edge): Use it.
8179
8180 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8181
8182         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8183         when for_return is 2.
8184
8185 2011-03-28  Jeff Law  <law@redhat.com>
8186
8187         * var-tracking.c (canonicalize_values_mark): Delete unused
8188         lhs assignment.
8189         (canonicalize_values_star, set_variable_part): Likewise.
8190         (clobber_variable_part, delete_variable_part): Likewise.
8191
8192 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8193
8194         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8195
8196 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8197
8198         * tree-inline.c (expand_call_inline): Do not check that destination
8199         node is analyzed.
8200         (optimize_inline_calls): Assert that destination node is analyzed.
8201         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8202         not call tree_lowering_passes.
8203         * cgraph.h (cgraph_analyze_function): Declare.
8204         * cgraphunit.c (cgraph_analyze_function): Make public.
8205
8206 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8207
8208         * config/sparc/sparc-opts.h: New.
8209         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8210         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8211         (sparc_option_override): Store processor_type enumeration rather
8212         than string in cpu_default.  Remove name and enumeration from
8213         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8214         without using sparc_select.  Use target_flags_explicit instead of
8215         fpu_option_set.
8216         * config/sparc/sparc.h (enum processor_type): Move to
8217         sparc-opts.h.
8218         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8219         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8220         HeaderInclude entry.
8221         (mcpu=, mtune=): Use Var and Enum.
8222         (sparc_processor_type): New Enum and EnumValue entries.
8223
8224 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8225             Iain Sandoe  <iains@gcc.gnu.org>
8226
8227         PR target/48245
8228         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8229
8230 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8231
8232         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8233         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8234         Insert new statements at it in lieu of STMT.
8235         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8236         * tree-vect-stmts.c (vectorizable_store): Likewise.
8237         (vectorizable_load): Likewise.
8238
8239 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8240
8241         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8242         (divtf3): Ditto.
8243         (multf3): Ditto.
8244         (subtf3): Ditto.
8245
8246 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8247
8248         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8249         unaligned 256bit load/store.
8250         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8251         (*avx_movdqu<avxmodesuffix>): Likewise.
8252
8253 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8254
8255         PR target/48288
8256         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8257         * config/pa/pa.md (iordi3): Use new predicate in expander.
8258         (iorsi3): Likewise.
8259
8260 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8261
8262         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8263         FUNCTION_VALUE_REGNO_P): Remove macros.
8264         * config/mips/mips-protos.h (mips_function_value): Remove.
8265         * config/mips/mips.c (mips_function_value): Rename to...
8266         (mips_function_value_1): ... this. Make static.  Handle receiving
8267         the function type in 'fn_decl_or_type' argument.
8268         (mips_function_value, mips_libcall_value,
8269         mips_function_value_regno_p): New function.
8270         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8271         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8272
8273 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8274
8275         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8276         and -mavx256-split-unaligned-store.
8277         (ix86_option_override_internal): Split 32-byte AVX unaligned
8278         load/store by default.
8279         (ix86_avx256_split_vector_move_misalign): New.
8280         (ix86_expand_vector_move_misalign): Use it.
8281
8282         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8283         -mavx256-split-unaligned-store.
8284
8285         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8286         256bit load/store.  Generate unaligned store on misaligned memory
8287         operand.
8288         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8289         256bit load/store.
8290         (*avx_movdqu<avxmodesuffix>): Likewise.
8291
8292         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8293         -mavx256-split-unaligned-store.
8294
8295 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8296
8297         PR target/38598
8298         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8299         Update commentary.
8300
8301 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8302
8303         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8304         opno arguments with an expand_operand.  Use create_input_operand.
8305         (mips_prepare_builtin_target): Delete.
8306         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8307         functions.
8308         (mips_expand_builtin_direct): Use create_output_operand and
8309         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8310         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8311         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8312
8313 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8314
8315         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8316         function.
8317         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8318
8319 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8320
8321         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8322         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8323         basic blocks and call commit_edge_insertions directly.
8324         (fixup_abnormal_edges): Move from here to...
8325         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8326         on the edges and return whether some have actually been inserted.
8327         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8328         compensation code.
8329
8330 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8331
8332         PR rtl-optimization/48144
8333         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8334         (merge_expr_data): ... here.
8335         (av_set_intersect): Rename to av_set_code_motion_filter.
8336         Update all callers.  Call merge_history_vect when an expression
8337         is found in both sets.
8338         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8339
8340 2011-03-26  Alan Modra  <amodra@gmail.com>
8341
8342         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8343         cmodel medium addresses.
8344         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8345         64-bit gpr loads and stores.
8346         (rs6000_secondary_reload_ppc64): New function.
8347         * config/rs6000/rs6000-protos.h: Declare it.
8348         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8349
8350 2011-03-26  Alan Modra  <amodra@gmail.com>
8351
8352         PR target/47487
8353         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8354         GNU Go in traceback table.
8355
8356 2011-03-25  Richard Henderson  <rth@redhat.com>
8357
8358         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8359         if there are exactly 6 operands.
8360         (set_storage_via_setmem): Similarly.
8361
8362 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8363
8364         * collect2.c (write_c_file_stat): Handle backslash
8365         as right-hand directory separator.
8366         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8367         checking just for slash.
8368         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8369         instead of checking for trailing slash.
8370         * gcc.c (record_temp_file): Use filename_cmp instead
8371         of strcmp.
8372         (do_spec_1): Likewise.
8373         (replace_outfile_spec_function): Likewise.
8374         (is_directory): Use filename_ncmp instead of strncmp.
8375         (print_multilib_info): Likewise.
8376         * gcov.c (find_source): Use filename_cmp instead
8377         instead of strcmp.
8378         (make_gcov_file_name): Fix order of slash/backslash
8379         checks.
8380         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8381         (add_standard_paths): Likewise.
8382         * mips-tfile.c (saber_stop): Handle backslash.
8383         * prefix.c (update_path): Use filename_ncmp instead of
8384         strncmp.
8385         * profile.c (output_location): Use filename_cmp instead
8386         of strcmp.
8387         * read-md.c (handle_toplevel_file): Handle backslash.
8388         * tlink.c (frob_extension):  Likewise.
8389         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8390         strcmp.
8391         * tree-dump.c (dequeue_and_dump): Handle backslash.
8392         * tree.c (get_file_function_name): Likewise.
8393         * gengtype.c (read_input_list): Likewise.
8394         (get_file_realbasename): Likewise.
8395         (get_output_file_with_visibility): Use filename_cmp
8396         instead of strcmp.
8397
8398 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8399
8400         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8401         case to VFPv1.
8402
8403 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8404
8405         * fold-const.c (expr_location_or): New function.
8406         (fold_truth_not_expr): Call it.
8407
8408 2011-03-25  Jeff Law  <law@redhat.com>
8409
8410         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8411         va_end.
8412         * c-family/c-common.c (def_fn_type): Likewise.
8413         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8414         * emit-rtl.c (gen_rtvec): Likewise.
8415         * lto/lto-lang.c (def_fn_type): Likewise.
8416
8417 2011-03-25  Richard Guenther  <rguenther@suse.de>
8418
8419         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8420         also generate copies.
8421         (fini_copy_prop): Handle constant values properly.
8422
8423 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8424
8425         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8426         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8427         (hash_loc_operands, compare_loc_operands): Handle
8428         DW_OP_GNU_entry_value.
8429
8430 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8431
8432         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8433         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8434         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8435         comment and use macro TARGET_64BIT_MS_ABI instead.
8436         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8437         and change default behavior for 32-bit MS_ABI.
8438         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8439         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8440         32-bit, too.
8441         (ix86_cfun_abi): Likewise.
8442         (ix86_maybe_switch_abi): Adjust comment.
8443         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8444         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8445         instead of checking for SYSV_ABI.
8446         (ix86_nsaved_sseregs): Likewise.
8447         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8448         to 16 bytes.
8449         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8450         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8451         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8452         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8453         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8454
8455 2011-03-25  Richard Guenther  <rguenther@suse.de>
8456
8457         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8458         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8459         (verify_gimple): Remove.
8460         * tree-cfg.c (verify_gimple_call): Merge verification
8461         from verify_stmts.
8462         (verify_gimple_phi): Merge verification from verify_stmts.
8463         (verify_gimple_label): New function.
8464         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8465         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8466         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8467         (verify_stmts): Rename to verify_gimple_in_cfg.
8468         (verify_gimple_in_cfg): New function.
8469         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8470         * tree-ssa.c (verify_ssa): Likewise.
8471         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8472
8473 2011-03-25  Richard Guenther  <rguenther@suse.de>
8474
8475         * passes.c (init_optimization_passes): Add FRE pass after
8476         early SRA.
8477
8478 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8479             Andrew Stubbs  <ams@codesourcery.com>
8480
8481         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8482         for Cortex-A8.
8483         (arm_movdi_vfp_cortexa8): New pattern.
8484         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8485         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8486         instructions when tuning for Cortex-A8.  Set attribute "arch".
8487         * config/arm/arm.md: Move include arm-tune.md up a bit.
8488         (define_attr "arch"): Add "onlya8" and "nota8" values.
8489         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8490
8491 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8492
8493         PR bootstrap/48282
8494         Revert:
8495         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8496
8497         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8498         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8499         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8500         * passes.c (init_optimization_passes): Move
8501         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8502
8503 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8504
8505         * c-typeck.c (comptypes_internal): Replace target
8506         hook call of comp_type_attributes by version in tree.c file.
8507         * gimple.c (gimple_types_compatible_p_1): Likewise.
8508         * tree-ssa.c (useless_type_conversion_p): Likewise.
8509         * tree.c (build_type_attribute_qual_variant): Likewise.
8510         (attribute_value_equal): New static helper function.
8511         (comp_type_attributes): New function.
8512         (merge_attributes): Use attribute_value_equal for comparison.
8513         (attribute_list_contained): Likewise.
8514         * tree.h (comp_type_attributes): New prototype.
8515
8516 2011-03-25  Richard Guenther  <rguenther@suse.de>
8517
8518         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8519         of complex types at -O0.
8520         (verify_gimple_assign_binary): Likewise.
8521         (verify_gimple_assign_ternary): Likewise.
8522
8523 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8524
8525         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8526         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8527
8528 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8529
8530         PR debug/48041
8531         * dwarf2out.c (output_abbrev_section): Only write table when
8532         abbrev_die_table_in_use > 1.
8533
8534 2011-02-24  Richard Henderson  <rth@redhat.com>
8535
8536         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8537         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8538         (alpha_expand_unaligned_load_words): Use extql.
8539         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8540         (emit_insxl): Handle all modes for consistency.
8541
8542 2011-02-24  Richard Henderson  <rth@redhat.com>
8543
8544         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8545         (alpha_expand_unaligned_load): Likewise.
8546         (alpha_expand_unaligned_store): Likewise.
8547         (alpha_expand_unaligned_load_words): Likewise.
8548         (alpha_expand_unaligned_store_words): Likewise.
8549         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8550         (alpha_split_lock_test_and_set_12): Likewise.
8551         (print_operand, alpha_fold_builtin_extxx): Likewise.
8552         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8553         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8554         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8555         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8556         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8557         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8558         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8559         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8560         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8561         (extwl, extll, extql): Similarly.
8562         (inswh, inslh, insqh): Similarly.
8563         (mskbl, mskwl, mskll, mskql): Similarly.
8564         (mskwh, msklh, mskqh): Similarly.
8565
8566 2011-02-24  Richard Henderson  <rth@redhat.com>
8567
8568         * config/alpha/alpha.md (attribute isa): Add er, ner.
8569         (attribute enabled): Handle them.
8570         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8571
8572 2011-02-24  Richard Henderson  <rth@redhat.com>
8573
8574         * config/alpha/alpha.md (attribute isa): Add vms.
8575         (attribute enabled): Handle it.
8576         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8577         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8578         (*movtf): Rename from *movtf_internal for consistency.
8579         (*movsi): Merge with *movsi_nt_vms.
8580         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8581         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8582         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8583         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8584
8585 2011-02-24  Richard Henderson  <rth@redhat.com>
8586
8587         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8588         (extendqisi2, extendhisi2): Likewise.
8589         (extendqidi2): Simplify BWX/non-BWX expansions.
8590         (extendhidi2): Similarly.
8591
8592 2011-02-24  Richard Henderson  <rth@redhat.com>
8593
8594         * config/alpha/alpha.md (attribute isa): New.
8595         (attribute enabled): New.
8596         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8597         (zero_extendqisi2, zero_extendqidi2): Similarly.
8598         (zero_extendhisi2, zero_extendhidi2): Similarly.
8599         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8600
8601 2011-02-24  Richard Henderson  <rth@redhat.com>
8602
8603         * config/alpha/predicates.md (input_operand): Revert last change;
8604         update comment to mention 32-bit VMS rather than Windows.
8605
8606 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8607
8608         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8609         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8610         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8611         * passes.c (init_optimization_passes): Move
8612         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8613
8614 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8615
8616         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8617
8618 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8619
8620         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8621         correctly.
8622
8623 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8624
8625         PR debug/48204
8626         * simplify-rtx.c (simplify_const_unary_operation): Call
8627         real_convert when changing mode class with FLOAT_EXTEND.
8628
8629 2011-03-24  Nick Clifton  <nickc@redhat.com>
8630
8631         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8632         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8633         * config/rx/rx.c (rx_option_override): Set align_jumps,
8634         align_loops and align_labels if not set by the user.
8635         (rx_align_for_label): New function.
8636         (rx_max_skip_for_label): New function.
8637         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8638         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8639         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8640         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8641         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8642
8643 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8644
8645         PR rtl-optimization/48263
8646         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8647         and original commutative_p handling.  Use maybe_gen_insn.
8648
8649 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8650
8651         * reload.c (find_reloads_subreg_address): Add address_reloaded
8652         parameter and return true there if the full address has been
8653         reloaded.
8654         (find_reloads_toplev): Pass address_reloaded flag.
8655         (find_reloads_address_1): Don't use address_reloaded parameter.
8656
8657 2011-03-24  Jeff Law  <law@redhat.com>
8658
8659         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8660         unused variable "ann".
8661         (remove_unused_locals): Likewise.
8662
8663         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8664         statement.
8665
8666         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8667         after it is freed.
8668
8669 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8670
8671         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8672         for invalid symbolic addresses.
8673         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8674         larl operands.
8675
8676 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8677
8678         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8679         the argument in calls to fold_truth_not_expr.
8680
8681 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8682
8683         * tree.c (record_node_allocation_statistics): New function.
8684         (make_node_stat, copy_node_stat, build_string): Call it.
8685         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8686         (build1_stat, build_omp_clause): Likewise.
8687
8688 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8689
8690         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8691         last commit.
8692
8693 2011-03-24  Richard Guenther  <rguenther@suse.de>
8694
8695         PR tree-optimization/48271
8696         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8697         blocks that still exist.
8698
8699 2011-03-24  Richard Guenther  <rguenther@suse.de>
8700
8701         PR tree-optimization/48270
8702         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8703         not free datarefs before ddrs.
8704
8705 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8706
8707         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8708         from the address built for a reference with variable offset.
8709
8710 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8711
8712         PR target/48237
8713         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8714         alternatives that can be handled with movq or movabsq insn.
8715         (*movdf_internal): Disable for !TARGET_64BIT.
8716         (*movdf_internal_nointeger): Ditto.
8717         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8718
8719 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8720
8721         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8722         (FUNCTION_ARG_ADVANCE): Likewise.
8723         * tm.texi.in: Change references to them to hook references.
8724         * tm.texi: Regenerate.
8725         * targhooks.c (default_function_arg): Eliminate check for target macro.
8726         (default_function_incoming_arg): Likewise.
8727         (default_function_arg_advance): Likewise.
8728         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8729         (function_arg_advance): Likewise.
8730         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8731
8732 2011-03-24  Richard Guenther  <rguenther@suse.de>
8733
8734         PR middle-end/48269
8735         * tree-object-size.c (addr_object_size): Do not double-account
8736         for MEM_REF offsets.
8737
8738 2011-03-24  Diego Novillo  <dnovillo@google.com>
8739
8740         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8741         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8742         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8743         Update all users.
8744         (lto_input_string): Rename from input_string.  Make extern.
8745         Update all users.
8746         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8747         output_string_with_length.
8748         Output 0 to indicate a non-NULL string.  Update all callers to
8749         not emit 0.
8750         (lto_output_string): Rename from output_string.  Make extern.
8751         Update all users.
8752         (lto_output_decl_state_streams): Make extern.
8753         (lto_output_decl_state_refs): Make extern.
8754         * lto-streamer.h (lto_input_string): Declare.
8755         (lto_input_data_block): Declare.
8756         (lto_output_string): Declare.
8757         (lto_output_string_with_length): Declare.
8758         (lto_output_decl_state_streams): Declare.
8759         (lto_output_decl_state_refs): Declare.
8760
8761 2011-03-24  Richard Guenther  <rguenther@suse.de>
8762
8763         PR tree-optimization/46562
8764         * tree.c (build_invariant_address): New function.
8765         * tree.h (build_invariant_address): Declare.
8766         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8767         a renamed function moved ...
8768         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8769         Take valueization callback parameter.
8770         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8771         * gimple-fold.h: New file.
8772         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8773         (ccp_fold, fold_const_aggregate_ref,
8774         fold_ctor_reference, fold_nonarray_ctor_reference,
8775         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8776         get_base_constructor): Move ...
8777         * gimple-fold.c: ... here.
8778         (gimple_fold_stmt_to_constant_1): New function
8779         split out from ccp_fold.  Take a valueization callback parameter.
8780         Valueize all operands.
8781         (gimple_fold_stmt_to_constant): New wrapper function.
8782         (fold_const_aggregate_ref_1): New function split out from
8783         fold_const_aggregate_ref.  Take a valueization callback parameter.
8784         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8785         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8786         invariant POINTER_PLUS_EXPRs to invariant form.
8787         (vn_valueize): New function.
8788         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8789         * tree-vrp.c (vrp_valueize): New function.
8790         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8791         to fold statements to constants.
8792         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8793         function declarations.
8794         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8795         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8796
8797 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8798
8799         * config/h8300/predicates.md (jump_address_operand): Fix register
8800         mode check.
8801
8802 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8803
8804         * doc/invoke.texi (max-stores-to-sink): Document.
8805         * params.h (MAX_STORES_TO_SINK): Define.
8806         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8807         if either vectorization or if-conversion is disabled.
8808         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8809         tree-vect-data-refs.c vect_equal_offsets.
8810         (dr_equal_offsets_p): New function.
8811         (find_data_references_in_bb): Remove static.
8812         * tree-data-ref.h (find_data_references_in_bb): Declare.
8813         (dr_equal_offsets_p): Likewise.
8814         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8815         (vect_drs_dependent_in_basic_block): Update calls to
8816         vect_equal_offsets.
8817         (vect_check_interleaving): Likewise.
8818         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8819         (cond_if_else_store_replacement): Rename to...
8820         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8821         documentation.
8822         (cond_if_else_store_replacement): New function.
8823         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8824         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8825
8826 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8827
8828         PR target/46934
8829         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8830         to subtract lower bound instead of GEN_INT().
8831
8832 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8833
8834         PR other/48179
8835         PR other/48221
8836         PR other/48234
8837         * doc/extend.texi (Alignment): Move section to match order in TOC.
8838         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8839         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8840
8841 2011-03-23  Jeff Law  <law@redhat.com>
8842
8843         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8844         before removing the edge.
8845
8846         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8847         it may have been freed by redirect_branch_edge or
8848         redirect_edge_succ_nodup.
8849
8850 2011-03-23  Richard Guenther  <rguenther@suse.de>
8851
8852         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8853         (check_va_list_escapes): Likewise.
8854         (check_all_va_list_escapes): Likewise.
8855
8856 2011-03-23  Richard Guenther  <rguenther@suse.de>
8857
8858         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8859         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8860         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8861         (alias.o): Likewise.
8862         (ipa-type-escape.o): Remove.
8863         (ipa-struct-reorg.o): Likewise.
8864         (GTFILES): Remove ipa-struct-reorg.c.
8865         * alias.c: Do not include ipa-type-escape.h.
8866         * tree-ssa-alias.c: Likewise.
8867         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8868         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8869         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8870         and ipa-type-escape passes.
8871         * tree-pass.h (pass_ipa_type_escape): Remove.
8872         (pass_ipa_struct_reorg): Likewise.
8873         * ipa-struct-reorg.h: Remove.
8874         * ipa-struct-reorg.c: Likewise.
8875         * ipa-type-escape.h: Likewise.
8876         * ipa-type-escape.c: Likewise.
8877         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8878         (--param struct-reorg-cold-struct-ratio): Likewise.
8879         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8880         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8881         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8882
8883 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8884
8885         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8886         cpu attribute value.
8887         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8888         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8889         * config/s390/s390.c (processor_flags_table): New constant array.
8890         (s390_handle_arch_option): Remove.
8891         (s390_handle_option): Remove s390_handle_arch_option invocations
8892         and OPT_mwarn_framesize_ handling.
8893         (s390_option_override): Remove s390_handle_arch_option invocation.
8894         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8895         warnings.
8896         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8897         * config/s390/s390.opt (s390_tune, s390_arch)
8898         (march=): Replace s390_arch_option enum and values with
8899         processor_type.  Set variable name to s390_arch.  Set
8900         initialization value.
8901         (mtune=): Replace s390_arch_option with processor_type.  Set
8902         variable name to s390_tune.  Set initialization value.
8903
8904 2011-03-23  Julian Brown  <julian@codesourcery.com>
8905
8906         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8907         accesses which are not naturally aligned.
8908
8909 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8910
8911         PR target/47553
8912         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8913
8914 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8915
8916         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8917         parameter from "int" to "enum insn_code".
8918         (expand_operand_type): New enum.
8919         (expand_operand): New structure.
8920         (create_expand_operand): New function.
8921         (create_fixed_operand, create_output_operand): Likewise
8922         (create_input_operand, create_convert_operand_to): Likewise.
8923         (create_convert_operand_from, create_address_operand): Likewise.
8924         (create_integer_operand): Likewise.
8925         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8926         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8927         (expand_insn, expand_jump_insn): Likewise.
8928         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8929         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8930         (expand_movstr, expand_builtin___clear_cache): Likewise.
8931         (expand_builtin_lock_release): Likewise.
8932         * explow.c (allocate_dynamic_stack_space): Likewise.
8933         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8934         and use the default handling in that case.
8935         * expmed.c (check_predicate_volatile_ok): Delete.
8936         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8937         (emit_cstore): Likewise.
8938         * expr.c (emit_block_move_via_movmem): Likewise.
8939         (set_storage_via_setmem, expand_assignment): Likewise.
8940         (emit_storent_insn, try_casesi): Likewise.
8941         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8942         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8943         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8944         (expand_twoval_unop, expand_twoval_binop): Likewise.
8945         (expand_unop_direct, emit_indirect_jump): Likewise.
8946         (emit_conditional_move, vector_compare_rtx): Likewise.
8947         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8948         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8949         (expand_sync_lock_test_and_set): Likewise.
8950         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8951         (emit_unop_insn): Likewise.
8952         (expand_copysign_absneg): Change icode to an insn_code.
8953         (create_convert_operand_from_type): New function.
8954         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8955         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8956         (expand_insn, expand_jump_insn): Likewise.
8957         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8958         than const_int_operand for operand 2.
8959
8960 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8961
8962         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8963         if possible.
8964
8965 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8966
8967         * emit-rtl.c (emit_pattern_before_noloc): New function.
8968         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8969         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8970         (emit_pattern_after_noloc): New function.
8971         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8972         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8973
8974 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8975
8976         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8977         (__ffsDI2): Likewise.
8978
8979 2011-03-22  Richard Henderson  <rth@redhat.com>
8980
8981         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8982         of !TARGET_ABI_OPEN_VMS.
8983         (alpha_trampoline_init, alpha_start_function): Likewise.
8984         (alpha_expand_epilogue, alpha_file_start): Likewise.
8985         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8986         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8987         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8988         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8989         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8990
8991 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8992
8993         * config/s390/s390-opts.h: New.
8994         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8995         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8996         s390_stack_guard): Remove.
8997         (s390_handle_arch_option): Return void.  Take enum
8998         s390_arch_option value instead of string and searching array.
8999         (s390_handle_option): Don't assert that global structures are in
9000         use.  Access variables via opts pointer.  Use error_at.  Don't use
9001         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9002         s390_handle_arch_option.
9003         (s390_option_override): Update call to s390_handle_arch_option.
9004         (s390_emit_prologue): Use %d format for s390_stack_size in
9005         diagnostic.  Use %wd for HOST_WIDE_INT.
9006         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9007         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9008         * config/s390/s390.opt (config/s390/s390-opts.h): New
9009         HeaderInclude entry.
9010         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9011         s390_arch_flags, s390_warn_framesize): New Variable entries.
9012         (s390_arch_option): New Enum and EnumValue entries.
9013         (march=): Use Enum instead of Var.
9014         (mstack-guard=, mstack-size=): Use UInteger and Var.
9015         (mtune=): Use Enum.
9016
9017 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9018
9019         * config/score/score.c (score_handle_option): Don't assert that
9020         global structures are in use.  Access target_flags via opts
9021         pointer.  Use value of -march= option to determine target_flags
9022         settings.
9023         * config/score/score.opt (march=): Use Enum.
9024         (score_arch): New Enum and EnumValue entries.
9025
9026 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9027
9028         * config/mep/mep.c (option_mtiny_specified): Remove.
9029         (mep_option_override): Move register handling for -mivc2 from
9030         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9031         instead of option_mtiny_specified.
9032         (mep_handle_option): Access target_flags via opts pointer.  Don't
9033         assert that global structures are in use.  Defer part of -mivc2
9034         handling and move it to mep_option_override.
9035         * config/mep/mep.opt (IVC2): New Mask entry.
9036         (mivc2): Use Var and Defer instead of Mask.
9037
9038 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9039
9040         * config/v850/v850-opts.h: New.
9041         * config/v850/v850.c (small_memory): Replace with
9042         small_memory_physical_max array.  Make that array static const.
9043         (v850_handle_memory_option): Take integer value of argument.  Take
9044         gcc_options pointer, option text and location.  Return void.
9045         Update for changes to small memory structures.
9046         (v850_handle_option): Access target_flags via opts pointer.  Don't
9047         assert that global structures are in use.  Update calls to
9048         v850_handle_memory_option.
9049         (v850_encode_data_area): Update references to small memory settings.
9050         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9051         (enum small_memory_type): Move to v850-opts.h.
9052         * config/v850/v850.opt (config/v850/v850-opts.h): New
9053         HeaderInclude entry.
9054         (small_memory_max): New Variable entry.
9055         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9056         (mtda, mzda): Likewise.
9057
9058 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9059
9060         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9061         pointer.  Don't assert that global structures are in use.
9062
9063 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9064
9065         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9066         via opts pointer.  Don't assert that global structures are in use.
9067
9068 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9069
9070         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9071         (munix=93): Use Var.
9072         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9073         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9074         * config/pa/pa-opts.h: New.
9075         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9076         (pa_handle_option): Don't assert that global structures are in
9077         use.  Access target_flags via opts pointer.  Don't handle
9078         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9079         OPT_munix_98 here.
9080         (pa_option_override): Handle deferred OPT_mfixed_range_.
9081
9082 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9083
9084         * config/mn10300/mn10300-opts.h: New.
9085         * config/mn10300/mn10300.c (mn10300_processor,
9086         mn10300_tune_string): Remove.
9087         (mn10300_handle_option): Don't assert that global structures are
9088         in use.  Access mn10300_processor via opts pointer.  Don't handle
9089         OPT_mtune_ here.
9090         * config/mn10300/mn10300.h (enum processor_type): Move to
9091         mn10300-opts.h.
9092         (mn10300_processor): Remove.
9093         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9094         HeaderInclude entry.
9095         (mn10300_processor): New Variable entry.
9096         (mtune=): Use Var.
9097
9098 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9099
9100         * config/microblaze/microblaze.c: Don't include opts.h.
9101         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9102         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9103         (mno-clearbss): Use Var and Warn.
9104
9105 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9106
9107         * config/m32r/m32r-opts.h: New.
9108         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9109         (m32r_handle_option): Don't assert that global structures are in
9110         use.  Access target_flags and m32r_cache_flush_func via opts
9111         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9112         OPT_mno_flush_trap here.
9113         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9114         include of m32r-opts.h.
9115         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9116         HeaderInclude entry.
9117         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9118         (mmodel=): Use Enum and Var.
9119         (m32r_model): New Enum and EnumValue entries.
9120         (mno-flush-trap): Use Var.
9121         (msdata=): Use Enum and Var.
9122         (m32r_sdata): New Enum and EnumValue entries.
9123
9124 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9125
9126         * config/m32c/m32c.c: Don't include opts.h.
9127         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9128         m32c_handle_option): Remove.
9129         (m32c_option_override): Check global_options_set.x_target_memregs
9130         instead of target_memregs_set.
9131         * config/m32c/m32c.h (target_memregs): Remove.
9132         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9133         variable.
9134
9135 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9136
9137         * config/iq2000/iq2000-opts.h: New.
9138         * config/iq2000/iq2000.c: Don't include opts.h.
9139         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9140         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9141         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9142         HeaderInclude entry.
9143         (iq2000_tune): New Variable entry.
9144         (march=): Add comment.  Use Enum.
9145         (iq2000_arch): New Enum and EnumValue entries.
9146         (mcpu=): Use Enum and Var.
9147         (iq2000_tune): New Enum and EnumValue entries.
9148
9149 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9150
9151         * config/ia64/ia64-opts.h: New.
9152         * config/ia64/ia64.c (ia64_tune): Remove.
9153         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9154         here.  Use error_at.
9155         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9156         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9157         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9158         HeaderInclude entry.
9159         (ia64_tune): New Variable entry.
9160         (mfixed-range=): Use Defer and Var.
9161         (mtune=): Use Enum and Var.
9162         (ia64_tune): New Enum and EnumValue entries.
9163
9164 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9165
9166         * config/frv/frv-opts.h: New.
9167         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9168         frv-opts.h.
9169         (frv_cpu_type): Remove.
9170         * config/frv/frv.c: Don't include opts.h.
9171         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9172         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9173         (frv_cpu_type): New Variable entry.
9174         (frv_cpu): New Enum and EnumValue entries.
9175
9176 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9177
9178         * config/cris/cris.c (cris_handle_option): Access target_flags via
9179         opts pointer.  Don't assert that global structures are in use.
9180         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9181         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9182
9183 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9184
9185         * config/bfin/bfin-opts.h: New.
9186         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9187         bfin_si_revision, bfin_workarounds): Remove.
9188         (bfin_cpus): Make static const.
9189         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9190         not bfin_lib_id_given.
9191         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9192         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9193         pointer. Use error_at.  Don't assert that global structures are in use.
9194         * config/bfin/bfin.h: Include bfin-opts.h.
9195         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9196         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9197         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9198         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9199         entries.
9200
9201 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9202
9203         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9204         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9205         or -msoft-float here.
9206         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9207         -msoft-float and -mhard-float.
9208         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9209         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9210         msoft-float.
9211         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9212         -msoft-float.
9213         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9214         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9215         not mhard-float.
9216         (LIBGCC_SPEC): Don't handle -msoft-float.
9217         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9218         -mhard-float.
9219         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9220         msoft-float.
9221         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9222         -mfloat-abi=*, not -msoft-float and -mhard-float.
9223         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9224         -msoft-float.
9225         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9226         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9227         mhard-float and msoft-float.
9228         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9229         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9230         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9231         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9232         mhard-float.
9233         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9234         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9235         msoft-float.
9236         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9237         not mhard-float.
9238         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9239         not msoft-float.
9240
9241 2011-03-22  Richard Henderson  <rth@redhat.com>
9242
9243         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9244         TARGET_ABI_WINDOWS_NT.
9245         (alpha_output_function_end_prologue): Likewise.
9246         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9247         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9248         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9249         (trap, *movsi_nt_vms): Likewise.
9250         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9251         (*tablejump_osf_nt_internal): Remove.
9252         * config/alpha/predicates.md (input_operand): Only test Pmode.
9253
9254 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9255
9256         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9257         via opts pointer.  Use error_at.  Don't assert that global
9258         structures are in use.
9259
9260 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9261
9262         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9263         (ix86_handle_option): Access ix86_isa_flags and
9264         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9265         global structures are in use.
9266         (ix86_function_specific_save, ix86_function_specific_restore):
9267         Update ix86_isa_flags_explicit field name.
9268         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9269         (ix86_isa_flags_explicit): Rename TargetSave entry to
9270         x_ix86_isa_flags_explicit.
9271
9272 2011-03-22  Richard Henderson  <rth@redhat.com>
9273
9274         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9275         (alpha_option_override, direct_return): Likewise.
9276         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9277         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9278         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9279         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9280         (alpha_expand_epilogue, alpha_end_function): Likewise.
9281         (alpha_init_libfuncs): Likewise.
9282         (struct machine_function): Remove unicosmk members.
9283         (print_operand) ['t']: Remove.
9284         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9285         unicosmk_output_module_name, unicosmk_output_common,
9286         current_section_align, unicosmk_output_text_section_asm_op,
9287         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9288         unicosmk_section_type_flags, unicosmk_unique_section,
9289         unicosmk_asm_named_section, unicosmk_insert_attributes,
9290         unicosmk_output_align, unicosmk_defer_case_vector,
9291         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9292         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9293         unicosmk_output_ssib, unicosmk_add_call_info_word,
9294         unicosmk_extern_head, unicosmk_output_default_externs,
9295         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9296         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9297         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9298         * config/alpha/alpha-protos.h: Update.
9299         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9300         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9301         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9302         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9303         (*mulsi_se, mulvsi3): Likewise.
9304         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9305         (*divmodsi_internal, call, call_value, realign): Likewise.
9306         (moddi3, umoddi3): Likewise; remove duplicate expander.
9307         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9308         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9309         (*movdi_nofix): Remove r/U alternative.
9310         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9311         * config/alpha/constraints.md ("U"): Remove.
9312         * config/alpha/predicates.md (call_operand"): Don't test
9313         TARGET_ABI_UNICOSMK.
9314
9315 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9316
9317         * target.def (handle_option): Take gcc_options and
9318         cl_decoded_option pointers and location_t.
9319         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9320         * doc/tm.texi: Regenerate.
9321         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9322         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9323         * lto-opts.c (lto_reissue_options): Generate option structure for
9324         targetm.handle_option call.
9325         * opts.c (target_handle_option): Update call to
9326         targetm.handle_option.  Remove assertions about values now passed
9327         down to hook.
9328         * targhooks.c (default_target_handle_option): New.
9329         * targhooks.h (default_target_handle_option): Declare.
9330         * config/alpha/alpha.c: Include opts.h.
9331         (alpha_handle_option): Update to new hook interface.
9332         * config/arm/arm.c: Include opts.h.
9333         (arm_handle_option): Update to new hook interface.
9334         * config/arm/t-arm (arm.o): Update dependencies.
9335         * config/bfin/bfin.c: Include opts.h.
9336         (bfin_handle_option): Update to new hook interface.
9337         * config/cris/cris.c: Include opts.h.
9338         (cris_handle_option): Update to new hook interface.
9339         * config/frv/frv.c: Include opts.h.
9340         (frv_handle_option): Update to new hook interface.
9341         * config/i386/i386.c: Include opts.h.
9342         (ix86_handle_option): Update to new hook interface.
9343         (ix86_valid_target_attribute_inner_p): Generate option structure
9344         for call to ix86_handle_option.
9345         * config/i386/t-i386 (i386.o): Update dependencies.
9346         * config/ia64/ia64.c: Include opts.h.
9347         (ia64_handle_option): Update to new hook interface.
9348         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9349         * config/iq2000/iq2000.c: Include opts.h.
9350         (iq2000_handle_option): Update to new hook interface.
9351         * config/m32c/m32c.c: Include opts.h.
9352         (m32c_handle_option): Update to new hook interface.
9353         * config/m32r/m32r.c: Include opts.h.
9354         (m32r_handle_option): Update to new hook interface.
9355         * config/m68k/m68k.c: Include opts.h.
9356         (m68k_handle_option): Update to new hook interface.
9357         * config/mep/mep.c: Include opts.h.
9358         (mep_handle_option): Update to new hook interface.
9359         * config/microblaze/microblaze.c: Include opts.h.
9360         (microblaze_handle_option): Update to new hook interface.
9361         * config/mips/mips.c: Include opts.h.
9362         (mips_handle_option): Update to new hook interface.
9363         * config/mn10300/mn10300.c: Include opts.h.
9364         (mn10300_handle_option): Update to new hook interface.
9365         * config/pa/pa.c: Include opts.h.
9366         (pa_handle_option): Update to new hook interface.
9367         * config/pdp11/pdp11.c: Include opts.h.
9368         (pdp11_handle_option): Update to new hook interface.
9369         * config/rs6000/rs6000.c: Include opts.h.
9370         (rs6000_handle_option): Update to new hook interface.
9371         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9372         * config/rx/rx.c: Include opts.h.
9373         (rx_handle_option): Update to new hook interface.
9374         * config/s390/s390.c: Include opts.h.
9375         (s390_handle_option): Update to new hook interface.
9376         * config/score/score.c: Include opts.h.
9377         (score_handle_option): Update to new hook interface.
9378         * config/sh/sh.c: Include opts.h.
9379         (sh_handle_option): Update to new hook interface.
9380         * config/sparc/sparc.c: Include opts.h.
9381         (sparc_handle_option): Update to new hook interface.
9382         * config/v850/v850.c: Include opts.h.
9383         (v850_handle_option): Update to new hook interface.
9384
9385 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9386
9387         * gcc.c (driver_unknown_option_callback): Only permit and save
9388         unknown -Wno- options.
9389         (driver_wrong_lang_callback): Save options directly instead of via
9390         driver_unknown_option_callback.
9391
9392 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9393
9394         * combine.c (simplify_set): Try harder to find the best CC mode when
9395         simplifying a nested COMPARE on the RHS.
9396
9397 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9398
9399         * config/alpha/gnu.h: Remove.
9400         * config/arc: Remove directory.
9401         * config/arm/netbsd.h: Remove.
9402         * config/arm/t-pe: Remove.
9403         * config/crx: Remove directory.
9404         * config/i386/netbsd.h: Remove.
9405         * config/m68hc11: Remove directory.
9406         * config/m68k/uclinux-oldabi.h: Remove.
9407         * config/mcore/mcore-pe.h: Remove.
9408         * config/mcore/t-mcore-pe: Remove.
9409         * config/netbsd-aout.h: Remove.
9410         * config/rs6000/gnu.h: Remove.
9411         * config/sh/sh-symbian.h: Remove.
9412         * config/sh/symbian-base.c: Remove.
9413         * config/sh/symbian-c.c: Remove.
9414         * config/sh/symbian-cxx.c: Remove.
9415         * config/sh/symbian-post.h: Remove.
9416         * config/sh/symbian-pre.h: Remove.
9417         * config/sh/t-symbian: Remove.
9418         * config/svr3.h: Remove.
9419         * config/vax/netbsd.h: Remove.
9420         * config.build: Don't handle i[34567]86-*-pe.
9421         * config.gcc: Remove handling of deprecations for most deprecated
9422         targets.
9423         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9424         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9425         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9426         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9427         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9428         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9429         Remove cases.
9430         * config.host: Don't handle i[34567]86-*-pe.
9431         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9432         (ASM_SPEC32): Don't handle -mcall-gnu.
9433         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9434         -mcall-gnu.
9435         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9436         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9437         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9438         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9439         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9440         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9441         conditional on SYMBIAN.
9442         * configure.ac: Don't handle powerpc*-*-gnu*.
9443         * configure: Regenerate.
9444         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9445         * doc/install-old.texi (m6811, m6812): Don't mention.
9446         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9447         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9448         (m68k-uclinuxoldabi): Don't mention.
9449         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9450         Remove.
9451         (-mcall-gnu): Remove.
9452         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9453         families): Remove constraint documentation.
9454
9455 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9456
9457         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9458         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9459         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9460
9461 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9462
9463         PR target/48226
9464         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9465         vector when peeking at the next token for vector, don't expand the
9466         keywords.
9467
9468 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9469
9470         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9471         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9472         * config/avr/avr.c (init_cumulative_args)
9473         (avr_function_arg_advance): Use it.
9474         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9475         sibcall epilogues.
9476         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9477         (avr_function_ok_for_sibcall): ...this new function.
9478         (avr_lookup_function_attribute1): New static Function.
9479         (avr_naked_function_p, interrupt_function_p)
9480         (signal_function_p, avr_OS_task_function_p)
9481         (avr_OS_main_function_p): Use it.
9482         * config/avr/avr.md ("sibcall", "sibcall_value")
9483         ("sibcall_epilogue"): New expander.
9484         ("*call_insn", "*call_value_insn"): New insn.
9485         ("call_insn", "call_value_insn"): Remove
9486         ("call", "call_value", "epilogue"): Change expander to handle
9487         sibling calls.
9488
9489 2011-03-21  Nick Clifton  <nickc@redhat.com>
9490
9491         * doc/invoke.texi (Overall Options): Move closing brace to end of
9492         options list.
9493         (Optimization Options): Add missing @gol.
9494         (Directory Options): Likewise.
9495         (i386 and x86-64 Options): Likewise.
9496         (RS6000 and PowerPC Options): Likewise.
9497         (i386 and x86-64 Windows Options): Likewise.
9498         (V850 Options): Add text missing from descriptions.
9499
9500 2011-03-22  Richard Henderson  <rth@redhat.com>
9501
9502         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9503         (avr_incoming_return_addr_rtx): New.
9504         (emit_push_byte): New.
9505         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9506         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9507         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9508         (emit_pop_byte): New.
9509         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9510         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9511         (INCOMING_RETURN_ADDR_RTX): New.
9512         (INCOMING_FRAME_SP_OFFSET): New.
9513         (ARG_POINTER_CFA_OFFSET): New.
9514         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9515         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9516         (pophi): Remove.
9517
9518         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9519
9520 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9521
9522         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9523         (FUNCTION_ARG_ADVANCE): Likewise.
9524         * tm.texi.in: Change references to them to hook references.
9525         * tm.texi: Regenerate.
9526         * targhooks.c (default_function_arg): Eliminate check for target
9527         macro.
9528         (default_function_incoming_arg): Likewise.
9529         (default_function_arg_advance): Likewise.
9530         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9531         (function_arg_advance): Likewise.
9532         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9533
9534 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9535
9536         * tree.c (build_call_1): New function.
9537         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9538
9539 2011-03-22  Richard Guenther  <rguenther@suse.de>
9540
9541         PR tree-optimization/48228
9542         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9543         for single-arg PHIs.
9544
9545 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9546
9547         PR rtl-optimization/48143
9548         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9549         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9550         sse2_cvtps2pd): Likewise.
9551
9552 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9553
9554         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9555
9556 2011-03-22  Richard Guenther  <rguenther@suse.de>
9557
9558         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9559         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9560         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9561         and REALIGN_LOAD_EXPR.
9562         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9563         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9564         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9565         DOT_PROD_EXPR case ...
9566         (expand_expr_real_2): ... here.
9567         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9568         and REALIGN_LOAD_EXPR.
9569         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9570         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9571         (vect_create_epilog_for_reduction): Likewise.
9572         (vectorizable_reduction): Likewise.
9573         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9574         * tree-vect-stmts.c (vectorizable_load): Likewise.
9575
9576 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9577
9578         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9579
9580 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9581
9582         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9583         handling for PLTOFF/GOTOFF.
9584
9585 2011-03-22  Nick Clifton  <nickc@redhat.com>
9586
9587         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9588         trailing backslash from the end of the macro definition.
9589
9590 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9591
9592         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9593         and PLT unspecs.
9594
9595 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9596
9597         * expr.h (prepare_operand): Move to...
9598         * optabs.h (prepare_operand): ...here and change the insn code
9599         parameter from "int" to "enum insn_code".
9600         (insn_operand_matches): Declare.
9601         * expr.c (init_expr_target): Use insn_operand_matches.
9602         (compress_float_constant): Likewise.
9603         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9604         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9605         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9606         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9607         Likewise.
9608         (gen_cond_trap): Likewise.
9609         (prepare_operand): Likewise.  Change icode to an insn_code.
9610         (insn_operand_matches): New function.
9611         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9612         * reload1.c (gen_reload): Likewise.
9613         * targhooks.c (default_secondary_reload): Likewise.
9614
9615 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9616
9617         * config/alpha/alpha.md (unspec): New define_c_enum.
9618         (unspecv): Ditto.
9619
9620 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9621
9622         PR debug/48214
9623         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9624         between a call and its CALL_ARG_LOCATION note.
9625
9626 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9627
9628         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9629
9630 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9631
9632         PR c/42544
9633         PR c/48197
9634         * c-common.c (shorten_compare): If primopN is first sign-extended
9635         to opN and then zero-extended to result type, set primopN to opN.
9636
9637 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9638
9639         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9640         for barrier handlers.
9641
9642 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9643
9644         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9645         UNSPEC constants to be in the unspec enumeration, and redefine
9646         all UNSPECV constants to be in the unspecv enumeration, so that
9647         dumps print which unspec/unspec_volatile this is.
9648         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9649         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9650         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9651         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9652         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9653
9654         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9655         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9656         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9657         * config/rs6000/sync.md (isync, lwsync): Ditto.
9658
9659 2011-03-21  Richard Guenther  <rguenther@suse.de>
9660
9661         * params.def (lto-min-partition): Fix typo.
9662
9663 2011-03-21  Richard Guenther  <rguenther@suse.de>
9664
9665         PR c/47939
9666         * c-decl.c (grokdeclarator): Drop to the main variant only
9667         for array types.  Drop flag_gen_aux_info check.
9668
9669 2011-03-21  Richard Guenther  <rguenther@suse.de>
9670
9671         PR translation/47911
9672         * params.def (lto-partitions): Fix typo.
9673         (lto-min-partition): Fix wording.
9674
9675 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9676
9677         * config/rs6000/t-freebsd: Remove duplication from file.
9678
9679 2011-03-21  Richard Guenther  <rguenther@suse.de>
9680
9681         PR middle-end/47661
9682         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9683
9684 2011-03-21  Richard Guenther  <rguenther@suse.de>
9685
9686         PR lto/48210
9687         * params.def (lto-partitions): Require at least 1 partition.
9688
9689 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9690
9691         * gthr-solaris.h: Remove.
9692         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9693         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9694         (LIB_SPEC): Likewise.
9695         * config/sol2.opt (threads): Remove.
9696         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9697         (sparc*-*-solaris2*): Likewise.
9698         * configure.ac (enable_threads): Enable solaris support.
9699         * configure: Regenerate.
9700         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9701         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9702         solaris.
9703
9704 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9705
9706         * config.gcc: Obsolete *-*-solaris2.8*.
9707         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9708
9709 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9710
9711         PR bootstrap/48135
9712         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9713         reference.  Solaris 8 perl works.
9714
9715 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9716
9717         PR bootstrap/48135
9718         * doc/install.texi (Prerequisites): Move jar etc. up.
9719         Explain support library version requirements.
9720
9721 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9722
9723         PR bootstrap/48135
9724         * doc/install.texi (Prerequisites): Move Perl to build
9725         requirements.  Always necessary on Solaris 2 with Sun ld.
9726
9727 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9728
9729         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9730         binutils 2.21.
9731         (Specific, i?86-*-solaris2.[89]): Likewise.
9732         (Specific, i?86-*-solaris2.10): Likewise.
9733         (Specific, mips-sgi-irix6): Likewise.
9734         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9735         Update for binutils 2.21.
9736
9737 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9738
9739         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9740         Allow -fuse-linker-plugin for non-default plugin linker.
9741         * configure: Regenerate.
9742
9743 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9744
9745         PR bootstrap/48167
9746         * gengtype.c (files_rules): Added rule for cp/parser.h.
9747
9748 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9749
9750         PR target/48213
9751         * config/s390/s390.c (s390_delegitimize_address): Don't call
9752         lowpart_subreg if orig_x has BLKmode.
9753
9754 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9755
9756         PR target/12171
9757         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9758         * tree.h (attribute_spec): Add new member affects_type_identity.
9759         * attribs.c (empty_attribute_table): Adjust attribute_spec
9760         initializers.
9761         * config/alpha/alpha.c: Likewise.
9762         * config/arc/arc.c: Likewise.
9763         * config/arm/arm.c: Likewise.
9764         * config/avr/avr.c: Likewise.
9765         * config/bfin/bfin.c: Likewise.
9766         * config/crx/crx.c: Likewise.
9767         * config/darwin.h: Likewise.
9768         * config/h8300/h8300.c: Likewise.
9769         * config/i386/cygming.h: Likewise.
9770         * config/i386/i386.c: Likewise.
9771         * config/ia64/ia64.c: Likewise.
9772         * config/m32c/m32c.c: Likewise.
9773         * config/m32r/m32r.c: Likewise.
9774         * config/m68hc11/m68hc11.c: Likewise.
9775         * config/m68k/m68k.c: Likewise.
9776         * config/mcore/mcore.c: Likewise.
9777         * config/mep/mep.c: Likewise.
9778         * config/microblaze/microblaze.c: Likewise.
9779         * config/mips/mips.c: Likewise.
9780         * config/rs6000/rs6000.c: Likewise.
9781         * config/rx/rx.c: Likewise.
9782         * config/sh/sh.c: Likewise.
9783         * config/sol2.h: Likewise.
9784         * config/sparc/sparc.c: Likewise.
9785         * config/spu/spu.c: Likewise.
9786         * config/stormy16/stormy16.c: Likewise.
9787         * config/v850/v850.c: Likewise.
9788
9789 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9790
9791         * simplify-rtx.c (simplify_binary_operation_1): Handle
9792         (xor (and A B) C) case when B and C are both constants.
9793
9794 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9795
9796         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9797
9798 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9799
9800         PR bootstrap/48168
9801         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9802
9803 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9804
9805         PR rtl-optimization/48156
9806         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9807         assume df and df_lr are not NULL.
9808
9809 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9810
9811         PR debug/48023
9812         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9813         between a call and its CALL_ARG_LOCATION note.
9814
9815 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9816
9817         PR debug/48178
9818         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9819         between a call and its corresponding CALL_ARG_LOCATION note.
9820
9821 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9822
9823         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9824         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9825         * haifa-sched.c (setup_ref_regs): Ditto.
9826         * caller-save.c (add_used_regs_1): Ditto.
9827         * dse.c (look_for_hardregs): Ditto.
9828         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9829         * sched-rgn.c (check_live_1): Ditto.
9830
9831 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9832
9833         * c-decl.c (diagnose_mismatched_decls): Give an error for
9834         redefining a typedef with variably modified type.
9835
9836 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9837
9838         * c-decl.c (grokfield): Don't allow typedefs for structures or
9839         unions with no tag by default.
9840         * doc/extend.texi (Unnamed Fields): Update.
9841
9842 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9843
9844         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9845         Rewrite using indirect functions.
9846         (lwp_slwpcb): Ditto.
9847         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9848         (avx_vinsertf128<mode>): Ditto.
9849
9850 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9851
9852         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9853         unspecs.
9854
9855 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9856
9857         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9858         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9859
9860 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9861
9862         PR rtl-optimization/48170
9863         * gcse.c (hoist_code): Remove bogus asserts.
9864
9865 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9866
9867         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9868         computation for prologue/epilogue.
9869
9870 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9871
9872         * Makefile.in (check-consistency): Remove.
9873
9874 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9875
9876         PR debug/48176
9877         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9878         arange_table_in_use is 0, but either text_section_used or
9879         cold_text_section_used is true.  Don't call it if
9880         !info_section_emitted.
9881
9882 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9883
9884         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9885         FUNCTION_VALUE_REGNO_P): Remove.
9886         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9887         Remove.
9888         * config/avr/avr.c (avr_ret_register): Make static inline.
9889         (avr_function_value_regno_p): New function.
9890         (avr_libcall_value): Make static. Add 'func' argument.
9891         (avr_function_value): Make static. Rename 'func' argument to
9892         'fn_decl_or_type', forward it to avr_libcall_value. Call
9893         avr_ret_register function instead of RET_REGISTER macro.
9894         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9895
9896 2011-03-18  Jason Merrill  <jason@redhat.com>
9897
9898         PR c++/23372
9899         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9900
9901 2011-03-18  Richard Guenther  <rguenther@suse.de>
9902
9903         * doc/install.texi (--enable-gold): Remove.
9904         (--with-plugin-ld): Document.
9905         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9906
9907 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9908
9909         PR middle-end/47790
9910         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9911         again after expansion changes.
9912
9913 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9914
9915         * combine.c (try_combine): Do simplification only call of
9916         subst() on i2 even when i1 is present. Update comments.
9917
9918 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9919
9920         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9921         and UNSPEC_PCREL_SYMOFF.
9922
9923 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9924
9925         * config/s390/s390.md: Use define_c_enum for the unspec constant
9926         definitions.
9927
9928 2011-03-18  Richard Henderson  <rth@redhat.com>
9929             Jakub Jelinek  <jakub@redhat.com>
9930
9931         PR bootstrap/48161
9932         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9933         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9934
9935 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9936
9937         PR middle-end/47725
9938         * combine.c (cant_combine_insn_p): Don't check zero/sign
9939         extended hard registers.
9940
9941 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9942
9943         PR middle-end/47725
9944         * combine.c (cant_combine_insn_p): Check zero/sign extended
9945         hard registers.
9946
9947 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9948
9949         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9950         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9951         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9952         Change return type to bool.
9953         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9954
9955 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9956
9957         PR debug/48163
9958         * var-tracking.c (prepare_call_arguments): If CALL target
9959         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9960         pc instead of looking it up using cselib_lookup and use
9961         Pmode for it if x has VOIDmode.
9962         * dwarf2out.c (gen_subprogram_die): If also both first and
9963         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9964
9965         PR debug/48163
9966         * function.c (assign_parms): For data.passed_pointer parms
9967         use MEM of data.entry_parm instead of data.entry_parm itself
9968         as DECL_INCOMING_RTL.
9969         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9970         also when passed and declared mode is the same, DECL_RTL
9971         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9972         a MEM too.
9973
9974 2011-03-16  Jeff Law  <law@redhat.com>
9975
9976         PR rtl-optimization/37273
9977         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9978         handle them like argument loads from stack slots.  Do not double
9979         count memory for memory constants and argument loads from stack slots.
9980
9981 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9982
9983         PR debug/48160
9984         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9985
9986 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9987
9988         PR target/48171
9989         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9990
9991 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9992
9993         PR bootstrap/48153
9994         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9995         if dwarf_strict.
9996         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9997         Clear call_arg_locations and call_arg_loc_last always.
9998
9999         PR middle-end/48152
10000         * var-tracking.c (prepare_call_arguments): If argument needs to be
10001         passed by reference, adjust argtype and mode.
10002
10003 2011-03-17  Richard Guenther  <rguenther@suse.de>
10004
10005         PR middle-end/48134
10006         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10007         a value make sure to fold the statement.
10008
10009 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10010
10011         PR target/43872
10012         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10013         return condition with !cfun->calls_alloca.
10014
10015 2011-03-17  Richard Guenther  <rguenther@suse.de>
10016
10017         PR bootstrap/48148
10018         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10019         origin for decls in other ltrans units.
10020         (input_varpool_node): Likewise.
10021
10022 2011-03-17  Richard Guenther  <rguenther@suse.de>
10023
10024         PR middle-end/48165
10025         * tree-object-size.c (compute_object_offset): Properly return
10026         the offset operand of MEM_REFs as sizetype.
10027
10028 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10029
10030         PR rtl-optimization/48141
10031         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10032         * dse.c: Include params.h.
10033         (active_local_stores_len): New variable.
10034         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10035         to NULL.
10036         (record_store, check_mem_read_rtx): Decrease it when removing
10037         from the chain.
10038         (scan_insn): Likewise.  Increase it when adding to chain, if it
10039         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10040         set active_local_stores to NULL before the addition.
10041         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10042
10043         PR rtl-optimization/48141
10044         * dse.c (record_store): If no positions are needed in an insn
10045         that cannot be deleted, at least unchain it from active_local_stores.
10046
10047 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10048
10049         PR debug/47510
10050         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10051         (lookup_type_die_strip_naming_typedef): ... here.
10052         (get_context_die): Use it.
10053         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10054         the anonymous struct named by the naming typedef.
10055
10056 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10057
10058         PR target/48154
10059         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10060         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10061
10062 2011-03-16  Jeff Law  <law@redhat.com>
10063
10064         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10065         check for operands of conditional.  Allow type to be a pointer.
10066
10067 2011-03-16  Richard Guenther  <rguenther@suse.de>
10068
10069         PR tree-optimization/48149
10070         * fold-const.c (fold_binary_loc): Fold
10071         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10072
10073 2011-03-16  Richard Guenther  <rguenther@suse.de>
10074
10075         PR tree-optimization/26134
10076         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10077         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10078         (non_rewritable_mem_ref_base): Handle complex type component
10079         accesses, constrain offsets for vector and complex extracts
10080         more properly.
10081
10082 2011-03-16  Richard Guenther  <rguenther@suse.de>
10083
10084         PR tree-optimization/48146
10085         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10086         operands avoiding the need for renaming.
10087
10088 2011-03-16  Richard Guenther  <rguenther@suse.de>
10089
10090         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10091         constant folding.  Move MEM_REF canonicalization first.
10092         Rely on fold_const_aggregate_ref for initializer folding.
10093         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10094
10095 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10096
10097         PR middle-end/48136
10098         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10099         arg0/arg1 or their arguments are always fold converted to matching
10100         types.
10101
10102         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10103         to nargs.
10104
10105 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10106
10107         PR lto/46944
10108         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10109         Handle in-tree gold.
10110         (ld_vers): Extract binutils version for gold.
10111         (gcc_cv_ld_hidden): Handle gold here.
10112         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10113         * configure: Regenerate.
10114         * config.in: Regenerate.
10115         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10116         -fuse-linker-plugin otherwise.
10117         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10118         (LINK_COMMAND_SPEC): Use it.
10119         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10120
10121 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10122
10123         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10124         * calls.c: Remove debug.h include.
10125         (emit_call_1): Don't call virtual_call_token debug hook.
10126         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10127         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10128         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10129         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10130         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10131         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10132         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10133         dwarf2out_virtual_call): Remove.
10134         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10135         copy_call_info and virtual_call hooks.
10136         (dwarf2out_init): Don't initialize vcall_insn_table,
10137         debug_dcall_section and debug_vcall_section.
10138         (prune_unused_types): Don't mark nodes from dcall_table.
10139         (dwarf2out_finish): Don't output dcall or vcall tables.
10140         * final.c (final_scan_insn): Don't call direct_call or
10141         virtual_call debug hooks.
10142         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10143         virtual_call_token, copy_call_info and virtual_call hooks.
10144         (debug_nothing_uid): Remove prototype.
10145         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10146         copy_call_info and virtual_call hooks.
10147         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10148         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10149         * debug.c (do_nothing_debug_hooks): Likewise.
10150         (debug_nothing_uid): Remove.
10151         * doc/invoke.texi (-fenable-icf-debug): Remove.
10152         * common.opt (-fenable-icf-debug): Likewise.
10153
10154         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10155         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10156         call's MEM.  Handle functions returning aggregate through a hidden
10157         first pointer.  For virtual calls add clobbered pc to call arguments
10158         chain.
10159         * dwarf2out.c (gen_subprogram_die): Emit
10160         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10161         can't be emitted.
10162
10163         PR debug/45882
10164         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10165         * rtl.h (ENTRY_VALUE_EXP): Define.
10166         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10167         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10168         * print-rtl.c (print_rtx): Likewise.
10169         * gengtype.c (adjust_field_rtx_def): Likewise.
10170         * var-tracking.c (vt_add_function_parameter): Adjust
10171         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10172         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10173         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10174         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10175         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10176
10177         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10178         Call var_location debug hook even on CALL_INSNs.
10179         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10180         * rtl.def (ENTRY_VALUE): New.
10181         * dwarf2out.c: Include cfglayout.h.
10182         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10183         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10184         (struct call_arg_loc_node): New type.
10185         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10186         tail_call_site_count): New variables.
10187         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10188         DW_TAG_GNU_call_site_parameter.
10189         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10190         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10191         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10192         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10193         and DW_AT_GNU_all_source_call_sites.
10194         (mem_loc_descriptor): Handle ENTRY_VALUE.
10195         (add_src_coords_attributes): Don't add enything if
10196         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10197         (dwarf2out_abstract_function): Save and clear call_arg_location,
10198         call_site_count and tail_call_site_count around dwarf2out_decl call.
10199         (gen_call_site_die): New function.
10200         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10201         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10202         (dwarf2out_function_decl): Clear call_arg_locations,
10203         call_arg_loc_last, set call_site_count and tail_call_site_count
10204         to -1 and free block_map.
10205         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10206         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10207         followed by any real instructions.
10208         (dwarf2out_begin_function): Set call_site_count and
10209         tail_call_site_count to 0.
10210         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10211         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10212         attempt to force a DIE for it and worst case remove the attribute.
10213         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10214         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10215         the decl itself.
10216         * var-tracking.c: Include tm_p.h.
10217         (vt_stack_adjustments): For calls call note_register_arguments.
10218         (argument_reg_set): New variable.
10219         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10220         ensure the VALUE is resolved.
10221         (call_arguments): New variable.
10222         (prepare_call_arguments): New function.
10223         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10224         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10225         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10226         always use the best expression.
10227         (vt_expand_loc): Add ignore_cur_loc argument.
10228         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10229         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10230         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10231         note for all calls.
10232         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10233         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10234         argument.  Don't call cselib_preserve_only_values and
10235         cselib_reset_table.
10236         (note_register_arguments): New function.
10237         (vt_initialize): Compute argument_reg_set.  Call
10238         vt_add_function_parameters before processing basic blocks instead of
10239         afterwards.  For calls call prepare_call_arguments before calling
10240         cselib_process_insn.
10241         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10242         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10243         (var-tracking.o): Depend on $(TM_P_H).
10244         * cfglayout.h (insn_scope): New prototype.
10245         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10246         * cfglayout.c (insn_scope): No longer static.
10247         * insn-notes.def (CALL_ARG_LOCATION): New.
10248         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10249         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10250         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10251         nothing for DECL_EXTERNAL BLOCK_VARS.
10252
10253 2011-03-16  Alan Modra  <amodra@gmail.com>
10254
10255         PR target/45844
10256         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10257         create invalid offset address for vsx splat insn.
10258         * config/rs6000/predicates.md (splat_input_operand): New.
10259         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10260
10261 2011-03-15  Xinliang David Li  <davidxl@google.com>
10262
10263         PR c/47837
10264         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10265         (normalize_preds): New function.
10266         (is_use_properly_guarded): Normalize def predicates.
10267
10268 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10269
10270         PR target/46788
10271         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10272         in the output template.
10273
10274 2011-03-15  Richard Guenther  <rguenther@suse.de>
10275
10276         PR middle-end/47650
10277         * tree-pretty-print.c (dump_function_declaration): Properly
10278         dump unprototyped and varargs function types.
10279
10280 2011-03-15  Richard Guenther  <rguenther@suse.de>
10281
10282         PR tree-optimization/13954
10283         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10284         and friends.
10285
10286 2011-03-15  Richard Guenther  <rguenther@suse.de>
10287
10288         PR tree-optimization/48037
10289         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10290         selects into BIT_FIELD_REFs.
10291         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10292         vector select.
10293
10294 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10295
10296         PR tree-optimization/48129
10297         * builtins.c (fold_builtin_snprintf): Convert to type of
10298         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10299         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10300
10301 2011-03-15  Richard Guenther  <rguenther@suse.de>
10302
10303         PR tree-optimization/41490
10304         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10305         value but with VUSE.
10306         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10307         return statements.
10308         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10309         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10310         * tree-tailcall.c (find_tail_calls): Ignore returns.
10311
10312 2011-03-15  Richard Guenther  <rguenther@suse.de>
10313
10314         PR middle-end/48031
10315         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10316         or variable-indexed array accesses when in gimple form.
10317
10318 2011-03-15  Richard Guenther  <rguenther@suse.de>
10319
10320         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10321
10322 2011-03-15  Alan Modra  <amodra@gmail.com>
10323
10324         PR target/48032
10325         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10326         presume symbol_refs without a symbol_ref_decl are suitably
10327         aligned, nor other trees we may see here.  Handle anchor symbols.
10328         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10329         Check cmodel=medium addresses.  Adjust all calls.
10330         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10331         creating cmodel=medium optimized access to locals.
10332         * config/rs6000/constraints.md (R): Pass QImode to
10333         legitimate_constant_pool_address_p.
10334         * config/rs6000/predicates.md (input_operand): Pass mode to
10335         legitimate_constant_pool_address_p.
10336         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10337         Update prototype.
10338
10339 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10340
10341         PR target/48053
10342         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10343         64-bit constants being loaded into registers other than GPRs such
10344         as loading 0 into a VSX register.
10345
10346 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10347
10348         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10349
10350 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10351
10352         PR middle-end/47917
10353         * builtins.c (fold_builtin_snprintf): New function.
10354         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10355         (fold_builtin_4): Likewise.
10356
10357         PR middle-end/38878
10358         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10359         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10360         and C - X == X also strip nops from +/-/p+ operand.
10361         When optimizing -X == C, fold C to arg0's type.
10362
10363         PR debug/47946
10364         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10365         emit it as add_AT_int instead of add_AT_unsigned.
10366
10367 2011-03-14  Tom Tromey  <tromey@redhat.com>
10368
10369         * unwind-dw2.c: Include sys/sdt.h if it exists.
10370         (_Unwind_DebugHook): Use STAP_PROBE2.
10371         * config.in, configure: Rebuild.
10372         * configure.ac: Check for sys/sdt.h.
10373
10374 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10375
10376         * config/i386/i386.md (ROUND_FLOOR): New constant.
10377         (ROUND_CEIL): Ditto.
10378         (ROUND_TRUNC): Ditto.
10379         (ROUND_MXCSR): Ditto.
10380         (ROUND_NO_EXC): Ditto.
10381         (rint<mode>2): Use new defines instead of numerical constants.
10382         (floor<mode>2): Ditto.
10383         (ceil<mode>2): Ditto.
10384         (btrunc<mode>2): Ditto.
10385         * config/i386/i386-builtin-types.def: Define ROUND function type
10386         aliases.
10387         * config/i386/i386.c (enum ix86_builtins): Add
10388         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10389         (struct builtin_description): Add
10390         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10391         (ix86_expand_sse_round): New static function.
10392         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10393         function types.
10394         (ix86_builtin_vectorized_function): Handle
10395         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10396
10397 2011-03-14  Tom Tromey  <tromey@redhat.com>
10398
10399         * c-parser.c (c_parser_asm_string_literal): Clear
10400         warn_overlength_strings.
10401
10402 2011-03-14  Tom Tromey  <tromey@redhat.com>
10403
10404         * c-parser.c (disable_extension_diagnostics): Save
10405         warn_overlength_strings.
10406         (restore_extension_diagnostics): Restore warn_overlength_strings.
10407
10408 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10409
10410         * BASE-VER: Change to 4.7.0.
10411
10412 2011-03-14  Richard Guenther  <rguenther@suse.de>
10413
10414         PR middle-end/48098
10415         * tree.c (build_vector_from_val): Adjust assert to requirements
10416         and reality.
10417
10418 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10419
10420         PR bootstrap/48102
10421         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10422
10423 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10424
10425         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10426         terms of target_flags_explicit. Adjust copyright year.
10427
10428         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10429         * config/rs6000/t-freebsd: New file. Add override for
10430         LIB2FUNCS_EXTRA.
10431
10432 2011-03-13  Chris Demetriou  <cgd@google.com>
10433
10434         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10435         (-fno-diagnostics-show-option): this, to reflect current default.
10436         (-Werror=): Update text about -fno-diagnostics-show-option.
10437
10438 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10439
10440         PR target/48053
10441         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10442         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10443         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10444         mode is not V2DImode or V2DFmode.
10445         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10446         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10447         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10448         registers to 0.
10449         (movdi_internal64): Likewise.
10450
10451 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10452
10453         PR tree-optimization/47127
10454         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10455         parameter.
10456         (set_cloog_options): Same.
10457         (scop_to_clast): Same.
10458         (print_clast_stmt): Do not call cloog_state_malloc and
10459         cloog_state_free.
10460         (print_generated_program): Same.
10461         (gloog): Same.
10462         * graphite-clast-to-gimple.h (cloog_state): Declared.
10463         (scop_to_clast): Adjust declaration.
10464         * graphite.c (cloog_state): Defined here.
10465         (graphite_initialize): Call cloog_state_malloc.
10466         (graphite_finalize): Call cloog_state_free.
10467
10468 2011-03-11  Jason Merrill  <jason@redhat.com>
10469
10470         * attribs.c (lookup_attribute_spec): Take const_tree.
10471         * tree.h: Adjust.
10472
10473 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10474
10475         * config/sparc/sparc.c (sparc_option_override): Use
10476         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10477
10478 2011-03-11  Richard Guenther  <rguenther@suse.de>
10479
10480         PR tree-optimization/48067
10481         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10482         multiplication result will be only used once on the target
10483         stmt.
10484
10485 2011-03-11  Richard Guenther  <rguenther@suse.de>
10486
10487         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10488
10489 2011-03-11  Richard Guenther  <rguenther@suse.de>
10490
10491         PR lto/48073
10492         * tree.c (find_decls_types_r): Do not walk types only reachable
10493         from IDENTIFIER_NODEs.
10494
10495 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10496
10497         PR middle-end/48044
10498         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10499         all vnode->force_output nodes as needed.
10500
10501 2011-03-11  Jason Merrill  <jason@redhat.com>
10502
10503         PR c++/48069
10504         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10505         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10506
10507 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10508
10509         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10510         cgraph_node.
10511
10512 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10513
10514         PR tree-optimization/48063
10515         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10516         inline functions called once if !tree_can_inline_p (node->callers).
10517
10518 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10519
10520         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10521         extra_objs.
10522         * config/score/score3.c: Delete.
10523         * config/score/score3.h: Delete.
10524         * config/score/mul-div.S: Delete.
10525         * config/score/sfp-machine.h: Add new file.
10526         * config/score/constraints.md: Add new file.
10527         * config/score/t-score-softfp: Add new file.
10528         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10529         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10530         (score7_extra_constraint): Delete.
10531         (score7_option_override): Remove unused code.
10532         * config/score/score.c: Remove score3 and score5 define and code.
10533         * config/score/score.h: Remove score3 and score5 define and code.
10534         * config/score/score.md: Remove score3 template and unusual insn.
10535         * config/score/score.opt: Remove score3 and score5 options.
10536
10537 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10538
10539         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10540         when _HPUX_SOURCE is defined.
10541         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10542
10543 2011-03-10  Jason Merrill  <jason@redhat.com>
10544
10545         PR c++/48029
10546         * stor-layout.c (layout_type): Don't set structural equality
10547         on arrays of incomplete type.
10548         * tree.c (type_hash_eq): Handle comparing them properly.
10549
10550 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10551
10552         PR debug/48043
10553         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10554         result mode matches original rtl mode.
10555
10556 2011-03-10  Nick Clifton  <nickc@redhat.com>
10557
10558         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10559         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10560
10561 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10562
10563         PR rtl-optimization/47866
10564         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10565         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10566         if target wasn't scalar.
10567         * function.c (assign_stack_temp_for_type): Assert that neither
10568         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10569         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10570         macro.
10571         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10572
10573 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10574
10575         * config/s390/s390-protos.h (s390_label_align): New prototype.
10576         * config/s390/s390.c (s390_label_align): New function.
10577         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10578
10579 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10580
10581         PR target/47755
10582         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10583         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10584         (output_vec_const_move): Ditto.
10585
10586 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10587
10588         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10589         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10590         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10591         Change 'rclass' argument and result type to reg_class_t.
10592         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10593
10594 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10595
10596         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10597         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10598         (TARGET_MEMORY_MOVE_COST): Define.
10599         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10600
10601 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10602
10603         PR debug/47881
10604         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10605         removed anything.
10606
10607         PR tree-optimization/48022
10608         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10609         for EQ/NE_EXPR.
10610
10611 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10612
10613         PR debug/47991
10614         * var-tracking.c (find_use_val): Return NULL for
10615         cui->sets && cui->store_p BLKmode MEMs.
10616
10617 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10618
10619         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10620         Remove.
10621         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10622         xstormy16_print_operand_address): Remove.
10623         * config/stormy16/stormy16.c (xstormy16_print_operand,
10624         xstormy16_print_operand_address): Make static.
10625         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10626
10627 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10628
10629         PR target/47862
10630         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10631         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10632         before definition.
10633
10634 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10635
10636         PR bootstrap/48000
10637         * cfgloopmanip.c (fix_bb_placements): Return immediately
10638         if FROM is BASE_LOOP's header.
10639
10640 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10641
10642         * gimplify.c (gimplify_function_tree): Fix building calls
10643         to __builtin_return_address.
10644
10645 2011-03-07  Alan Modra  <amodra@gmail.com>
10646
10647         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10648         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10649         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10650         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10651         return_mode args.
10652         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10653         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10654         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10655         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10656         * config/rs6000/rs6000.c
10657         (rs6000_elf_end_indicate_exec_stack): Rename to..
10658         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10659         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10660         (rs6000_file_start): ..here.
10661         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10662         file scope variables.
10663         (call_ABI_of_interest): New function.
10664         (init_cumulative_args): Set above vars when function return value
10665         is a float, vector, or small struct.
10666         (rs6000_function_arg_advance_1): Likewise for function args.
10667         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10668         references float args.
10669
10670 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10671
10672         * doc/cfg.texi: Remove "See" before @ref.
10673         * doc/invoke.texi: Likewise.
10674
10675 2011-03-05  Jason Merrill  <jason@redhat.com>
10676
10677         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10678
10679 2011-03-05  Anthony Green  <green@moxielogic.com>
10680
10681         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10682
10683 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10684
10685         PR rtl-optimization/47899
10686         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10687         to flow_loop_nested_p when moving the loop upward.
10688
10689 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10690
10691         PR target/47719
10692         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10693
10694 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10695
10696         PR tree-optimization/47967
10697         * ipa-cp.c (build_const_val): Return NULL instead of creating
10698         VIEW_CONVERT_EXPR for mismatching sizes.
10699         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10700         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10701         give up on versioning.
10702
10703 2011-03-05  Alan Modra  <amodra@gmail.com>
10704
10705         PR target/47986
10706         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10707         full cmodel medium/large lo_sum + high addresses.
10708
10709 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10710
10711         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10712         pool references in UNSPEC_LTREL_OFFSET.
10713
10714 2011-03-04  Jan Hubicka  <jh@suse.cz>
10715
10716         PR lto/47497
10717         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10718         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10719         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10720         Add node pointers.
10721         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10722         cgraph_add_thunk): Add node pointers.
10723         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10724         associated to right node.
10725         (input_node): Update use of cgraph_same_body_alias
10726         and cgraph_add_thunk.
10727
10728 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10729
10730         * config/i386/i386.opt (mprefer-avx128): New flag.
10731         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10732         modes when the flag -mprefer-avx128 is on.
10733
10734 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10735
10736         * dwarf2out.c (compare_loc_operands): Fix address handling.
10737
10738 2011-03-04  Alan Modra  <amodra@gmail.com>
10739
10740         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10741
10742 2011-03-04  Richard Guenther  <rguenther@suse.de>
10743
10744         PR middle-end/47968
10745         * expmed.c (extract_bit_field_1): Prefer vector modes that
10746         vec_extract patterns can handle.
10747
10748 2011-03-04  Richard Guenther  <rguenther@suse.de>
10749
10750         PR middle-end/47975
10751         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10752
10753 2011-03-04  Richard Henderson  <rth@redhat.com>
10754
10755         * explow.c (emit_stack_save): Remove 'after' parameter.
10756         (emit_stack_restore): Likewise.
10757         * expr.h: Update to match.
10758         * builtins.c, calls.c, stmt.c: Likewise.
10759         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10760         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10761         * function.c (expand_function_end): Insert the emit_stack_save
10762         sequence before parm_birth_insn instead of after.
10763
10764 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10765
10766         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10767         (ssse3_pmaddubsw128): Ditto.
10768         (ssse3_pmaddubsw): Ditto.
10769
10770 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10771
10772         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10773
10774 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10775
10776         PR c/47963
10777         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10778         on TYPE_SIZE_UNIT if it is a DECL.
10779
10780         PR debug/47283
10781         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10782         first operand is not is_gimple_mem_ref_addr, try to fold it.
10783         If the operand still isn't is_gimple_mem_ref_addr, clear
10784         MEM_EXPR on op0.
10785
10786 2011-03-03  Richard Guenther  <rguenther@suse.de>
10787
10788         PR middle-end/47283
10789         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10790         match comment.
10791         (refs_may_alias_p_1): For release branches return true if
10792         we are confused by our input.
10793
10794 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10795
10796         * config/s390/s390.c (s390_function_value): Rename to ...
10797         (s390_function_and_libcall_value): ... this.
10798         (s390_function_value): New function.
10799         (s390_libcall_value): New function.
10800         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10801         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10802         target macro definitions.
10803         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10804
10805 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10806
10807         * config/i386/freebsd64.h (CC1_SPEC): Define.
10808         * config/i386/linux64.h (CC1_SPEC): Define.
10809         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10810
10811 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10812
10813         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10814         Remove.
10815         * config/stormy16/stormy16.c: Include reload.h.
10816         (xstormy16_memory_move_cost): New function.
10817         (TARGET_MEMORY_MOVE_COST): Define.
10818
10819 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10820
10821         PR rtl-optimization/47925
10822         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10823         with side effects.  Remove the more-specific check for volatile asms.
10824
10825 2011-03-02  Alan Modra  <amodra@gmail.com>
10826
10827         PR target/47935
10828         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10829         toc relative addresses for valid offsets.
10830
10831 2011-03-01  Richard Guenther  <rguenther@suse.de>
10832
10833         PR tree-optimization/47890
10834         * tree-vect-loop.c (get_initial_def_for_induction): Set
10835         related stmt properly.
10836
10837 2011-03-01  Richard Guenther  <rguenther@suse.de>
10838
10839         PR lto/47924
10840         * lto-streamer.c (lto_record_common_node): Also register
10841         the canonical type.
10842
10843 2011-03-01  Richard Guenther  <rguenther@suse.de>
10844
10845         PR lto/46911
10846         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10847         Do not stream DECL_ABSTRACT_ORIGIN.
10848         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10849         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10850         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10851         Do not stream DECL_ABSTRACT_ORIGIN.
10852         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10853         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10854
10855 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10856
10857         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10858         FUNCTION_VALUE_REGNO_P): Remove.
10859         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10860         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10861         Add 'outgoing' argument.
10862         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10863         function.
10864         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10865         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10866
10867 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10868
10869         PR debug/28047
10870         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10871         (lookup_filename): Likewise.
10872         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10873
10874 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10875             Jakub Jelinek  <jakub@redhat.com>
10876
10877         PR middle-end/47893
10878         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10879         (assign_stack_local_1): Change last argument type to int.
10880         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10881         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10882         don't record padding space into frame_space_list nor use those areas.
10883         (assign_stack_local): Adjust caller.
10884         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10885         of assign_stack_local, pass 0 as last argument.
10886         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10887         callers.
10888
10889 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10890
10891         PR debug/47283
10892         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10893         Use target address_mode and pointer_mode hooks instead of hardcoded
10894         Pmode and ptr_mode.  Handle some simple cases of extending if
10895         POINTERS_EXTEND_UNSIGNED < 0.
10896         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10897         Call convert_debug_memory_address.
10898         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10899         convert_debug_memory_address.
10900
10901         PR middle-end/46790
10902         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10903         * configure: Regenerated.
10904         * config.in: Regenerated.
10905         * varasm.c (default_function_section): Return NULL
10906         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10907
10908 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10909
10910         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10911         the description to match the printed values.
10912
10913 2011-02-28  Richard Guenther  <rguenther@suse.de>
10914
10915         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10916         of the copied scope tree.
10917
10918 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10919
10920         * doc/extend.texi (Function Attributes): Avoid deeply (and
10921         wrongly) nested tables.
10922
10923 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10924
10925         PR middle-end/47903
10926         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10927         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10928         r isn't op0 nor op1.
10929
10930 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10931
10932         * config/avr/avr.md: Remove magic comment for emacs.
10933
10934 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10935
10936         PR target/45261
10937         * config/avr/avr.c (avr_option_override): Use error on bad options.
10938         (avr_help): New function.
10939         (TARGET_HELP): Define.
10940
10941 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10942
10943         PR target/42240
10944         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10945         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10946
10947 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10948
10949         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10950         (ARM Options): Ditto.
10951         (i386 and x86-64 Options): Ditto.
10952         (RX Options): Ditto.
10953         (SPARC Options): Ditto.
10954
10955 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10956
10957         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10958         FreeBSD 6 and later.  Generally use cpu generic.
10959
10960 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10961
10962         * doc/cpp.texi: Update copyright years.
10963
10964 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10965
10966         PR target/46898
10967         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10968
10969 2011-02-25  Jon Beniston  <jon@beniston.com>
10970
10971         PR target/46898
10972         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10973         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10974         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10975         (lm32_block_move_inline): Add type cast to remove warning.
10976         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10977         (gen_int_relational): Move declarations to start of function.
10978
10979 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10980
10981         PR tree-optimization/45470
10982         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10983         can throw internally only.
10984         * tree-vect-stmts.c (vectorizable_call): Likewise.
10985
10986 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10987
10988         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10989         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10990         * config/stormy16/stormy16-protos.h
10991         (xstormy16_preferred_reload_class): Remove.
10992         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10993         static. Change 'rclass' argument and return type to reg_class_t.
10994         (TARGET_PREFERRED_RELOAD_CLASS,
10995         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10996
10997 2011-02-24  Richard Guenther  <rguenther@suse.de>
10998
10999         * lto-streamer-in.c (input_bb): Do not find referenced vars
11000         in debug statements.
11001
11002 2011-02-23  Jason Merrill  <jason@redhat.com>
11003
11004         * common.opt (fabi-version): Document v5 and v6.
11005
11006 2011-02-23  Richard Guenther  <rguenther@suse.de>
11007
11008         PR tree-optimization/47849
11009         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11010
11011 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11012
11013         * opts-common.c (decode_cmdline_option): Print empty string
11014         argument as "" in decoded->orig_option_with_args_text.
11015         * gcc.c (execute): Print empty string argument as ""
11016         in the verbose output.
11017         (do_spec_1): Keep empty string argument.
11018
11019 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11020
11021         * config.gcc: Declare score-* and crx-* obsolete.
11022
11023 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11024
11025         PR rtl-optimization/47763
11026         * web.c (web_main): Ignore naked clobber when replacing register.
11027
11028 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11029
11030         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11031         Remove.
11032
11033 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11034
11035         PR doc/47848
11036         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11037
11038 2011-02-22  Mike Stump  <mikestump@comcast.net>
11039
11040         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11041         assembler.
11042         * configure: Regenerate.
11043
11044 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11045
11046         PR rtl-optimization/46002
11047         * ira-color.c (update_copy_costs): Change class intersection
11048         test to reg_class_contents[] test of 'hard_regno'.
11049
11050 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11051
11052         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11053         than Driver option.
11054         * config/hpux11.opt (mt): Likewise.
11055         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11056         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11057         * config/vax/elf.opt (mno-asm-pic): Likewise.
11058         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11059
11060 2011-02-21  Mike Stump  <mikestump@comcast.net>
11061
11062         PR target/47822
11063         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11064         tree so we can get save the type.
11065         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11066         for CFString instead of trying to use past the end of the builtins.
11067         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11068         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11069         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11070         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11071         Rename to darwin_builtin_cfstring.
11072         (darwin_init_cfstring_builtins): Return the built type.
11073
11074 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11075
11076         PR target/47840
11077         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11078         (_mm256_insert_epi64): Use _mm_insert_epi64.
11079
11080 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11081
11082         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11083         * config/stormy16/stormy16-protos.h
11084         (xstormy16_mode_dependent_address_p): Remove.
11085         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11086         Make static. Change return type to bool. Change argument type to
11087         const_rtx. Remove dead code.
11088         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11089
11090 2011-02-21  Richard Guenther  <rguenther@suse.de>
11091
11092         PR lto/47820
11093         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11094         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11095         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11096         TUs context.
11097         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11098         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11099
11100 2011-02-20  Richard Guenther  <rguenther@suse.de>
11101
11102         PR lto/47822
11103         * tree.c (free_lang_data_in_decl): Clean builtins from
11104         the TU decl BLOCK_VARS.
11105
11106 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11107
11108         PR debug/47620
11109         PR debug/47630
11110         * haifa-sched.c (fix_tick_ready): Skip tick computation
11111         for debug insns.
11112
11113 2011-02-19  Richard Guenther  <rguenther@suse.de>
11114
11115         PR lto/47647
11116         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11117         Remove lazy BLOCK_VARS streaming.
11118         (lto_input_ts_block_tree_pointers): Likewise.
11119         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11120
11121 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11122
11123         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11124
11125 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11126
11127         * config/i386/biarch32.h, config/i386/mach.h,
11128         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11129
11130 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11131
11132         PR target/47800
11133         * config/i386/i386.md (peephole2 for shift and plus): Use
11134         operands[1] original mode in the first insn.
11135
11136 2011-02-18  Mike Stump  <mikestump@comcast.net>
11137
11138         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11139
11140 2011-02-18  Jan Hubicka  <jh@suse.cz>
11141
11142         PR middle-end/47788
11143         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11144         to zero when the function is not inlinable at all.
11145
11146 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11147
11148         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11149         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11150         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11151         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11152         * config/pa/t-pa64: Likewise.
11153         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11154
11155 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11156
11157         PR driver/47787
11158         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11159
11160 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11161
11162         PR target/47792
11163         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11164
11165 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11166
11167         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11168         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11169         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11170         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11171         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11172         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11173         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11174         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11175         m32r_legitimate_address_p): New functions.
11176         * config/m32r/constraints.md (constraint "S"): Don't use
11177         STORE_PREINC_PREDEC_P.
11178         (constraint "U"): Don't use LOAD_POSTINC_P.
11179
11180 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11181
11182         PR rtl-optimization/46178
11183         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11184         compute ira_hard_regno_cover_class[].
11185
11186 2011-02-18  Richard Guenther  <rguenther@suse.de>
11187
11188         PR lto/47798
11189         * lto-streamer.h (lto_global_var_decls): Declare.
11190         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11191         statics for global var processing.
11192
11193 2011-02-18  Richard Guenther  <rguenther@suse.de>
11194
11195         PR tree-optimization/47737
11196         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11197         edge dominance check.
11198
11199 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11200
11201         PR debug/47780
11202         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11203         avoid invalid rtx sharing.
11204
11205 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11206
11207         * doc/cpp.texi (Obsolete Features): Add background on the
11208         origin of assertions.
11209
11210 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11211
11212         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11213         objc_abi == 2.
11214         * config/darwin.c (output_objc_section_asm_op): Added support for
11215         ABI v1 and v2.
11216         (is_objc_metadata): New.
11217         (darwin_objc2_section): New.
11218         (darwin_objc1_section): New.
11219         (machopic_select_section): Added support for ABI v1 and v2.
11220         (darwin_emit_objc_zeroed): New.
11221         (darwin_output_aligned_bss): Detect objc metadata and treat it
11222         appropriately.
11223         (darwin_asm_output_aligned_decl_common): Same.
11224         (darwin_asm_output_aligned_decl_local): Same.
11225         * config/darwin-sections.def: Updated for ABI v1 and v2.
11226         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11227         compiling Objective-C code for the NeXT runtime, default to using
11228         ABI version 0 for 32-bit, and version 2 for 64-bit.
11229
11230 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11231
11232         * common.opt (optimize_fast): New Variable.
11233         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11234         instead of local variable ofast.
11235
11236 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11237
11238         * doc/invoke.texi (fobjc-abi-version): Documented.
11239         (fobjc-nilcheck): Documented.
11240         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11241         version.
11242
11243 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11244
11245         PR driver/47390
11246         * common.opt (export-dynamic): New Driver option.
11247         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11248
11249 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11250
11251         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11252
11253 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11254             Jan Hubicka  <jh@suse.cz>
11255
11256         PR debug/47106
11257         PR debug/47402
11258         * cfgexpand.c (account_used_vars_for_block): Remove.
11259         (estimated_stack_frame_size): Use referenced vars.
11260         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11261         that were referenced in the original function.  Test src_fn
11262         rather than cfun.  Drop redundant get_var_ann.
11263         (setup_one_parameter): Drop redundant get_var_ann.
11264         (declare_return_variable): Likewise.
11265         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11266         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11267         * ipa-inline.c (compute_inline_parameters): Do not compute
11268         disregard_inline_limits here.
11269         (compute_inlinable_for_current, pass_inlinable): New.
11270         (pass_inline_parameters): Require PROP_referenced_vars.
11271         * cgraphunit.c (cgraph_process_new_functions): Don't run
11272         compute_inline_parameters explicitly unless function is in SSA form.
11273         (cgraph_analyze_function): Set .disregard_inline_limits.
11274         * tree-sra.c (convert_callers): Compute inliner parameters
11275         only for functions already in SSA form.
11276
11277 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11278
11279         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11280         -mlittle-endian-data.
11281
11282 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11283
11284         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11285         -mno-fpu, not -fpu and -no-fpu.
11286         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11287         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11288
11289 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11290
11291         PR target/43653
11292         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11293         input reload with PLUS RTX.
11294
11295 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11296
11297         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11298         of InverseVar(MDMX).
11299
11300 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11301
11302         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11303         --m4-340.
11304
11305 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11306
11307         * config/mn10300/mn10300.opt (mno-crt0): New.
11308
11309 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11310
11311         * config/m68k/uclinux.opt (static-libc): New Driver option.
11312
11313 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11314
11315         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11316
11317 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11318
11319         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11320         %{muser-extend-enabled}.
11321
11322 2011-02-16  Richard Guenther  <rguenther@suse.de>
11323
11324         PR tree-optimization/47738
11325         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11326         the TODO from tree_predictive_commoning.
11327
11328 2011-02-15  Jeff Law  <law@redhat.com>
11329
11330         Revert
11331         2011-01-25  Jeff Law  <law@redhat.com>
11332
11333         PR rtl-optimization/37273
11334         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11335         handle them like argument loads from stack slots.  Do not double
11336         count memory for memory constants and argument loads from stack slots.
11337
11338 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11339
11340         PR middle-end/47725
11341         * combine.c (cant_combine_insn_p): Revert the last change.
11342
11343 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11344
11345         PR target/47755
11346         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11347         mode for vector constants.  Remove code that checks for TImode.
11348
11349 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11350
11351         PR debug/47106
11352         PR debug/47402
11353         * cgraph.h (compute_inline_parameters): Return void.
11354         * ipa-inline.c (compute_inline_parameters): Adjust.
11355
11356 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11357
11358         PR debug/47106
11359         PR debug/47402
11360         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11361         rather than decl.
11362         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11363         * ipa-inline.c (compute_inline_parameters): Adjust.
11364
11365 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11366
11367         PR debug/47106
11368         PR debug/47402
11369         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11370         Adjust all users.  Pass FN to...
11371         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11372         fn argument.
11373         * ipa-struct-reorg.c: Adjust.
11374         * tree-dfa.c: Adjust.
11375         * tree-into-ssa.c: Adjust.
11376         * tree-sra.c: Adjust.
11377         * tree-ssa-alias.c: Adjust.
11378         * tree-ssa-live.c: Adjust.
11379         * tree-ssa.c: Adjust.
11380         * tree-ssanames.c: Adjust.
11381         * tree-tailcall.c: Adjust.
11382
11383 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11384
11385         PR debug/47106
11386         PR debug/47402
11387         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11388         Adjust all callers.
11389         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11390         * tree-flow-inline.h: Adjust.
11391         * gimple-pretty-print.c: Adjust.
11392         * tree-into-ssa.c: Adjust.
11393         * tree-ssa.c: Adjust.
11394         * cfgexpand.c: Adjust.
11395
11396 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11397
11398         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11399         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11400         (EXTRA_CONSTRAINT): Delete.
11401         * config/iq2000/constraints.md: New file.
11402         * config/iq2000/iq2000.md: Include it.
11403         (define_insn ""): Delete.
11404         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11405         unsupported constraint letters from patterns.
11406         (call_value, call_value_internal1): Likewise.
11407         (call_value_multiple_internal1): Likewise.
11408
11409 2011-02-15  Nick Clifton  <nickc@redhat.com>
11410
11411         * config/mn10300/mn10300.c: Include tm-constrs.h.
11412         (struct liw_data): New data structure describing an LIW candidate
11413         instruction.
11414         (extract_bundle): Use struct liw_data.  Allow small integer
11415         operands for some instructions.
11416         (check_liw_constraints): Use struct liw_data.  Remove swapped
11417         parameter.  Add comments describing the checks.  Fix bug when
11418         assigning the source of liw1 to the source of liw2.
11419         (liw_candidate): Delete.  Code moved into extract_bundle.
11420         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11421         before swapping.
11422         * config/mn10300/predicates.md (liw_operand): New predicate.
11423         Allows registers and small integer constants.
11424         * config/mn10300/constraints.md (O): New constraint.  Accetps
11425         integers in the range -8 to +7 inclusive.
11426         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11427         for moving a small integer into a register.  Give this alternative
11428         LIW attributes.
11429         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11430         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11431         using the J,K,L and M constraints,
11432         (liw): Remove SI mode on second operands to allow for HI and QI
11433         mode values.
11434         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11435         instruction.
11436
11437 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11438
11439         PR middle-end/47725
11440         * combine.c (cant_combine_insn_p): Check zero/sign extended
11441         hard registers.
11442
11443 2011-02-15  Richard Guenther  <rguenther@suse.de>
11444
11445         PR tree-optimization/47743
11446         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11447         for a non-type-compatible VN lookup bail out.
11448
11449 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11450
11451         * config/fr30/constraints.md: New file.
11452         * config/fr30/fr30.md: Include it.
11453         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11454         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11455         (EXTRA_CONSTRAINT): Delete.
11456
11457 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11458
11459         * config/frv/constraints.md: New file.
11460         * config/frv/predicates.md: Include it.
11461         * config/frv/frv.c (reg_class_from_letter): Delete.
11462         (frv_option_override): Don't initialize it.
11463         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11464         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11465         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11466         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11467         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11468         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11469         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11470         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11471         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11472         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11473         (REG_CLASS_FROM_CONSTRAINT): Delete.
11474
11475 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11476
11477         PR middle-end/47581
11478         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11479         if frame size is 0 in a leaf function.
11480
11481 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11482
11483         PR pch/14940
11484         * config/alpha/host-osf.c: New file.
11485         * config/alpha/x-osf: New file.
11486         * config.host (alpha*-dec-osf*): Use it.
11487
11488 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11489
11490         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11491         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11492         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11493         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11494         type to const_rtx.
11495         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11496
11497 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11498
11499         * config/stormy16/constraints.md: New file.
11500         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11501         Use satisfies_constraint_Q and satisfies_constraint_R.
11502         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11503         Delete.
11504         (xstormy16_legitiamte_address_p): Declare.
11505         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11506         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11507         (EXTRA_CONSTRAINT): Delete.
11508         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11509         Un-staticize.
11510         (xstormy16_extra_constraint_p): Delete.
11511
11512 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11513
11514         PR tree-optimization/46494
11515         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11516         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11517         (pass_rtl_loop_done): Add TODO_verify_flow.
11518         * fwprop.c (pass_rtl_fwprop): Likewise.
11519         * modulo-sched.c (pass_sms): Likewise.
11520         * tree-ssa-dom.c (pass_dominator): Likewise.
11521         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11522         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11523         (pass_tree_loop_done): Likewise.
11524         * tree-ssa-pre.c (execute_pre): Likewise.
11525         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11526         * tree-ssa-sink.c (pass_sink_code): Likewise.
11527         * tree-vrp.c (pass_vrp): Likewise.
11528
11529 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11530
11531         * config/v850/constraints.md: New file.
11532         * config/v850/v850.md: Include it.
11533         * config/v850/predicates.md (reg_or_0_operand): Use
11534         satisfies_constraint_G.
11535         (special_symbolref_operand): Use satisfies_constraint_K.
11536         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11537         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11538         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11539         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11540         (EXTRA_CONSTRAINT): Delete.
11541         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11542         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11543         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11544
11545 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11546
11547         PR target/47696
11548         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11549         description.
11550
11551 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11552
11553         * config/mcore/constraints.md: New file.
11554         * config/mcore/mcore.md: Include it.
11555         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11556         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11557         (REG_CLASS_FROM_LETTER): Delete.
11558         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11559         insn_const_int_ok_for_constraint.
11560         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11561         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11562         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11563         (EXTRA_CONSTRAINT): Delete.
11564
11565 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11566
11567         PR ada/41929
11568         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11569         (IS_SIGHANDLER): Define.
11570         (sparc64_is_sighandler): New function, split off from
11571         sparc64_fallback_frame_state.
11572         (sparc_is_sighandler): New function, split off from
11573         sparc_fallback_frame_state.
11574         (sparc64_fallback_frame_state): Merge with ...
11575         (sparc_fallback_frame_state): ... this into ...
11576         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11577         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11578         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11579         stack instead of hardcoded offsets.
11580
11581 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11582
11583         PR target/45808
11584         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11585
11586 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11587
11588         * configure: Regenerate.
11589
11590 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11591
11592         PR driver/45731
11593         * gcc.c (asm_options): Correct spec matching --target-help.
11594
11595 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11596
11597         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11598         to gimple call error.
11599
11600 2011-02-12  Mike Stump  <mikestump@comcast.net>
11601
11602         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11603         comments in backslash regions.
11604
11605 2011-02-12  Mike Stump  <mikestump@comcast.net>
11606             Jakub Jelinek  <jakub@redhat.com>
11607             Iain Sandoe  <iains@gcc.gnu.org>
11608
11609         PR target/47324
11610         * dwarf2out.c (output_cfa_loc): When required, apply the
11611         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11612         (output_loc_sequence): Likewise.
11613         (output_loc_operands_raw): Likewise.
11614         (output_loc_sequence_raw): Likewise.
11615         (output_cfa_loc): Likewise.
11616         (output_loc_list): Suppress register number adjustment when
11617         calling output_loc_sequence()
11618         (output_die): Likewise.
11619
11620 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11621
11622         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11623         Remove macros.
11624         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11625         xtensa_memory_move_cost): New functions.
11626         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11627
11628 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11629
11630         PR lto/47225
11631         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11632         in the current directory.
11633         * configure: Rebuilt.
11634
11635 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11636
11637         * config/darwin.c (darwin_override_options): Add a hunk missed
11638         from the commit of r168571.  Trim comment line lengths and
11639         correct indents of the preceding block.
11640
11641 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11642
11643         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11644         the switch.
11645
11646 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11647
11648         * common.opt (nostartfiles): New Driver option.
11649
11650 2011-02-11  Xinliang David Li  <davidxl@google.com>
11651
11652         PR tree-optimization/47707
11653         * tree-chrec.c (convert_affine_scev): Keep type precision.
11654
11655 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11656
11657         PR tree-optimization/47420
11658         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11659
11660 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11661
11662         PR rtl-optimization/47614
11663         * rtl.h (check_for_inc_dec): Declare.
11664         * dse.c (check_for_inc_dec): Externalize...
11665         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11666         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11667
11668 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11669
11670         PR driver/47678
11671         * gcc.c (main): Do not compile inputs if there were errors in
11672         option handling.
11673         * opts-common.c (read_cmdline_option): Check for wrong language
11674         after other error checks.
11675
11676 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11677
11678         * cgraph.c: Fix comment typos.
11679         * cgraph.h: Likewise.
11680         * cgraphunit.c: Likewise.
11681         * ipa-cp.c: Likewise.
11682         * ipa-inline.c: Likewise.
11683         * ipa-prop.c: Likewise.
11684         * ipa-pure-const.c: Likewise.
11685         * ipa-ref.c: Likewise.
11686         * ipa-reference.c: Likewise.
11687
11688 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11689
11690         PR debug/47684
11691         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11692
11693 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11694
11695         PR testsuite/47400
11696         * doc/sourcebuild.texi (Require Support): Document
11697         dg-require-ascii-locale.
11698
11699 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11700
11701         * doc/lto.texi (Write summary): Fix missing parentheses.
11702
11703 2011-02-10  DJ Delorie  <dj@redhat.com>
11704
11705         * config/m32c/m32c.c (m32c_option_override): Disable
11706         -fcombine-stack-adjustments until flag value tracking and compare
11707         optimization can be rewritten.
11708
11709 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11710
11711         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11712         PROCESSOR_POWER7.
11713         (PROCESSOR_DEFAULT64): Likewise.
11714
11715 2011-02-10  Richard Henderson  <rth@redhat.com>
11716
11717         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11718         change from 2011-02-03.
11719         * config/rx/rx.c (flags_from_code): Likewise.
11720         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11721         is valid, n/pz otherwise.
11722         (rx_select_cc_mode): Return CCmode if Y is not zero.
11723
11724 2011-02-10  Richard Guenther  <rguenther@suse.de>
11725
11726         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11727
11728 2011-02-10  Richard Guenther  <rguenther@suse.de>
11729
11730         PR tree-optimization/47677
11731         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11732
11733 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11734
11735         PR target/47665
11736         * combine.c (make_compound_operation): Only change shifts into
11737         multiplication for SCALAR_INT_MODE_P.
11738
11739 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11740
11741         PR testsuite/47622
11742         Revert
11743         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11744         PR debug/42631
11745         * web.c (entry_register): Don't clobber the number of the
11746         first uninitialized reference in used[].
11747
11748 2011-02-09  Richard Guenther  <rguenther@suse.de>
11749
11750         PR tree-optimization/47664
11751         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11752         all edges again.
11753
11754 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11755
11756         PR target/46481
11757         PR target/47032
11758         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11759         PROCESSOR_POWER7.
11760         (PROCESSOR_DEFAULT64): Same.
11761         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11762
11763 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11764
11765         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11766
11767 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11768
11769         PR middle-end/45505
11770         * tree-sra.c (struct access): New flags grp_scalar_read and
11771         grp_scalar_write.  Changed description of assignment read and write
11772         flags.
11773         (dump_access): Dump new flags, reorder all of them.
11774         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11775         to detect multiple scalar reads.
11776         (analyze_access_subtree): Use the new scalar read write flags instead
11777         of the old flags.  Adjusted comments.
11778
11779 2011-02-08  DJ Delorie  <dj@redhat.com>
11780
11781         PR target/47548
11782         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11783         patterns.
11784
11785 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11786
11787         * config/m68k/uclinux.opt: New.
11788         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11789
11790 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11791
11792         * config/cris/elf.opt (sim): New Driver option.
11793
11794 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11795
11796         * config/xtensa/elf.opt: New.
11797         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11798
11799 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11800
11801         * config/vax/elf.opt: New.
11802         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11803
11804 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11805
11806         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11807
11808 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11809
11810         * config/gnu-user.opt: New.
11811         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11812         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11813         *-*-uclinux*): Use gnu-user.opt.
11814
11815 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11816
11817         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11818         * config/i386/gnu.h (CPP_SPEC): Likewise.
11819
11820 2011-02-08  Ian Lance Taylor  <iant@google.com>
11821
11822         * common.opt (fcx-limited-range): Add SetByCombined flag.
11823         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11824         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11825         (fassociative-math, freciprocal-math): Likewise.
11826         (funsafe-math-optimizations): Likewise.
11827         * opth-gen.awk: Handle SetByCombined.
11828         * optc-gen.awk: Likewise.
11829         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11830         (set_unsafe_math_optimizations_flags): Likewise.
11831         * doc/options.texi (Option properties): Document SetByCombined.
11832
11833 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11834
11835         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11836         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11837         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11838         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11839         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11840
11841 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11842
11843         PR tree-optimization/46834
11844         PR tree-optimization/46994
11845         PR tree-optimization/46995
11846         * graphite-sese-to-poly.c (used_outside_reduction): New.
11847         (detect_commutative_reduction): Call used_outside_reduction.
11848         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11849         translate_scalar_reduction_to_array only when at least one
11850         loop-phi/close-phi tuple has been detected.
11851
11852 2011-02-08  Richard Guenther  <rguenther@suse.de>
11853
11854         PR middle-end/47639
11855         * tree-vect-generic.c (expand_vector_operations_1): Update
11856         stmts here ...
11857         (expand_vector_operations): ... not here.  Cleanup EH info
11858         and the CFG if required.
11859
11860 2011-02-08  Richard Guenther  <rguenther@suse.de>
11861
11862         PR tree-optimization/47641
11863         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11864         require type compatibility.
11865
11866 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11867
11868         * gimple-low.c (lower_function_body): Don't remove the location of
11869         the return statement here.
11870         (lower_gimple_return): Do it here instead but only if the return
11871         statement is actually used twice.
11872
11873 2011-02-08  Richard Guenther  <rguenther@suse.de>
11874
11875         PR tree-optimization/47632
11876         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11877         unused up_to_stmt parameter, return whether cfg-cleanup is
11878         necessary, remove EH info properly.
11879         (forward_propagate_into_gimple_cond): Adjust caller.
11880         (forward_propagate_into_cond): Likewise.
11881         (forward_propagate_comparison): Likewise.
11882         (tree_ssa_forward_propagate_single_use_vars): Make
11883         forward_propagate_comparison case similar to the two others.
11884
11885 2011-02-08  Nick Clifton  <nickc@redhat.com>
11886
11887         * config/mn10300/mn10300.opt (mliw): New command line option.
11888         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11889         (liw_bundling): New automaton.
11890         (liw): New attribute.
11891         (liw_op): New attribute.
11892         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11893         (movsi_internal): Add LIW attributes.
11894         (andsi3): Likewise.
11895         (iorsi3): Likewise.
11896         (xorsi3): Likewise.
11897         (addsi3): Separate register and immediate alternatives.
11898         Add LIW attributes.
11899         (subsi3): Likewise.
11900         (cmpsi): Likewise.
11901         (aslsi3): Likewise.
11902         (lshrsi3): Likewise.
11903         (ashrsi3): Likewise.
11904         (liw): New pattern.
11905         * config/mn10300/mn10300.c (liw_op_names): New
11906         (mn10300_print_operand): Handle 'W' operand descriptor.
11907         (extract_bundle): New function.
11908         (check_liw_constraints): New function.
11909         (liw_candidate): New function.
11910         (mn10300_bundle_liw): New function.
11911         (mn10300_reorg): New function.
11912         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11913         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11914         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11915         __LIW__ or __NO_LIW__.
11916         * doc/invoke.texi: Describe the -mliw command line option.
11917
11918 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11919
11920         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11921         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11922         pthread_mutex_unlock): Remove.
11923         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11924         * config/pa/t-pa64: Likewise.
11925         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11926         shared libc if not linking against libpthread.
11927         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11928
11929 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11930
11931         PR target/47558
11932         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11933         on 10.6 and later to ensure that we always use the unwinder from
11934         the system.  Only add -no_compact_unwind when tarteting darwin
11935         10.6 or later.
11936
11937 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11938
11939         PR target/46997
11940         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11941         (vec_interleave_lowv2sf): Ditto.
11942         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11943         (vec_extract_oddv2sf): Ditto.
11944
11945 2011-02-07  Mike Stump  <mikestump@comcast.net>
11946
11947         PR target/42333
11948         Add __ieee_divdc3 entry point.
11949         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11950         entry point.
11951         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11952         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11953         * config/darwin.c (darwin_rename_builtins): Add.
11954         * config/darwin-protos.h (darwin_rename_builtins): Add.
11955
11956 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11957
11958         PR target/47636
11959         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11960         for the condition.
11961
11962 2011-02-07  Mike Stump  <mikestump@comcast.net>
11963
11964         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11965
11966 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11967
11968         PR target/47534
11969         * config/avr/libgcc.S (exit): Move .endfunc
11970
11971 2011-02-07  Richard Guenther  <rguenther@suse.de>
11972
11973         PR tree-optimization/47615
11974         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11975         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11976         (run_scc_vn): Initialize it.
11977         (visit_reference_op_load): Use it.
11978         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11979
11980 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11981
11982         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11983         DImode trapping arithmetic libfuncs.
11984
11985 2011-02-07  Richard Guenther  <rguenther@suse.de>
11986
11987         PR tree-optimization/47621
11988         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11989         two duplicates ...
11990         (execute_update_addresses_taken): ... here.  Make it more
11991         conservative in what we accept.
11992
11993 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11994
11995         * config/sparc/freebsd.h (ASM_SPEC): Define.
11996         * config/sparc/vxworks.h (ASM_SPEC): Define.
11997
11998 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11999
12000         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12001
12002 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12003
12004         * doc/invoke.texi: Remove reference to compiler internals from
12005         user documentation.
12006
12007         * reg-notes.def: Remove REG_VALUE_PROFILE.
12008         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12009
12010 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12011
12012         PR middle-end/47610
12013         * varasm.c (default_section_type_flags): If decl is NULL,
12014         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12015
12016 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12017
12018         PR debug/42631
12019         * web.c (entry_register): Don't clobber the number of the
12020         first uninitialized reference in used[].
12021
12022 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12023
12024         PR tree-optimization/46194
12025         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12026         (build_classic_dist_vector_1): Do not represent classic distance
12027         vectors when the access functions are variating in different loops.
12028
12029 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12030
12031         * config/mips/iris6.opt: New.
12032         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12033
12034 2011-02-04  Richard Henderson  <rth@redhat.com>
12035             Steve Ellcey  <sje@cup.hp.com>
12036
12037         PR target/46997
12038         * config/ia64/predicates.md (mux1_brcst_element): New.
12039         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12040         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12041         (ia64_unpack_sign): New.
12042         (ia64_expand_unpack): Rewrite using new routines.
12043         (ia64_expand_widen_sum): Ditto.
12044         (ia64_expand_dot_prod_v8qi): Ditto.
12045         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12046         routines, add endian check.
12047         (pmpy2_even): Rename from pmpy2_r, add endian check.
12048         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12049         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12050         (vec_widen_smult_hi_v4hi): Ditto.
12051         (vec_widen_umult_lo_v4hi): Ditto.
12052         (vec_widen_umult_hi_v4hi): Ditto.
12053         (mulv2si3): Change endian checks.
12054         (sdot_prodv4hi): Rewrite with new calls.
12055         (udot_prodv4hi): New.
12056         (vec_pack_ssat_v4hi): Add endian check.
12057         (vec_pack_usat_v4hi): Ditto.
12058         (vec_pack_ssat_v2si): Ditto.
12059         (max1_even): Rename from max1_r, add endian check.
12060         (max1_odd): Rename from max1_l, add endian check.
12061         (*mux1_rev): Format change.
12062         (*mux1_mix): Ditto.
12063         (*mux1_shuf): Ditto.
12064         (*mux1_alt): Ditto.
12065         (*mux1_brcst_v8qi): Use new predicate.
12066         (vec_extract_evenv8qi): Remove endian check.
12067         (vec_extract_oddv8qi): Ditto.
12068         (vec_interleave_lowv4hi): Format change.
12069         (vec_interleave_highv4hi): Ditto.
12070         (mix2_even): Rename from mix2_r, add endian check.
12071         (mix2_odd): Rename from mux2_l, add endian check.
12072         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12073         (vec_extract_evenodd_helper): Format change.
12074         (vec_extract_evenv4hi): Remove endian check.
12075         (vec_extract_oddv4hi): Remove endian check.
12076         (vec_interleave_lowv2si): Format change.
12077         (vec_interleave_highv2si): Format change.
12078         (vec_initv2si): Remove endian check.
12079         (vecinit_v2si): Add endian check.
12080         (reduc_splus_v2sf): Add endian check.
12081         (reduc_smax_v2sf): Ditto.
12082         (reduc_smin_v2sf): Ditto.
12083         (vec_initv2sf): Remove endian check.
12084         (fpack): Add endian check.
12085         (fswap): Add endian check.
12086         (vec_interleave_highv2sf): Add endian check.
12087         (vec_interleave_lowv2sf): Add endian check.
12088         (fmix_lr): Add endian check.
12089         (vec_setv2sf): Format change.
12090         (*vec_extractv2sf_0_be): Use shift to extract operand.
12091         (*vec_extractv2sf_1_be): New.
12092         (vec_pack_trunc_v4hi): Add endian check.
12093         (vec_pack_trunc_v2si): Format change.
12094
12095 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12096
12097         PR inline-asm/23200
12098         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12099         do bb, locus and block comparison and disallow loads if it is not set.
12100         (stmt_is_replaceable_p): New function.
12101         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12102         callers.
12103         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12104         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12105         SSA_NAME_DEF_STMT.
12106         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12107
12108 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12109
12110         * config/rs6000/xilinx.opt: New.
12111         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12112
12113 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12114
12115         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12116
12117 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12118
12119         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12120         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12121         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12122         secondary_reload_info, xtensa_secondary_reload): Remove.
12123         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12124         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12125         (xtensa_preferred_reload_class): Make static. Change return and
12126         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12127         Use CONST_DOUBLE_P predicate.
12128         (xtensa_preferred_output_reload_class): New function.
12129         (xtensa_secondary_reload): Make static.
12130
12131 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12132
12133         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12134         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12135         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12136
12137 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12138
12139         PR middle-end/31490
12140         * output.h (SECTION_RELRO): Define.
12141         (SECTION_MACH_DEP): Adjust.
12142         (get_variable_section): New prototype.
12143         * varpool.c (varpool_finalize_named_section_flags): New function.
12144         (varpool_assemble_pending_decls): Call it.
12145         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12146         * cgraphunit.c (cgraph_output_in_order): Call
12147         varpool_finalize_named_section_flags.
12148         * varasm.c (get_section): Allow section flags conflicts between
12149         relro and read-only sections if the section hasn't been declared yet.
12150         Set SECTION_OVERRIDE after diagnosing section type conflict.
12151         (get_variable_section): No longer static.
12152         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12153         readonly sections that need relocations.
12154         (decl_readonly_section_1): New function.
12155         (decl_readonly_section): Use it.
12156
12157         Revert:
12158         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12159                     Steve Ellcey  <sje@cup.hp.com>
12160
12161         PR middle-end/31490
12162         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12163         if section attribute used.
12164
12165 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12166
12167         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12168         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12169         (darwin_init_sections): Remove assertion.
12170
12171 2011-02-03  Nick Clifton  <nickc@redhat.com>
12172
12173         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12174         lt and ge.
12175         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12176         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12177         instead of "n" and "pz".
12178         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12179         CC_FLAG_S.
12180
12181 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12182
12183         PR target/47312
12184         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12185         fma, expand FMA_EXPR as fma{,f,l} call.
12186
12187         PR lto/47274
12188         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12189         copy them into a unsigned char variable and pass address of it to
12190         lto_output_data_stream.
12191
12192         PR target/47564
12193         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12194         around backend_init_target and lang_dependent_init_target calls.
12195         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12196         (verify_cgraph_node): Don't call set_cfun here.  Use
12197         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12198         Set error_found for incorrectly represented calls to thunks.
12199
12200 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12201
12202         PR debug/43092
12203         PR rtl-optimization/43494
12204         * rtl.h (for_each_inc_dec_fn): New type.
12205         (for_each_inc_dec): Declare.
12206         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12207         (for_each_inc_dec_find_inc_dec): New fn.
12208         (for_each_inc_dec_find_mem): New fn.
12209         (for_each_inc_dec): New fn.
12210         * dse.c (struct insn_size): Remove.
12211         (replace_inc_dec, replace_inc_dec_mem): Remove.
12212         (emit_inc_dec_insn_before): New fn.
12213         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12214         (canon_address): Pass mem modes to cselib_lookup.
12215         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12216         (cselib_lookup_from_insn): Likewise.
12217         (cselib_subst_to_values): Likewise.
12218         * cselib.c (find_slot_memmode): New var.
12219         (cselib_find_slot): New fn.  Use it instead of
12220         htab_find_slot_with_hash everywhere.
12221         (entry_and_rtx_equal_p): Use find_slot_memmode.
12222         (autoinc_split): New fn.
12223         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12224         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12225         Deal with autoinc.  Special-case recursion into MEMs.
12226         (cselib_hash_rtx): Likewise.
12227         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12228         address and MEM modes.
12229         (cselib_subst_to_values): Add memmode, pass it on.
12230         Deal with autoinc.
12231         (cselib_lookup): Add memmode argument, pass it on.
12232         (cselib_lookup_from_insn): Add memmode.
12233         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12234         (struct cselib_record_autoinc_data): New.
12235         (cselib_record_autoinc_cb): New fn.
12236         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12237         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12238         (cselib_process_insn): ... here.
12239         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12240         to cselib_lookup.
12241         (add_uses): Likewise, also to cselib_subst_to_values.
12242         (add_stores): Likewise.
12243         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12244         cselib_subst_to_values.
12245         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12246         * gcse.c (do_local_cprop): Adjusted.
12247         * postreload.c (reload_cse_simplify_set): Adjusted.
12248         (reload_cse_simplify_operands): Adjusted.
12249         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12250
12251 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12252
12253         PR tree-optimization/45122
12254         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12255         unsafe assumptions when there's more than one loop exit.
12256
12257 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12258
12259         PR target/47272
12260         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12261         Document using vector double with the load/store builtins, and
12262         that the load/store builtins always use Altivec instructions.
12263
12264         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12265         to use altivec memory instructions, even on VSX.
12266         (vector_altivec_store_<mode>): Ditto.
12267
12268         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12269         function.
12270
12271         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12272         V2DF, V2DI support to load/store overloaded builtins.
12273
12274         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12275         altivec load/store builtins for V2DF/V2DI types.
12276
12277         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12278         set avoid indexed addresses on power6 if -maltivec.
12279         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12280         vector_altivec_load/vector_altivec_store builtins.
12281         (altivec_expand_st_builtin): Ditto.
12282         (altivec_expand_builtin): Add VSX memory builtins.
12283         (rs6000_init_builtins): Add V2DI types to internal types.
12284         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12285         load/store builtins.
12286         (rs6000_address_for_altivec): Insure memory address is appropriate
12287         for Altivec.
12288
12289         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12290         vec_vsx_ld and vec_vsx_st.
12291         (vsx_store_<mode>): Ditto.
12292
12293         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12294         variables to hold long long types for VSX vector memory builtins.
12295         (RS6000_BTI_unsigned_long_long): Ditto.
12296         (long_long_integer_type_internal_node): Ditti.
12297         (long_long_unsigned_type_internal_node): Ditti.
12298
12299         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12300         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12301         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12302
12303         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12304         short cuts.
12305         (vec_vsx_st): Ditto.
12306
12307 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12308
12309         * config/pa/pa-hpux10.opt: New.
12310         * config/hpux11.opt (pthread): New Driver option.
12311         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12312         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12313
12314 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12315
12316         * config/ia64/vms.opt: New.
12317         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12318
12319 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12320
12321         PR target/47580
12322         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12323         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12324         generator functions.
12325         (vsx_floatuns<VSi><mode>2): Ditto.
12326         (vsx_fix_trunc<mode><VSi>2): Ditto.
12327         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12328
12329 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12330
12331         * config/i386/djgpp.opt (posix): New Driver option.
12332
12333 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12334
12335         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12336         Move to the unsupported targets list.
12337
12338 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12339
12340         PR rtl-optimization/47525
12341         * df-scan.c: Update copyright years.
12342         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12343         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12344
12345 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12346
12347         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12348         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12349         (ASM_OUTPUT_ASCII): Remove.
12350         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12351
12352 2011-02-02  Jeff Law  <law@redhat.com>
12353
12354         PR middle-end/47543
12355         * reload.c (find_reloads_address): Handle reg+d address where both
12356         components are invalid by reloading the entire address.
12357
12358 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12359             Richard Guenther  <rguenther@suse.de>
12360
12361         PR tree-optimization/40979
12362         PR bootstrap/47044
12363         * passes.c (init_optimization_passes): After LIM call copy_prop
12364         and DCE to clean up.
12365         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12366
12367 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12368
12369         PR tree-optimization/47576
12370         PR tree-optimization/47555
12371         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12372         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12373         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12374         * tree-scalar-evolution.c (follow_ssa_edge): Use
12375         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12376
12377 2011-02-02  Richard Guenther  <rguenther@suse.de>
12378
12379         PR tree-optimization/47566
12380         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12381
12382 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12383
12384         PR debug/47106
12385         PR debug/47402
12386         * tree-inline.c (declare_return_variable): Remove unused caller
12387         variable.
12388
12389         PR debug/47106
12390         PR debug/47402
12391         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12392         * cfgexpand.c (account_used_vars_for_block): Use them.
12393         * tree-nrv.c (tree_nrv): Likewise.
12394         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12395         (dump_scope_block): Likewise.
12396         (remove_unused_locals): Likewise.
12397
12398         PR debug/47106
12399         PR debug/47402
12400         * tree-inline.c (declare_return_variable): Add result decl to
12401         local decls only once.
12402         * gimple-low.c (record_vars_into): Mark newly-created variables
12403         as referenced.
12404
12405 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12406
12407         PR debug/47498
12408         PR debug/47501
12409         PR debug/45136
12410         PR debug/45130
12411         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12412         debug insns.
12413         (no_real_insns_p, schedule_block, set_priorities): Drop special
12414         treatment of boundary debug insns.
12415         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12416         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12417         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12418         (BOUNDARY_DEBUG_INSN_P): Likewise.
12419         (SCHEDULE_DEBUG_INSN_P): Likewise.
12420         * sched-rgn.c (init_ready_list): Drop special treatment of
12421         boundary debug insns.
12422         * final.c (rest_of_clean_state): Clear notes' BB.
12423
12424 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12425
12426         * config/openbsd.opt (assert=): New Driver option.
12427
12428 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12429
12430         * config/i386/nto.opt: New.
12431         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12432
12433 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12434
12435         * config/i386/netware.opt: New.
12436         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12437
12438 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12439
12440         * config/interix.opt (posix): New Driver option.
12441
12442 2011-02-01  DJ Delorie  <dj@redhat.com>
12443
12444         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12445
12446         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12447         class for A0/A1.
12448
12449 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12450
12451         PR tree-optimization/47561
12452         * toplev.c (process_options): Print the Graphite flags.  Add
12453         flag_loop_flatten to the list of options requiring Graphite.
12454
12455 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12456
12457         * config/i386/cygming.opt (posix): New Driver option.
12458
12459 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12460
12461         * config/arm/vxworks.opt: New.
12462         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12463
12464 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12465
12466         * config/alpha/elf.opt: New.
12467         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12468         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12469
12470 2011-02-01  Richard Guenther  <rguenther@suse.de>
12471
12472         PR tree-optimization/47559
12473         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12474         store-motion on references that can throw.
12475
12476 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12477
12478         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12479         * tree-pass.h (TDF_CSELIB): New macro.
12480         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12481         cselib_lookup): Check for it rather than for TDF_DETAILS.
12482
12483 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12484
12485         PR driver/47547
12486         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12487         is HOST_BIT_BUCKET.
12488
12489         * opts.c (finish_options): Don't add x_aux_base_name if it is
12490         HOST_BIT_BUCKET.
12491
12492 2011-02-01  Richard Guenther  <rguenther@suse.de>
12493
12494         PR tree-optimization/47555
12495         Revert
12496         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12497
12498         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12499
12500 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12501
12502         PR gcc/46692
12503         * config/lm32/t-lm32: Add multilib for all CPU options.
12504
12505 2011-02-01  Richard Guenther  <rguenther@suse.de>
12506
12507         PR tree-optimization/47541
12508         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12509         sure to have a field at offset zero.
12510
12511 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12512
12513         * config/arc/arc.opt (EB, EL): New Driver options.
12514
12515 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12516
12517         * config/alpha/osf5.opt: New.
12518         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12519
12520 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12521
12522         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12523
12524 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12525
12526         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12527         -floop-interchange.
12528         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12529         is an alias of -floop-interchange and that it requires the
12530         Graphite infrastructure.
12531         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12532         flag_loop_interchange based on the value of flag_tree_loop_linear.
12533
12534 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12535             Richard Guenther  <rguenther@suse.de>
12536
12537         PR tree-optimization/47538
12538         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12539         type instead of r1type, except for comparisons.  For right
12540         shifts and comparisons punt if there are mismatches in
12541         sizetype vs. non-sizetype types.
12542
12543 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12544
12545         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12546         avx_runtime.
12547
12548 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12549
12550         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12551         version number.
12552         * configure: Regenerate.
12553
12554 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12555
12556         * configure.ac (gcc_cv_ld_static_option): Define.
12557         (gcc_cv_ld_dynamic_option): Define.
12558         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12559         instead.
12560         (HAVE_LD_STATIC_DYNAMIC): Update message.
12561         (LD_STATIC_OPTION): Define.
12562         (LD_DYNAMIC_OPTION): Define.
12563         * configure: Regenerate.
12564         * config.in: Regenerate.
12565         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12566         HAVE_LD_STATIC_DYNAMIC]: Use them.
12567
12568 2011-01-31  Nick Clifton  <nickc@redhat.com>
12569
12570         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12571         registers inside interrupt handlers if the handler is not a leaf
12572         function.
12573
12574 2011-01-31  Nick Clifton  <nickc@redhat.com>
12575
12576         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12577         reg_renumber returning an INVALID_REGNUM.
12578
12579 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12580
12581         PR libgcj/44341
12582         * doc/install.texi: Document host options discarded when cross
12583         configuring target libraries.
12584
12585 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12586
12587         Reverted:
12588         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12589         PR debug/45136
12590         PR debug/45130
12591         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12592         debug insns.
12593         (no_real_insns_p, schedule_block, set_priorities): Drop special
12594         treatment of boundary debug insns.
12595         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12596         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12597         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12598         (BOUNDARY_DEBUG_INSN_P): Likewise.
12599         (SCHEDULE_DEBUG_INSN_P): Likewise.
12600         * sched-rgn.c (init_ready_list): Drop special treatment of
12601         boundary debug insns.
12602         * final.c (rest_of_clean-state): Clear notes' BB.
12603
12604 2011-01-31  Alan Modra  <amodra@gmail.com>
12605
12606         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12607         toc relative expressions as we do in print_operand_address.
12608
12609 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12610
12611         * doc/extend.texi: Follow spelling conventions.
12612         * doc/invoke.texi: Fix a typo.
12613
12614 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12615
12616         * config/hpux11.opt: New.
12617         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12618         ia64*-*-hpux*): Use hpux11.opt.
12619
12620 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12621
12622         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12623         to tmake_file.
12624
12625 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12626
12627         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12628         support sites.
12629
12630 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12631
12632         * doc/install.texi (Binaries): Remove outdated reference for
12633         Motorola 68HC11/68HC12 downloads.
12634
12635 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12636
12637         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12638         Drepper's paper.
12639
12640 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12641
12642         PR bootstrap/47147
12643         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12644         used by NetBSD.
12645
12646 2011-01-28  Ahmad Sharif  <asharif@google.com>
12647
12648         * value-prof.c (check_counter): Corrected error message.
12649
12650 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12651
12652         * config/arm/arm.c (arm_legitimize_reload_address): New.
12653         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12654         arm_legitimize_reload_address.
12655         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12656
12657 2011-01-28  Ian Lance Taylor  <iant@google.com>
12658
12659         * godump.c (go_define): Ignore macros whose definitions include
12660         two adjacent operands.
12661
12662 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12663
12664         PR target/42894
12665         * varasm.c (force_const_mem): Store copy of x in desc->constant
12666         instead of x itself.
12667         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12668         itself into REG_EQUAL note.
12669
12670 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12671
12672         * config/freebsd.opt (posix, rdynamic): New Driver options.
12673
12674 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12675
12676         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12677         -Bstatic/-Bdynamic.
12678         * configure: Regenerate.
12679
12680 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12681
12682         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12683         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12684
12685 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12686
12687         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12688         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12689         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12690         (s390_preferred_reload_class): Make static. Change return and
12691         'rclass' argument type to reg_class_t.
12692
12693 2011-01-27  Jan Hubicka  <jh@suse.cz>
12694
12695         PR middle-end/46949
12696         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12697         (process_function_and_variable_attributes): Check defined weakrefs.
12698
12699 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12700
12701         PR tree-optimization/47228
12702         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12703         build_ref_for_offset.
12704
12705 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12706
12707         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12708
12709 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12710
12711         PR rtl-optimization/46856
12712         * postreload.c (reload_combine_recognize_const_pattern): Do not
12713         separate cc0 setter and user on cc0 targets.
12714
12715 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12716
12717         PR c/43082
12718         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12719         passed a VOID_TYPE expression, immediately emit an error and
12720         return error_mark_node.
12721
12722 2011-01-26  Jeff Law  <law@redhat.com>
12723
12724         PR rtl-optimization/47464
12725         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12726         rather than may_trap_p as needed.
12727
12728 2011-01-26  DJ Delorie  <dj@redhat.com>
12729
12730         PR rtl-optimization/46878
12731         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12732         setter/user dependency as well.
12733
12734 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12735
12736         PR rtl-optimization/44469
12737         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12738         after removing trivially dead basic blocks.
12739
12740 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12741
12742         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12743         * config/frv/frv.h (LINK_SPEC): Likewise.
12744         * config/i386/netware.h (LINK_SPEC): Likewise.
12745         * config/m68k/linux.h (ASM_SPEC): Likewise.
12746         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12747         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12748         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12749         * config/sparc/linux.h (ASM_SPEC): Likewise.
12750         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12751         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12752
12753 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12754
12755         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12756         * config/frv/frv.h (ASM_SPEC): Likewise.
12757         * config/m68k/linux.h (ASM_SPEC): Likewise.
12758         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12759         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12760         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12761         * config/sparc/linux.h (ASM_SPEC): Likewise.
12762         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12763         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12764
12765 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12766
12767         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12768         * config/frv/frv.h (LINK_SPEC): Likewise.
12769         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12770
12771 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12772
12773         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12774         * config/frv/frv.h (ASM_SPEC): Likewise.
12775         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12776         * config/m68k/linux.h (ASM_SPEC): Likewise.
12777         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12778         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12779         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12780         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12781         * config/sparc/linux.h (ASM_SPEC): Likewise.
12782         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12783         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12784         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12785
12786 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12787
12788         PR target/46997
12789         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12790         (*mux2): Ditto.
12791         (vec_extract_evenodd_help): Ditto.
12792         (vec_extract_evenv4hi): Ditto.
12793         (vec_extract_oddv4hi): Ditto.
12794         (vec_interleave_lowv2si): Ditto.
12795         (vec_interleave_highv2si): Ditto.
12796         (vec_extract_evenv2si): Ditto.
12797         (vec_extract_oddv2si: Ditto.
12798         (vec_pack_trunc_v2si): Ditto.
12799
12800 2011-01-22  Jan Hubicka  <jh@suse.cz>
12801
12802         PR target/47237
12803         * cgraph.h (cgraph_local_info): New field can_change_signature.
12804         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12805         signature can change.
12806         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12807         can change.
12808         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12809         (cgraph_function_versioning): We can not change signature of functions
12810         that don't allow that.
12811         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12812         (lto_input_node): Likewise.
12813         * ipa-inline.c (compute_inline_parameters): Compute
12814         local.can_change_signature.
12815         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12816         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12817         functions that can not change signature.
12818         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12819         init_cumulative_args): Do not use local calling conventions
12820         for functions that can not change signature.
12821
12822 2011-01-22  Jan Hubicka  <jh@suse.cz>
12823
12824         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12825
12826 2011-01-26  Richard Guenther  <rguenther@suse.de>
12827
12828         PR tree-optimization/47190
12829         * cgraphunit.c (process_common_attributes): New function.
12830         (process_function_and_variable_attributes): Use it.
12831
12832 2011-01-26  Richard Guenther  <rguenther@suse.de>
12833
12834         PR lto/47423
12835         * cgraphbuild.c (record_eh_tables): Record reference to personality
12836         function.
12837
12838 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12839
12840         PR debug/45454
12841         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12842         non-debug insns from moving up.
12843
12844 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12845
12846         PR target/40125
12847         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12848         t-dlldir{,-x} fragment for build and add it to tmake_file.
12849         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12850         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12851         * config/i386/t-dlldir: New file.
12852         (SHLIB_DLLDIR): Define.
12853         * config/i386/t-dlldir-x: New file.
12854         (SHLIB_DLLDIR): Define.
12855         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12856         (SHLIB_INSTALL): Use it.
12857
12858 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12859
12860         PR target/47246
12861         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12862         lower bound of the allowed Thumb-2 coprocessor load/store
12863         index range to -256. Add explaining comment.
12864
12865 2011-01-25  Ian Lance Taylor  <iant@google.com>
12866
12867         * godump.c (go_define): Improve lexing of macro expansion to only
12868         accept expressions which match Go spec.
12869
12870 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12871
12872         PR c++/43601
12873         * tree.c (handle_dll_attribute): Handle it.
12874         * doc/extend.texi (@item dllexport): Mention it.
12875         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12876
12877 2011-01-25  Ian Lance Taylor  <iant@google.com>
12878
12879         PR tree-optimization/26854
12880         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12881         (decl_jump_unsafe): Move higher in file, with no other change.
12882         (bind): Set has_jump_unsafe_decl if appropriate.
12883         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12884         (check_earlier_gotos): Likewise.
12885         (c_check_switch_jump_warnings): Likewise.
12886
12887 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12888
12889         * doc/invoke.texi (Warning Options): Add missing hyphen.
12890         (-fprofile-dir): Minor grammatical fixes.
12891         (-fbranch-probabilities): Likewise.
12892
12893 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12894
12895         PR debug/45136
12896         PR debug/45130
12897         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12898         debug insns.
12899         (no_real_insns_p, schedule_block, set_priorities): Drop special
12900         treatment of boundary debug insns.
12901         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12902         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12903         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12904         (BOUNDARY_DEBUG_INSN_P): Likewise.
12905         (SCHEDULE_DEBUG_INSN_P): Likewise.
12906         * sched-rgn.c (init_ready_list): Drop special treatment of
12907         boundary debug insns.
12908         * final.c (rest_of_clean-state): Clear notes' BB.
12909
12910 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12911
12912         * Makefile.in (LAMBDA_H): Removed.
12913         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12914         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12915         lambda-trans.o, and tree-loop-linear.o.
12916         (lto-symtab.o): Remove dependence on LAMBDA_H.
12917         (tree-loop-linear.o): Remove rule.
12918         (lambda-mat.o): Same.
12919         (lambda-trans.o): Same.
12920         (lambda-code.o): Same.
12921         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12922         (tree-vect-slp.o): Same.
12923         * hwint.h (gcd): Moved here.
12924         (least_common_multiple): Same.
12925         * lambda-code.c: Removed.
12926         * lambda-mat.c: Removed.
12927         * lambda-trans.c: Removed.
12928         * lambda.h: Removed.
12929         * tree-loop-linear.c: Removed.
12930         * lto-symtab.c: Do not include lambda.h.
12931         * omega.c (gcd): Removed.
12932         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12933         * tree-data-ref.c (print_lambda_vector): Moved here.
12934         (lambda_vector_copy): Same.
12935         (lambda_matrix_copy): Same.
12936         (lambda_matrix_id): Same.
12937         (lambda_vector_first_nz): Same.
12938         (lambda_matrix_row_add): Same.
12939         (lambda_matrix_row_exchange): Same.
12940         (lambda_vector_mult_const): Same.
12941         (lambda_vector_negate): Same.
12942         (lambda_matrix_row_negate): Same.
12943         (lambda_vector_equal): Same.
12944         (lambda_matrix_right_hermite): Same.
12945         * tree-data-ref.h: Do not include lambda.h.
12946         (lambda_vector): Moved here.
12947         (lambda_matrix): Same.
12948         (dependence_level): Same.
12949         (lambda_transform_legal_p): Removed declaration.
12950         (lambda_collect_parameters): Same.
12951         (lambda_compute_access_matrices): Same.
12952         (lambda_vector_gcd): Same.
12953         (lambda_vector_new): Same.
12954         (lambda_vector_clear): Same.
12955         (lambda_vector_lexico_pos): Same.
12956         (lambda_vector_zerop): Same.
12957         (lambda_matrix_new): Same.
12958         * tree-flow.h (least_common_multiple): Removed declaration.
12959         * tree-parloops.c (lambda_trans_matrix): Moved here.
12960         (LTM_MATRIX): Same.
12961         (LTM_ROWSIZE): Same.
12962         (LTM_COLSIZE): Same.
12963         (LTM_DENOMINATOR): Same.
12964         (lambda_trans_matrix_new): Same.
12965         (lambda_matrix_vector_mult): Same.
12966         (lambda_transform_legal_p): Same.
12967         * tree-pass.h (pass_linear_transform): Removed declaration.
12968         * tree-ssa-loop.c (tree_linear_transform): Removed.
12969         (gate_tree_linear_transform): Removed.
12970         (pass_linear_transform): Removed.
12971         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12972         flag_loop_interchange.
12973
12974 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12975
12976         PR tree-optimization/47265
12977         PR tree-optimization/47443
12978         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12979         if name still has some uses.
12980
12981 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12982
12983         PR tree-optimization/47382
12984         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12985         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12986
12987 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12988
12989         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12990         sjlj_except_unwind_info.
12991
12992 2011-01-25  Richard Guenther  <rguenther@suse.de>
12993
12994         PR tree-optimization/47426
12995         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12996         visible functions results escape.
12997
12998 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12999
13000         PR target/45701
13001         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13002         (arm_get_frame_offsets): Use it.
13003
13004 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13005             Jakub Jelinek  <jakub@redhat.com>
13006
13007         PR tree-optimization/47271
13008         * tree-if-conv.c (bb_postdominates_preds): New.
13009         (if_convertible_bb_p): Call bb_postdominates_preds.
13010         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13011         (predicate_scalar_phi): Call bb_postdominates_preds.
13012
13013 2011-01-25  Nick Clifton  <nickc@redhat.com>
13014
13015         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13016         * config/rx/rx.c (rx_function_value): Likewise.
13017         (rx_promote_function_mode): Likewise.
13018         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13019         in order to make it legitimate.
13020         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13021         make sure that the first operand is the same as the result register.
13022         (addsi3_unspec): Delete.
13023         (subdi3): Do not accept immediate operands.
13024         (subdi3_internal): Likewise.
13025
13026 2011-01-25  Jeff Law  <law@redhat.com>
13027
13028         PR rtl-optimization/37273
13029         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13030         handle them like argument loads from stack slots.  Do not double
13031         count memory for memory constants and argument loads from stack slots.
13032
13033 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13034
13035         PR tree-optimization/47427
13036         PR tree-optimization/47428
13037         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13038         coalesce if the new root var would be TREE_READONLY.
13039
13040 2011-01-25  Richard Guenther  <rguenther@suse.de>
13041
13042         PR middle-end/47414
13043         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13044         correct type for TBAA.
13045
13046 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13047
13048         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13049         (close_phi_written_to_memory): Call for_each_index with
13050         dr_indices_valid_in_loop.
13051
13052 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13053
13054         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13055         when it is initialized.
13056
13057 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13058
13059         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13060         call to graphite_find_data_references_in_stmt.
13061         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13062         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13063         call to graphite_find_data_references_in_stmt.
13064         (analyze_drs_in_stmts): Same.
13065         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13066         in which the scalar analysis of indices is performed.
13067         (create_data_ref): Same.  Update call to dr_analyze_indices.
13068         (find_data_references_in_stmt): Update call to create_data_ref.
13069         (graphite_find_data_references_in_stmt): Same.
13070         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13071         declaration.
13072         (create_data_ref): Same.
13073         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13074         call to create_data_ref.
13075
13076 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13077
13078         * graphite-sese-to-poly.c (build_poly_scop): Move
13079         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13080
13081 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13082
13083         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13084         VAR_DECL, PARM_DECL, and RESULT_DECL.
13085
13086 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13087
13088         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13089         in a reduction PBB.
13090         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13091         that have already been marked as PBB_IS_REDUCTION.
13092
13093 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13094
13095         * graphite-scop-detection.c (same_close_phi_node): New.
13096         (remove_duplicate_close_phi): New.
13097         (make_close_phi_nodes_unique): New.
13098         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13099
13100 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13101
13102         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13103         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13104         of both data references to be the same.
13105
13106 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13107
13108         * graphite-dependences.c (build_lexicographical_constraint): Remove
13109         the gdim parameter.
13110         (build_lexicographical_constraint): Adjust call to
13111         ppl_powerset_is_empty.
13112         (dependence_polyhedron): Same.
13113         (graphite_legal_transform_dr): Same.
13114         (graphite_carried_dependence_level_k): Same.
13115         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13116         parameter.
13117         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13118
13119 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13120
13121         * graphite-sese-to-poly.c
13122         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13123         (close_phi_written_to_memory): New.
13124         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13125         and unshare_expr.
13126
13127 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13128
13129         * doc/install.texi: Update the expected version number of PPL to 0.11.
13130         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13131         #if PPL_VERSION_MINOR < 11.
13132
13133 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13134
13135         * graphite-dependences.c: Include graphite-cloog-util.h.
13136         (new_poly_ddr): Inlined into dependence_polyhedron.
13137         (free_poly_ddr): Moved close by new_poly_ddr.
13138         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13139         Early return NULL when ppl_powerset_is_empty returns true.
13140         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13141         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13142         (graphite_legal_transform_dr): Call new_poly_ddr.
13143         (graphite_carried_dependence_level_k): Same.
13144         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13145         (dot_transformed_deps_stmt_1): Removed.
13146         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13147         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13148         (dot_deps_1): Call dot_deps_2.
13149         * Makefile.in (graphite-dependences.o): Add missing dependence on
13150         graphite-cloog-util.h.
13151
13152 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13153
13154         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13155         (build_lexicographical_constraint): Same.
13156         (dependence_polyhedron_1): Same.
13157         (graphite_legal_transform_dr): Same.
13158         (graphite_carried_dependence_level_k): Same.
13159         * graphite-ppl.c (ppl_powerset_is_empty): New.
13160         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13161         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13162
13163 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13164
13165         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13166         the "a followed by b" relation and document it.
13167
13168 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13169
13170         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13171         iteration when the bag of constraints is empty.
13172
13173 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13174
13175         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13176
13177 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13178
13179         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13180         nest and two loop depths as parameters.
13181         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13182         lst_perfect_nestify.
13183
13184 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13185
13186         * graphite-dependences.c (print_pddr): Call
13187         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13188
13189 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13190
13191         * graphite-ppl.c (debug_gmp_value): New.
13192         * graphite-ppl.h (debug_gmp_value): Declared.
13193
13194 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13195
13196         * doc/install.texi: Document availability of cloog-0.16.
13197
13198 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13199
13200         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13201         invalid postdominance info.
13202
13203 2011-01-24  Jan Hubicka  <jh@suse.cz>
13204
13205         PR c/21659
13206         * doc/extend.texi (weak pragma): Drop claim that it must
13207         appear before definition.
13208         * varasm.c (merge_weak, declare_weak): Only sanity check
13209         that DECL is not output at a time it is declared weak.
13210
13211 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13212
13213         * machmode.def: Fixed comments.
13214
13215 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13216
13217         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13218
13219 2011-01-24  Paul Koning  <ni1d@arrl.net>
13220
13221         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13222         WORDS_BIG_ENDIAN.
13223
13224 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13225
13226         PR target/46519
13227         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13228         (block_info): Add scanned and prev.
13229         (move_or_delete_vzeroupper_2): Return if the basic block
13230         has been scanned and the upper 128bit state is unchanged
13231         from the last scan.
13232         (move_or_delete_vzeroupper_1): Return true if the exit
13233         state is changed.
13234         (move_or_delete_vzeroupper): Visit basic blocks using the
13235         work-list based algorithm based on vt_find_locations in
13236         var-tracking.c.
13237
13238         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13239
13240 2011-01-24  Nick Clifton  <nickc@redhat.com>
13241
13242         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13243         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13244         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13245         then define __v850e1__.
13246         * doc/invoke.texi: Document -mv850es.
13247
13248 2011-01-24  Richard Henderson  <rth@redhat.com>
13249
13250         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13251         compound unordered comparisons.
13252         * config/rx/rx.c (rx_split_fp_compare): Remove.
13253         * config/rx/rx-protos.h: Update.
13254         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13255         (cbranchsf4): Don't call rx_split_fp_compare.
13256         (*cbranchsf4): Use rx_split_cbranch.
13257         (*cmpsf): Don't accept "i" constraint.
13258         (*conditional_branch): Only valid after reload.
13259         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13260
13261 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13262
13263         PR target/47385
13264         * config/rs6000/altivec.md (vector constant splitters): Add
13265         support for creating vector single precision constants if -mvsx is
13266         used and we would create the constant using Altivec primitives.
13267
13268 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13269             Richard Sandiford  <rdsandiford@googlemail.com>
13270
13271         PR rtl-optimization/47166
13272         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13273         mechanism for PRE_MODIFY and POST_MODIFY.
13274         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13275         reloadreg.
13276
13277 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13278
13279         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13280
13281 2011-01-22  Jan Hubicka  <jh@suse.cz>
13282
13283         PR lto/47333
13284         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13285
13286 2011-01-22  Jan Hubicka  <jh@suse.cz>
13287
13288         PR tree-optimization/43884
13289         PR lto/44334
13290         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13291         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13292
13293 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13294
13295         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13296         * config/s390/s390.c (s390_register_move_cost,
13297         s390_memory_move_cost): New.
13298         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13299
13300 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13301
13302         PR middle-end/47401
13303         * except.c (sjlj_assign_call_site_values): Move setting the
13304         crtl->uses_eh_lsda flag to ...
13305         (sjlj_mark_call_sites): ... here.
13306         (sjlj_emit_function_enter): Support NULL dispatch label.
13307         (sjlj_build_landing_pads): In a function with no landing pads
13308         that still has must-not-throw regions, generate code to register
13309         a personality function with empty LSDA.
13310
13311 2011-01-21  Richard Henderson  <rth@redhat.com>
13312
13313         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13314
13315         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13316
13317         * compare-elim.c: New file.
13318         * Makefile.in (OBJS-common): Add it.
13319         (compare-elim.o): New.
13320         * common.opt (fcompare-elim): New.
13321         * opts.c (default_options_table): Add OPT_fcompare_elim.
13322         * tree-pass.h (pass_compare_elim_after_reload): New.
13323         * passes.c (init_optimization_passes): Add it.
13324         * recog.h: Protect against re-inclusion.
13325         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13326         * doc/invoke.texi (-fcompare-elim): Document it.
13327         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13328         * doc/tm.texi: Rebuild.
13329
13330 2011-01-22  Nick Clifton  <nickc@redhat.com>
13331
13332         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13333         rx_split_fp_compare.
13334
13335 2011-01-22  Nick Clifton  <nickc@redhat.com>
13336
13337         * config/rx/rx.md (UNSPEC_CONST): New.
13338         (deallocate_and_return): Wrap the amount popped off the stack in
13339         an UNSPEC_CONST in order to stop it being rejected by
13340         -mmax-constant-size.
13341         (pop_and_return): Add a "(return)" rtx.
13342         (call): Drop the immediate operand.
13343         (call_internal): Likewise.
13344         (call_value): Likewise.
13345         (call_value_internal): Likewise.
13346         (sibcall_internal): Likewise.
13347         (sibcall_value_internal): Likewise.
13348         (sibcall): Likewise.  Generate an explicit call using
13349         sibcall_internal.
13350         (sibcall_value): Likewise.
13351         (mov<>): FAIL if a constant operand is not legitimate.
13352         (addsi3_unpsec): New pattern.
13353
13354         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13355         (ok_for_max_constant): New function.
13356         (gen_safe_add): New function.
13357         (rx_expand_prologue): Use gen_safe_add.
13358         (rx_expand_epilogue): Likewise.
13359         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13360         UNSPEC CONSTs.
13361
13362 2011-01-21  Jeff Law  <law@redhat.com>
13363
13364         PR tree-optimization/47053
13365         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13366         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13367         statements are deleted.
13368         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13369         is nonempty, then purge dead edges and cleanup the CFG.
13370
13371 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13372
13373         PR debug/47402
13374         Temporarily revert:
13375         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13376         PR debug/47106
13377         * tree-dfa.c (create_var_ann): Mark variable as used.
13378
13379 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13380
13381         PR middle-end/45566
13382         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13383         notes from other section in hot/cold partitioning even if
13384         last_action is -3.  Increment call_site_base.
13385
13386         PR rtl-optimization/47366
13387         * fwprop.c (forward_propagate_into): Return bool.  If
13388         any changes are made, -fnon-call-exceptions is used and
13389         REG_EH_REGION note is present, call purge_dead_edges
13390         and return true if it purged anything.
13391         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13392         any EH edges were purged.
13393
13394 2011-01-21  Jeff Law  <law@redhat.com>
13395
13396         PR rtl-optimization/41619
13397         * caller-save.c (setup_save_areas): Break out code to determine
13398         which hard regs are live across calls by examining the reload chains
13399         so that it is always used.
13400         Eliminate code which checked REG_N_CALLS_CROSSED.
13401
13402 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13403
13404         PR tree-optimization/47355
13405         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13406         NOP has non-debug uses beyond PHIs in new_bb.
13407
13408 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13409
13410         PR debug/47106
13411         * cfgexpand.c (account_used_vars_for_block): Only account vars
13412         that are annotated as used.
13413         (estimated_stack_frame_size): Don't set TREE_USED.
13414         * tree-dfa.c (create_var_ann): Mark variable as used.
13415
13416 2011-01-21  Richard Guenther  <rguenther@suse.de>
13417
13418         PR middle-end/47395
13419         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13420
13421 2011-01-21  Richard Guenther  <rguenther@suse.de>
13422
13423         PR tree-optimization/47365
13424         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13425         (vn_reference_lookup_pieces): Adjust.
13426         (vn_reference_lookup): Likewise.
13427         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13428         (vn_reference_lookup_3): Only look through kills if in
13429         VN_WALKREWRITE mode.
13430         (vn_reference_lookup_pieces): Adjust.
13431         (vn_reference_lookup): Likewise.
13432         (visit_reference_op_load): Likewise.
13433         (visit_reference_op_store): Likewise.
13434         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13435         (compute_avail): Likewise.
13436         (eliminate): Likewise.
13437
13438 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13439
13440         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13441         DECL_IGNORED_P non-reg vars if they are used.
13442
13443         PR tree-optimization/47391
13444         * varpool.c (const_value_known_p): Return false if
13445         decl is volatile.
13446
13447 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13448
13449         PR bootstrap/47215
13450         * config/i386/i386.c (ix86_local_alignment): Handle
13451         case for va_list_type_node is nil.
13452         (ix86_canonical_va_list_type): Likewise.
13453
13454 2011-01-21  Alan Modra  <amodra@gmail.com>
13455
13456         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13457         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13458
13459 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13460
13461         * config/arm/arm.md (define_attr type): Rename f_load
13462         and f_store to f_fpa_load and f_fpa_store. Update.
13463         (write_conflict): Deal with rename fallout.
13464         (*push_fp_multi): Likewise.
13465         * config/arm/fpa.md (f_load): Use f_fpa_load.
13466         (f_store): Use f_fpa_store.
13467         (*movsf_fpa): Likewise.
13468         (*movdf_fpa): Likewise.
13469         (*movxf_fpa): Likewise.
13470         (*thumb2_movsf_fpa): Likewise.
13471         (*thumb2_movdf_fpa): Likewise.
13472         (*thumb2_movxf_fpa): Likewise.
13473         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13474         f_loadd and f_stored.
13475         (*thumb2_movdi_vfp): Likewise.
13476         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13477         (*thumb2_movsi_vfp): Likewise.
13478         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13479         Use f_loads instead of f_load.
13480         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13481
13482 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13483
13484         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13485         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13486         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13487         (xtensa_mode_dependent_address_p): New function.
13488         (constantpool_address_p): Make static. Change return type to bool.
13489         Change argument type to const_rtx. Use CONST_INT_P predicate.
13490
13491 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13492
13493         PR debug/46583
13494         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13495
13496 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13497
13498         PR debug/47283
13499         * cfgexpand.c (expand_debug_expr): Instead of generating
13500         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13501         etc. handling.
13502
13503 2011-01-20  Richard Guenther  <rguenther@suse.de>
13504
13505         PR middle-end/47370
13506         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13507         the pointer operand of MEM_REFs.
13508
13509 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13510
13511         PR tree-optimization/46130
13512         * ipa-split.c (consider_split): If return_bb contains non-virtual
13513         PHIs other than for retval or if split_function would not adjust it,
13514         refuse to split.
13515
13516 2011-01-20  Richard Guenther  <rguenther@suse.de>
13517
13518         PR tree-optimization/47167
13519         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13520         Revert previous change, only avoid enumeral type changes.
13521
13522 2011-01-19  Mike Stump  <mikestump@comcast.net>
13523
13524         * doc/tm.texi.in (BRANCH_COST): Englishify.
13525         * doc/tm.texi (BRANCH_COST): Likewise.
13526
13527 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13528
13529         PR c++/47291
13530         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13531         (gen_scheduled_generic_parms_dies): New functions.
13532         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13533         generation for the end of CU compilation.
13534         (dwarf2out_finish): Generate template parameters DIEs here.
13535
13536 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13537
13538         PR debug/46240
13539         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13540         debug bind stmt on merge edges.
13541
13542 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13543
13544         PR debug/47079
13545         PR debug/46724
13546         * function.c (instantiate_expr): Instantiate incoming rtl of
13547         implicit arguments, and recurse on VALUE_EXPRs.
13548         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13549         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13550
13551 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13552
13553         * c-parser.c (c_parser_for_statement): Initialize
13554         collection_expression.
13555
13556 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13557
13558         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13559
13560 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13561
13562         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13563         (LINK_SHLIB_SPEC): Don't use %(link_path).
13564         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13565
13566 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13567
13568         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13569         (NO_SHARED_LIB_SUPPORT): Remove.
13570         (LINK_SHLIB_SPEC): Remove one conditional definition.
13571
13572 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13573
13574         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13575         %{call_shared}.
13576         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13577         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13578         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13579         %{call_shared} and conditionals on these options not being passed.
13580         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13581         %{call_shared}.
13582
13583 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13584
13585         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13586         simplify.
13587
13588         * ipa-split.c: Spelling fixes.
13589
13590 2011-01-19  Richard Henderson  <rth@redhat.com>
13591
13592         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13593         (*mulsi3): Likewise.
13594
13595         * longlong.h [__mn10300__] (count_leading_zeros): New.
13596         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13597         [__mn10300__] (add_ssaaaa, subddmmss): New.
13598         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13599         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13600
13601 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13602
13603         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13604
13605 2011-01-19  Richard Henderson  <rth@redhat.com>
13606
13607         * config/mn10300/mn10300.md (addsi3_flags): New.
13608         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13609         (subsi3_flags, subc_internal, subdi3): New.
13610         (subdi3_internal, *subdi3_degenerate): New.
13611         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13612
13613         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13614         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13615         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13616         * config/mn10300/mn10300-protos.h: Update.
13617         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13618         (return_ret): Likewise.  Rename from return_internal_regs.
13619         (return_internal): Remove.
13620
13621         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13622         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13623         (mn10300_legitimate_constant_p): Likewise.
13624         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13625         (mn10300_frame_size): New.
13626         (mn10300_expand_prologue): Use it.
13627         (mn10300_expand_epilogue): Likewise.
13628         (mn10300_initial_offset): Likewise.
13629         * config/mn10300/mn10300-protos.h: Update.
13630         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13631         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13632         (prologue, epilogue, return_internal): Tidy output code.
13633         (mn10300_store_multiple_operation, return): Likewise.
13634         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13635         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13636         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13637         (load_pic, am33_load_pic): New.
13638         (mn10300_load_pic0, mn10300_load_pic1): New.
13639
13640         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13641         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13642         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13643         (cc_flags_for_mode, cc_flags_for_code): New.
13644         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13645         overflow flag is not valid.  Validate that the flags we need
13646         for the comparison are valid.
13647         (mn10300_output_cmp): Remove.
13648         (mn10300_output_add): New.
13649         (mn10300_select_cc_mode): Use cc_flags_for_code.
13650         (mn10300_split_cbranch): New.
13651         (mn10300_match_ccmode): New.
13652         (mn10300_split_and_operand_count): New.
13653         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13654         to the function.
13655         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13656         (addsi3): ... here.  Use mn10300_output_add.
13657         (*addsi3_flags): New.
13658         (*am33_subsi3, *mn10300_subsi3): Merge...
13659         (subsi3): ... here.  Use attribute isa.
13660         (*subsi3_flags): New.
13661         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13662         when possible.
13663         (*am33_andsi3, *mn10300_andsi3): Merge...
13664         (andsi3): ... here.
13665         (*andsi3_flags): New.
13666         (andsi3 splitters): New.
13667         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13668         (iorsi3): ... here.
13669         (*iorsi3_flags): New.
13670         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13671         (xorsi3): ... here.
13672         (*xorsi3_flags): New.
13673         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13674         (one_cmplsi2): ... here.
13675         (*one_cmplsi2_flags): New.
13676         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13677         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13678         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13679         use matching constraints to eliminate a self-comparison.
13680         (*integer_conditional_branch): Rename from integer_conditional_branch.
13681         Use int_mode_flags to match CC_REG.
13682         (*cbranchsi4_btst, *btstsi): New.
13683         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13684         mn10300_split_cbranch.
13685         (*am33_cmpsf): Rename from am33_cmpsf.
13686         (*float_conditional_branch): Rename from float_conditional_branch.
13687         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13688         (zero_extendqisi2): ... here.
13689         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13690         (zero_extendhisi2): ... here.
13691         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13692         (extendqisi2): ... here.
13693         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13694         (extendhisi2): ... here.
13695         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13696         (ashlsi3): ... here.
13697         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13698         (lshrsi3): ... here.
13699         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13700         (ashrsi3): ... here.
13701         (consecutive add peephole): Remove.
13702         * config/mn10300/predicates.md (label_ref_operand): New.
13703         (int_mode_flags): New.
13704         (CCZN_comparison_operator): New.
13705
13706         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13707         (throughput_42_latency_43): New reservation.
13708         (mulsidi3, umulsidi3): New expanders.
13709         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13710         the MDR register to allocation; separately allocate the low and
13711         high parts of the DImode result.
13712         (umulsidi3_internal): Similarly.
13713         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13714         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13715         (udivsi3, umodsi3): Remove.
13716         (udivmodsi4, divmodsi4): New expanders.
13717         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13718         (*divmodsi4): Simiarly.
13719         (ext_internal): New.
13720
13721         * config/mn10300/constraints.md ("z"): New constraint.
13722         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13723         (FIXED_REGISTERS): Don't fix MDR.
13724         (CALL_USED_REGSITERS): Reformat nicely.
13725         (REG_ALLOC_ORDER): Add MDR.
13726         (enum regclass): Add MDR_REGS.
13727         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13728         (IRA_COVER_CLASSES): Add MDR_REGS.
13729         (REGNO_REG_CLASS): Handle MDR_REG.
13730         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13731         (mn10300_register_move_cost): Likewise.
13732         * config/mn10300/mn10300.md (MDR_REG): New.
13733         (*movsi_internal): Handle moves to/from MDR_REGS.
13734
13735         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13736         POST_MODIFY.
13737         (mn10300_secondary_reload): Tidy combination reload classes.
13738         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13739         addresses for AM33.  Allow symbolic offsets for reg+imm.
13740         (mn10300_regno_in_class_p): New.
13741         (mn10300_legitimize_reload_address): New.
13742         * config/mn10300/mn10300.h (enum reg_class): Remove
13743         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13744         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13745         SP_OR_GENERAL_REGS.
13746         (REG_CLASS_NAMES): Update to match.
13747         (REG_CLASS_CONTENTS): Likewise.
13748         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13749         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13750         (REGNO_IN_RANGE_P): Remove.
13751         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13752         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13753         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13754         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13755         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13756         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13757         (REGNO_GENERAL_P): New.
13758         (HAVE_POST_MODIFY_DISP): New.
13759         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13760         (LEGITIMIZE_RELOAD_ADDRESS): New.
13761         * config/mn10300/mn10300-protos.h: Update.
13762
13763         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13764         DATA_REGS for AM33 stack-pointer destination.
13765         (mn10300_preferred_output_reload_class): Likewise.
13766         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13767         into a form appropriate for ...
13768         (TARGET_SECONDARY_RELOAD): New.
13769         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13770         * config/mn10300/mn10300-protos.h: Update.
13771         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13772         reload_insi; use the "A" constraint for the scratch; handle AM33
13773         moves of sp to non-address registers.
13774
13775         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13776         (*movqi_internal): ... here.
13777         (*am33_movhi, *mn10300_movhi): Merge into...
13778         (*movhi_internal): ... here.
13779         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13780         as the source/destination of moves from/to SP.
13781         (movsf): Only allow for AM33-2.
13782         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13783         any integer constant constraint.  Only allow for AM33-2.  Tidy
13784         all of the alternative outputs.
13785         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13786         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13787         for MN103.
13788         (udivsi3, umodsi3): New patterns for MN103 only.
13789
13790 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13791
13792         * doc/tm.texi.in: Spell out that a lack of register class unions
13793         can lead to ICEs.
13794         * doc/tm.texi: Regenerate.
13795
13796 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13797
13798         PR rtl-optimization/47337
13799         * dce.c (check_argument_store): New function.
13800         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13801
13802         PR tree-optimization/47290
13803         * tree-eh.c (infinite_empty_loop_p): New function.
13804         (cleanup_empty_eh): Use it.
13805
13806 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13807
13808         PR target/46997
13809         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13810         (a64_expand_widen_sum): Ditto.
13811         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13812         (vec_extract_evenodd_help): Ditto.
13813         (vec_extract_evenv4hi): Ditto.
13814         (vec_extract_oddv4hi): Ditto.
13815         (vec_extract_evenv2si): Ditto.
13816         (vec_extract_oddv2si): Ditto.
13817         (vec_extract_evenv2sf): Ditto.
13818         (vec_extract_oddv2sf): Ditto.
13819         (vec_pack_trunc_v4hi: Ditto.
13820         (vec_pack_trunc_v2si): Ditto.
13821         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13822         (vec_interleave_highv8qi): Ditto.
13823         (mix1_r): Ditto.
13824         (vec_extract_oddv8qi): Ditto.
13825         (vec_interleave_lowv4hi): Ditto.
13826         (vec_interleave_highv4hi): Ditto.
13827         (vec_interleave_lowv2si): Ditto.
13828         (vec_interleave_highv2si): Ditto.
13829
13830 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13831
13832         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13833         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13834         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13835         (pa_c_mode_for_suffix): New.
13836         (TARGET_EXPAND_BUILTIN): Define.
13837         (TARGET_C_MODE_FOR_SUFFIX): Define.
13838         (pa_builtins): Define.
13839         (pa_init_builtins): Register __float128 type and init new support
13840         builtins.
13841         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13842         * config/pa/quadlib.c (_U_Qfcopysign): New.
13843
13844 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13845
13846         PR middle-end/46894
13847         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13848         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13849         are defined.
13850
13851 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13852
13853         PR tree-optimization/47179
13854         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13855         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13856
13857 2011-01-18  Richard Guenther  <rguenther@suse.de>
13858
13859         PR rtl-optimization/47216
13860         * emit-rtl.c: Include tree-flow.h.
13861         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13862         of replicating it with different semantics.
13863         * Makefile.in (emit-rtl.o): Adjust.
13864
13865 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13866
13867         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13868         (cortex_a9_dp): Handle neon types correctly.
13869
13870 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13871
13872         PR rtl-optimization/47299
13873         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13874         subtarget.  Use normal multiplication if both operands are constants.
13875         * expmed.c (expand_widening_mult): Don't try to optimize constant
13876         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13877         before using it.
13878
13879 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13880
13881         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13882         spacing after 'e.g.', typos, comma, hyphenation.
13883
13884 2011-01-17  Richard Henderson  <rth@redhat.com>
13885
13886         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13887         (rx_restricted_mem_operand): New.
13888         (rx_shift_operand): Use register_operand.
13889         (rx_source_operand, rx_compare_operand): Likewise.
13890         * config/rx/rx.md (addsi3_flags): New expander.
13891         (adddi3): Rewrite as expander.
13892         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13893         (subsi3_flags): New expander.
13894         (subdi3): Rewrite as expander.
13895         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13896
13897         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13898         (rx_init_builtins): Remove sat builtin.
13899         (rx_expand_builtin): Likewise.
13900         * config/rx/rx.md (ssaddsi3): New.
13901         (*sat): Rename from sat.  Represent the CC_REG input.
13902
13903         * config/rx/predicates.md (rshift_operator): New.
13904         * config/rx/rx.c (rx_expand_insv): Remove.
13905         * config/rx/rx-protos.h: Update.
13906         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13907         operand to the canonical position.
13908         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13909         (*bitclr, *bitclr_in_memory): Similarly.
13910         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13911         (insv): Retain the zero_extract in the expansion.
13912
13913         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13914         (bswaphi2, bitinvert, revw): Likewise.
13915
13916         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13917         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13918         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13919         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13920         (bitset, bitset_in_memory): Likewise.
13921         (bitinvert, bitinvert_in_memory): Likewise.
13922         (bitclr, bitclr_in_memory): Likewise.
13923         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13924         (rx_strend, rx_cmpstrn): Likewise.
13925         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13926         (bitop peep2 patterns): Remove.
13927
13928         * config/rx/rx.c (rx_match_ccmode): New.
13929         * config/rx/rx-protos.h: Update.
13930         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13931         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13932         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13933         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13934         (fix_truncsfsi2, floatsisf2): Likewise.
13935         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13936         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13937         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13938         (*subsi3_flags, *xorsi3_flags): New.
13939
13940         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13941
13942         * config/rx/rx.c (rx_print_operand): Remove workaround for
13943         unsplit comparison operations.
13944
13945         * config/rx/rx.md (movsicc): Split after reload.
13946         (*movsicc): Merge *movsieq and *movsine via match_operator.
13947         (*stcc): New pattern.
13948
13949         * config/rx/rx.c (rx_float_compare_mode): Remove.
13950         * config/rx/rx.h (rx_float_compare_mode): Remove.
13951         * config/rx/rx.md (cstoresi4): Split after reload.
13952         (*sccc): New pattern.
13953
13954         * config/rx/predicates.md (label_ref_operand): New.
13955         (rx_z_comparison_operator): New.
13956         (rx_zs_comparison_operator): New.
13957         (rx_fp_comparison_operator): New.
13958         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13959         Validate that the flags are set properly for the comparison.
13960         (rx_gen_cond_branch_template): Remove.
13961         (rx_cc_modes_compatible): Remove.
13962         (mode_from_flags): New.
13963         (flags_from_code): Rename from flags_needed_for_conditional.
13964         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13965         (rx_select_cc_mode): Likewise.
13966         (rx_split_fp_compare): New.
13967         (rx_split_cbranch): New.
13968         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13969         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13970         (*cbranchsf4): Similarly.
13971         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13972         match_operator and rx_split_cbranch.
13973         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13974         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13975         (*cmpsi): Rename from cmpsi.
13976         (*tstsi): Rename from tstsi.
13977         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13978         (*conditional_branch): Rename from conditional_branch.
13979         (*reveresed_conditional_branch): Remove.
13980         (b<code>): Remove expander.
13981         * config/rx/rx-protos.h: Update.
13982
13983         * config/rx/rx.c (rx_compare_redundant): Remove.
13984         * config/rx/rx.md (cmpsi): Don't use it.
13985         * config/rx/rx-protos.h: Update.
13986
13987         * config/rx/rx-modes.def (CC_F): New mode.
13988         * config/rx/rx.c (rx_select_cc_mode): New.
13989         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13990         * config/rx/rx-protos.h: Update.
13991
13992 2011-01-17  Richard Henderson  <rth@redhat.com>
13993
13994         * except.c (dump_eh_tree): Fix stray ; after for statement.
13995
13996 2011-01-17  Richard Guenther  <rguenther@suse.de>
13997
13998         PR tree-optimization/47313
13999         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14000         handling before copying the body.  Properly deal with
14001         by-reference result in SSA form.
14002
14003 2011-01-17  Ian Lance Taylor  <iant@google.com>
14004
14005         PR target/47219
14006         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14007         (struct_value_alias_set): Don't define.
14008         (sparc_option_override): Don't set sparc_sr_alias_set and
14009         struct_value_alias_set.
14010         (save_or_restore_regs): Use gen_frame_mem rather than calling
14011         set_mem_alias_set.
14012         (sparc_struct_value_rtx): Likewise.
14013
14014 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14015
14016         PR target/47318
14017         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14018         (_mm_maskstore_pd): Likewise.
14019         (_mm_maskload_ps): Likewise.
14020         (_mm_maskstore_ps): Likewise.
14021         (_mm256_maskload_pd): Change mask to __m256i.
14022         (_mm256_maskstore_pd): Likewise.
14023         (_mm256_maskload_ps): Likewise.
14024         (_mm256_maskstore_ps): Likewise.
14025
14026         * config/i386/i386-builtin-types.def: Updated.
14027         (ix86_expand_special_args_builtin): Likewise.
14028
14029         * config/i386/i386.c (bdesc_special_args): Update
14030         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14031         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14032         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14033         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14034
14035         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14036         Use <avxpermvecmode> on mask register.
14037         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14038
14039 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14040             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14041             Eric Botcazou  <ebotcazou@adacore.com>
14042
14043         PR target/46655
14044         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14045         if <= USHRT_MAX in 32-bit mode.
14046
14047 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14048
14049         * doc/install.texi (Configuration, Specific): Wrap long
14050         lines in examples.  Allow line wrapping in long options
14051         and URLs where beneficial for PDF output.
14052
14053 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14054
14055         * config/mips/mips.c (mips_classify_symbol): Don't return
14056         SYMBOL_PC_RELATIVE for nonlocal labels.
14057
14058 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14059
14060         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14061
14062 2011-01-15  Jan Hubicka  <jh@suse.cz>
14063
14064         PR tree-optimization/47276
14065         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14066         declarations as needed.
14067
14068 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14069
14070         * common.opt (fdevirtualize): New flag.
14071         * doc/invoke.texi (Option Summary): Document it.
14072         * opts.c (default_options_table): Add devirtualize flag.
14073         * ipa-prop.c (detect_type_change): Return immediately if
14074         devirtualize flag is not set.
14075         (detect_type_change_ssa): Likewise.
14076         (compute_known_type_jump_func): Likewise.
14077         (ipa_analyze_virtual_call_uses): Likewise.
14078
14079 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14080
14081         PR tree-optimization/45934
14082         PR tree-optimization/46302
14083         * ipa-prop.c (type_change_info): New type.
14084         (stmt_may_be_vtbl_ptr_store): New function.
14085         (check_stmt_for_type_change): Likewise.
14086         (detect_type_change): Likewise.
14087         (detect_type_change_ssa): Likewise.
14088         (compute_complex_assign_jump_func): Check for dynamic type change.
14089         (compute_complex_ancestor_jump_func): Likewise.
14090         (compute_known_type_jump_func): Likewise.
14091         (compute_scalar_jump_functions): Likewise.
14092         (ipa_analyze_virtual_call_uses): Likewise.
14093         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14094
14095 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14096
14097         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14098         * config/i386/i386.opt (msse5): New Alias.
14099
14100 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14103         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14104         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14105         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14106
14107 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14108
14109         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14110         -mcpu options.
14111         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14112         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14113         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14114         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14115         Likewise.
14116         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14117
14118 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14119
14120         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14121
14122 2011-01-14  Mike Stump  <mikestump@comcast.net>
14123
14124         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14125         * config/fr30/fr30.md: Likweise
14126         (movsi_push): Likewise.
14127         (movsi_pop): Likewise.
14128         (enter_func): Likewise.
14129         * config/moxie/moxie.md (movsi_push): Likewise.
14130         (movsi_pop): Likewise.
14131
14132 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14133
14134         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14135         %{no_archive} %{exact_version}.
14136         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14137         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14138         %{no_archive} %{exact_version}.
14139         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14140         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14141         * config/mips/vxworks.h: Likewise.
14142
14143 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14144
14145         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14146
14147 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14148
14149         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14150         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14151
14152 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14153
14154         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14155         -nodefaultlib.
14156
14157 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14158
14159         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14160         for mcpu not cpu.
14161         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14162         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14163         not cpu.
14164         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14165         Don't handle -shlib.
14166
14167 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14168
14169         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14170         (CC1_SPEC): Don't handle -profile.
14171
14172 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14173
14174         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14175         * config/mips/mips.h (CC1_SPEC): Likewise.
14176
14177 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14178
14179         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14180         * config/mips/mips.h (CC1_SPEC): Likewise.
14181
14182 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14183
14184         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14185         * config/m32r/linux.h (LINK_SPEC): Likewise.
14186         * config/mips/linux.h (LINK_SPEC): Likewise.
14187         * config/mips/linux64.h (LINK_SPEC): Likewise.
14188         * config/sparc/linux.h (LINK_SPEC): Likewise.
14189         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14190         LINK_SPEC): Likewise.
14191         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14192
14193 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14194
14195         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14196         %{version:-v}.
14197         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14198
14199 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14200
14201         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14202         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14203
14204 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14205
14206         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14207
14208 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14209
14210         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14211         supports -Bstatic/-Bdynamic.
14212         * configure: Regenerate.
14213
14214 2011-01-14  Jan Hubicka  <jh@suse.cz>
14215             Jack Howarth  <howarth@bromo.med.uc.edu>
14216
14217         PR target/46037
14218         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14219         when checking debug_info_level. Test write_symbols instead of
14220         debug_hooks->var_location when setting flag_var_tracking_uninit.
14221
14222 2011-01-14  Richard Guenther  <rguenther@suse.de>
14223
14224         PR tree-optimization/47179
14225         * target.def (ref_may_alias_errno): New target hook.
14226         * targhooks.h (default_ref_may_alias_errno): Declare.
14227         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14228         (default_ref_may_alias_errno): New function.
14229         * target.h (struct ao_ref_s): Declare.
14230         * tree-ssa-alias.c: Include target.h.
14231         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14232         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14233         (targhooks.o): Likewise.
14234         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14235         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14236
14237 2011-01-14  Richard Guenther  <rguenther@suse.de>
14238
14239         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14240
14241 2011-01-14  Richard Guenther  <rguenther@suse.de>
14242
14243         PR tree-optimization/47280
14244         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14245         return CFG changes.
14246         (tree_ssa_forward_propagate_single_use_vars): Deal with
14247         CFG changes from associate_plusminus.
14248
14249 2011-01-14  Richard Guenther  <rguenther@suse.de>
14250
14251         PR middle-end/47281
14252         Revert
14253         2011-01-11  Richard Guenther  <rguenther@suse.de>
14254
14255         PR tree-optimization/46076
14256         * tree-ssa.c (useless_type_conversion_p): Conversions from
14257         unprototyped to empty argument list function types are useless.
14258
14259 2011-01-14  Richard Guenther  <rguenther@suse.de>
14260
14261         PR tree-optimization/47286
14262         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14263
14264 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14265
14266         PR middle-end/46823
14267         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14268
14269 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14270
14271         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14272         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14273         * config/xtensa/xtensa.c (xtensa_libcall_value,
14274         xtensa_function_value_regno_p): New functions.
14275         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14276
14277 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14278
14279         PR c++/47213
14280         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14281         PE specific hook.
14282         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14283         New function prototype.
14284         * config/i386/winnt.c (i386_pe_assemble_visibility):
14285         Warn only if attribute was specified by user.
14286
14287 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14288
14289         PR target/47251
14290         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14291         floating point.
14292         (floatunsdidf2_fcfidu): Ditto.
14293
14294 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14295
14296         * config/s390/s390.c (print_operand_address): Replace 'error' with
14297         'output_operand_lossage'.
14298         (print_operand): Likewise.
14299
14300 2011-01-13  Jeff Law  <law@redhat.com>
14301
14302         PR rtl-optimization/39077
14303         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14304         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14305         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14306         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14307         * gcse.c (prune_insertions_deletions): New function.
14308         (compute_pre_data): Use it.
14309
14310 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14311
14312         PR debug/PR46973
14313         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14314         static function.
14315         (prune_unused_types_mark): Use it.
14316
14317 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14318
14319         PR rtl-optimization/45352
14320         * sel-sched.c: Update copyright years.
14321         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14322         in the advancing loop when we have issued issue_rate insns.
14323
14324 2011-01-12  Richard Henderson  <rth@redhat.com>
14325
14326         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14327         (TARGET_MD_ASM_CLOBBERS): New.
14328
14329         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14330         (TARGET_DELEGITIMIZE_ADDRESS): New.
14331
14332         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14333         (clzsi2, *bsch): New patterns.
14334
14335         * config/mn10300/mn10300.md (INT): New mode iterator.
14336         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14337
14338         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14339         flag_split_wide_types.
14340
14341         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14342         (mn10300_trampoline_init): Rewrite without a template, an immediate
14343         load and a direct branch.
14344         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14345
14346 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14347
14348         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14349         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14350         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14351         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14352
14353 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14354
14355         PR debug/47209
14356         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14357         of type.
14358
14359 2011-01-12  Jan Hubicka  <jh@suse.cz>
14360
14361         PR driver/47244
14362         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14363         (PLUGIN_COND_CLOSE): New macro.
14364         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14365
14366 2011-01-12  Richard Guenther  <rguenther@suse.de>
14367
14368         PR lto/47259
14369         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14370         register variables in a MEM_REF.
14371
14372 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14373
14374         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14375         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14376         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14377         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14378         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14379         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14380         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14381         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14382         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14383         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14384         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14385         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14386         * config/gnu-user.h: New.  Copied from linux.h.
14387         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14388         GNU_USER_TARGET_STARTFILE_SPEC.
14389         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14390         GNU_USER_TARGET_ENDFILE_SPEC.
14391         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14392         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14393         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14394         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14395         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14396         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14397         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14398         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14399         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14400         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14401         * config/arm/linux-eabi.h (CC1_SPEC): Use
14402         GNU_USER_TARGET_CC1_SPEC.
14403         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14404         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14405         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14406         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14407         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14408         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14409         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14410         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14411
14412 2011-01-12  Richard Guenther  <rguenther@suse.de>
14413
14414         PR other/46946
14415         * doc/invoke.texi (ffast-math): Document it is turned on
14416         with -Ofast.
14417
14418 2011-01-12  Jan Hubicka  <jh@suse.cz>
14419
14420         PR tree-optimization/47233
14421         * opts.c (common_handle_option): Disable ipa-reference with profile
14422         feedback.
14423
14424 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14425
14426         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14427         error message.
14428
14429 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14430
14431         * c-parser.c (c_lex_one_token): Updated and reindented some
14432         comments.  No changes in code.
14433
14434 2011-01-11  Ian Lance Taylor  <iant@google.com>
14435
14436         * godump.c (go_output_var): Don't output the variable if there is
14437         already a type with the same name.
14438
14439 2011-01-11  Ian Lance Taylor  <iant@google.com>
14440
14441         * godump.c (go_format_type): Don't generate float80.
14442
14443 2011-01-11  Richard Henderson  <rth@redhat.com>
14444
14445         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14446         declaration.  Rewrite for both speed and size.
14447         (mn10300_address_cost_1): Remove.
14448         (mn10300_register_move_cost): New.
14449         (mn10300_memory_move_cost): New.
14450         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14451         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14452         extensions, shifts, BSWAP, CLZ.
14453         (mn10300_wide_const_load_uses_clr): Remove.
14454         (TARGET_REGISTER_MOVE_COST): New.
14455         (TARGET_MEMORY_MOVE_COST): New.
14456         * config/mn10300/mn10300-protos.h: Update.
14457         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14458
14459         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14460         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14461         * config/mn10300/mn10300-protos.h: Update.
14462         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14463         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14464         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14465         (*test_int_bitfield, *test_byte_bitfield): Remove.
14466         (*bit_test, *subreg_bit_test): Remove.
14467         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14468
14469         * config/mn10300/constraints.md ("c"): Rename from "A".
14470         ("A", "D"): New constraint letters.
14471         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14472         (fmssf4, fnmasf4, fnmssf4): Likewise.
14473
14474         * config/mn10300/mn10300.md (isa): New attribute.
14475         (enabled): New attribute.
14476
14477         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14478         (abssf2, negsf2): Define only for hardware fp.
14479         (sqrtsf2): Reformat.
14480         (addsf3, subsf3, mulsf3): Merge expander and insn.
14481
14482         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14483         (DEBUGGER_AUTO_OFFSET): Remove.
14484         (DEBUGGER_ARG_OFFSET): Remove.
14485
14486         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14487         Emit register stores with the same offsets as the hardware.
14488         (mn10300_store_multiple_operation): Don't check that the register
14489         save offsets are monotonic.
14490         * config/mn10300/mn10300-protos.h: Update.
14491
14492         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14493
14494         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14495         in terms of the value on the stack, not the MDR register.
14496
14497 2011-01-11  Jan Hubicka  <jh@suse.cz>
14498
14499         PR lto/45721
14500         PR lto/45375
14501         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14502         (symbol_alias_set_destroy, symbol_alias_set_contains,
14503         propagate_aliases_backward): Declare.
14504         * lto-streamer-out.c (struct sets): New sturcture.
14505         (trivally_defined_alias): New function.
14506         (output_alias_pair_p): Rewrite.
14507         (output_unreferenced_globals): Fix output of alias pairs.
14508         (produce_symtab): Likewise.
14509         * ipa.c (function_and_variable_visibility): Set weak alias destination
14510         as needed in lto.
14511         * varasm.c (symbol_alias_set_t): Remove.
14512         (symbol_alias_set_destroy): Export.
14513         (propagate_aliases_forward, propagate_aliases_backward): New functions
14514         based on ...
14515         (compute_visible_aliases): ... this one; remove.
14516         (trivially_visible_alias): New
14517         (trivially_defined_alias): New.
14518         (remove_unreachable_alias_pairs): Rewrite.
14519         (finish_aliases_1): Reorganize code checking if alias is defined.
14520         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14521         in LTO mode.
14522
14523 2011-01-11  Richard Guenther  <rguenther@suse.de>
14524
14525         PR tree-optimization/46076
14526         * tree-ssa.c (useless_type_conversion_p): Conversions from
14527         unprototyped to empty argument list function types are useless.
14528
14529 2011-01-11  Richard Guenther  <rguenther@suse.de>
14530
14531         PR middle-end/45235
14532         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14533         volatile MEMs as MEM_READONLY_P.
14534
14535 2011-01-11  Richard Guenther  <rguenther@suse.de>
14536
14537         PR tree-optimization/47239
14538         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14539
14540 2011-01-11  Jeff Law  <law@redhat.com>
14541
14542         PR tree-optimization/47086
14543         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14544         IVs from statements that might throw.
14545
14546 2011-01-10  Jan Hubicka  <jh@suse.cz>
14547
14548         PR lto/45375
14549         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14550
14551 2011-01-10  Jan Hubicka  <jh@suse.cz>
14552
14553         PR lto/45375
14554         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14555         when correcting profile.
14556
14557 2011-01-10  Jan Hubicka  <jh@suse.cz>
14558
14559         PR lto/46083
14560         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14561         DECL_FINI_PRIORITY.
14562         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14563         Restore DECL_FINI_PRIORITY.
14564
14565 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14566
14567         * doc/gimple.texi: Fix quoting of multi-word return values in
14568         @deftypefn statements.  Ensure presence of return value.  Wrap
14569         overlong @deftypefn lines.
14570         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14571         descriptions of removed functions.
14572         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14573         of multi-word return value in @deftypefn statement.
14574
14575 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14576
14577         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14578         (Conditional Expressions, Logical Operators)
14579         (Statement and operand traversals): Do not indent smallexample
14580         code.  Fix duplicate function argument in example.
14581
14582 2011-01-10  Jeff Law  <law@redhat.com>
14583
14584         PR tree-optimization/47141
14585         * ipa-split.c (split_function): Handle case where we are
14586         returning a value and the return block has a virtual operand phi.
14587
14588 2011-01-10  Jan Hubicka  <jh@suse.cz>
14589
14590         PR tree-optimization/47234
14591         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14592         (pass_feedback_split_functions): Declare.
14593         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14594         tree-profile.
14595         * ipa-split.c (gate_split_functions): Update comments; disable
14596         split-functions for profile_arc_flag and branch_probabilities.
14597         (gate_feedback_split_functions): New function.
14598         (execute_feedback_split_functions): New function.
14599         (pass_feedback_split_functions): New global var.
14600
14601 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14602
14603         PR lto/46760
14604         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14605         calling gimple_call_set_cannot_inline.
14606
14607 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14608
14609         * config/darwin-sections.def: Remove unused section.
14610
14611 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14612
14613         PR c++/47218
14614         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14615
14616 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14617
14618         PR objc/47232
14619         * c-parser.c (c_parser_declaration_or_fndef): Improved
14620         error message.
14621
14622 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14623
14624         * config/i386/winnt.c (i386_pe_start_function): Make sure
14625         to switch back to function's section.
14626
14627 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14628
14629         PR gcc/46902
14630         PR testsuite/46912
14631         * plugin.c: Move include of dlfcn.h from here...
14632         * system.h: ... to here.
14633
14634 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14635
14636         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14637         file name.
14638         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14639         two extra empty pages in PDF output.
14640
14641 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14642
14643         PR objc/47078
14644         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14645         for error recovery purposes behave as if it was not specified so
14646         that the default type is usd.
14647
14648 2011-01-07  Jan Hubicka  <jh@suse.cz>
14649
14650         PR tree-optmization/46469
14651         * ipa.c (function_and_variable_visibility): Clear needed flags on
14652         nodes with external decls; handle weakrefs merging correctly.
14653
14654 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14655
14656         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14657         not false.
14658
14659 2011-01-07  Jan Hubicka  <jh@suse.cz>
14660
14661         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14662         and no longer claim that gold is required for linker plugin.
14663         * configure: Regenerate.
14664         * gcc.c (PLUGIN_COND): New macro.
14665         (LINK_COMMAND_SPEC): Use it.
14666         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14667         * config.in (HAVE_LTO_PLUGIN): New.
14668         * configure.ac (--with-lto-plugin): New parameter; autodetect
14669         HAVE_LTO_PLUGIN.
14670
14671 2011-01-07  Jan Hubicka  <jh@suse.cz>
14672
14673         PR tree-optimization/46367
14674         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14675         when we can update original.
14676         (cgraph_mark_inline_edge): Sanity check.
14677         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14678
14679 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14680
14681         * config/spu/spu.h (ASM_COMMENT_START): Define.
14682
14683 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14684
14685         PR driver/42445
14686         * gcc.c (%>S): New.
14687         (SWITCH_KEEP_FOR_GCC): Likewise.
14688         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14689         (do_spec_1): Handle "%>".
14690
14691         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14692
14693 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14694
14695         PR target/47201
14696         * config/i386/i386.c (ix86_delegitimize_address): If
14697         simplify_gen_subreg fails, return orig_x.
14698
14699         PR bootstrap/47187
14700         * value-prof.c (gimple_stringop_fixed_value): Handle
14701         lhs of the call properly.
14702
14703 2011-01-07  Jan Hubicka  <jh@suse.cz>
14704
14705         PR lto/45375
14706         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14707
14708 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14709
14710         * target.def (function_switched_text_sections): New hook.
14711         * doc/tm.texi: Regenerated.
14712         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14713         * final.c (default_function_switched_text_sections): New.
14714         (final_scan_insn): Call function_switched_text_sections when a
14715         mid-function section change occurs.
14716         * output.h (default_function_switched_text_sections): Declare.
14717         * config/darwin-protos.h (darwin_function_switched_text_sections):
14718         Likewise.
14719         * config/darwin.c (darwin_function_switched_text_sections): New.
14720         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14721
14722 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14723
14724         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14725         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14726         the secondary code fragment when outputting for DWARF == 2.
14727
14728 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14729
14730         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14731         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14732         Remove.
14733         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14734         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14735
14736 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14737
14738         PR debug/46704
14739         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14740         when it is not empty.
14741
14742 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14743
14744         Bobcat Enablement
14745         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14746         (case ${target}): Add btver1.
14747         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14748         -march=native recognize btver1 processors.
14749         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14750         btver1 def_and_undef
14751         * config/i386/i386.c (struct processor_costs btver1_cost): New
14752         btver1 cost table.
14753         (m_BTVER1): New definition.
14754         (m_AMD_MULTIPLE): Includes m_BTVER1.
14755         (initial_ix86_tune_features): Add btver1 tune.
14756         (processor_target_table): Add btver1 entry.
14757         (static const char *const cpu_names): Add btver1 entry.
14758         (software_prefetching_beneficial_p): Add btver1.
14759         (ix86_option_override_internal): Add btver1 instruction sets.
14760         (ix86_issue_rate): Add btver1.
14761         (ix86_adjust_cost): Add btver1.
14762         * config/i386/i386.h (TARGET_BTVER1): New definition.
14763         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14764         (enum processor_type): Add PROCESSOR_BTVER1.
14765         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14766
14767 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14768
14769         PR target/43309
14770         * config/i386/i386.c (legitimize_tls_address)
14771         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14772         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14773         (tls_initial_exec_64_sun): New pattern.
14774
14775 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14776
14777         * doc/invoke.texi (Overall Options): Improve wording and markup
14778         of the description of -wrapper.
14779
14780 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14781
14782         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14783         rdynamic, threads): New Driver options.
14784
14785 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14786
14787         PR target/38118
14788         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14789         if coming from .tdata.
14790         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14791
14792 2011-01-06  Jan Hubicka  <jh@suse.cz>
14793
14794         PR lto/47188
14795         * collect2.c (main): Do not enable LTOmode when plugin is active.
14796
14797 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14798
14799         PR other/45915
14800         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14801         --version output if supported.
14802         * configure: Regenerate.
14803
14804 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14805
14806         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14807         Driver options.
14808
14809 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14810
14811         PR c/47150
14812         * c-convert.c (convert): When converting a complex expression
14813         other than COMPLEX_EXPR to a different complex type, ensure
14814         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14815         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14816         when converting COMPLEX_TYPE.
14817
14818 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14819
14820         PR tree-optimization/47139
14821         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14822         only the last reduction value is used outside the loop.  Update
14823         documentation.
14824
14825 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14826
14827         * config/rtems.opt: New.
14828         * config.gcc (*-*-rtems*): Use rtems.opt.
14829
14830 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14831
14832         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14833         processors do not support 3DNow instructions.
14834
14835 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14836
14837         * config/spu/spu.c (spu_option_override): Set parameter
14838         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14839
14840 2011-01-05  Jan Hubicka  <jh@suse.cz>
14841
14842         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14843         at the command line.
14844
14845 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14846
14847         PR lto/47162
14848         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14849         deltas on streamed outgoing edges.
14850         (output_node_opt_summary): Output info for outgoing edges only when
14851         the node is in new parameter set.
14852         (output_cgraph_opt_summary): New parameter set, passed to the two
14853         aforementioned functions.  Update its forward declaration and its
14854         callee too.
14855
14856 2011-01-05  Tom Tromey  <tromey@redhat.com>
14857
14858         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14859         operator to c_finish_omp_atomic.
14860         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14861         (build_unary_op): Update.
14862         (build_modify_expr): Update.
14863         (build_asm_expr): Update.
14864
14865 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14866
14867         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14868         newly inserted insns.
14869         (pad_bb): Likewise.
14870         (spu_emit_branch_hint): Likewise.
14871         (insert_hbrp_for_ilb_runout): Likewise.
14872         (spu_machine_dependent_reorg): Call df_finish_pass after
14873         schedule_insns returns.
14874
14875 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14876
14877         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14878
14879 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14880
14881         PR tree-optimization/47005
14882         * tree-sra.c (struct access): Add 'non_addressable' bit.
14883         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14884         (decide_one_param_reduction): Return 0 if the parameter is passed by
14885         reference and one of the accesses in the group is non_addressable.
14886
14887 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14888
14889         PR tree-optimization/47056
14890         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14891         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14892         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14893
14894 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14895
14896         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14897         initializer.  Skip view conversions from aggregate types.
14898
14899 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14900
14901         PR bootstrap/47055
14902         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14903
14904 2011-01-04  Philipp Thomas  <pth@suse.de>
14905
14906         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14907         obvious typo.
14908
14909 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14910
14911         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14912         on empty epilogue sequences.
14913
14914 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14915
14916         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14917         non-static): New Driver options.
14918
14919 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14920
14921         PR driver/47137
14922         * gcc.c (default_compilers[]): Set combinable field to 0
14923         for all assembly languages.
14924
14925 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14926
14927         * config/mips/loongson3a.md: New file.
14928         * config/mips/mips.md: Include loongson3a.md.
14929         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14930         TUNE_LOONGSON_3A.
14931
14932 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14933
14934         PR middle-end/47017
14935         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14936         instead of convert_memory_address_addr_space on the base expression.
14937
14938 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14939
14940         * config/spu/spu.c (spu_option_override): Update error text
14941         for bad -march= / -mtune= values.
14942
14943 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14944
14945         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14946         if branch-hint optimization will be performed.
14947
14948 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14949
14950         PR tree-optimization/47148
14951         * ipa-split.c (split_function): Convert arguments to
14952         DECL_ARG_TYPE if possible.
14953
14954         PR tree-optimization/47155
14955         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14956         when computing uns.
14957
14958         PR rtl-optimization/47157
14959         * combine.c (try_combine): If undobuf.other_insn becomes
14960         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14961         and set *new_direct_jump_p too.
14962
14963 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14964
14965         PR tree-optimization/47021
14966         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14967
14968 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14969
14970         * gcc.c (process_command): Update copyright notice dates.
14971         * gcov.c (print_version): Likewise.
14972         * gcov-dump.c (print_version): Likewise.
14973         * mips-tfile.c (main): Likewise.
14974         * mips-tdump.c (main): Likewise.
14975
14976 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14977
14978         PR tree-optimization/46801
14979         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14980         aggregate fields start at byte boundary instead of the bit-field flag.
14981
14982 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14983
14984         PR driver/47137
14985         * gcc.c (main): Revert revision 168407.
14986
14987 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14988
14989         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14990
14991 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14992
14993         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14994         vector optab to expand vector/scalar shift, update gimple to vector.
14995
14996 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14997
14998         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14999         a thunk.
15000
15001 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15002
15003         PR tree-optimization/46984
15004         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15005         HOST_WIDE_INT.
15006         (cgraph_create_indirect_edge): Fixed line length.
15007         (cgraph_indirect_call_info): Declare.
15008         (cgraph_make_edge_direct) Update declaration.
15009         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15010         (cgraph_create_indirect_edge): Use it.
15011         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15012         callees.
15013         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15014         the new thunk_delta representation.
15015         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15016         HOST_WIDE_INT.
15017         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15018         (ipa_read_indirect_edge_info): Likewise.
15019         * lto-cgraph.c (output_edge_opt_summary): New function.
15020         (output_node_opt_summary): Call it on all outgoing edges.
15021         (input_edge_opt_summary): New function.
15022         (input_node_opt_summary): Call it on all outgoing edges.
15023
15024 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15025
15026         PR driver/47137
15027         * gcc.c (main): Don't check have_o when settting combine_inputs.
15028
15029 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15030
15031         * regrename.c: Add general comment describing the pass.
15032         (struct du_head): Remove 'length' field.
15033         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15034         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15035         Force renaming to the preferred class (if any) in the first pass and do
15036         not consider registers that belong to it in the second pass.
15037         (create_new_chain): Do not set 'length' field.
15038         (scan_rtx_reg): Likewise.
15039
15040 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15041
15042         PR tree-optimization/47140
15043         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15044         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15045         to bit_value_binop.
15046
15047         PR rtl-optimization/47028
15048         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15049         parm_birth_insn instead of at the beginning of first bb.
15050
15051 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15052
15053         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15054         Remove the word "see" before "@pxref".
15055         * doc/rtl.texi: Remove the word "see" before "@pxref".
15056
15057 2011-01-01  Jan Hubicka  <jh@suse.cz>
15058
15059         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15060         memory.
15061
15062 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15063
15064         PR target/38662
15065         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15066
15067 \f
15068 Copyright (C) 2011 Free Software Foundation, Inc.
15069
15070 Copying and distribution of this file, with or without modification,
15071 are permitted in any medium without royalty provided the copyright
15072 notice and this notice are preserved.